Github messages for voidlinux
 help / Atom feed
* [PR PATCH] [RFC] util-linux: exclude bin from default PATH
@ 2019-09-06 18:19 voidlinux-github
  2019-09-06 18:56 ` [PR PATCH] [Updated] " voidlinux-github
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: voidlinux-github @ 2019-09-06 18:19 UTC (permalink / raw)
  To: ml

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

There is a new pull request by Chocimier against master on the void-packages repository

https://github.com/Chocimier/void-packages-org util-linux
https://github.com/void-linux/void-packages/pull/14267

[RFC] util-linux: exclude bin from default PATH
/bin is still added to PATH by /etc/profile, but after /usr/bin.
This makes `which` return real file instead of symlink.

A patch file from https://github.com/void-linux/void-packages/pull/14267.patch is attached

[-- Attachment #2: github-pr-util-linux-14267.patch --]
[-- Type: text/x-diff, Size: 1102 bytes --]

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

* Re: [PR PATCH] [Updated] [RFC] util-linux: exclude bin from default PATH
  2019-09-06 18:19 [PR PATCH] [RFC] util-linux: exclude bin from default PATH voidlinux-github
@ 2019-09-06 18:56 ` " voidlinux-github
  2019-09-09 11:54 ` voidlinux-github
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: voidlinux-github @ 2019-09-06 18:56 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by Chocimier against master on the void-packages repository

https://github.com/Chocimier/void-packages-org util-linux
https://github.com/void-linux/void-packages/pull/14267

[RFC] util-linux: exclude bin from default PATH
/bin is still added to PATH by /etc/profile, but after /usr/bin.
This makes `which` return real file instead of symlink.

A patch file from https://github.com/void-linux/void-packages/pull/14267.patch is attached

[-- Attachment #2: github-pr-util-linux-14267.patch --]
[-- Type: text/x-diff, Size: 1192 bytes --]

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

* Re: [RFC] util-linux: exclude bin from default PATH
  2019-09-06 18:19 [PR PATCH] [RFC] util-linux: exclude bin from default PATH voidlinux-github
  2019-09-06 18:56 ` [PR PATCH] [Updated] " voidlinux-github
@ 2019-09-09 11:54 ` voidlinux-github
  2019-09-09 12:02 ` voidlinux-github
  2019-09-09 17:04 ` voidlinux-github
  3 siblings, 0 replies; 5+ messages in thread
From: voidlinux-github @ 2019-09-09 11:54 UTC (permalink / raw)
  To: ml

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

New comment by Piraty on void-packages repository

https://github.com/void-linux/void-packages/pull/14267#issuecomment-529436476

Comment:
It's the other way around you mean? `which ls` gives `/bin/ls` (which is the symlink) but should be `/usr/bin/ls` (which is the real file).
I stumbled on this before, as `xbps-query -o $(which ls)` fails because of this.

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

* Re: [RFC] util-linux: exclude bin from default PATH
  2019-09-06 18:19 [PR PATCH] [RFC] util-linux: exclude bin from default PATH voidlinux-github
  2019-09-06 18:56 ` [PR PATCH] [Updated] " voidlinux-github
  2019-09-09 11:54 ` voidlinux-github
@ 2019-09-09 12:02 ` voidlinux-github
  2019-09-09 17:04 ` voidlinux-github
  3 siblings, 0 replies; 5+ messages in thread
From: voidlinux-github @ 2019-09-09 12:02 UTC (permalink / raw)
  To: ml

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

New comment by Piraty on void-packages repository

https://github.com/void-linux/void-packages/pull/14267#issuecomment-529436476

Comment:
It's the other way around you mean? `which ls` gives `/bin/ls` (which is the symlink) but should be `/usr/bin/ls` (which is the real file).
I stumbled on this before, as `xbps-query -o $(which ls)` fails because of this.

changing the order of `/bin/` and `/usr/bin/` might work as well? https://github.com/void-linux/void-packages/blob/20c06e3b0a7763716dd55a848b7c47aaac5a48f5/srcpkgs/base-files/files/profile#L17-L20

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

* Re: [RFC] util-linux: exclude bin from default PATH
  2019-09-06 18:19 [PR PATCH] [RFC] util-linux: exclude bin from default PATH voidlinux-github
                   ` (2 preceding siblings ...)
  2019-09-09 12:02 ` voidlinux-github
@ 2019-09-09 17:04 ` voidlinux-github
  3 siblings, 0 replies; 5+ messages in thread
From: voidlinux-github @ 2019-09-09 17:04 UTC (permalink / raw)
  To: ml

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

New comment by Chocimier on void-packages repository

https://github.com/void-linux/void-packages/pull/14267#issuecomment-529574502

Comment:
> It's the other way around you mean? |which ls| gives |/bin/ls| (which is the symlink) but should be |/usr/bin/ls| (which is the real file).

Yes, the effect of that change is that /usr/bin/ls is returned.

On tty at least, because lxdm sets PATH independently. Would we need to patch each display manager?


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

end of thread, back to index

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-06 18:19 [PR PATCH] [RFC] util-linux: exclude bin from default PATH voidlinux-github
2019-09-06 18:56 ` [PR PATCH] [Updated] " voidlinux-github
2019-09-09 11:54 ` voidlinux-github
2019-09-09 12:02 ` voidlinux-github
2019-09-09 17:04 ` voidlinux-github

Github messages for voidlinux

Archives are clonable: git clone --mirror http://inbox.vuxu.org/voidlinux-github

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.github.voidlinux


AGPL code for this site: git clone https://public-inbox.org/ public-inbox