diff options
Diffstat (limited to 'meta/recipes-devtools/perl/perl/perl-5.26.1-guard_old_libcrypt_fix.patch')
-rw-r--r-- | meta/recipes-devtools/perl/perl/perl-5.26.1-guard_old_libcrypt_fix.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/perl/perl-5.26.1-guard_old_libcrypt_fix.patch b/meta/recipes-devtools/perl/perl/perl-5.26.1-guard_old_libcrypt_fix.patch new file mode 100644 index 0000000000..bb6c573c9a --- /dev/null +++ b/meta/recipes-devtools/perl/perl/perl-5.26.1-guard_old_libcrypt_fix.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | commit 13e70b397dcb0d1bf4a869b670f041c1d7b730d0 | ||
2 | Author: Bjรถrn Esser <besser82@fedoraproject.org> | ||
3 | Date: Sat Jan 20 20:22:53 2018 +0100 | ||
4 | |||
5 | pp: Guard fix for really old bug in glibc libcrypt | ||
6 | |||
7 | Upstream-Status: Pending | ||
8 | Signed-off-by Richard Purdie <richard.purdie@linuxfoundation.org> | ||
9 | |||
10 | diff --git a/pp.c b/pp.c | ||
11 | index d50ad7ddbf..6510c7b15c 100644 | ||
12 | --- a/pp.c | ||
13 | +++ b/pp.c | ||
14 | @@ -3650,8 +3650,12 @@ PP(pp_crypt) | ||
15 | #if defined(__GLIBC__) || defined(__EMX__) | ||
16 | if (PL_reentrant_buffer->_crypt_struct_buffer) { | ||
17 | PL_reentrant_buffer->_crypt_struct_buffer->initialized = 0; | ||
18 | - /* work around glibc-2.2.5 bug */ | ||
19 | +#if (defined(__GLIBC__) && __GLIBC__ == 2) && \ | ||
20 | + (defined(__GLIBC_MINOR__) && __GLIBC_MINOR__ >= 2 && __GLIBC_MINOR__ < 4) | ||
21 | + /* work around glibc-2.2.5 bug, has been fixed at some | ||
22 | + * time in glibc-2.3.X */ | ||
23 | PL_reentrant_buffer->_crypt_struct_buffer->current_saltbits = 0; | ||
24 | +#endif | ||
25 | } | ||
26 | #endif | ||
27 | } | ||
28 | |||