🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
1 messages
1 total messages Started by Helmut Grohne Sat, 07 Nov 2026 10:10
Bug#1153321: nmrpflash FTCBFS: strips with the build architecture strip
#3645
Author: 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--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads