On Wed, Mar 14, 2012 at 06:44:39PM +0100, gregor herrmann wrote:
> On Tue, 19 Jul 2011 08:30:51 +0200, Lucas Nussbaum wrote:
> > Source: tcpreplay
> > Version: 3.4.3-2
> > Severity: serious
> > Tags: wheezy sid
> > User: debian...@lists.debian.org
> > Usertags: qa-ftbfs-20110718 qa-ftbfs
> > Justification: FTBFS on amd64
> > 
> > During a rebuild of all packages in sid, your package failed to build on
> > amd64.
> 
> Attached is a debdiff based on the Ubuntu patch that makes the
> package build.
> 
> But:
> 
> % lintian -F tcpreplay_3.4.3-2.1_amd64.changes
> E: tcpreplay: embedded-library usr/bin/tcpbridge: libpcap
> E: tcpreplay: embedded-library usr/bin/tcpprep: libpcap
> E: tcpreplay: embedded-library usr/bin/tcpreplay: libpcap
> E: tcpreplay: embedded-library usr/bin/tcpreplay-edit: libpcap
> E: tcpreplay: embedded-library usr/bin/tcprewrite: libpcap

Fixed and build tested (once updated for tcpreplay 3.4.4), with configure.ac
modification and call of --enable-dynamic-link 

However, as a autoconf newbie, I didn't understood why I had to hardcode
libpcap.so instead of lipbcap${shrext_cmds}.


-- 
Simon Paillard
--- a/configure.ac
+++ b/configure.ac
@@ -354,6 +354,8 @@ for testdir in $trypcapdir /usr/local /opt/local /usr /wpdpack ; do
         if test $dynamic_link = yes; then
             if test -f "${testdir}/lib64/libpcap${shrext_cmds}" ; then
                 LPCAPLIB="-L${testdir}/lib64 -lpcap"
+            elif test -f "${testdir}/lib/$multiarch/libpcap.so" ; then
+                LPCAPLIB="-L${testdir}/lib/$multiarch -lpcap"
             elif test -f "${testdir}/lib/libpcap${shrext_cmds}" ; then
                 LPCAPLIB="-L${testdir}/lib -lpcap"
             else
--- a/debian/rules
+++ b/debian/rules
@@ -25,6 +25,7 @@ config.status: configure
        ./configure --host=$(DEB_HOST_GNU_TYPE) \
                --build=$(DEB_BUILD_GNU_TYPE) \
                --enable-debug  \
+               --enable-dynamic-link \
                --prefix=/usr \
                --mandir=\$${prefix}/share/man \
                --infodir=\$${prefix}/share/info

Reply via email to