From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Problems with handicapped 'bash' from glibc package Date: Wed, 12 Feb 2014 14:14:00 +0100 Message-ID: <87ob2c1njb.fsf@gnu.org> References: <871tz8oldk.fsf@netris.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDZdh-0000d0-4p for guix-devel@gnu.org; Wed, 12 Feb 2014 08:14:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WDZdb-00041s-RL for guix-devel@gnu.org; Wed, 12 Feb 2014 08:14:09 -0500 Received: from hera.aquilenet.fr ([141.255.128.1]:36918) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDZdb-00041Z-Ky for guix-devel@gnu.org; Wed, 12 Feb 2014 08:14:03 -0500 In-Reply-To: <871tz8oldk.fsf@netris.org> (Mark H. Weaver's message of "Wed, 12 Feb 2014 02:12:07 -0500") 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Mark H Weaver Cc: guix-devel@gnu.org Mark H Weaver skribis: > The 'bash' in the glibc package is handicapped in at least two ways: > > * It can't set the locale, because it looks for locales in > /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-glibc-intermediate-2.18-loc= ales > > * It can't look up anything from NSS, such as passwd data, because it > tries to load the modules from > /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-glibc-intermediate-2.18 > > There are two problems that need to be addressed, I think: > > * Users could easily end up with this handicapped 'bash' as their > primary bash, if they installed (or upgraded?) 'glibc' since the last > time I installed 'bash'. This happened to me, for example. > > * Some (most?) programs in Guix that launch subprocesses with the shell > use this handicapped one. For example, every time I run 'w3m', it > prints two warnings about 'sh' being unable to set the locale. > > Any suggestions about how we should address these problems? Indeed, that=E2=80=99s a problem. For the record, the handicaped bash comes from the removal of /bin/sh [0]. It is used by =E2=80=98system=E2=80=99 and =E2=80=98popen=E2=80=99. Looks like solving this would require either rewriting glibc references in the static bash binary (tricky, especially since the glibc directory names have different lengths currently), or building Bash directly in the glibc-final derivation so that it refers to the right libc with all its bells and whistles. The latter sounds best, but it would require to sort of duplicate the build recipe of Bash internally. Another option would be to apply glibc-bootstrap-system.patch unconditionally, but I=E2=80=99m not sure if it=E2=80=99s a good idea. Thoughts? Ludo=E2=80=99. [0] http://lists.gnu.org/archive/html/bug-guix/2013-01/msg00041.html