Bug#893557: thin-provisioning-tools: FTBFS with glibc 2.17
Steve Langasek
steve.langasek at canonical.com
Mon Mar 19 22:37:17 UTC 2018
Package: thin-provisioning-tools
Version: 0.7.4-2
Followup-For: Bug #893557
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu bionic ubuntu-patch
Control: retitle -1 thin-provisioning-tools: FTBFS with -O3
Control: severity -1 minor
Control: tags -1 + patch
Ok, after some trial and error, I've determined that the reason my earlier
test succeeded was because I had built the test preload.so without the
benefit of dpkg-buildflags, which means -O3, which is used by default for
ppc64el on Ubuntu, was missing from the commandline.
The attached patch supersedes the previous one, and fixes the build failure
on Ubuntu ppc64el. Please consider including it in Debian as well for
benefit of anyone who happens to be using -O3 in dpkg-buildflags (not
actually relevant in the distro case in Debian).
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer http://www.debian.org/
slangasek at ubuntu.com vorlon at debian.org
-------------- next part --------------
diff -Nru thin-provisioning-tools-0.7.4/debian/control thin-provisioning-tools-0.7.4/debian/control
--- thin-provisioning-tools-0.7.4/debian/control 2017-11-01 14:50:39.000000000 -0700
+++ thin-provisioning-tools-0.7.4/debian/control 2018-03-19 15:31:50.000000000 -0700
@@ -1,8 +1,7 @@
Source: thin-provisioning-tools
Section: admin
Priority: optional
-Maintainer: Ubuntu Developers <ubuntu-devel-discuss at lists.ubuntu.com>
-XSBC-Original-Maintainer: Debian LVM Team <pkg-lvm-maintainers at lists.alioth.debian.org>
+Maintainer: Debian LVM Team <pkg-lvm-maintainers at lists.alioth.debian.org>
Uploaders: Bastian Blank <waldi at debian.org>
Build-Depends:
debhelper (>= 9),
diff -Nru thin-provisioning-tools-0.7.4/debian/rules thin-provisioning-tools-0.7.4/debian/rules
--- thin-provisioning-tools-0.7.4/debian/rules 2017-11-01 14:50:39.000000000 -0700
+++ thin-provisioning-tools-0.7.4/debian/rules 2018-03-19 15:30:07.000000000 -0700
@@ -15,7 +15,9 @@
--with-optimisation=-O2
override_dh_auto_test:
- $(MAKE) -C debian/unit-tests all
+ $(MAKE) -C debian/unit-tests all \
+ CFLAGS="$$(env DEB_CFLAGS_MAINT_STRIP=-O3 \
+ dpkg-buildflags --get CFLAGS)"
+LD_PRELOAD=$(CURDIR)/debian/unit-tests/preload.so $(MAKE) unit-test GMOCK_DIR=/usr/src/googletest
override_dh_auto_clean:
More information about the pkg-lvm-maintainers
mailing list