[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Building LibreOffice on Debian sid (libboost1.54-date-time >= 1.54.0-4)



Hi,

I'm wondering how LibreOffice builds on sid (e.g. on
https://buildd.debian.org/status/fetch.php?pkg=libreoffice&arch=i386&ver=1%3A4.1.4-2%2Bb1&stamp=1390598408)
since my ./autogen.sh is failing with:

checking for boostlib >= 1.47... yes
checking whether the Boost::Date_Time library is available... yes
configure: error: Could not find a version of the library!

because ./configure (from m4/ax_boost_date_time.m4) goes to look for
libboost_date_time*.so in /usr/lib, but it is in
/usr/lib/x86_64-linux-gnu/

I don't see any patch for that in the Debian LibreOffice package git
repository, and the relevant parts of configure.ac, and m4/* haven't
changed since 2012 upstream, so well before 4.1.x time. But OTOH the
above linked build log says LibreOffice built with
libboost1.54-date-time-dev 1.54.0-4, that is the same version as me
(!)

Anybody has a clue why it fails on my machine, but not the build
daemon?

I applied this patch in my tree to circumvent the problem, but that's
obviously not adequate for upstream:

diff --git a/m4/ax_boost_date_time.m4 b/m4/ax_boost_date_time.m4
index ec9c044..3ada617 100644
--- a/m4/ax_boost_date_time.m4
+++ b/m4/ax_boost_date_time.m4
@@ -74,7 +74,7 @@ AC_DEFUN([AX_BOOST_DATE_TIME],
                ])
                if test "x$ax_cv_boost_date_time" = "xyes"; then
                        AC_DEFINE(HAVE_BOOST_DATE_TIME,,[define if the
			Boost::Date_Time library is available])
-            BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'`
+            BOOSTLIBDIR=/usr/lib/$(dpkg-architecture -qDEB_BUILD_MULTIARCH)
             if test "x$ax_boost_user_date_time_lib" = "x"; then
                 for libextension in `ls
		 $BOOSTLIBDIR/libboost_date_time*.so*
		 $BOOSTLIBDIR/libboost_date_time*.dylib* $BOOSTLIBDI
                      ax_lib=${libextension}


-- 
Lionel


Reply to: