[packages/openldap] don't pollute libtool files with -levent; rel 3

atler atler at pld-linux.org
Sun Aug 30 22:53:06 CEST 2026


commit 8f17c67926704e2ffefcdc9f6f1e1d4c86a55cdd
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun Aug 30 21:11:57 2026 +0200

    don't pollute libtool files with -levent; rel 3
    
    second libevent symbol check (for libevent_global_shutdown()) lacks
    actions if found meaning default set of actions is executed. in
    particular LIBS is prepended with -levent. this in turn leads to
    -levent landing in libtool files of libraries which have nothing to do
    with libevent

 clean-libs.patch | 11 +++++++++++
 openldap.spec    |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/openldap.spec b/openldap.spec
index 3c278af..69f6738 100644
--- a/openldap.spec
+++ b/openldap.spec
@@ -24,7 +24,7 @@ Summary(ru.UTF-8):	Образцы клиентов LDAP
 Summary(uk.UTF-8):	Зразки клієнтів LDAP
 Name:		openldap
 Version:	2.6.13
-Release:	2
+Release:	3
 License:	OpenLDAP Public License
 Group:		Networking/Daemons
 Source0:	https://www.openldap.org/software/download/OpenLDAP/openldap-release/%{name}-%{version}.tgz
@@ -60,6 +60,7 @@ Patch22:	%{name}-am.patch
 Patch24:	%{name}-default_cacert_path.patch
 Patch25:	%{name}-system-lmdb.patch
 Patch26:	%{name}-slapd_for_symbols_check.patch
+Patch27:	clean-libs.patch
 URL:		https://www.openldap.org/
 BuildRequires:	autoconf >= 2.69
 BuildRequires:	automake
@@ -1201,6 +1202,7 @@ Nakładka śledząca wywołania nakładek.
 %endif
 # test if needed
 #%%patch -P26 -p1
+%patch -P27 -p1
 
 %if %{with krb5}
 %patch -P17 -p1
diff --git a/clean-libs.patch b/clean-libs.patch
new file mode 100644
index 0000000..cdc6cbd
--- /dev/null
+++ b/clean-libs.patch
@@ -0,0 +1,11 @@
+--- openldap-2.6.13/configure.ac.orig	2026-08-30 21:01:10.513980035 +0200
++++ openldap-2.6.13/configure.ac	2026-08-30 21:03:23.722869415 +0200
+@@ -2192,7 +2192,7 @@
+ 			[have_libevent=yes
+ 			LEVENT_LIBS="$LEVENT_LIBS -levent"],
+ 			[have_libevent=no])])
+-	AC_CHECK_LIB(event, libevent_global_shutdown, [], [have_libevent=no])
++	AC_CHECK_LIB(event, libevent_global_shutdown, [have_libevent=yes], [have_libevent=no])
+ 
+ 	if test $have_libevent = yes ; then
+ 		AC_DEFINE(HAVE_LIBEVENT, 1, [define if you have -levent])
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/openldap.git/commitdiff/8f17c67926704e2ffefcdc9f6f1e1d4c86a55cdd



More information about the pld-cvs-commit mailing list