Package: user-mode-linux
Version: 2.6.32-1um-3
Severity: wishlist
Tags: patch

        Hi there,

 Thanks for packaging user-mode-linux in Debian!  We were copying the
 package automatically in Ubuntu unmodified and it was failing to build
 due to Ubuntu changes to dpkg-dev to set
 LDFLAGS=-Wl,-Bsymbolic-functions by default (in dpkg-buildpackage).

 Usually, kernel packages have very different constraints on
 CFLAGS/LDFLAGS than userspace packages, so in the Ubuntu kernel
 packages we "unexport CFLAGS LDFLAGS" in the rules.

 I fixed the amd64 build of user-mode-linux by applying the attached
 patch which will strip -Wl,-Bsymbolic-functions from LDFLAGS, would you
 mind applying that to the Debian package?  Or perhaps use the unexport
 recipe, whatever you find best.

   Thanks!
-- 
Loïc Minier
diff -u user-mode-linux-2.6.32-1um/debian/rules user-mode-linux-2.6.32-1um/debian/rules
--- user-mode-linux-2.6.32-1um/debian/rules
+++ user-mode-linux-2.6.32-1um/debian/rules
@@ -5,6 +5,11 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+# Ubuntu's dpkg-buildpackage sets env LDFLAGS=-Wl,-Bsymbolic-functions which
+# breaks the kernel build
+comma := ,
+LDFLAGS := $(filter-out -Wl$(comma)-Bsymbolic-functions,$(LDFLAGS))
+
 config_target:=oldconfig
 kernel_version:=2.6.32
 kernel_dir:=linux-source-$(kernel_version)
diff -u user-mode-linux-2.6.32-1um/debian/changelog user-mode-linux-2.6.32-1um/debian/changelog
--- user-mode-linux-2.6.32-1um/debian/changelog
+++ user-mode-linux-2.6.32-1um/debian/changelog
@@ -1,3 +1,9 @@
+user-mode-linux (2.6.32-1um-3ubuntu1) lucid; urgency=low
+
+  * Filter out -Wl,-Bsymbolic-functions from LDFLAGS.
+
+ -- Loïc Minier <loic.min...@ubuntu.com>  Sat, 20 Feb 2010 08:45:08 +0100
+
 user-mode-linux (2.6.32-1um-3) unstable; urgency=low
 
   * Sigh, the new 2.6.32 upload includes the IF_NOTIFY_RESUME patch included

Reply via email to