Fedora 28 - python warnings

Richard Laager rlaager at wiktel.com
Fri May 11 22:39:44 UTC 2018


On 05/11/2018 05:06 PM, Gary E. Miller via devel wrote:
> Odd, my Ubuntu 16.04, perl is a link.  Not sure why your Ubuntu is
> not setup the standard Ubuntu way.  But that is getting off topic.

I checked a couple more 16.04 systems and they don't use symlinks. So
that is odd that we're seeing differences.

> Notice the 2?  That means it is a hard link.

Yes, /usr/bin/perl and /usr/bin/perl5.22.1 are the same inode.

---

> It is the python loader
> that comes from the Python source code.
Where can I find this in the Python source code?

I'm looking at the Python 2.7.15 source tarball, as downloaded from
python.org, and there is nothing named python-exec* anywhere in the
tree. This is after building and installing to a tmp dir, so my find is
searching source, build projects, and installed files. Likewise for
Python 3.6.5.

> My argument is to, no more, and no less, install Python as the Python
> people designed it, documented and ship it.

That's what Debian is doing in this regard.

Stock Python 2 installs:
python -> python2
python2 -> python2.7
python2.7

Stock Python 3 installs:
python3 -> python3.6
python3.6

Debian Python 2 installs:
python -> python2.7
python2 -> python2.7
python2.7

Debian Python 3 installs:
python3 -> python3.6
python3.6

The only difference is that Debian's python symlink goes directly to
python2.7 rather than using the intermediate python2 symlink. This has
identical results.


For both versions of Python (unpatched, from python.org), I did:
./configure --prefix=/usr
make
DESTDIR=tmp make install

Here are the executables installed, none of which are this loader:

rlaager at watermelon:~/Python-2.7.15$ ls -l tmp/usr/bin
total 4.2M
-rwxrwxr-x 1 rlaager rlaager   95 May 11 15:16 2to3
-rwxrwxr-x 1 rlaager rlaager   93 May 11 15:16 idle
-rwxrwxr-x 1 rlaager rlaager   78 May 11 15:16 pydoc
lrwxrwxrwx 1 rlaager rlaager    7 May 11 15:22 python -> python2
lrwxrwxrwx 1 rlaager rlaager    9 May 11 15:22 python2 -> python2.7
-rwxr-xr-x 1 rlaager rlaager 8.0M May 11 15:22 python2.7
-rwxr-xr-x 1 rlaager rlaager 1.7K May 11 15:22 python2.7-config
lrwxrwxrwx 1 rlaager rlaager   16 May 11 15:22 python2-config ->
python2.7-config
lrwxrwxrwx 1 rlaager rlaager   14 May 11 15:22 python-config ->
python2-config
-rwxrwxr-x 1 rlaager rlaager  19K May 11 15:16 smtpd.py


rlaager at watermelon:~/Python-3.6.5$ ls -l tmp/usr/bin
total 13M
lrwxrwxrwx 1 rlaager rlaager    8 May 11 17:23 2to3 -> 2to3-3.6
-rwxrwxr-x 1 rlaager rlaager   95 May 11 17:23 2to3-3.6
-rwxrwxr-x 1 rlaager rlaager  236 May 11 17:23 easy_install-3.6
lrwxrwxrwx 1 rlaager rlaager    7 May 11 17:23 idle3 -> idle3.6
-rwxrwxr-x 1 rlaager rlaager   93 May 11 17:23 idle3.6
-rwxrwxr-x 1 rlaager rlaager  208 May 11 17:23 pip3
-rwxrwxr-x 1 rlaager rlaager  208 May 11 17:23 pip3.6
lrwxrwxrwx 1 rlaager rlaager    8 May 11 17:23 pydoc3 -> pydoc3.6
-rwxrwxr-x 1 rlaager rlaager   78 May 11 17:23 pydoc3.6
lrwxrwxrwx 1 rlaager rlaager    9 May 11 17:23 python3 -> python3.6
-rwxr-xr-x 2 rlaager rlaager  13M May 11 17:22 python3.6
lrwxrwxrwx 1 rlaager rlaager   17 May 11 17:23 python3.6-config ->
python3.6m-config
-rwxr-xr-x 2 rlaager rlaager  13M May 11 17:22 python3.6m
-rwxr-xr-x 1 rlaager rlaager 3.1K May 11 17:23 python3.6m-config
lrwxrwxrwx 1 rlaager rlaager   16 May 11 17:23 python3-config ->
python3.6-config
lrwxrwxrwx 1 rlaager rlaager   10 May 11 17:23 pyvenv -> pyvenv-3.6
-rwxrwxr-x 1 rlaager rlaager  435 May 11 17:23 pyvenv-3.6

-- 
Richard

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20180511/b5b28af5/attachment.bin>


More information about the devel mailing list