apr-util: clean up reverse depends (and fix subversion dep)lilik-openwrt-22.03
@ -0,0 +1,34 @@ | |||||
From: Ryan Niebur <ryanryan52@gmail.com> | |||||
Subject: by default --avoid-ldap since apache2 is the only user, and we don't | |||||
want to add extra dependencies to other apr-utils rdepends | |||||
--- a/apu-config.in | |||||
+++ b/apu-config.in | |||||
@@ -30,7 +30,8 @@ includedir="@includedir@" | |||||
LIBS="@APRUTIL_EXPORT_LIBS@" | |||||
INCLUDES="@APRUTIL_INCLUDES@" | |||||
LDFLAGS="@APRUTIL_LDFLAGS@" | |||||
-LDAP_LIBS="@LDADD_ldap@" | |||||
+ORIG_LDAP_LIBS="@LDADD_ldap@" | |||||
+LDAP_LIBS="" | |||||
DBM_LIBS="@LDADD_dbm_db@ @LDADD_dbm_gdbm@ @LDADD_dbm_ndbm@" | |||||
APRUTIL_LIBNAME="@APRUTIL_LIBNAME@" | |||||
@@ -55,7 +56,7 @@ Known values for OPTION are: | |||||
--includedir print location where headers are installed | |||||
--ldflags print linker flags | |||||
--libs print library information | |||||
- --avoid-ldap do not include ldap library information with --libs | |||||
+ --avoid-ldap do not include ldap library information with --libs (default on OpenWrt) | |||||
--ldap-libs print library information to link with ldap | |||||
--avoid-dbm do not include DBM library information with --libs | |||||
--dbm-libs print additional library information to link with DBM | |||||
@@ -121,7 +122,7 @@ while test $# -gt 0; do | |||||
flags="$flags $LDAP_LIBS $DBM_LIBS $LIBS" | |||||
;; | |||||
--ldap-libs) | |||||
- flags="$flags $LDAP_LIBS" | |||||
+ flags="$flags $ORIG_LDAP_LIBS" | |||||
;; | |||||
--dbm-libs) | |||||
flags="$flags $DBM_LIBS" |
@ -0,0 +1,31 @@ | |||||
From: Peter Samuelson <peter@p12n.org> | |||||
Subject: Prevent recursive linking of dependent libraries by apr-util users. | |||||
--- | |||||
apr-util.pc.in | 5 +++-- | |||||
apu-config.in | 2 +- | |||||
2 files changed, 4 insertions(+), 3 deletions(-) | |||||
--- a/apr-util.pc.in | |||||
+++ b/apr-util.pc.in | |||||
@@ -8,6 +8,7 @@ Name: APR Utils | |||||
Description: Companion library for APR | |||||
Version: @APRUTIL_DOTTED_VERSION@ | |||||
# assume that apr-util requires libapr of same major version | |||||
-Requires: apr-@APRUTIL_MAJOR_VERSION@ | |||||
-Libs: -L${libdir} -l@APRUTIL_LIBNAME@ @LDADD_ldap@ @APRUTIL_EXPORT_LIBS@ | |||||
+Requires.private: apr-@APRUTIL_MAJOR_VERSION@ | |||||
+Libs: -L${libdir} -l@APRUTIL_LIBNAME@ @LDADD_ldap@ | |||||
+Libs.private: @APRUTIL_EXPORT_LIBS@ | |||||
Cflags: -I${includedir} | |||||
--- a/apu-config.in | |||||
+++ b/apu-config.in | |||||
@@ -27,7 +27,7 @@ bindir="@bindir@" | |||||
libdir="@libdir@" | |||||
includedir="@includedir@" | |||||
-LIBS="@APRUTIL_EXPORT_LIBS@" | |||||
+LIBS= | |||||
INCLUDES="@APRUTIL_INCLUDES@" | |||||
LDFLAGS="@APRUTIL_LDFLAGS@" | |||||
ORIG_LDAP_LIBS="@LDADD_ldap@" |
@ -0,0 +1,35 @@ | |||||
From: Stefan Fritsch <sf@debian.org> | |||||
Subject: Make apu-config not output dbm libs by default. See #622081 | |||||
--- a/apu-config.in | |||||
+++ b/apu-config.in | |||||
@@ -32,7 +32,8 @@ INCLUDES="@APRUTIL_INCLUDES@" | |||||
LDFLAGS="@APRUTIL_LDFLAGS@" | |||||
ORIG_LDAP_LIBS="@LDADD_ldap@" | |||||
LDAP_LIBS="" | |||||
-DBM_LIBS="@LDADD_dbm_db@ @LDADD_dbm_gdbm@ @LDADD_dbm_ndbm@" | |||||
+ORIG_DBM_LIBS="@LDADD_dbm_db@ @LDADD_dbm_gdbm@ @LDADD_dbm_ndbm@" | |||||
+DBM_LIBS="" | |||||
APRUTIL_LIBNAME="@APRUTIL_LIBNAME@" | |||||
@@ -58,8 +59,8 @@ Known values for OPTION are: | |||||
--libs print library information | |||||
--avoid-ldap do not include ldap library information with --libs (default on OpenWrt) | |||||
--ldap-libs print library information to link with ldap | |||||
- --avoid-dbm do not include DBM library information with --libs | |||||
- --dbm-libs print additional library information to link with DBM | |||||
+ --avoid-dbm do not include DBM library information with --libs (default on OpenWrt) | |||||
+ --dbm-libs print library information to link with DBM | |||||
--srcdir print APR-util source directory | |||||
--link-ld print link switch(es) for linking to APR-util | |||||
--link-libtool print the libtool inputs for linking to APR-util | |||||
@@ -125,7 +126,7 @@ while test $# -gt 0; do | |||||
flags="$flags $ORIG_LDAP_LIBS" | |||||
;; | |||||
--dbm-libs) | |||||
- flags="$flags $DBM_LIBS" | |||||
+ flags="$flags $ORIG_DBM_LIBS" | |||||
;; | |||||
--includedir) | |||||
if test "$location" = "installed"; then |