immortalwrt/package
Christian Lamparter f033f6fcea
ca-certificates: fix python3-cryptography woes in certdata2pem.py
This patch is a revert of the upstream patch to Debian's ca-certificate
commit 033d52259172 ("mozilla/certdata2pem.py: print a warning for expired certificates.")

The reason is, that this change broke builds with the popular
Ubuntu 20.04 LTS (focal) releases which are shipping with an
older version of the python3-cryptography package that is not
compatible.

|Traceback (most recent call last):
|  File "certdata2pem.py", line 125, in <module>
|    cert = x509.load_der_x509_certificate(obj['CKA_VALUE'])
|TypeError: load_der_x509_certificate() missing 1 required positional argument: 'backend'
|make[5]: *** [Makefile:6: all] Error 1

...or if the python3-cryptography was missing all together:
|Traceback (most recent call last):
|  File "/certdata2pem.py", line 31, in <module>
|    from cryptography import x509
|ModuleNotFoundError: No module named 'cryptography'

More concerns were raised by Jo-Philipp Wich:
"We don't want the build to depend on the local system time anyway.
Right now it seems to be just a warning but I could imagine that
eventually certs are simply omitted of found to be expired at
build time which would break reproducibility."

Link: <https://github.com/openwrt/openwrt/commit/7c99085bd697>
Reported-by: Chen Minqiang <ptpt52@gmail.com>
Reported-by: Shane Synan <digitalcircuit36939@gmail.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
(cherry picked from commit 25bc66eb40)
2022-04-22 09:18:35 +08:00
..
base-files ImmortalWrt v21.02.0: revert to branch defaults 2022-04-22 07:11:48 +08:00
boot x86: grub2: search for the "kernel" filesystem on all disks 2022-04-21 16:43:31 +08:00
devel Merge Official Source 2021-04-12 02:22:36 +08:00
emortal autocore: mark as nonshared 2022-04-15 02:29:44 +08:00
firmware Merge Official Source 2022-03-27 21:38:55 +08:00
kernel Merge Official Source 2022-04-22 09:16:00 +08:00
libs Merge Official Source 2022-04-22 09:16:00 +08:00
network Merge Official Source 2022-04-13 05:43:12 +08:00
system ca-certificates: fix python3-cryptography woes in certdata2pem.py 2022-04-22 09:18:35 +08:00
utils Merge Official Source 2022-01-10 20:26:41 +08:00
Makefile build: fix opkg install step for large package selection 2021-12-31 17:55:29 +01:00