[Git][haskell-team/DHG_packages][master] haskell-x11:
Gianfranco Costamagna (@locutusofborg)
gitlab at salsa.debian.org
Thu Oct 22 15:11:27 BST 2026
Gianfranco Costamagna pushed to branch master at Debian Haskell Group / DHG_packages
Commits:
303ad1f1 by Gianfranco Costamagna at 2026-10-22T13:26:24+02:00
haskell-x11:
* d/p/no-ldflags-in-buildinfo.patch: don't record the build LDFLAGS in
the X11 package ld-options. They were leaked to every reverse
dependency, and the Ubuntu -Wl,-Bsymbolic-functions default overrides
the -Bsymbolic GHC uses for shared objects, making Template Haskell
links fail on amd64 with "relocation R_X86_64_PC32 ... recompile with
-fPIC" (lp: #2169956)
- - - - -
3 changed files:
- p/haskell-x11/debian/changelog
- + p/haskell-x11/debian/patches/no-ldflags-in-buildinfo.patch
- p/haskell-x11/debian/patches/series
Changes:
=====================================
p/haskell-x11/debian/changelog
=====================================
@@ -1,3 +1,14 @@
+haskell-x11 (1.10.3-5ubuntu1) stonking; urgency=medium
+
+ * d/p/no-ldflags-in-buildinfo.patch: don't record the build LDFLAGS in
+ the X11 package ld-options. They were leaked to every reverse
+ dependency, and the Ubuntu -Wl,-Bsymbolic-functions default overrides
+ the -Bsymbolic GHC uses for shared objects, making Template Haskell
+ links fail on amd64 with "relocation R_X86_64_PC32 ... recompile with
+ -fPIC" (lp: #2169956)
+
+ -- Sebastien Bacher <seb128 at ubuntu.com> Thu, 08 Oct 2026 12:17:57 +0200
+
haskell-x11 (1.10.3-5) unstable; urgency=medium
* Patch for newer deps
=====================================
p/haskell-x11/debian/patches/no-ldflags-in-buildinfo.patch
=====================================
@@ -0,0 +1,25 @@
+Description: Don't record the build LDFLAGS in the installed package ld-options
+ The ld-options of X11.buildinfo are registered in the package database and
+ used when linking every package depending on X11, including the temporary
+ shared objects GHC links to run Template Haskell. Recording the build
+ LDFLAGS there leaks distribution build flags such as -Wl,-Bsymbolic-functions
+ or -flto=auto to the reverse dependencies. -Bsymbolic-functions overrides
+ the -Bsymbolic GHC uses to link shared objects, so data symbols become
+ preemptible and the R_X86_64_PC32 relocations generated by the native code
+ generator for closures fail to link ("recompile with -fPIC").
+ The LDFLAGS are still used for building the library itself.
+Author: Sebastien Bacher <seb128 at ubuntu.com>
+Bug-Ubuntu: https://bugs.launchpad.net/bugs/2169956
+Forwarded: no
+Last-Update: 2026-10-08
+
+--- a/X11.buildinfo.in
++++ b/X11.buildinfo.in
+@@ -3,6 +3,6 @@
+ --
+ buildable: @BUILD_PACKAGE_BOOL@
+ cc-options: @X_CFLAGS@ @CPPFLAGS@
+-ld-options: @X_LIBS@ @LDFLAGS@
++ld-options: @X_LIBS@
+ extra-libraries: @EXTRA_LIBRARIES@
+ extra-lib-dirs: @X_LIBRARIES@
=====================================
p/haskell-x11/debian/patches/series
=====================================
@@ -1 +1,2 @@
newer-deps
+no-ldflags-in-buildinfo.patch
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/303ad1f1614d4f7f948ba071f4dc2ca370efb8ad
--
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/303ad1f1614d4f7f948ba071f4dc2ca370efb8ad
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-commits/attachments/20261022/e5027bfb/attachment-0001.htm>
More information about the Pkg-haskell-commits
mailing list