all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Pierre Neidhardt <mail@ambrevar.xyz>
Cc: Guix-devel <guix-devel@gnu.org>
Subject: Re: Audio/sound (ALSA) in guix environment --container
Date: Tue, 26 Mar 2019 18:15:00 +0100	[thread overview]
Message-ID: <878sx1h817.fsf@gnu.org> (raw)
In-Reply-To: <874l7wgg75.fsf@bababa.i-did-not-set--mail-host-address--so-tickle-me> (Pierre Neidhardt's message of "Thu, 21 Mar 2019 20:50:22 +0100")

Hello!

Pierre Neidhardt <mail@ambrevar.xyz> skribis:

> I'm trying to run an graphical application with audio in a Guix
> environment.
>
> So far:
>
> guix environment --container \
>   --share=/tmp/.X11-unix/ \
>   --share=/dev/snd \
>   --ad-hoc foo coreutils -- \
>   env DISPLAY=$DISPLAY foo "$@"
>
>
> I get this error:
>
> ALSA lib pcm_direct.c:1943:(snd1_pcm_direct_parse_open_conf) The field ipc_gid must be a valid group (create group audio)
>
>
> I though --share=/dev/snd would help, but I don't think that's useful.
> I tried creating the "audio" group in the container or adding the user
> to the group, to no avail:
>
>> guix environment -C --ad-hoc coreutils shadow 
> ambrevar@bababa . [env]# groups
> groups: cannot find name for group ID 0
> 0 groups: cannot find name for group ID 65534
> 65534

Commit 952afb6f8c209692e52f9561965ee39e143e1d88 changes ‘guix
environment’ so that it creates /etc/group, using the brand new (gnu
build accounts) module.

Now ‘id’ and ‘groups’ work fine in containers.

Does it solve the specific problem you were having?  Maybe there are
other things that would need to be done, dunno.

I’m thinking we should change ‘guix environment -C’ to map to a UID
other than zero, at least by default.  When developing code, some tools
may behave differently when running under UID 0 and that’s rarely what
we need I think.  Thoughts?

Ludo’.

  reply	other threads:[~2019-03-26 17:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-21 19:50 Audio/sound (ALSA) in guix environment --container Pierre Neidhardt
2019-03-26 17:15 ` Ludovic Courtès [this message]
2019-03-26 17:21   ` Ricardo Wurmus
2019-03-27 10:11     ` Pierre Neidhardt
2019-03-27 10:38       ` Ricardo Wurmus
2019-03-27 11:05         ` Pierre Neidhardt
2019-03-27 11:10           ` Ricardo Wurmus
2019-03-27 15:03             ` Ludovic Courtès
2019-03-27 15:14               ` Ricardo Wurmus
2019-04-02 16:17                 ` Ludovic Courtès
2019-04-03  8:01                   ` Pierre Neidhardt
2019-03-27 11:14         ` Ludovic Courtès

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=878sx1h817.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=mail@ambrevar.xyz \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.