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, 05 Apr 2016 23:31:34 +0200 Message-ID: <87bn5nwxmx.fsf@gnu.org> References: <20160325180600.GA20217@jocasta.intra> 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]:39851) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anYZx-0002p7-Om for bug-guix@gnu.org; Tue, 05 Apr 2016 17:32:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1anYZu-0002Mh-Jt for bug-guix@gnu.org; Tue, 05 Apr 2016 17:32:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:38439) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anYZu-0002MO-GO for bug-guix@gnu.org; Tue, 05 Apr 2016 17:32:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1anYZt-0007YI-Vc for bug-guix@gnu.org; Tue, 05 Apr 2016 17:32:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20160325180600.GA20217@jocasta.intra> (John Darrington's message of "Fri, 25 Mar 2016 19:06:00 +0100") 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-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: John Darrington Cc: 23112@debbugs.gnu.org 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 f= inds 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.html 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. Did you find a situation where the invalid value was causing troubles? Thanks, Ludo=E2=80=99.