From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#23112: value of _CS_PATH\ Date: Tue, 03 May 2016 22:22:43 +0200 Message-ID: <87bn4mki24.fsf@gnu.org> References: <20160325180600.GA20217@jocasta.intra> <87bn5nwxmx.fsf@gnu.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]:42804) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axgrh-0000jo-Hi for bug-guix@gnu.org; Tue, 03 May 2016 16:24:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axgrV-0005lG-PQ for bug-guix@gnu.org; Tue, 03 May 2016 16:24:12 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:51681) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axgrV-0005jb-Lx for bug-guix@gnu.org; Tue, 03 May 2016 16:24:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1axgrS-0000va-Aj for bug-guix@gnu.org; Tue, 03 May 2016 16:24:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: 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") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: John Darrington Cc: 23112@debbugs.gnu.org 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.