For this added delta:
d/rules: strip -Bsymbolic-functions from linker flags as it breaks libvirt tests
Signed-off-by: Christian Ehrhardt <email address hidden>
diff --git a/debian/rules b/debian/rules
index 12715b693d..4c581a1fd2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,11 @@
DEB_RELEASE=$(shell dpkg-parsechangelog -SVersion | sed 's/[^-]\+-//')
DEB_BUILDDATE=$(shell dpkg-parsechangelog -SDate)
DEB_BUILDUSER=$(shell dpkg-parsechangelog -SMaintainer)
+
+# This is a default flag in Ubuntu only, but breaks the self tests as
+# required mockups are no more called
+export DEB_LDFLAGS_MAINT_STRIP=-Wl,-Bsymbolic-functions
Would you consider the approach below, taken from other packages (autofs in this case) where it was also needed? Then it could be submitted to debian:
For this added delta: functions from linker flags as it breaks libvirt tests
d/rules: strip -Bsymbolic-
Signed-off-by: Christian Ehrhardt <email address hidden>
diff --git a/debian/rules b/debian/rules .4c581a1fd2 100755 $(shell dpkg-parsechangelog -SVersion | sed 's/[^-]\+-//') $(shell dpkg-parsechangelog -SDate) $(shell dpkg-parsechangelog -SMaintainer) MAINT_STRIP= -Wl,-Bsymbolic- functions
index 12715b693d.
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,11 @@
DEB_RELEASE=
DEB_BUILDDATE=
DEB_BUILDUSER=
+
+# This is a default flag in Ubuntu only, but breaks the self tests as
+# required mockups are no more called
+export DEB_LDFLAGS_
Would you consider the approach below, taken from other packages (autofs in this case) where it was also needed? Then it could be submitted to debian:
ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes),yes) MAINT_STRIP = -Wl,-Bsymbolic- functions
export DEB_LDFLAGS_
endif