rpms/apr-util/devel apr-util-1.2.2-exports.patch, NONE, 1.1 apr-util.spec, 1.17, 1.18
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Tue Dec 6 14:54:59 UTC 2005
Author: jorton
Update of /cvs/dist/rpms/apr-util/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv11444
Modified Files:
apr-util.spec
Added Files:
apr-util-1.2.2-exports.patch
Log Message:
* Tue Dec 6 2005 Joe Orton <jorton at redhat.com> 1.2.2-2
- trim exports from .la file/--libs output (#174924)
apr-util-1.2.2-exports.patch:
apu-config.in | 6 ++++--
build/dbd.m4 | 4 ----
2 files changed, 4 insertions(+), 6 deletions(-)
--- NEW FILE apr-util-1.2.2-exports.patch ---
- don't export libs needed for DBD
- don't add -L%{_libdir} to --link-ld output
--- apr-util-1.2.2/build/dbd.m4.exports
+++ apr-util-1.2.2/build/dbd.m4
@@ -64,7 +64,6 @@
dnl Since we have already done the AC_CHECK_LIB tests, if we have it,
dnl we know the library is there.
if test "$apu_have_pgsql" = "1"; then
- APR_ADDTO(APRUTIL_EXPORT_LIBS,[-lpq])
APR_ADDTO(APRUTIL_LIBS,[-lpq])
fi
])
@@ -115,7 +114,6 @@
dnl Since we have already done the AC_CHECK_LIB tests, if we have it,
dnl we know the library is there.
if test "$apu_have_mysql" = "1"; then
- APR_ADDTO(APRUTIL_EXPORT_LIBS,[-lmysqlclient_r])
APR_ADDTO(APRUTIL_LIBS,[-lmysqlclient_r])
fi
])
@@ -152,7 +150,6 @@
dnl Since we have already done the AC_CHECK_LIB tests, if we have it,
dnl we know the library is there.
if test "$apu_have_sqlite3" = "1"; then
- APR_ADDTO(APRUTIL_EXPORT_LIBS,[-lsqlite3])
APR_ADDTO(APRUTIL_LIBS,[-lsqlite3])
fi
])
@@ -189,7 +186,6 @@
dnl Since we have already done the AC_CHECK_LIB tests, if we have it,
dnl we know the library is there.
if test "$apu_have_sqlite2" = "1"; then
- APR_ADDTO(APRUTIL_EXPORT_LIBS,[-lsqlite])
APR_ADDTO(APRUTIL_LIBS,[-lsqlite])
fi
])
--- apr-util-1.2.2/apu-config.in.exports
+++ apr-util-1.2.2/apu-config.in
@@ -147,8 +147,10 @@
;;
--link-ld)
if test "$location" = "installed"; then
- ### avoid using -L if libdir is a "standard" location like /usr/lib
- flags="$flags -L$libdir -l$APRUTIL_LIBNAME"
+ if test "$prefix" != "/usr"; then
+ flags="$flags -L${libdir}"
+ fi
+ flags="$flags -l$APRUTIL_LIBNAME"
else
flags="$flags -L$APU_BUILD_DIR -l$APRUTIL_LIBNAME"
fi
Index: apr-util.spec
===================================================================
RCS file: /cvs/dist/rpms/apr-util/devel/apr-util.spec,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- apr-util.spec 2 Dec 2005 09:54:51 -0000 1.17
+++ apr-util.spec 6 Dec 2005 14:54:56 -0000 1.18
@@ -4,11 +4,12 @@
Summary: Apache Portable Runtime Utility library
Name: apr-util
Version: 1.2.2
-Release: 1
-License: Apache Software License
+Release: 2
+License: Apache Software License 2.0
Group: System Environment/Libraries
URL: http://apr.apache.org/
Source0: %{name}-%{version}.tar.gz
+Patch0: apr-util-1.2.2-exports.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: autoconf, doxygen, apr-devel >= 1.2.0
BuildRequires: openldap-devel, db4-devel, expat-devel
@@ -36,6 +37,7 @@
%prep
%setup -q
+%patch0 -p1 -b .exports
%build
autoheader && autoconf
@@ -61,6 +63,10 @@
sed -i '/^old_library/s,libapr.*\.a,,' \
$RPM_BUILD_ROOT%{_libdir}/libapr*.la
+# Remove unnecessary exports from dependency_libs
+sed -ri '/^dependency_libs/{s,-l(pq|sqlite[0-9]|rt|dl|uuid) ,,g}' \
+ $RPM_BUILD_ROOT%{_libdir}/libapr*.la
+
%check
# Run the less verbose test suites
cd test
@@ -92,6 +98,9 @@
%doc --parents html
%changelog
+* Tue Dec 6 2005 Joe Orton <jorton at redhat.com> 1.2.2-2
+- trim exports from .la file/--libs output (#174924)
+
* Fri Nov 25 2005 Joe Orton <jorton at redhat.com> 1.2.2-1
- update to 1.2.2
More information about the fedora-cvs-commits
mailing list