Bug#1037532: [PATCH] Strip -Wl, -Bsymbolic-functions from LDFLAGS on Ubuntu

Sergio Durigan Junior sergiodj at debian.org
Tue Jun 13 21:41:46 BST 2023


Source: git-annex
Version: 10.20230126-3
Severity: wishlist
Tags: patch

Hi,

Ref.: https://bugs.launchpad.net/ubuntu/+source/git-annex/+bug/2019992

git-annex unfortunately FTBFS on Ubuntu because of
-Wl,-Bsymbolic-functions.  The patch attached to this bug report
selectively strips this flag from LDFLAGS when building on Ubuntu.

Thanks,

-- 
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF  31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
https://sergiodj.net/

From 2232f3bf444c3e01d667cdd1ab7079cf31fc48f2 Mon Sep 17 00:00:00 2001
From: Sergio Durigan Junior <sergiodj at debian.org>
Date: Tue, 13 Jun 2023 16:40:41 -0400
Subject: [PATCH] d/rules: Strip -Wl,-Bsymbolic-functions from LDFLAGS on
 Ubuntu.

---
 debian/rules | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/debian/rules b/debian/rules
index eb63c7e7d..1d8d167a9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -27,6 +27,11 @@ export RELEASE_BUILD=1
 
 export ZSH_COMPLETIONS_PATH=/usr/share/zsh/vendor-completions
 
+ifeq (yes, $(shell dpkg-vendor --derives-from Ubuntu && echo yes))
+# See LP: #2019992
+export DEB_LDFLAGS_MAINT_STRIP = -Wl,-Bsymbolic-functions
+endif
+
 %:
 	dh $@
 
-- 
2.39.2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-maintainers/attachments/20230613/3acfb88f/attachment.sig>


More information about the Pkg-haskell-maintainers mailing list