[-- Attachment #1: Type: text/plain, Size: 757 bytes --] New issue by autoteelar on void-packages repository https://github.com/void-linux/void-packages/issues/27677 Description: <!-- Don't request update of package. We have a script for that. https://alpha.de.repo.voidlinux.org/void-updates/void-updates.txt . However, a quality pull request may help. --> ### System * xuname: *output of ``xuname`` (part of xtools)* * package: *affected package(s) including the version*: ``xbps-query -p pkgver <pkgname>`` ### Expected behavior ### Actual behavior ### Steps to reproduce the behavior https://github.com/lawl/NoiseTorch this is really handy and i think it would be very nice to have in void linux, its bascially https://krisp.ai/ but for linux and free and open source :D
[-- Attachment #1: Type: text/plain, Size: 1045 bytes --] New comment by kawaiiamber on void-packages repository https://github.com/void-linux/void-packages/issues/27677#issuecomment-757260468 Comment: Here was my attempt at packaking it: ```sh # Template file for 'noisetorch' pkgname=noisetorch version=0.9.0 revision=1 wrksrc="NoiseTorch-${version}" build_style=go go_import_path="https://github.com/lawl/NoiseTorch" short_desc="Real-time microphone noise suppression on Linux" maintainer="KawaiiAmber <japaneselearning101@gmail.com>" license="GPL-3.0-or-later" homepage="https://github.com/lawl/NoiseTorch" distfiles="https://github.com/lawl/NoiseTorch/archive/${version}.tar.gz" checksum=afe01a969e1c016134cbe4f481c2af110f091f29fbde3a1d44095d9be37d3fd2 ``` `xbps-src` returns with ``` => Using vendor dir for noisetorch Go dependencies. cannot find package "." in: /builddir/NoiseTorch-0.9.0/vendor/https:/github.com/lawl/NoiseTorch ``` I tried setting `go_get=yes` as well. I'm not that experienced with go, so I'm probably doing it wrong to be honest.
[-- Attachment #1: Type: text/plain, Size: 193 bytes --] New comment by ericonr on void-packages repository https://github.com/void-linux/void-packages/issues/27677#issuecomment-763158459 Comment: I believe `go_import_path` shouldn't have https://
[-- Attachment #1: Type: text/plain, Size: 352 bytes --] New comment by kawaiiamber on void-packages repository https://github.com/void-linux/void-packages/issues/27677#issuecomment-764249377 Comment: > I believe `go_import_path` shouldn't have https:// I see. I updated the template to not include `https://`, it actually compiles for quite a while, but after about 10 minutes spits out the same error.
[-- Attachment #1: Type: text/plain, Size: 1059 bytes --] New comment by m4rcu5 on void-packages repository https://github.com/void-linux/void-packages/issues/27677#issuecomment-860709400 Comment: Hi, Here is a working template. ``` # Template file for 'noisetorch' pkgname=noisetorch version=0.11.3 revision=1 archs="x86_64" wrksrc=NoiseTorch-${version} build_style=gnu-makefile hostmakedepends="go" depends="pulseaudio polkit" short_desc="Real-time microphone noise suppression on Linux" 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=b67155211278affc72f15d0ded9da560524e7bb0659012f9d41e69b531b9265c nopie=yes do_install() { vbin bin/noisetorch vinstall assets/noisetorch.desktop 644 usr/share/applications vinstall assets/icon/noisetorch.png 644 usr/share/icons/hicolor/256x256/apps } ``` And a companion `INSTALL` file. ``` case "${ACTION}" in post) setcap CAP_SYS_RESOURCE=+ep usr/bin/noisetorch ;; esac ```
[-- Attachment #1: Type: text/plain, Size: 299 bytes --] New comment by ReneganRonin on void-packages repository https://github.com/void-linux/void-packages/issues/27677#issuecomment-863631605 Comment: @m4rcu5 Wow nice. Thanks. I am not familiar with go but with that template it works. I already fixed the icon issue so take a look with the #31333 btw.
[-- Attachment #1: Type: text/plain, Size: 518 bytes --] New comment by m4rcu5 on void-packages repository https://github.com/void-linux/void-packages/issues/27677#issuecomment-864145223 Comment: Hi @ReneganRonin, this doesn't seem to be your average go package. It has to compile the `ladspa` plugin and then compiles the go package. As the original author already handles all of this in his `Makefile` I thought it would be easier to use that and just make sure the right host dependencies are handled. Nice spotting on the icon! I didn't even notice it was missing. :)
[-- Attachment #1: Type: text/plain, Size: 1384 bytes --] New comment by kawaiiamber on void-packages repository https://github.com/void-linux/void-packages/issues/27677#issuecomment-864688595 Comment: > Hi, > > Here is a working template. > > ``` > # Template file for 'noisetorch' > pkgname=noisetorch > version=0.11.3 > revision=1 > archs="x86_64" > wrksrc=NoiseTorch-${version} > build_style=gnu-makefile > hostmakedepends="go" > depends="pulseaudio polkit" > short_desc="Real-time microphone noise suppression on Linux" > 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=b67155211278affc72f15d0ded9da560524e7bb0659012f9d41e69b531b9265c > nopie=yes > > do_install() { > vbin bin/noisetorch > > vinstall assets/noisetorch.desktop 644 usr/share/applications > vinstall assets/icon/noisetorch.png 644 usr/share/icons/hicolor/256x256/apps > } > ``` > > And a companion `INSTALL` file. > > ``` > case "${ACTION}" in > post) > setcap CAP_SYS_RESOURCE=+ep usr/bin/noisetorch > ;; > esac > ``` Why limit arch to `x86_64` only? What about `-musl` archs? `archs=x86_64*` to include musl archs. `pulseaudio` shouldn't be in depends - similar to the `jamulus` package, let the user decide to install pulseaudio or pipewire, for example.
[-- Attachment #1: Type: text/plain, Size: 222 bytes --] New comment by ReneganRonin on void-packages repository https://github.com/void-linux/void-packages/issues/27677#issuecomment-864691100 Comment: alrighty. i will modify the template. im still new in packaging stuff 👍
[-- Attachment #1: Type: text/plain, Size: 238 bytes --] New comment by ReneganRonin on void-packages repository https://github.com/void-linux/void-packages/issues/27677#issuecomment-864691100 Comment: alrighty. i will modify the template. im still new in packaging stuff 👍 EDIT: Done 🥳
[-- Attachment #1: Type: text/plain, Size: 383 bytes --] New comment by m4rcu5 on void-packages repository https://github.com/void-linux/void-packages/issues/27677#issuecomment-864807917 Comment: @kawaiiamber upstream only rolls a x64 release, I never thought about `musl` when whipping this POC together. I am happy that @ReneganRonin is working on the PR, and will track it to learn for any future packages I'd like to include :smile:
[-- Attachment #1: Type: text/plain, Size: 222 bytes --] New comment by ReneganRonin on void-packages repository https://github.com/void-linux/void-packages/issues/27677#issuecomment-864916541 Comment: im building it now in musl. *intel pentium noises*. this will take a while
[-- Attachment #1: Type: text/plain, Size: 204 bytes --] New comment by rivanfebrian123 on void-packages repository https://github.com/void-linux/void-packages/issues/27677#issuecomment-964717198 Comment: Could you please make a PR for this package template?
[-- Attachment #1: Type: text/plain, Size: 207 bytes --] New comment by uncomfyhalomacro on void-packages repository https://github.com/void-linux/void-packages/issues/27677#issuecomment-966089094 Comment: well it has not been merged yet since 5 months ago. :'(
[-- Attachment #1: Type: text/plain, Size: 161 bytes --] New comment by ericonr on void-packages repository https://github.com/void-linux/void-packages/issues/27677#issuecomment-968217906 Comment: Relevant PR #31333
[-- Attachment #1: Type: text/plain, Size: 760 bytes --] Closed issue by autoteelar on void-packages repository https://github.com/void-linux/void-packages/issues/27677 Description: <!-- Don't request update of package. We have a script for that. https://alpha.de.repo.voidlinux.org/void-updates/void-updates.txt . However, a quality pull request may help. --> ### System * xuname: *output of ``xuname`` (part of xtools)* * package: *affected package(s) including the version*: ``xbps-query -p pkgver <pkgname>`` ### Expected behavior ### Actual behavior ### Steps to reproduce the behavior https://github.com/lawl/NoiseTorch this is really handy and i think it would be very nice to have in void linux, its bascially https://krisp.ai/ but for linux and free and open source :D
[-- Attachment #1: Type: text/plain, Size: 152 bytes --] New comment by autoteelar on void-packages repository https://github.com/void-linux/void-packages/issues/27677#issuecomment-978058122 Comment: based!