openwrt/package/system
Christian Lamparter 23c86d44bc 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)
2023-03-04 13:09:12 +01:00
..
ca-certificates ca-certificates: fix python3-cryptography woes in certdata2pem.py 2023-03-04 13:09:12 +01:00
fstools
fwtool
iucode-tool treewide: Mark packages nonshared if they depend on @TARGET_ 2021-05-24 00:39:26 +02:00
mtd
openwrt-keyring openwrt-keyring: Only copy sign key for 21.02 2021-05-17 19:13:43 +02:00
opkg opkg: add patch to avoid remove package repeatly with force 2023-01-06 17:34:46 +01:00
procd procd: add patch to fix compilation error 2022-12-04 16:06:35 +01:00
refpolicy
rpcd rpcd: backport 802.11ax support 2022-02-19 10:01:03 +01:00
selinux-policy selinux-policy: update to version v0.8 2021-03-15 21:53:16 +00:00
ubox ubox: fix init script validation of log_ip option 2021-05-28 15:25:31 +02:00
ubus treewide: unmark selected packages nonshared 2021-07-02 18:15:02 +02:00
ucert
uci uci: update to the latest master 2022-01-23 11:30:30 +01:00
urandom-seed
urngd
usign
zram-swap zram-swap: bail out early if the kernel doesn't support swap 2021-04-18 12:05:53 +02:00