import openldap-2.4.59-3.el9

This commit is contained in:
CentOS Sources 2021-12-07 13:59:34 -05:00 committed by Stepan Oksanichenko
parent 848c149d61
commit 1a3a9a4ad5
3 changed files with 17 additions and 6 deletions

2
.gitignore vendored
View File

@ -1,2 +1,2 @@
SOURCES/ltb-project-openldap-ppolicy-check-password-1.1.tar.gz
SOURCES/openldap-2.4.57.tgz
SOURCES/openldap-2.4.59.tgz

View File

@ -1,2 +1,2 @@
444fe85f8c42d97355d88ec295b18ecb58faeb52 SOURCES/ltb-project-openldap-ppolicy-check-password-1.1.tar.gz
1cffa70a3ea8545948041fd113f8f53bc24d6d87 SOURCES/openldap-2.4.57.tgz
b154d06bbf40fafafb34fffc4b116946d931efef SOURCES/openldap-2.4.59.tgz

View File

@ -6,8 +6,8 @@
%global so_ver 2
Name: openldap
Version: 2.4.57
Release: 8%{?dist}
Version: 2.4.59
Release: 3%{?dist}
Summary: LDAP support libraries
License: OpenLDAP
URL: http://www.openldap.org/
@ -191,7 +191,7 @@ popd
%set_build_flags
# enable experimental support for LDAP over UDP (LDAP_CONNECTIONLESS)
export CFLAGS="${CFLAGS} ${LDFLAGS} -Wl,--as-needed -DLDAP_CONNECTIONLESS -DLDAP_USE_NON_BLOCKING_TLS -DOPENSSL_NO_MD2"
export CFLAGS="${CFLAGS} ${LDFLAGS} -Wl,--as-needed -Wl,-z,now -DLDAP_CONNECTIONLESS -DLDAP_USE_NON_BLOCKING_TLS -DOPENSSL_NO_MD2"
pushd openldap-%{version}
%configure \
@ -330,7 +330,7 @@ for lib in $(ls | grep libldap_r-); do
then
so_ver_short="${libsplit[3]}"
unset IFS
gcc -shared -o "%{buildroot}%{_libdir}/libldap-${version}.so.${so_ver_short}" -Wl,--no-as-needed \
gcc -shared -o "%{buildroot}%{_libdir}/libldap-${version}.so.${so_ver_short}" -Wl,--no-as-needed -Wl,-z,now \
-Wl,-soname -Wl,libldap-${version}.so.${so_ver_short} -L "%{buildroot}%{_libdir}" -lldap_r
else
so_ver_full="${libsplit[3]}.${libsplit[4]}.${libsplit[5]}"
@ -556,6 +556,17 @@ exit 0
%{_libdir}/libldap-2.4*.so.*
%changelog
* Thu Sep 23 2021 Simon Pichugin <spichugi@redhat.com> - 2.4.59-3
- Enable BIND_NOW for the linked library too. Related: rhbz#2002747
* Wed Sep 22 2021 Simon Pichugin <spichugi@redhat.com> - 2.4.59-2
- Enable BIND_NOW to prevent GOT overwrite attacks.
- Ignore badfuncs error in rpminspect because it's a false positive
Related: rhbz#2002747
* Tue Sep 14 2021 Simon Pichugin <spichugi@redhat.com> - 2.4.59-1
- Rebase openldap to 2.4.59 Related: rhbz#2002747
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.4.57-8
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688