immortalwrt/package/system
Christian Lamparter b3ffacb11b
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 17:30:34 +08:00
..
ca-certificates ca-certificates: fix python3-cryptography woes in certdata2pem.py 2022-04-22 17:30:34 +08:00
fstools fstools: update to 2021-05-16 2021-12-04 00:16:47 +08:00
fwtool Revert "fwtool: update to latest Git head" 2019-11-16 23:26:27 +08:00
iucode-tool iucode-tool: fix host-compile on macos and non-x86 linux 2022-04-11 22:44:14 +08:00
mtd mtd: fix imagetag compilation 2021-03-17 23:25:41 +08:00
openwrt-keyring openwrt-keyring: add ImmortalWrt 18.06 release key 2021-12-08 00:49:58 +08:00
opkg treewide: remove PKG_INSTALL from CMake packages 2021-06-20 23:19:53 +08:00
procd procd: move service command to procd 2022-03-21 23:24:26 +08:00
refpolicy Revert "refpolicy: add variant that builds modular policy" 2020-11-24 23:18:44 +08:00
rpcd treewide: remove BUILD_PARALLEL from CMake packages 2021-06-20 23:19:45 +08:00
selinux-policy selinux-policy: update to version 1.0 2021-11-06 00:37:38 +08:00
ubox ubox: fix init script validation of log_ip option 2021-05-28 22:44:11 +08:00
ubus treewide: unmark selected packages nonshared 2021-07-03 17:22:14 +08:00
ucert ubox/ubus/uci: bump version 2020-07-05 21:21:00 +08:00
uci treewide: unmark selected packages nonshared 2021-07-03 17:22:14 +08:00
urandom-seed urandom-seed: fixes build on kernel 4.x 2022-04-08 11:19:48 +08:00
urngd urngd: fix busy loop in case of ioctl cause high cpu usage 2021-06-21 20:35:29 +08:00
usign usign: update to latest git HEAD 2020-05-24 20:43:42 +08:00
zram-swap zram-swap: clean up the log messages 2021-06-28 23:11:03 +08:00