package/python3: uClibc-ng doesn't set errno when encryption method is not available
authorRomain Naour <romain.naour@gmail.com>
Wed, 11 Nov 2020 23:34:28 +0000 (00:34 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 12 Nov 2020 21:32:38 +0000 (22:32 +0100)
commit5333ada9713f88c8ff87a8ce1d6f2f99ded56712
treef1e67b6db62694465b4fbfbc2c5ff2e7bc4c7c35
parent6e5f672139011570a9e099c6bc0d76d1b81e1e36
package/python3: uClibc-ng doesn't set errno when encryption method is not available

Since commit [1] in cpython, an exception is raised when an encryption method
is not available. This eception is handled only if errno is set to EINVAL by
crypt() but uClibc-ng doesn't set errno in crypt() [2].

Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/830981961
https://gitlab.com/buildroot.org/buildroot/-/jobs/830981979

[1] https://github.com/python/cpython/commit/0d3fe8ae4961bf551e7d5e42559e2ede1a08fd7c
[2] https://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/tree/libcrypt/crypt.c?h=v1.0.36#n29

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/python3/0034-lib-crypt-uClibc-ng-doesn-t-set-errno-when-encryptio.patch [new file with mode: 0644]