🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #821

Bug#1150877: ifhp: unquoted LDFLAGS in debian/rules, linker flags dropped

#821
From: Sebastien Bacher
Date: Wed, 14 Oct 2026 08:30
79 lines
4049 bytes
This is a multi-part MIME message sent by reportbug.


--===============0235633885033921473==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Source: ifhp
Version: 3.5.20+dfsg-1
Severity: normal
Tags: patch
X-Debbugs-Cc: seb128@ubuntu.com
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu stonking ubuntu-patch

Hi,

debian/rules calls

  $(MAKE) LDFLAGS=$(LDFLAGS)

where LDFLAGS is `dpkg-buildflags --get LDFLAGS` (expanded by the
shell), without quoting. Only the first word ends up in LDFLAGS; the
following words are passed to make as command line arguments. It works
today because all the other words happen to start with -W, which make
accepts as "-W FILE" (mark FILE as new), so those linker flags are
silently dropped instead.

Any flag that doesn't start with -W breaks the build. In Ubuntu, the
amd64v3 variant appends -march=x86-64-v3 to LDFLAGS and the build fails
with:

  /usr/bin/make: invalid option -- 'a'
  /usr/bin/make: invalid option -- 'c'
  ...

The attached patch quotes the variable, so all the flags are actually
passed to the link.

Ubuntu bug: https://bugs.launchpad.net/ubuntu/+source/ifhp/+bug/2170781

Thanks,
Sebastien Bacher


-- System Information:
Debian Release: forky/sid
  APT prefers resolute-updates
  APT policy: (500, 'resolute-updates'), (500, 'resolute-security'), (500, 'resolute'), (100, 'resolute-backports')
Architecture: amd64 (x86_64)

Kernel: Linux 7.0.0-38-generic (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

--===============0235633885033921473==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="rules-quote-ldflags.diff"

--- a/debian/rules
+++ b/debian/rules
@@ -34,7 +34,7 @@
 build-indep: build-stamp
 build-stamp: configure-stamp
 	dh_testdir
-	$(MAKE) LDFLAGS=$(LDFLAGS)
+	$(MAKE) LDFLAGS="$(LDFLAGS)"
 	touch $@
 
 clean:

--===============0235633885033921473==--
Technical Details
Message-ID: <NO2x3-5quY-5@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Sebastien Bacher <seb128@ubuntu.com>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1150877: ifhp: unquoted LDFLAGS in debian/rules, linker flags dropped
Date: Wed, 14 Oct 2026 10:30:01 +0200
Message-ID: <NO2x3-5quY-5@gated-at.bofh.it>
X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Wed Oct 14 08:29:10 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.651
Reply-To: Sebastien Bacher <seb128@ubuntu.com>, 1150877@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: seb128@ubuntu.com, debian-printing@lists.debian.org
X-Debian-Pr-Message: report 1150877
X-Debian-Pr-Package: src:ifhp
X-Debian-Pr-Keywords: patch
X-Debian-Pr-Source: ifhp
Content-Type: multipart/mixed; boundary="===============0235633885033921473=="
MIME-Version: 1.0
X-Mailer: reportbug 13.2.0+ubuntu1
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1996730
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 79
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Wed, 14 Oct 2026 10:27:04 +0200
X-Original-Message-ID: <179196642467.381451.9078756197320245813.reportbug@seb128-ThinkPad-T16>