From debbugs-submit-bounces@debbugs.gnu.org Tue May 03 16:23:08 2016 Received: (at 23112) by debbugs.gnu.org; 3 May 2016 20:23:08 +0000 Received: from localhost ([127.0.0.1]:35782 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axgqa-0000uA-5L for submit@debbugs.gnu.org; Tue, 03 May 2016 16:23:08 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51566) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axgqY-0000t3-RH for 23112@debbugs.gnu.org; Tue, 03 May 2016 16:23:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axgqK-0005DP-6J for 23112@debbugs.gnu.org; Tue, 03 May 2016 16:22:58 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58779) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axgqK-0005BV-3f; Tue, 03 May 2016 16:22:52 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:54464 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1axgqE-0002xd-4J; Tue, 03 May 2016 16:22:46 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: John Darrington Subject: Re: bug#23112: value of _CS_PATH\ References: <20160325180600.GA20217@jocasta.intra> <87bn5nwxmx.fsf@gnu.org> Date: Tue, 03 May 2016 22:22:43 +0200 In-Reply-To: <87bn5nwxmx.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Tue, 05 Apr 2016 23:31:34 +0200") Message-ID: <87bn4mki24.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.0 (------) X-Debbugs-Envelope-To: 23112 Cc: 23112@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > John Darrington skribis: > >> Would it not be correct for guix to have=20 >> >> confstr (_CS_PATH, buf, len); >> >> set the contents of buf with the bin directory of the currently=20 >> installed coreutils package? >> >> For me, it returns /bin:/usr/bin which is not correct. > > Fixing it is a bit tricky because: > > 1. The meaning of this variable is ill-defined. Specifically, POSIX > says it =E2=80=9Cis the value for the PATH environment variable that= finds > all standard utilities.=E2=80=9D By =E2=80=9Cstandard utilities=E2= =80=9D, surely they must > be talking of =E2=80=98guile=E2=80=99, =E2=80=98guix=E2=80=99, =E2= =80=98herd=E2=80=99, and a couple of others, but > we can=E2=80=99t be sure. ;-) > > http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/unistd.h.ht= ml > > 2. If CS_PATH refers to Coreutils, then that means that libc refers to > Coreutils, which is inconvenient at best. > > 3. We could set CS_PATH to /run/current-system/profile/bin but that > wouldn=E2=80=99t work on foreign distros. > > So I=E2=80=99m inclined to leave things as is. I=E2=80=99ll close the bug if you don=E2=80=99t mind, but=E2=80=A6 > Did you find a situation where the invalid value was causing troubles? =E2=80=A6 I=E2=80=99m still interested in knowing this. :-) TIA, Ludo=E2=80=99.