Package: apache2 Version: 2.2.6-3 Severity: minor Tags: patch User: ubuntu-devel@lists.ubuntu.com Usertags: origin-ubuntu hardy ubuntu-patch Hi! The apache binaries currently depend on a lot of unnecessary packages and libraries, for example libdb4.4. Please consider building with -Wl,--as-needed to drop these (tested patch attached). This will ease library transitions in the future. apache2.2-common before: Depends: apache2-utils, libapr1, libaprutil1, libc6 (>= 2.7-1), libdb4.4, libexpat1 (>= 1.95.8), libldap2 (>= 2.1.17-1), libmagic1, libpcre3 (>= 6.0), libpq5, libsqlite3-0 (>= 3.4.2), libssl0.9.8 (>= 0.9.8f-1), libuuid1, lsb-base, mime-support, net-tools, procps, zlib1g (>= 1:1.2.3.3.dfsg-1) ... and after: Depends: apache2-utils, libapr1, libaprutil1, libc6 (>= 2.7-1), libmagic1, libssl0.9.8 (>= 0.9.8f-1), lsb-base, mime-support, net-tools, procps, zlib1g (>= 1:1.2.3.3.dfsg-1) Thanks for considering, Martin -- Martin Pitt http://www.piware.de Ubuntu Developer http://www.ubuntu.com Debian Developer http://www.debian.org
diff -u apache2-2.2.6/debian/rules apache2-2.2.6/debian/rules --- apache2-2.2.6/debian/rules +++ apache2-2.2.6/debian/rules @@ -102,7 +102,7 @@ dh_testdir mkdir -p $(BUILD)/$* cd $(BUILD)/$* ;\ - CFLAGS="$(AP2_CONFLAGS)" $(CONFFLAGS) $(REALCURDIR)/configure --srcdir=$(REALCURDIR) $(AP2_COMMON_CONFARGS) $(AP2_CONFARGS) --with-mpm=$* ;\ + CFLAGS="$(AP2_CONFLAGS)" LDFLAGS="-Wl,--as-needed" $(CONFFLAGS) $(REALCURDIR)/configure --srcdir=$(REALCURDIR) $(AP2_COMMON_CONFARGS) $(AP2_CONFARGS) --with-mpm=$* ;\ $(MAKE) touch $@ diff -u apache2-2.2.6/debian/changelog apache2-2.2.6/debian/changelog --- apache2-2.2.6/debian/changelog +++ apache2-2.2.6/debian/changelog @@ -1,3 +1,10 @@ +apache2 (2.2.6-3ubuntu1) hardy; urgency=low + + * Build with LDFLAGS=-Wl,--as-needed to drop a lot of unnecessary + dependencies (including db4.5). + + -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 03 Jan 2008 11:19:10 +0100 + apache2 (2.2.6-3) unstable; urgency=low * Allocate fewer bucket brigades in case of a flush bucket. This might help
Attachment:
signature.asc
Description: Digital signature