The patch that was proposed to fix #615696 [1] turned out to be
insufficient, as can be seen in LP 765927 [2].

I noticed this, as it is holding out ubuntu's boost1.49 transition. [3]

Ideally both boost libraries should be part of the LIBS variable
substituted by configure, as any combinations of automake's magic
variables did not produce something that does not FTBFS.

Therefore, I just append the two libraries to the LIBS variable in
Makefile.am.

I hope that this new patch (take 3?!) is cleaner than what is currently
in ubuntu and that it will be of use to you.

Please, replace the current fix_615696 patch with a new version
attached. If you upload, it will get packages in sync in ubuntu once
again and help with the boost transition.

I have tested this patch in clean sid & quantal pbuilder.

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=615696
[2] https://bugs.launchpad.net/bugs/765927
[3] http://people.canonical.com/~ubuntu-archive/transitions/boost1.49.html

-- 
Regards,
Dmitrijs.




Description: explicitly link with boost_system and boost_filesystem
 to fix a FTBFS
Author: Andreas Moog <am...@ubuntu.com>, Dmitrijs Ledkovs <dmitrij.led...@ubuntu.com>
Bug-Ubuntu: https://bugs.launchpad.net/bugs/765927
Bug-Debian: http://bugs.debian.org/615696

Index: barada-pam/Makefile.am
===================================================================
--- barada-pam.orig/Makefile.am	2011-05-28 17:05:27.364231843 +0200
+++ barada-pam/Makefile.am	2011-05-28 17:05:05.345349346 +0200
@@ -10,6 +10,8 @@
 
 barada_add_LDFLAGS = $(BOOST_FILESYSTEM)
 
+LIBS +=  $(BOOST_FILESYSTEM) -lboost_system
+
 pam_barada_sodir = /lib/security/
 
 pam_barada_so_PROGRAMS = pam_barada.so
@@ -18,4 +20,4 @@
 
 pam_barada_so_LDFLAGS = -shared
 
-HexTest_SOURCES = HexTest.cpp Util.cpp
\ No newline at end of file
+HexTest_SOURCES = HexTest.cpp Util.cpp
Index: barada-pam/Makefile.in
===================================================================
--- barada-pam.orig/Makefile.in	2011-05-28 17:05:27.434228322 +0200
+++ barada-pam/Makefile.in	2011-05-28 17:05:24.674367340 +0200
@@ -127,7 +127,7 @@
 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
 LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
+LIBS = @LIBS@ $(BOOST_FILESYSTEM) -lboost_system
 LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
 MKDIR_P = @MKDIR_P@

Reply via email to