Github messages for voidlinux
 help / color / mirror / Atom feed
From: classabbyamp <classabbyamp@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: helvum-0.3.4
Date: Sun, 27 Feb 2022 23:58:56 +0100	[thread overview]
Message-ID: <20220227225856.A4TgB-HEtkunxNPN9hi94Oer9hSCXYHI_YBcKA88m6U@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-35591@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1256 bytes --]

There is an updated pull request by classabbyamp against master on the void-packages repository

https://github.com/classabbyamp/void-packages helvum
https://github.com/void-linux/void-packages/pull/35591

New package: helvum-0.3.4
<!-- Uncomment relevant sections and delete options which are not applicable -->

closes #35582
closes #34560

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/35591.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-helvum-35591.patch --]
[-- Type: text/x-diff, Size: 4973 bytes --]

From 3fd35652b196661032d1de191686342a2bf93ab3 Mon Sep 17 00:00:00 2001
From: classabbyamp <dev@kb6.ee>
Date: Wed, 23 Feb 2022 23:55:47 -0500
Subject: [PATCH 1/2] common/build-helper/rust.sh: fix cross for bindgen

When using a build.rs script to dynamically generate bindgen bindings
at build-time, it will run on the host, and by default bindgen will
generate bindings for the host arch/libc instead of the target.
To generate the bindings on cross, we need to use BINDGEN_EXTRA_CLANG_ARGS
to specify the proper sysroot and include path for the target.
These arguments are not used for anything other than bindgen's clang
invocation.
---
 common/build-helper/rust.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/common/build-helper/rust.sh b/common/build-helper/rust.sh
index 431cb5f0fd43..798083709c3e 100644
--- a/common/build-helper/rust.sh
+++ b/common/build-helper/rust.sh
@@ -23,6 +23,9 @@ if [ "$CROSS_BUILD" ]; then
 	# innocuous flags are used here just to disable its defaults
 	export HOST_CC="gcc"
 	export HOST_CFLAGS="-O2"
+
+	# Crates that use bindgen via build.rs are not cross-aware unless these are set
+	export BINDGEN_EXTRA_CLANG_ARGS="--sysroot=${XBPS_CROSS_BASE} -I${XBPS_CROSS_BASE}/usr/include"
 else
 	unset CARGO_BUILD_TARGET
 fi

From e3f992829987183488d0e88704e7733952148bfc Mon Sep 17 00:00:00 2001
From: classabbyamp <dev@kb6.ee>
Date: Thu, 24 Feb 2022 00:07:36 -0500
Subject: [PATCH 2/2] New package: helvum-0.3.4

---
 srcpkgs/helvum/patches/i686-pipewire.patch | 24 +++++++++++
 srcpkgs/helvum/template                    | 47 ++++++++++++++++++++++
 2 files changed, 71 insertions(+)
 create mode 100644 srcpkgs/helvum/patches/i686-pipewire.patch
 create mode 100644 srcpkgs/helvum/template

diff --git a/srcpkgs/helvum/patches/i686-pipewire.patch b/srcpkgs/helvum/patches/i686-pipewire.patch
new file mode 100644
index 000000000000..7b87547ea8fe
--- /dev/null
+++ b/srcpkgs/helvum/patches/i686-pipewire.patch
@@ -0,0 +1,24 @@
+From e8703de1c76f50553cedb7a1601e5b808a227604 Mon Sep 17 00:00:00 2001
+From: "Gabor Kecskemeti (sh)" <gabor@simple-help.com>
+Date: Thu, 11 Nov 2021 11:41:09 +0000
+Subject: A possible fix for issue #27
+
+---
+ pipewire/src/loop_.rs | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/pipewire/src/loop_.rs b/pipewire/src/loop_.rs
+index 3e0d9bd..353025f 100644
+--- a/pipewire/src/loop_.rs
++++ b/pipewire/src/loop_.rs
+@@ -411,7 +411,7 @@ where
+         fn duration_to_timespec(duration: Duration) -> spa_sys::timespec {
+             spa_sys::timespec {
+                 tv_sec: duration.as_secs().try_into().expect("Duration too long"),
+-                tv_nsec: duration.subsec_nanos().into(),
++                tv_nsec: duration.subsec_nanos().try_into().unwrap(),
+             }
+         }
+ 
+-- 
+
diff --git a/srcpkgs/helvum/template b/srcpkgs/helvum/template
new file mode 100644
index 000000000000..d23229e99e81
--- /dev/null
+++ b/srcpkgs/helvum/template
@@ -0,0 +1,47 @@
+# Template file for 'helvum'
+pkgname=helvum
+version=0.3.4
+_pipewire_rs_version=0.4.1
+revision=1
+build_style=cargo
+build_helper=rust
+hostmakedepends="pkg-config clang libclang"
+makedepends="gtk4-devel pipewire-devel glib-devel"
+depends="pipewire"
+short_desc="GTK patchbay for pipewire"
+maintainer="classabbyamp <dev@kb6.ee>"
+license="GPL-3.0-only"
+homepage="https://gitlab.freedesktop.org/pipewire/helvum"
+distfiles="https://gitlab.freedesktop.org/pipewire/helvum/-/archive/${version}/helvum-${version}.tar.gz
+ https://gitlab.freedesktop.org/pipewire/pipewire-rs/-/archive/v${_pipewire_rs_version}/pipewire-rs-v${_pipewire_rs_version}.tar.gz"
+checksum="e19054f3bcd1ba234c451134fe7f4c6afee35f108c122642c1d502fc16785c02
+ 7df384c2a98154ae2cea8e14693db92e269437ea60fbcdfb6adb589226d12629"
+
+# XXX: this should not be necessary once the next version of the pipewire crate has been released
+post_extract() {
+	echo "[patch.crates-io]" >> Cargo.toml
+	for crate in pipewire pipewire-sys libspa libspa-sys; do
+		mv ../pipewire-rs-*/$crate $crate
+		echo "$crate = { path = './$crate' }" >> Cargo.toml
+	done
+}
+
+post_install() {
+	# Normally, meson would do this, but it's simpler to use the cargo build style and do this manually
+	# This also avoids the need for makedeps/build steps that are made unnecessary by xbps' hooks
+	# On update, all meson.build files should be checked for changes
+	_app_id='org.pipewire.Helvum'
+	vinstall data/icons/$_app_id.svg 644 usr/share/icons/hicolor/scalable/apps/
+	vinstall data/icons/$_app_id-symbolic.svg 644 usr/share/icons/hicolor/symbolic/apps/
+
+	vsed -i data/$_app_id.desktop.in -e "s/@icon@/$_app_id/"
+	vinstall data/$_app_id.desktop.in 644 usr/share/applications/ $_app_id.desktop
+
+	vsed -i data/$_app_id.metainfo.xml.in -e "s/@app-id@/$_app_id/"
+	vinstall data/$_app_id.metainfo.xml.in 644 usr/share/metainfo/ $_app_id.metainfo.xml
+}
+
+do_clean() {
+	# clean up pipewire-rs
+	rm -rf ${XBPS_BUILDDIR}/pipewire-rs-*
+}

  parent reply	other threads:[~2022-02-27 22:58 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-13 18:44 [PR PATCH] " classabbyamp
2022-02-13 19:11 ` [PR PATCH] [Updated] " classabbyamp
2022-02-13 20:06 ` classabbyamp
2022-02-13 20:19 ` classabbyamp
2022-02-13 20:35 ` dkwo
2022-02-13 20:38 ` dkwo
2022-02-13 21:15 ` [PR PATCH] [Updated] " classabbyamp
2022-02-13 21:18 ` classabbyamp
2022-02-14  0:31 ` [PR PATCH] [Updated] " classabbyamp
2022-02-14  3:17 ` classabbyamp
2022-02-14  3:18 ` classabbyamp
2022-02-14  9:41 ` dkwo
2022-02-14 16:05 ` classabbyamp
2022-02-15 12:25 ` dkwo
2022-02-19 22:24 ` 0x5c
2022-02-19 22:31 ` classabbyamp
2022-02-20  0:27 ` 0x5c
2022-02-20  1:15 ` [PR PATCH] [Updated] " classabbyamp
2022-02-20  2:00 ` classabbyamp
2022-02-20  8:04 ` 0x5c
2022-02-20 21:32 ` classabbyamp
2022-02-24  5:07 ` [PR PATCH] [Updated] " classabbyamp
2022-02-24  5:47 ` classabbyamp
2022-02-24 20:30 ` classabbyamp
2022-02-27 22:34 ` [PR REVIEW] " paper42
2022-02-27 22:34 ` paper42
2022-02-27 22:57 ` [PR PATCH] [Updated] " classabbyamp
2022-02-27 22:58 ` [PR REVIEW] " classabbyamp
2022-02-27 22:58 ` classabbyamp [this message]
2022-03-05 23:01 ` [PR PATCH] [Updated] " classabbyamp
2022-03-06  3:14 ` classabbyamp
2022-03-13 22:54 ` [PR REVIEW] " paper42
2022-03-13 23:20 ` [PR PATCH] [Updated] " classabbyamp
2022-03-13 23:21 ` [PR REVIEW] " classabbyamp
2022-03-13 23:22 ` [PR PATCH] [Updated] " classabbyamp
2022-03-14  7:08 ` [PR PATCH] [Merged]: " paper42

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220227225856.A4TgB-HEtkunxNPN9hi94Oer9hSCXYHI_YBcKA88m6U@z \
    --to=classabbyamp@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).