From b3b8f2e062544d65078231d2f0b1a68c30e4710e Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Wed, 4 Mar 2020 15:46:31 +0000 Subject: [PATCH] re-enable RTLD_DEEPBIND (#1739287) --- apr-1.7.0-deepbind.patch | 15 +++++++++++++++ apr.spec | 7 ++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 apr-1.7.0-deepbind.patch diff --git a/apr-1.7.0-deepbind.patch b/apr-1.7.0-deepbind.patch new file mode 100644 index 0000000..2fb8cd4 --- /dev/null +++ b/apr-1.7.0-deepbind.patch @@ -0,0 +1,15 @@ + +Conflicting e.g. libldap vs libldap_r problems still exist +inside httpd. Use RTLD_DEEPBIND by default. + +--- apr-1.7.0/dso/unix/dso.c.deepbind ++++ apr-1.7.0/dso/unix/dso.c +@@ -123,7 +123,7 @@ + void *os_handle = dlopen((char *)path, RTLD_NOW | RTLD_GLOBAL); + + #else +- int flags = RTLD_NOW | RTLD_GLOBAL; ++ int flags = RTLD_NOW | RTLD_GLOBAL | RTLD_DEEPBIND; + void *os_handle; + #ifdef _AIX + if (strchr(path + 1, '(') && path[strlen(path) - 1] == ')') diff --git a/apr.spec b/apr.spec index 844043e..b8ab37f 100644 --- a/apr.spec +++ b/apr.spec @@ -6,7 +6,7 @@ Summary: Apache Portable Runtime library Name: apr Version: 1.7.0 -Release: 3%{?dist} +Release: 4%{?dist} # ASL 2.0: everything # ISC: network_io/apr-1.4.6/network_io/unix/inet_?to?.c # BSD with advertising: strings/apr_snprintf.c, strings/apr_fnmatch.c, @@ -19,6 +19,7 @@ Source0: https://www.apache.org/dist/apr/%{name}-%{version}.tar.bz2 Source1: apr-wrapper.h Patch1: apr-1.2.2-libdir.patch Patch2: apr-1.2.7-pkgconf.patch +Patch3: apr-1.7.0-deepbind.patch BuildRequires: gcc, autoconf, libtool, libuuid-devel, python3 # To enable SCTP support BuildRequires: lksctp-tools-devel @@ -44,6 +45,7 @@ C data structures and routines. %setup -q %patch1 -p1 -b .libdir %patch2 -p1 -b .pkgconf +%patch3 -p1 -b .deepbind %build # regenerate configure script etc. @@ -121,6 +123,9 @@ popd %{_datadir}/aclocal/*.m4 %changelog +* Wed Mar 4 2020 Joe Orton - 1.7.0-4 +- re-enable RTLD_DEEPBIND (#1739287) + * Tue Jan 28 2020 Fedora Release Engineering - 1.7.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild