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 <sergi...@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

Attachment: signature.asc
Description: PGP signature

Reply via email to