Package: planner
Version: 0.14.6-1
User: [email protected]
Usertags: origin-ubuntu raring ubuntu-patch
The current version failed to build on raring with this error:
"" CCLD planner
/usr/bin/ld: ./.libs/libplannerapp.a(planner-window.o): undefined
reference to
symbol 'floor@@GLIBC_2.0'
/usr/bin/ld: note: 'floor@@GLIBC_2.0' is defined in DSO
/lib/i386-linux-gnu/libm.so.6 so try adding it to the linker command line
/lib/i386-linux-gnu/libm.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status""
Since src/planner-window.c uses floor() it should link with -lm
I've reported the issue upstream on
https://bugzilla.gnome.org/show_bug.cgi?id=697712
Cheers,
Sebastien Bacher
diff -Nru planner-0.14.6/debian/changelog planner-0.14.6/debian/changelog
--- planner-0.14.6/debian/changelog 2012-09-11 17:59:48.000000000 +0200
+++ planner-0.14.6/debian/changelog 2013-04-10 15:15:45.000000000 +0200
@@ -1,3 +1,10 @@
+planner (0.14.6-1ubuntu3) raring; urgency=low
+
+ * debian/patches/fix-as-needed-build.patch: updated to fix harder the
+ build, some sources use floor() and such need -lm to build
+
+ -- Sebastien Bacher <[email protected]> Wed, 10 Apr 2013 15:15:43 +0200
+
planner (0.14.6-1ubuntu2) quantal; urgency=low
* Build depend on libgsf-1-dev instead of libgsf-gnome-1-dev.
diff -Nru planner-0.14.6/debian/patches/fix-as-needed-build.patch
planner-0.14.6/debian/patches/fix-as-needed-build.patch
--- planner-0.14.6/debian/patches/fix-as-needed-build.patch 2012-02-25
10:22:34.000000000 +0100
+++ planner-0.14.6/debian/patches/fix-as-needed-build.patch 2013-04-10
14:32:27.000000000 +0200
@@ -6,8 +6,10 @@
libraries must be behind objects (including static libraries)
---- a/tests/Makefile.am
-+++ b/tests/Makefile.am
+Index: planner-0.14.6/tests/Makefile.am
+===================================================================
+--- planner-0.14.6.orig/tests/Makefile.am 2013-04-10 14:32:21.556407265
+0200
++++ planner-0.14.6/tests/Makefile.am 2013-04-10 14:32:21.552407265 +0200
@@ -8,9 +8,9 @@
-DEXAMPLESDIR=\"$(top_srcdir)/tests/files\"
@@ -45,3 +47,16 @@
TESTS_ENVIRONMENT = \
PLANNER_STORAGEMODULEDIR=$(top_builddir)/libplanner/.libs \
+Index: planner-0.14.6/src/Makefile.am
+===================================================================
+--- planner-0.14.6.orig/src/Makefile.am 2013-04-10 14:32:21.556407265
+0200
++++ planner-0.14.6/src/Makefile.am 2013-04-10 14:32:21.552407265 +0200
+@@ -21,7 +21,7 @@
+ planner_LDADD = \
+ libplannerapp.la \
+ $(top_builddir)/libplanner/libplanner-1.la \
+- $(PLANNER_LIBS)
++ $(PLANNER_LIBS) -lm
+
+
+ # Create a convenience library to link our tests against