Skip to contentSkip to conversation

package/python-cryptography: bump version to 2.3.1

PATCH New Bernd Kuhls 3 participants 3 messages Sep 11, 2018 – Sep 12, 2018

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 package/python-cryptography: bump version to 2.3.1

Changelog: https://cryptography.io/en/latest/changelog/#v2-3-1

Please note that CVE-2018-10903, fixed in version 2.3, was introduced in version 1.9.0, so it was not present in buildroot:
https://nvd.nist.gov/vuln/detail/CVE-2018-10903

Added license hashes and switched runtime dependency from pyasn1 to
asn1crypto: https://cryptography.io/en/latest/changelog/#v1-8

Fixed pthread problem by adding -pthread to CFLAGS, suggested by
https://patchwork.openembedded.org/patch/146240/
https://bugs.gentoo.org/630578#c6

---
v2: added -pthread to fix runtime error (Yegor)
added more license hashes

 package/python-cryptography/Config.in                |  2 +-
 package/python-cryptography/python-cryptography.hash | 10 +++++++---
 package/python-cryptography/python-cryptography.mk   |  5 +++--
 3 files changed, 11 insertions(+), 6 deletions(-)
package/python-cryptography/Config.in +1 -1
index 14f950d4d8..d1c2917ea9 100644
@@ -7,7 +7,7 @@ config BR2_PACKAGE_PYTHON_CRYPTOGRAPHY
 	select BR2_PACKAGE_PYTHON_HASHLIB if BR2_PACKAGE_PYTHON # runtime
 	select BR2_PACKAGE_PYTHON_IDNA # runtime
 	select BR2_PACKAGE_PYTHON_IPADDRESS if BR2_PACKAGE_PYTHON # runtime
-	select BR2_PACKAGE_PYTHON_PYASN # runtime
+	select BR2_PACKAGE_PYTHON_ASN1CRYPTO # runtime
 	select BR2_PACKAGE_PYTHON_PYEXPAT if BR2_PACKAGE_PYTHON # runtime
 	select BR2_PACKAGE_PYTHON3_PYEXPAT if BR2_PACKAGE_PYTHON3 # runtime
 	select BR2_PACKAGE_PYTHON_SETUPTOOLS # runtime
package/python-cryptography/python-cryptography.hash +7 -3
index a1162cf880..36da21c9c1 100644
@@ -1,3 +1,7 @@
-# md5 from https://pypi.python.org/pypi/cryptography/json, sha256 locally computed
-md5 fade66de437392ed1ba6980768626204 cryptography-1.7.2.tar.gz
-sha256 878cb68b3da3d493ffd68f36db11c29deee623671d3287c3f8d685117ffda9a9 cryptography-1.7.2.tar.gz
+# md5, sha256 from https://pypi.org/pypi/cryptography/json
+md5	2b5e8269c43c9b9ab54fc8c75ba3c7ac  cryptography-2.3.1.tar.gz
+sha256	8d10113ca826a4c29d5b85b2c4e045ffa8bad74fb525ee0eceb1d38d4c70dfd6  cryptography-2.3.1.tar.gz
+# Locally computed sha256 checksums
+sha256	35452b557fab0efb1e80d7edb9c4e5118b9384082adaa051dde342102cb9de8d  LICENSE
+sha256	cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30  LICENSE.APACHE
+sha256	602c4c7482de6479dd2e9793cda275e5e63d773dacd1eca689232ab7008fb4fb  LICENSE.BSD
package/python-cryptography/python-cryptography.mk +3 -2
index 5373da8202..91b680b2be 100644
@@ -4,12 +4,13 @@
 #
 ################################################################################
 
-PYTHON_CRYPTOGRAPHY_VERSION = 1.7.2
+PYTHON_CRYPTOGRAPHY_VERSION = 2.3.1
 PYTHON_CRYPTOGRAPHY_SOURCE = cryptography-$(PYTHON_CRYPTOGRAPHY_VERSION).tar.gz
-PYTHON_CRYPTOGRAPHY_SITE = https://pypi.python.org/packages/99/df/71c7260003f5c469cec3db4c547115df39e9ce6c719a99e067ba0e78fd8a
+PYTHON_CRYPTOGRAPHY_SITE = https://files.pythonhosted.org/packages/22/21/233e38f74188db94e8451ef6385754a98f3cad9b59bedf3a8e8b14988be4
 PYTHON_CRYPTOGRAPHY_SETUP_TYPE = setuptools
 PYTHON_CRYPTOGRAPHY_LICENSE = Apache-2.0 or BSD-3-Clause
 PYTHON_CRYPTOGRAPHY_LICENSE_FILES = LICENSE LICENSE.APACHE LICENSE.BSD
 PYTHON_CRYPTOGRAPHY_DEPENDENCIES = host-python-cffi openssl
+PYTHON_CRYPTOGRAPHY_ENV = CFLAGS="$(TARGET_CFLAGS) -pthread"
 
 $(eval $(python-package))
Signature · 1 line
2.18.0
#1 lore raw

PATCH v2 1/1 package/python-cryptography: bump version to 2.3.1

Quoted 7 lines · Bernd Kuhls

Changelog: https://cryptography.io/en/latest/changelog/#v2-3-1

Please note that CVE-2018-10903, fixed in version 2.3, was introduced in version 1.9.0, so it was not present in buildroot:
https://nvd.nist.gov/vuln/detail/CVE-2018-10903

Quoted 8 lines

Added license hashes and switched runtime dependency from pyasn1 to
asn1crypto: https://cryptography.io/en/latest/changelog/#v1-8

Fixed pthread problem by adding -pthread to CFLAGS, suggested by
https://patchwork.openembedded.org/patch/146240/
https://bugs.gentoo.org/630578#c6

Quoted 60 lines

---
v2: added -pthread to fix runtime error (Yegor)
added more license hashes

 package/python-cryptography/Config.in                |  2 +-
 package/python-cryptography/python-cryptography.hash | 10 +++++++---
 package/python-cryptography/python-cryptography.mk   |  5 +++--
 3 files changed, 11 insertions(+), 6 deletions(-)
package/python-cryptography/Config.in +1 -1
index 14f950d4d8..d1c2917ea9 100644
@@ -7,7 +7,7 @@ config BR2_PACKAGE_PYTHON_CRYPTOGRAPHY
        select BR2_PACKAGE_PYTHON_HASHLIB if BR2_PACKAGE_PYTHON # runtime
        select BR2_PACKAGE_PYTHON_IDNA # runtime
        select BR2_PACKAGE_PYTHON_IPADDRESS if BR2_PACKAGE_PYTHON # runtime
-       select BR2_PACKAGE_PYTHON_PYASN # runtime
+       select BR2_PACKAGE_PYTHON_ASN1CRYPTO # runtime
        select BR2_PACKAGE_PYTHON_PYEXPAT if BR2_PACKAGE_PYTHON # runtime
        select BR2_PACKAGE_PYTHON3_PYEXPAT if BR2_PACKAGE_PYTHON3 # runtime
        select BR2_PACKAGE_PYTHON_SETUPTOOLS # runtime
package/python-cryptography/python-cryptography.hash +7 -3
index a1162cf880..36da21c9c1 100644
@@ -1,3 +1,7 @@
-# md5 from https://pypi.python.org/pypi/cryptography/json, sha256 locally computed
-md5 fade66de437392ed1ba6980768626204 cryptography-1.7.2.tar.gz
-sha256 878cb68b3da3d493ffd68f36db11c29deee623671d3287c3f8d685117ffda9a9 cryptography-1.7.2.tar.gz
+# md5, sha256 from https://pypi.org/pypi/cryptography/json
+md5    2b5e8269c43c9b9ab54fc8c75ba3c7ac  cryptography-2.3.1.tar.gz
+sha256 8d10113ca826a4c29d5b85b2c4e045ffa8bad74fb525ee0eceb1d38d4c70dfd6  cryptography-2.3.1.tar.gz
+# Locally computed sha256 checksums
+sha256 35452b557fab0efb1e80d7edb9c4e5118b9384082adaa051dde342102cb9de8d  LICENSE
+sha256 cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30  LICENSE.APACHE
+sha256 602c4c7482de6479dd2e9793cda275e5e63d773dacd1eca689232ab7008fb4fb  LICENSE.BSD
package/python-cryptography/python-cryptography.mk +3 -3
index 5373da8202..91b680b2be 100644
@@ -4,12 +4,13 @@
 #
 ################################################################################
 
-PYTHON_CRYPTOGRAPHY_VERSION = 1.7.2
+PYTHON_CRYPTOGRAPHY_VERSION = 2.3.1
 PYTHON_CRYPTOGRAPHY_SOURCE = cryptography-$(PYTHON_CRYPTOGRAPHY_VERSION).tar.gz
-PYTHON_CRYPTOGRAPHY_SITE = https://pypi.python.org/packages/99/df/71c7260003f5c469cec3db4c547115df39e9ce6c719a99e067ba0e78fd8a
+PYTHON_CRYPTOGRAPHY_SITE = https://files.pythonhosted.org/packages/22/21/233e38f74188db94e8451ef6385754a98f3cad9b59bedf3a8e8b14988be4
 PYTHON_CRYPTOGRAPHY_SETUP_TYPE = setuptools
 PYTHON_CRYPTOGRAPHY_LICENSE = Apache-2.0 or BSD-3-Clause
 PYTHON_CRYPTOGRAPHY_LICENSE_FILES = LICENSE LICENSE.APACHE LICENSE.BSD
 PYTHON_CRYPTOGRAPHY_DEPENDENCIES = host-python-cffi openssl
+PYTHON_CRYPTOGRAPHY_ENV = CFLAGS="$(TARGET_CFLAGS) -pthread"
 
 $(eval $(python-package))
--

2.18.0

#2 lore raw

PATCH v2 1/1 package/python-cryptography: bump version to 2.3.1

In reply to Bernd Kuhls

Hello,

Quoted 6 lines · Bernd Kuhls

Changelog: https://cryptography.io/en/latest/changelog/#v2-3-1

Please note that CVE-2018-10903, fixed in version 2.3, was introduced in version 1.9.0, so it was not present in buildroot:
https://nvd.nist.gov/vuln/detail/CVE-2018-10903

Quoted 6 lines

Added license hashes and switched runtime dependency from pyasn1 to
asn1crypto: https://cryptography.io/en/latest/changelog/#v1-8

Fixed pthread problem by adding -pthread to CFLAGS, suggested by
https://patchwork.openembedded.org/patch/146240/
https://bugs.gentoo.org/630578#c6

Could you make sure that this problem is reported upstream ?

Quoted 2 lines

Applied to master, thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com