Comment 7 for bug 799044

Revision history for this message
Eitan Adler (eitan) wrote : Re: [Bug 799044] Re: pastebinit ignores PREFIX,

OK.

Sorry for the delay, I was away from my computer.

There are a few issues here.
1) Not all operating systems ship python in /usr/bin at all. In
particular FreeBSD, OpenBSD, and I'm sure others use /usr/local/bin as
the location for the 'python' binary.

2) Some operating systems ship old or bad versions of python in
/usr/bin (OSX for example) so users may install a new or different
version under a different prefix. For example OSX users might have a
copy of python in /opt/local/bin

3) Users that modify their PATH want programs to follow this change.
It is painful to find that the reason that one's program is breaking
is because PATH is being ignored.

4) Just because /usr/bin/python works now does not mean it will work
in the future.

On Sat, Jan 18, 2014 at 10:51 PM, Rolf Leggewie
<email address hidden> wrote:
> If that is so, I think you should elaborate and possibly suggest a
> better solution. The previous solution was wrong and I guess there is
> hardly a better reference than Barry Warsaw. From what I see so,
> anything under /usr/local is outside the scope of the distro
> responsibility. If we can support that without breaking core distro
> functionality, I am open to it. Again, if you can suggest a good way to
> handle your desired functionality, go right ahead. I'm all ears.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/799044
>
> Title:
> pastebinit ignores PREFIX,
>
> Status in Pastebin it !!!:
> Fix Released
>
> Bug description:
> 1) Pastebinit use an exact path of #!/usr/bin/python which requires patching on systems where python may exist in a different location.
> It is preferable to use #!/usr/bin/env python instead
>
> 2) Pastebinit looks for its configuration files under /etc which is
> not PREFIX safe. It should look under /usr/local/etc as well.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/pastebinit/+bug/799044/+subscriptions

--
Eitan Adler