[oe] [meta-python][PATCH] python-attrs: Adjust the RDEPENDS to include crypt rather than cryptography

Derek Straka derek at asterius.io
Thu Apr 12 14:12:45 UTC 2018


There is a usage of hashlib (provided by ${PYTHON_PN}-crypt) in _make.py.

derek at sparta:/tmp$ dpkg -c
upstream/build/tmp/deploy/ipk/core2-64/python-crypt_2.7.14-r1_core2-64.ipk
drwxrwxrwx root/root         0 2018-03-24 09:28 ./
drwxr-xr-x root/root         0 2018-03-24 09:28 ./usr/
drwxr-xr-x root/root         0 2018-03-24 09:28 ./usr/lib/
drwxr-xr-x root/root         0 2018-03-24 09:28 ./usr/lib/python2.7/
-rw-r--r-- root/root      7842 2018-03-24 09:28
./usr/lib/python2.7/hashlib.py
-rw-r--r-- root/root      6891 2018-03-24 09:28
./usr/lib/python2.7/hashlib.pyc
drwxr-xr-x root/root         0 2018-03-24 09:28
./usr/lib/python2.7/lib-dynload/
-rwxr-xr-x root/root     25184 2018-03-24 09:28
./usr/lib/python2.7/lib-dynload/_hashlib.so
-rwxr-xr-x root/root      6520 2018-03-24 09:28
./usr/lib/python2.7/lib-dynload/crypt.so
-rw-r--r-- root/root       358 2018-03-24 09:28 ./usr/lib/python2.7/md5.py
-rw-r--r-- root/root       376 2018-03-24 09:28 ./usr/lib/python2.7/md5.pyc
-rw-r--r-- root/root       393 2018-03-24 09:28 ./usr/lib/python2.7/sha.py
-rw-r--r-- root/root       419 2018-03-24 09:28 ./usr/lib/python2.7/sha.pyc

derek at sparta:/tmp$ grep -r hashlib attrs/
attrs/src/attr/_make.py:import hashlib
attrs/src/attr/_make.py:    sha1 = hashlib.sha1()
attrs/src/attr/_make.py:    sha1 = hashlib.sha1()
attrs/src/attr/_make.py:    sha1 = hashlib.sha1()

On Thu, Apr 12, 2018 at 9:33 AM, jan vermaete <jan.vermaete at gmail.com>
wrote:

> I'm afraid this patch just revert the file to the previous state.
> As far as I can see, there is no need at all to have something of
> crypto nor crypotgraphy needed for this python package.
>
> --
> Jan Vermaete
> "For every complex problem there is an answer that is clear, simple,
> and wrong." - H.L. Mencken
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>



More information about the Openembedded-devel mailing list