Package: ufsutils Version: 8.2-1 Severity: normal Tags: upstream patch User: [email protected] Usertags: ld-as-needed
The package fails to build when --as-needed linker option is enabled, because of incorrect order of parameters passed to ld. Here's a log of failed build in Ubuntu: https://launchpadlibrarian.net/72730295/buildlog_ubuntu-oneiric-i386.ufsutils_8.2-1_FAILEDTOBUILD.txt.gz See also http://wiki.debian.org/ToolChain/DSOLinking#Only_link_with_needed_libraries The attached patch was used in Ubuntu to fix the problem. https://launchpad.net/ubuntu/+source/ufsutils/8.2-1ubuntu1 -- System Information: Debian Release: wheezy/sid APT prefers oneiric APT policy: (500, 'oneiric') Architecture: i386 (i686) Kernel: Linux 2.6.38-10-generic (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash
Description: Change order of libraries so that the linker can work with --as-needed option. Author: Ilya Barygin <[email protected]> Bug-Ubuntu: https://launchpad.net/bugs/803208 --- ufsutils-8.2.orig/sbin/fsdb/Makefile +++ ufsutils-8.2/sbin/fsdb/Makefile @@ -6,7 +6,7 @@ PROG = fsdb.ufs MAN = fsdb.8:fsdb.ufs.8 SRCS = fsdb.c fsdbutil.c WARNS = 0 -LDADD += -ledit -L../../lib/libufs -lufs -lbsd -L../fsck_ffs -lfsck.ufs +LDADD += -ledit -L../../lib/libufs -lufs -L../fsck_ffs -lfsck.ufs -lbsd DPADD += ${LIBEDIT} INCLUDES = -I../fsck_ffs

