Source: gcc-14
Version: 14.2.0-8
Severity: minor
Tags: patch

The gcc packaging is designed to accommodate backports to older
distribution branches, but bullseye is missing from the list of older
branches whose ld doesn't support --package-metadata, resulting in a
build failure while rebuilding trixie's gcc for a bullseye derivative
(the error I encountered was that libgomp/configure diagnosed the compiler
as unable to produce working executables). Please consider applying the
attached patch or something similar.

Thanks,
    smcv
>From c520de321f433eba2a83927a3671bd1d3e2f6044 Mon Sep 17 00:00:00 2001
From: Simon McVittie <s...@collabora.com>
Date: Thu, 19 Dec 2024 17:05:48 +0000
Subject: [PATCH] d/rules.patch: Don't assume bullseye binutils supports
 --package-metadata
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

As clarified by the commit message, the intention here was to enable
--package-metadata by default in Debian ≥ trixie and Ubuntu ≥ noble,
but Debian bullseye was mistakenly omitted from the list of older suites.

Fixes: dbc30403 "Pass --package-metadata on distros with supporting linkers"
Signed-off-by: Simon McVittie <s...@collabora.com>
---
 debian/rules.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/rules.patch b/debian/rules.patch
index 163352df..060072f6 100644
--- a/debian/rules.patch
+++ b/debian/rules.patch
@@ -373,7 +373,7 @@ ifneq (,$(filter $(derivative),Ubuntu))
 	     >> $(srcdir)/gcc/distro-defaults.h
   endif
 else ifneq (,$(filter $(derivative),Debian))
-  ifeq (,$(filter $(distrelease),lenny squeeze wheezy jessie stretch buster bookworm))
+  ifeq (,$(filter $(distrelease),lenny squeeze wheezy jessie stretch buster bullseye bookworm))
 	echo '#define DIST_DEFAULT_PKG_METADATA_SPEC 1' \
 	     >> $(srcdir)/gcc/distro-defaults.h
   endif
-- 
2.39.5

Reply via email to