On 2 November 2024 16:08:32 GMT, Kaelyn <kaelyn.alexi@protonmail.com> wrote:





On Saturday, November 2nd, 2024 at 6:36 AM, Divya Ranjan via "Development of GNU Guix and the GNU System distribution." <guix-devel@gnu.org> wrote:



Hello Ricardo,

Ricardo Wurmus rekado@elephly.net writes:

Hi,

Also, I saw that jack_mixer0 is missing from the main guix package
repository, I’d like to have that added. Since its the most minimal
and straightforward JACK mixer I’ve been using over the last 4-5
years. Since its a Python + C application mostly, so one shouldn’t
have any major issues packaging it? Any advice would be great.

have you attempted to package it yet? I can help with review and
testing.


Indeed, I have. A package definition can be found at my repository0, currently most things seem to be working, but I get this error while doing `guix package --install-from-file=audio.scm`:

#+begin_src shell
$ guix package --install-from-file=/home/divya/.config/guix/packages/audio.scm
The following package will be installed:
jack-mixer 19

substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
The following derivation will be built:
/gnu/store/1cnsydazihgzs0wv6l6mh4cmm894q2l1-jack-mixer-19.drv

65.4 MB will be downloaded
python-pygobject-3.47.0 239KiB 311KiB/s 00:01 ▕██████████████████▏ 100.0%
gcc-11.4.0 28.2MiB 4.2MiB/s 00:07 ▕██████████████████▏ 100.0%
gcc-toolchain-11.4.0 6KiB 68KiB/s 00:00 ▕██████████████████▏ 100.0%
building /gnu/store/1cnsydazihgzs0wv6l6mh4cmm894q2l1-jack-mixer-19.drv...
0% 'install' ▕ ▏builder for `/gnu/store/1cnsydazihgzs0wv6l6mh4cmm894q2l1-jack-mixer-19.drv' failed with exit code 1 build of /gnu/store/1cnsydazihgzs0wv6l6mh4cmm894q2l1-jack-mixer-19.drv failed View build log at '/var/log/guix/drvs/1c/nsydazihgzs0wv6l6mh4cmm894q2l1-jack-mixer-19.drv.gz'. guix package: error: build of` /gnu/store/1cnsydazihgzs0wv6l6mh4cmm894q2l1-jack-mixer-19.drv' failed
#+end_src

I’ve attached the build logs, let me know if you have an idee about what’s failing and maybe test the package definition yourself.

Hi,

I just glanced at the build log you attached. The first thing I saw was meson erroring from an unhandled Python error, and scrolling up quickly revealed the error. It looks like your install phase is failing because it is trying to write outside of the store:

PermissionError: [Errno 13] Permission denied: '/etc/xdg'

It looks like that project's meson.build hard-codes a reference to a path under /etc/xdg at https://github.com/jack-mixer/jack_mixer/blob/main/meson.build#L49

Cheers,
Kaelyn



Also, do I need to take the discussion of this package in a separate thread?

0: https://codeberg.org/divyaranjan/dotfiles/src/branch/master/.config/guix/packages/audio.scm

Regards,

--
Divya Ranjan,
Philosophy, Mathematics, Libre Software.

Hello Kaelyn,

Thanks for pointing it out, indeed its trying to write into /etc/xdg.

How does one handle such a case when packaging in Guix?

Regards,

Divya Ranjan