Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] NoiseTorch: update to 0.12.2.
@ 2023-04-27  3:49 yoshiyoshyosh
  2023-04-27  3:55 ` [PR PATCH] [Updated] " yoshiyoshyosh
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: yoshiyoshyosh @ 2023-04-27  3:49 UTC (permalink / raw)
  To: ml

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

There is a new pull request by yoshiyoshyosh against master on the void-packages repository

https://github.com/yoshiyoshyosh/void-packages noisetorch-0.12.2
https://github.com/void-linux/void-packages/pull/43646

NoiseTorch: update to 0.12.2.
#### Testing the changes
- I tested the changes in this PR: **Briefly**

- I built this PR locally for my native architecture, (x86_64-glibc)

Addresses #41656 and #42403.
I tried building using `rnnoise-devel`; it would build without errors, but would not actually function when testing. Because of this, I'm pretty sure the `*.c` files from rnnoise are required to build the ladspa library that gets integrated into this, so I used the vendored submodules.
Everything seems to work, but I only tried with pipewire (I doubt it'd break anywhere else if pipewire's working fine)

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

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

From 8b6625128810c78d05323fce8ce2b71253a26a78 Mon Sep 17 00:00:00 2001
From: yosh <yosh-git@riseup.net>
Date: Wed, 26 Apr 2023 23:34:05 -0400
Subject: [PATCH] NoiseTorch: update to 0.12.2.

---
 .../patches/dont-fetch-submods.patch          | 11 ++++++++++
 srcpkgs/NoiseTorch/template                   | 22 ++++++++++++++-----
 2 files changed, 28 insertions(+), 5 deletions(-)
 create mode 100644 srcpkgs/NoiseTorch/patches/dont-fetch-submods.patch

diff --git a/srcpkgs/NoiseTorch/patches/dont-fetch-submods.patch b/srcpkgs/NoiseTorch/patches/dont-fetch-submods.patch
new file mode 100644
index 000000000000..3d7e7aaab9f3
--- /dev/null
+++ b/srcpkgs/NoiseTorch/patches/dont-fetch-submods.patch
@@ -0,0 +1,11 @@
+Don't fetch submodules, since xbps-src does already.
+diff --git a/Makefile b/Makefile
+index ae252c0..6409106 100644
+--- a/Makefile
++++ b/Makefile
+@@ -28,5 +28,4 @@ release: rnnoise
+ 	rm -rf tmp/
+ 	go run scripts/signer.go -s -f bin/NoiseTorch_x64_${VERSION}.tgz
+ rnnoise:
+-	git submodule update --init --recursive
+ 	$(MAKE) -C c/ladspa
diff --git a/srcpkgs/NoiseTorch/template b/srcpkgs/NoiseTorch/template
index a9e9fb2c92d4..d482ac1336dc 100644
--- a/srcpkgs/NoiseTorch/template
+++ b/srcpkgs/NoiseTorch/template
@@ -1,17 +1,29 @@
 # Template file for 'NoiseTorch'
 pkgname=NoiseTorch
-version=0.11.4
+version=0.12.2
 revision=1
 build_style=go
 go_ldflags="-X main.version=${version} -X main.distribution=VoidLinux"
 go_import_path="noisetorch"
 depends="libcap-progs"
 short_desc="Real-time microphone noise suppression on Linux"
-maintainer="Soc Virnyl S. Estela <renegan.ronin@gmail.com>"
+maintainer="yosh <yosh-git@riseup.net>"
 license="GPL-3.0-or-later"
-homepage="https://github.com/lawl/NoiseTorch"
-distfiles="https://github.com/lawl/NoiseTorch/archive/${version}.tar.gz"
-checksum=3da6cad119ecca6f4e131c8bca86eb122d2363d5d30dcd1da41974af5887a3c1
+homepage="https://github.com/NoiseTorch/NoiseTorch"
+_c_ringbuf_commit=2037560fb90dea5d2538611d983964d790bdbac2
+_rnnoise_commit=1cbdbcf1283499bbb2230a6b0f126eb9b236defd
+distfiles="https://github.com/NoiseTorch/NoiseTorch/archive/v${version}.tar.gz
+https://github.com/NoiseTorch/c-ringbuf/archive/${_c_ringbuf_commit}.tar.gz
+https://github.com/NoiseTorch/rnnoice/archive/${_rnnoise_commit}.tar.gz"
+checksum="4a30650314a6f83d979f3303d49618847ba58e39e3e26482dfe58b5e261c5611
+877b08413c59baac56b4cc7720fa56cf0eb399192a0ec652ce7b590c9cd9ad8a
+68c7ab4e408426088603e19955e746bb2a412d84bb121b6f39834c60fc8068b7"
+
+post_extract() {
+	mv NoiseTorch-${version}/* .
+	mv c-ringbuf-${_c_ringbuf_commit}/* c/c-ringbuf
+	mv rnnoise-${_rnnoise_commit}/* c/rnnoise
+}
 
 pre_build() {
 	make rnnoise

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PR PATCH] [Updated] NoiseTorch: update to 0.12.2.
  2023-04-27  3:49 [PR PATCH] NoiseTorch: update to 0.12.2 yoshiyoshyosh
@ 2023-04-27  3:55 ` yoshiyoshyosh
  2023-06-23 19:54 ` [PR REVIEW] " Duncaen
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: yoshiyoshyosh @ 2023-04-27  3:55 UTC (permalink / raw)
  To: ml

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

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

https://github.com/yoshiyoshyosh/void-packages noisetorch-0.12.2
https://github.com/void-linux/void-packages/pull/43646

NoiseTorch: update to 0.12.2.
#### Testing the changes
- I tested the changes in this PR: **Briefly**

- I built this PR locally for my native architecture, (x86_64-glibc)

Addresses #41656 and #42403.
I tried building using `rnnoise-devel`; it would build without errors, but would not actually function when testing. Because of this, I'm pretty sure the `*.c` files from rnnoise are required to build the ladspa library that gets integrated into this, so I used the vendored submodules.
Everything seems to work, but I only tried with pipewire (I doubt it'd break anywhere else if pipewire's working fine)

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

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

From 4158fa26ee13341cc3bd3b634b9e8637996ca27f Mon Sep 17 00:00:00 2001
From: yosh <yosh-git@riseup.net>
Date: Wed, 26 Apr 2023 23:34:05 -0400
Subject: [PATCH] NoiseTorch: update to 0.12.2.

---
 .../patches/dont-fetch-submods.patch          | 11 ++++++++++
 srcpkgs/NoiseTorch/template                   | 22 ++++++++++++++-----
 2 files changed, 28 insertions(+), 5 deletions(-)
 create mode 100644 srcpkgs/NoiseTorch/patches/dont-fetch-submods.patch

diff --git a/srcpkgs/NoiseTorch/patches/dont-fetch-submods.patch b/srcpkgs/NoiseTorch/patches/dont-fetch-submods.patch
new file mode 100644
index 000000000000..3d7e7aaab9f3
--- /dev/null
+++ b/srcpkgs/NoiseTorch/patches/dont-fetch-submods.patch
@@ -0,0 +1,11 @@
+Don't fetch submodules, since xbps-src does already.
+diff --git a/Makefile b/Makefile
+index ae252c0..6409106 100644
+--- a/Makefile
++++ b/Makefile
+@@ -28,5 +28,4 @@ release: rnnoise
+ 	rm -rf tmp/
+ 	go run scripts/signer.go -s -f bin/NoiseTorch_x64_${VERSION}.tgz
+ rnnoise:
+-	git submodule update --init --recursive
+ 	$(MAKE) -C c/ladspa
diff --git a/srcpkgs/NoiseTorch/template b/srcpkgs/NoiseTorch/template
index a9e9fb2c92d4..8fa51fb423be 100644
--- a/srcpkgs/NoiseTorch/template
+++ b/srcpkgs/NoiseTorch/template
@@ -1,17 +1,29 @@
 # Template file for 'NoiseTorch'
 pkgname=NoiseTorch
-version=0.11.4
+version=0.12.2
 revision=1
 build_style=go
 go_ldflags="-X main.version=${version} -X main.distribution=VoidLinux"
 go_import_path="noisetorch"
 depends="libcap-progs"
 short_desc="Real-time microphone noise suppression on Linux"
-maintainer="Soc Virnyl S. Estela <renegan.ronin@gmail.com>"
+maintainer="yosh <yosh-git@riseup.net>"
 license="GPL-3.0-or-later"
-homepage="https://github.com/lawl/NoiseTorch"
-distfiles="https://github.com/lawl/NoiseTorch/archive/${version}.tar.gz"
-checksum=3da6cad119ecca6f4e131c8bca86eb122d2363d5d30dcd1da41974af5887a3c1
+homepage="https://github.com/NoiseTorch/NoiseTorch"
+_c_ringbuf_commit=2037560fb90dea5d2538611d983964d790bdbac2
+_rnnoise_commit=1cbdbcf1283499bbb2230a6b0f126eb9b236defd
+distfiles="https://github.com/NoiseTorch/NoiseTorch/archive/v${version}.tar.gz
+https://github.com/NoiseTorch/c-ringbuf/archive/${_c_ringbuf_commit}.tar.gz
+https://github.com/NoiseTorch/rnnoise/archive/${_rnnoise_commit}.tar.gz"
+checksum="4a30650314a6f83d979f3303d49618847ba58e39e3e26482dfe58b5e261c5611
+877b08413c59baac56b4cc7720fa56cf0eb399192a0ec652ce7b590c9cd9ad8a
+68c7ab4e408426088603e19955e746bb2a412d84bb121b6f39834c60fc8068b7"
+
+post_extract() {
+	mv NoiseTorch-${version}/* .
+	mv c-ringbuf-${_c_ringbuf_commit}/* c/c-ringbuf
+	mv rnnoise-${_rnnoise_commit}/* c/rnnoise
+}
 
 pre_build() {
 	make rnnoise

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PR REVIEW] NoiseTorch: update to 0.12.2.
  2023-04-27  3:49 [PR PATCH] NoiseTorch: update to 0.12.2 yoshiyoshyosh
                   ` (3 preceding siblings ...)
  2023-06-23 19:54 ` Duncaen
@ 2023-06-23 19:54 ` Duncaen
  2023-06-23 20:53 ` yoshiyoshyosh
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: Duncaen @ 2023-06-23 19:54 UTC (permalink / raw)
  To: ml

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

New review comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/pull/43646#discussion_r1240285953

Comment:
This should probably use `build_wrksrc="NoiseTorch-${version}" instead. And link the other dependencies into the directory.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PR REVIEW] NoiseTorch: update to 0.12.2.
  2023-04-27  3:49 [PR PATCH] NoiseTorch: update to 0.12.2 yoshiyoshyosh
  2023-04-27  3:55 ` [PR PATCH] [Updated] " yoshiyoshyosh
  2023-06-23 19:54 ` [PR REVIEW] " Duncaen
@ 2023-06-23 19:54 ` Duncaen
  2023-06-23 19:54 ` Duncaen
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: Duncaen @ 2023-06-23 19:54 UTC (permalink / raw)
  To: ml

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

New review comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/pull/43646#discussion_r1240290499

Comment:
Use `vsed -e '/git submodule/d' -i Makefile` in `post_extract` instead if this not going to be an upstreamed patch, the extra 10 lines are not worth it.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PR REVIEW] NoiseTorch: update to 0.12.2.
  2023-04-27  3:49 [PR PATCH] NoiseTorch: update to 0.12.2 yoshiyoshyosh
                   ` (2 preceding siblings ...)
  2023-06-23 19:54 ` Duncaen
@ 2023-06-23 19:54 ` Duncaen
  2023-06-23 19:54 ` Duncaen
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: Duncaen @ 2023-06-23 19:54 UTC (permalink / raw)
  To: ml

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

New review comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/pull/43646#discussion_r1240279245

Comment:
I would prefer if you put in `Orphaned <orphan@voidlinux.org>` and only adopt the package if you update or review it again. We have too many people adopting packages they never update again and when reviewing updates we have to chase the maintainer field to see if they are still active or not.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PR REVIEW] NoiseTorch: update to 0.12.2.
  2023-04-27  3:49 [PR PATCH] NoiseTorch: update to 0.12.2 yoshiyoshyosh
  2023-04-27  3:55 ` [PR PATCH] [Updated] " yoshiyoshyosh
@ 2023-06-23 19:54 ` Duncaen
  2023-06-23 19:54 ` Duncaen
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: Duncaen @ 2023-06-23 19:54 UTC (permalink / raw)
  To: ml

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

New review comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/pull/43646#discussion_r1240260224

Comment:
distfiles and checksums on new lines should be indented with a space.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PR REVIEW] NoiseTorch: update to 0.12.2.
  2023-04-27  3:49 [PR PATCH] NoiseTorch: update to 0.12.2 yoshiyoshyosh
                   ` (4 preceding siblings ...)
  2023-06-23 19:54 ` Duncaen
@ 2023-06-23 20:53 ` yoshiyoshyosh
  2023-06-23 21:10 ` yoshiyoshyosh
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: yoshiyoshyosh @ 2023-06-23 20:53 UTC (permalink / raw)
  To: ml

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

New review comment by yoshiyoshyosh on void-packages repository

https://github.com/void-linux/void-packages/pull/43646#discussion_r1240382593

Comment:
Noted. I don't actively use this software, rather this was made purely to address the issues, so I will most likely not update or review it again.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PR REVIEW] NoiseTorch: update to 0.12.2.
  2023-04-27  3:49 [PR PATCH] NoiseTorch: update to 0.12.2 yoshiyoshyosh
                   ` (5 preceding siblings ...)
  2023-06-23 20:53 ` yoshiyoshyosh
@ 2023-06-23 21:10 ` yoshiyoshyosh
  2023-06-23 21:12 ` yoshiyoshyosh
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: yoshiyoshyosh @ 2023-06-23 21:10 UTC (permalink / raw)
  To: ml

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

New review comment by yoshiyoshyosh on void-packages repository

https://github.com/void-linux/void-packages/pull/43646#discussion_r1240402788

Comment:
wouldn't `pre_build` be better?

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PR REVIEW] NoiseTorch: update to 0.12.2.
  2023-04-27  3:49 [PR PATCH] NoiseTorch: update to 0.12.2 yoshiyoshyosh
                   ` (6 preceding siblings ...)
  2023-06-23 21:10 ` yoshiyoshyosh
@ 2023-06-23 21:12 ` yoshiyoshyosh
  2023-06-23 21:17 ` Duncaen
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: yoshiyoshyosh @ 2023-06-23 21:12 UTC (permalink / raw)
  To: ml

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

New review comment by yoshiyoshyosh on void-packages repository

https://github.com/void-linux/void-packages/pull/43646#discussion_r1240402788

Comment:
wouldn't `pre_build` be better, notably because we're also changing `build_wrksrc`?

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PR REVIEW] NoiseTorch: update to 0.12.2.
  2023-04-27  3:49 [PR PATCH] NoiseTorch: update to 0.12.2 yoshiyoshyosh
                   ` (7 preceding siblings ...)
  2023-06-23 21:12 ` yoshiyoshyosh
@ 2023-06-23 21:17 ` Duncaen
  2023-06-23 21:23 ` [PR PATCH] [Updated] " yoshiyoshyosh
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: Duncaen @ 2023-06-23 21:17 UTC (permalink / raw)
  To: ml

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

New review comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/pull/43646#discussion_r1240408890

Comment:
I guess `post_patch` would be more correct, it should already apply `build_wrksrc` there afaik and the steps of patching and building are separated. so you you rerun just the build step during development it doesn't try to patch it every time and print a warning.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PR PATCH] [Updated] NoiseTorch: update to 0.12.2.
  2023-04-27  3:49 [PR PATCH] NoiseTorch: update to 0.12.2 yoshiyoshyosh
                   ` (8 preceding siblings ...)
  2023-06-23 21:17 ` Duncaen
@ 2023-06-23 21:23 ` yoshiyoshyosh
  2023-06-23 21:23 ` yoshiyoshyosh
  2023-06-23 21:46 ` [PR PATCH] [Closed]: " Duncaen
  11 siblings, 0 replies; 13+ messages in thread
From: yoshiyoshyosh @ 2023-06-23 21:23 UTC (permalink / raw)
  To: ml

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

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

https://github.com/yoshiyoshyosh/void-packages noisetorch-0.12.2
https://github.com/void-linux/void-packages/pull/43646

NoiseTorch: update to 0.12.2.
#### Testing the changes
- I tested the changes in this PR: **Briefly**

- I built this PR locally for my native architecture, (x86_64-glibc)

Addresses #41656 and #42403.
I tried building using `rnnoise-devel`; it would build without errors, but would not actually function when testing. Because of this, I'm pretty sure the `*.c` files from rnnoise are required to build the ladspa library that gets integrated into this, so I used the vendored submodules.
Everything seems to work, but I only tried with pipewire (I doubt it'd break anywhere else if pipewire's working fine)

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

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

From 948afc6a7b29d3857eda80e8d5313fe2d655abef Mon Sep 17 00:00:00 2001
From: yosh <yosh-git@riseup.net>
Date: Wed, 26 Apr 2023 23:34:05 -0400
Subject: [PATCH] NoiseTorch: update to 0.12.2.

---
 srcpkgs/NoiseTorch/template | 23 ++++++++++++++++++-----
 1 file changed, 18 insertions(+), 5 deletions(-)

diff --git a/srcpkgs/NoiseTorch/template b/srcpkgs/NoiseTorch/template
index a9e9fb2c92d4..7976210c7181 100644
--- a/srcpkgs/NoiseTorch/template
+++ b/srcpkgs/NoiseTorch/template
@@ -1,19 +1,32 @@
 # Template file for 'NoiseTorch'
 pkgname=NoiseTorch
-version=0.11.4
+version=0.12.2
 revision=1
+build_wrksrc="NoiseTorch-${version}"
 build_style=go
 go_ldflags="-X main.version=${version} -X main.distribution=VoidLinux"
 go_import_path="noisetorch"
 depends="libcap-progs"
 short_desc="Real-time microphone noise suppression on Linux"
-maintainer="Soc Virnyl S. Estela <renegan.ronin@gmail.com>"
+maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-3.0-or-later"
-homepage="https://github.com/lawl/NoiseTorch"
-distfiles="https://github.com/lawl/NoiseTorch/archive/${version}.tar.gz"
-checksum=3da6cad119ecca6f4e131c8bca86eb122d2363d5d30dcd1da41974af5887a3c1
+homepage="https://github.com/NoiseTorch/NoiseTorch"
+_c_ringbuf_commit=2037560fb90dea5d2538611d983964d790bdbac2
+_rnnoise_commit=1cbdbcf1283499bbb2230a6b0f126eb9b236defd
+distfiles="https://github.com/NoiseTorch/NoiseTorch/archive/v${version}.tar.gz
+ https://github.com/NoiseTorch/c-ringbuf/archive/${_c_ringbuf_commit}.tar.gz
+ https://github.com/NoiseTorch/rnnoise/archive/${_rnnoise_commit}.tar.gz"
+checksum="4a30650314a6f83d979f3303d49618847ba58e39e3e26482dfe58b5e261c5611
+ 877b08413c59baac56b4cc7720fa56cf0eb399192a0ec652ce7b590c9cd9ad8a
+ 68c7ab4e408426088603e19955e746bb2a412d84bb121b6f39834c60fc8068b7"
+
+post_extract() {
+	ln -sf ${wrksrc}/c-ringbuf-${_c_ringbuf_commit}/* ${build_wrksrc}/c/c-ringbuf
+	ln -sf ${wrksrc}/rnnoise-${_rnnoise_commit}/* ${build_wrksrc}/c/rnnoise
+}
 
 pre_build() {
+	vsed -e '/git submodule/d' -i Makefile
 	make rnnoise
 	GOARCH= go build scripts/embedlicenses.go
 	./embedlicenses

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PR PATCH] [Updated] NoiseTorch: update to 0.12.2.
  2023-04-27  3:49 [PR PATCH] NoiseTorch: update to 0.12.2 yoshiyoshyosh
                   ` (9 preceding siblings ...)
  2023-06-23 21:23 ` [PR PATCH] [Updated] " yoshiyoshyosh
@ 2023-06-23 21:23 ` yoshiyoshyosh
  2023-06-23 21:46 ` [PR PATCH] [Closed]: " Duncaen
  11 siblings, 0 replies; 13+ messages in thread
From: yoshiyoshyosh @ 2023-06-23 21:23 UTC (permalink / raw)
  To: ml

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

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

https://github.com/yoshiyoshyosh/void-packages noisetorch-0.12.2
https://github.com/void-linux/void-packages/pull/43646

NoiseTorch: update to 0.12.2.
#### Testing the changes
- I tested the changes in this PR: **Briefly**

- I built this PR locally for my native architecture, (x86_64-glibc)

Addresses #41656 and #42403.
I tried building using `rnnoise-devel`; it would build without errors, but would not actually function when testing. Because of this, I'm pretty sure the `*.c` files from rnnoise are required to build the ladspa library that gets integrated into this, so I used the vendored submodules.
Everything seems to work, but I only tried with pipewire (I doubt it'd break anywhere else if pipewire's working fine)

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

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

From bd7be2f0d6d2316882068542073ce4f448b6a37d Mon Sep 17 00:00:00 2001
From: yosh <yosh-git@riseup.net>
Date: Wed, 26 Apr 2023 23:34:05 -0400
Subject: [PATCH] NoiseTorch: update to 0.12.2.

---
 srcpkgs/NoiseTorch/template | 26 +++++++++++++++++++++-----
 1 file changed, 21 insertions(+), 5 deletions(-)

diff --git a/srcpkgs/NoiseTorch/template b/srcpkgs/NoiseTorch/template
index a9e9fb2c92d4..123fcccaabb4 100644
--- a/srcpkgs/NoiseTorch/template
+++ b/srcpkgs/NoiseTorch/template
@@ -1,17 +1,33 @@
 # Template file for 'NoiseTorch'
 pkgname=NoiseTorch
-version=0.11.4
+version=0.12.2
 revision=1
+build_wrksrc="NoiseTorch-${version}"
 build_style=go
 go_ldflags="-X main.version=${version} -X main.distribution=VoidLinux"
 go_import_path="noisetorch"
 depends="libcap-progs"
 short_desc="Real-time microphone noise suppression on Linux"
-maintainer="Soc Virnyl S. Estela <renegan.ronin@gmail.com>"
+maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-3.0-or-later"
-homepage="https://github.com/lawl/NoiseTorch"
-distfiles="https://github.com/lawl/NoiseTorch/archive/${version}.tar.gz"
-checksum=3da6cad119ecca6f4e131c8bca86eb122d2363d5d30dcd1da41974af5887a3c1
+homepage="https://github.com/NoiseTorch/NoiseTorch"
+_c_ringbuf_commit=2037560fb90dea5d2538611d983964d790bdbac2
+_rnnoise_commit=1cbdbcf1283499bbb2230a6b0f126eb9b236defd
+distfiles="https://github.com/NoiseTorch/NoiseTorch/archive/v${version}.tar.gz
+ https://github.com/NoiseTorch/c-ringbuf/archive/${_c_ringbuf_commit}.tar.gz
+ https://github.com/NoiseTorch/rnnoise/archive/${_rnnoise_commit}.tar.gz"
+checksum="4a30650314a6f83d979f3303d49618847ba58e39e3e26482dfe58b5e261c5611
+ 877b08413c59baac56b4cc7720fa56cf0eb399192a0ec652ce7b590c9cd9ad8a
+ 68c7ab4e408426088603e19955e746bb2a412d84bb121b6f39834c60fc8068b7"
+
+post_extract() {
+	ln -sf ${wrksrc}/c-ringbuf-${_c_ringbuf_commit}/* ${build_wrksrc}/c/c-ringbuf
+	ln -sf ${wrksrc}/rnnoise-${_rnnoise_commit}/* ${build_wrksrc}/c/rnnoise
+}
+
+post_patch() {
+	vsed -e '/git submodule/d' -i Makefile
+}
 
 pre_build() {
 	make rnnoise

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PR PATCH] [Closed]: NoiseTorch: update to 0.12.2.
  2023-04-27  3:49 [PR PATCH] NoiseTorch: update to 0.12.2 yoshiyoshyosh
                   ` (10 preceding siblings ...)
  2023-06-23 21:23 ` yoshiyoshyosh
@ 2023-06-23 21:46 ` Duncaen
  11 siblings, 0 replies; 13+ messages in thread
From: Duncaen @ 2023-06-23 21:46 UTC (permalink / raw)
  To: ml

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

There's a closed pull request on the void-packages repository

NoiseTorch: update to 0.12.2.
https://github.com/void-linux/void-packages/pull/43646

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

- I built this PR locally for my native architecture, (x86_64-glibc)

Addresses #41656 and #42403.
I tried building using `rnnoise-devel`; it would build without errors, but would not actually function when testing. Because of this, I'm pretty sure the `*.c` files from rnnoise are required to build the ladspa library that gets integrated into this, so I used the vendored submodules.
Everything seems to work, but I only tried with pipewire (I doubt it'd break anywhere else if pipewire's working fine)

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-06-23 21:46 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-27  3:49 [PR PATCH] NoiseTorch: update to 0.12.2 yoshiyoshyosh
2023-04-27  3:55 ` [PR PATCH] [Updated] " yoshiyoshyosh
2023-06-23 19:54 ` [PR REVIEW] " Duncaen
2023-06-23 19:54 ` Duncaen
2023-06-23 19:54 ` Duncaen
2023-06-23 19:54 ` Duncaen
2023-06-23 20:53 ` yoshiyoshyosh
2023-06-23 21:10 ` yoshiyoshyosh
2023-06-23 21:12 ` yoshiyoshyosh
2023-06-23 21:17 ` Duncaen
2023-06-23 21:23 ` [PR PATCH] [Updated] " yoshiyoshyosh
2023-06-23 21:23 ` yoshiyoshyosh
2023-06-23 21:46 ` [PR PATCH] [Closed]: " Duncaen

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).