all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#23112: value of _CS_PATH\
@ 2016-03-25 18:06 John Darrington
  2016-04-05 21:31 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: John Darrington @ 2016-03-25 18:06 UTC (permalink / raw)
  To: 23112

[-- Attachment #1: Type: text/plain, Size: 473 bytes --]

Would it not be correct for guix to have 

 confstr (_CS_PATH, buf, len);

set the contents of buf with the bin directory of the currently 
installed coreutils package?

For me, it returns /bin:/usr/bin which is not correct.

J'
  

-- 
Avoid eavesdropping.  Send strong encryted email.
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#23112: value of _CS_PATH\
  2016-03-25 18:06 bug#23112: value of _CS_PATH\ John Darrington
@ 2016-04-05 21:31 ` Ludovic Courtès
  2016-05-03 20:22   ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2016-04-05 21:31 UTC (permalink / raw)
  To: John Darrington; +Cc: 23112

John Darrington <john@darrington.wattle.id.au> skribis:

> Would it not be correct for guix to have 
>
>  confstr (_CS_PATH, buf, len);
>
> set the contents of buf with the bin directory of the currently 
> 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 “is the value for the PATH environment variable that finds
     all standard utilities.”  By “standard utilities”, surely they must
     be talking of ‘guile’, ‘guix’, ‘herd’, and a couple of others, but
     we can’t 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’t work on foreign distros.

So I’m inclined to leave things as is.

Did you find a situation where the invalid value was causing troubles?

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#23112: value of _CS_PATH\
  2016-04-05 21:31 ` Ludovic Courtès
@ 2016-05-03 20:22   ` Ludovic Courtès
  2016-05-04  5:45     ` John Darrington
  0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2016-05-03 20:22 UTC (permalink / raw)
  To: John Darrington; +Cc: 23112

ludo@gnu.org (Ludovic Courtès) skribis:

> John Darrington <john@darrington.wattle.id.au> skribis:
>
>> Would it not be correct for guix to have 
>>
>>  confstr (_CS_PATH, buf, len);
>>
>> set the contents of buf with the bin directory of the currently 
>> 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 “is the value for the PATH environment variable that finds
>      all standard utilities.”  By “standard utilities”, surely they must
>      be talking of ‘guile’, ‘guix’, ‘herd’, and a couple of others, but
>      we can’t 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’t work on foreign distros.
>
> So I’m inclined to leave things as is.

I’ll close the bug if you don’t mind, but…

> Did you find a situation where the invalid value was causing troubles?

… I’m still interested in knowing this.  :-)

TIA,
Ludo’.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#23112: value of _CS_PATH\
  2016-05-03 20:22   ` Ludovic Courtès
@ 2016-05-04  5:45     ` John Darrington
  0 siblings, 0 replies; 4+ messages in thread
From: John Darrington @ 2016-05-04  5:45 UTC (permalink / raw)
  To: Ludovic Court??s; +Cc: 23112, John Darrington

[-- Attachment #1: Type: text/plain, Size: 1891 bytes --]

On Tue, May 03, 2016 at 10:22:43PM +0200, Ludovic Court??s wrote:
     ludo@gnu.org (Ludovic Court??s) skribis:
     
     > John Darrington <john@darrington.wattle.id.au> skribis:
     >
     >> Would it not be correct for guix to have 
     >>
     >>  confstr (_CS_PATH, buf, len);
     >>
     >> set the contents of buf with the bin directory of the currently 
     >> 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 ???is the value for the PATH environment variable that finds
     >      all standard utilities.???  By ???standard utilities???, surely they must
     >      be talking of ???guile???, ???guix???, ???herd???, and a couple of others, but
     >      we can???t 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???t work on foreign distros.
     >
     > So I???m inclined to leave things as is.
     
     I???ll close the bug if you don???t mind, but???

OK
     
     > Did you find a situation where the invalid value was causing troubles?
     
     ??? I???m still interested in knowing this.  :-)

I didn't find a technical trouble.  Only political ones.
     
     TIA,
     Ludo???.

-- 
Avoid eavesdropping.  Send strong encryted email.
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-05-04  5:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-25 18:06 bug#23112: value of _CS_PATH\ John Darrington
2016-04-05 21:31 ` Ludovic Courtès
2016-05-03 20:22   ` Ludovic Courtès
2016-05-04  5:45     ` John Darrington

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.