🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Bug#1153321: nmrpflash FTCBFS: strips with the build architecture strip

#3645
From: Helmut Grohne
Date: Sat, 07 Nov 2026 10:10
82 lines
4841 bytes
--pvxiXitKB85fmKlA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Source: nmrpflash
Version: 0.9.26+ds.1-1
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs

nmrpflash fails to cross build from source, because it strips with the
build architecture strip via "install -s" during make install. Beyond
breaking cross compilation, this also prevents -dbgsym packages from
being emitted and makes DEB_BUILD_OPTIONS=nostrip useless. The easiest
way to fix this is to not strip and defer all stripping to dh_strip. I
suggest making the install command substitutable upstream.
dh_auto_install will pass a non-stripping install command and this fixes
all of the mentioned problems. Please consider applying the attached
patch.

Helmut

--pvxiXitKB85fmKlA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment;
	filename="nmrpflash_0.9.26+ds.1-1.1.debdiff"

diff -Nru nmrpflash-0.9.26+ds.1/debian/changelog nmrpflash-0.9.26+ds.1/debian/changelog
--- nmrpflash-0.9.26+ds.1/debian/changelog	2025-12-01 21:34:04.000000000 +0100
+++ nmrpflash-0.9.26+ds.1/debian/changelog	2026-11-05 11:53:11.000000000 +0100
@@ -1,3 +1,10 @@
+nmrpflash (0.9.26+ds.1-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Don't strip during make install. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de>  Thu, 05 Nov 2026 11:53:11 +0100
+
 nmrpflash (0.9.26+ds.1-1) unstable; urgency=medium
 
   [ Debian Janitor ]
--- nmrpflash-0.9.26+ds.1/debian/patches/nostrip.patch	1970-01-01 01:00:00.000000000 +0100
+++ nmrpflash-0.9.26+ds.1/debian/patches/nostrip.patch	2026-11-05 11:53:11.000000000 +0100
@@ -0,0 +1,21 @@
+--- nmrpflash-0.9.26+ds.1.orig/Makefile
++++ nmrpflash-0.9.26+ds.1/Makefile
+@@ -1,6 +1,7 @@
+ CC = $(CROSS)gcc
+ STRIP = $(CROSS)strip
+ PKG_CONFIG ?= pkg-config
++INSTALL ?= install
+ PREFIX ?= /usr/local
+ VERSION := $(shell if [ -d .git ] && which git 2>&1 > /dev/null; then git describe --always | tail -c +2; else echo $$STANDALONE_VERSION; fi)
+ CFLAGS += -Wall -g -DNMRPFLASH_VERSION=\"$(VERSION)\"
+@@ -88,8 +89,8 @@
+ 	rm -f $(nmrpflash_OBJ) main.o t_tftp.o windres.o nmrpflash*.AppImage nmrpflash nmrpflash.exe fuzz_nmrp fuzz_tftp
+ 
+ install: nmrpflash
+-	install -d $(PREFIX)/bin
+-	install -s -m 755 nmrpflash $(PREFIX)/bin/
++	$(INSTALL) -d $(PREFIX)/bin
++	$(INSTALL) -s -m 755 nmrpflash $(PREFIX)/bin/
+ 
+ uninstall:
+ 	rm -f $(PREFIX)/bin/nmrpflash
diff -Nru nmrpflash-0.9.26+ds.1/debian/patches/series nmrpflash-0.9.26+ds.1/debian/patches/series
--- nmrpflash-0.9.26+ds.1/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ nmrpflash-0.9.26+ds.1/debian/patches/series	2026-11-05 11:53:11.000000000 +0100
@@ -0,0 +1 @@
+nostrip.patch
diff -Nru nmrpflash-0.9.26+ds.1/debian/rules nmrpflash-0.9.26+ds.1/debian/rules
--- nmrpflash-0.9.26+ds.1/debian/rules	2025-11-29 11:37:39.000000000 +0100
+++ nmrpflash-0.9.26+ds.1/debian/rules	2026-11-05 11:53:11.000000000 +0100
@@ -26,4 +26,4 @@
 
 override_dh_auto_install:: $(MANUALS)
 	mkdir -p debian/$(DEB_SOURCE)/usr/bin
-	$(MAKE) install PREFIX=debian/$(DEB_SOURCE)/usr
+	dh_auto_install -- PREFIX=debian/$(DEB_SOURCE)/usr

--pvxiXitKB85fmKlA--
Technical Details
Message-ID: <NWLx0-an6Y-13@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!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!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Helmut Grohne <helmut@subdivi.de>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1153321: nmrpflash FTCBFS: strips with the build architecture strip
Date: Sat, 07 Nov 2026 11:10:02 +0100
Message-ID: <NWLx0-an6Y-13@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  Sat Nov  7 10:03:10 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.45
Reply-To: Helmut Grohne <helmut@subdivi.de>, 1153321@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: dmn@debian.org
X-Debian-Pr-Message: report 1153321
X-Debian-Pr-Package: src:nmrpflash
X-Debian-Pr-Keywords: patch
X-Debian-Pr-Source: nmrpflash
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="pvxiXitKB85fmKlA"
Content-Disposition: inline
X-Reportbug-Version: 13.2.0
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2001223
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 82
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Thu, 5 Nov 2026 12:34:04 +0100
X-Original-Message-ID: <20261105113404.GA1121331@subdivi.de>