From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: Audio/sound (ALSA) in guix environment --container Date: Tue, 26 Mar 2019 18:15:00 +0100 Message-ID: <878sx1h817.fsf@gnu.org> References: <874l7wgg75.fsf@bababa.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:43258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8pfL-0003PA-Sm for guix-devel@gnu.org; Tue, 26 Mar 2019 13:15:12 -0400 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") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Pierre Neidhardt Cc: Guix-devel Hello! Pierre Neidhardt skribis: > I'm trying to run an graphical application with audio in a Guix > environment. > > So far: > > guix environment --container \ > --share=3D/tmp/.X11-unix/ \ > --share=3D/dev/snd \ > --ad-hoc foo coreutils -- \ > env DISPLAY=3D$DISPLAY foo "$@" > > > I get this error: > > ALSA lib pcm_direct.c:1943:(snd1_pcm_direct_parse_open_conf) The field ip= c_gid must be a valid group (create group audio) > > > I though --share=3D/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=20 > 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 =E2=80=98guix environment=E2=80=99 so that it creates /etc/group, using the brand new (gnu build accounts) module. Now =E2=80=98id=E2=80=99 and =E2=80=98groups=E2=80=99 work fine in containe= rs. Does it solve the specific problem you were having? Maybe there are other things that would need to be done, dunno. I=E2=80=99m thinking we should change =E2=80=98guix environment -C=E2=80=99= 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=E2=80=99s rarely w= hat we need I think. Thoughts? Ludo=E2=80=99.