Re: Prioritizing ~/.local/bin over /usr/bin on the PATH

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2018-05-03, Tomas Orsava <torsava@xxxxxxxxxx> wrote:
> On 05/02/2018 05:14 PM, Daniel P. Berrangé wrote:
>> On Wed, May 02, 2018 at 11:10:05AM -0400, Siteshwar Vashisht wrote:
>>>
>>> ----- Original Message -----
>>>> From: "Daniel P. Berrangé" <berrange@xxxxxxxxxx>
>>>> To: "Development discussions related to Fedora" <devel@xxxxxxxxxxxxxxxxxxxxxxx>
>>>> Cc: "Kamil Dudka" <kdudka@xxxxxxxxxx>
>>>> Sent: Wednesday, May 2, 2018 4:49:18 PM
>>>> Subject: Re: Prioritizing ~/.local/bin over /usr/bin on the PATH
>>>>
>>>> On Wed, May 02, 2018 at 10:35:28AM -0400, Siteshwar Vashisht wrote:
>>>>>
>>>>> ----- Original Message -----
>>>>>> From: "Tomas Orsava" <torsava@xxxxxxxxxx>
>>>>>> To: "Development discussions related to Fedora"
>>>>>> <devel@xxxxxxxxxxxxxxxxxxxxxxx>, "David Kaspar" <dkaspar@xxxxxxxxxx>,
>>>>>> "Kamil Dudka" <kdudka@xxxxxxxxxx>, "Miro Hrončok" <mhroncok@xxxxxxxxxx>,
>>>>>> "Petr Viktorin" <pviktori@xxxxxxxxxx>,
>>>>>> "Siteshwar Vashisht" <svashish@xxxxxxxxxx>
>>>>>> Sent: Wednesday, May 2, 2018 3:23:10 PM
>>>>>> Subject: Prioritizing ~/.local/bin over /usr/bin on the PATH
>>>>>>
>>>>>> Does anyone see a reason not to prioritize ~/.local/bin over /usr/bin?
>>>>> Most of the discussion in this thread focuses on security rather than
>>>>> sane behavior. It is going to be a system wide change. An application
>>>>> may get affected if it depends on system provided utilites which gets
>>>>> overridden by ~/.local/bin.
>>>> [snip]
>>>>
>>>>> So this change breaks something that is outside user's installation.
>>>>> This should happen only if a user has explicitly overriden $PATH to
>>>>> prioritize user installation paths.
>>>> Not prioritizing user paths by default will break other things though.
>>>> For example, python pip installations done with --user.
>>> Things may break both ways, whether you choose to prioritize user
>>> installation paths or not. I will prefer if they break when user
>>> installation paths are not prioritized.
>
> Daniel answered—below—better than I could have.
> I'd just like to add that while things *may* break if we implement 
> this—anything can break after all—the fact remains that things already 
> *are* broken the way it is now.
>
> And debian/ubuntu already prioritize ~/.local/bin, so we're not going 
> into untested waters either.
>
>> The point was that we need a consistent approach - we can't just consider
>> $PATH in isolation, because it interacts with other search paths, either
>> in env vars or builtin to apps. Either all should honour user location
>> first, or all should honour system location first, a mix of both is the
>> worst of all possible worlds as it maximises chances of breakage.
>>
How does prioritized ~/.local match removing #!/usr/bin/env from
Fedora packages? It smells pretty inconsistently.

-- Petr
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux