[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#878358: marked as done (dnprogs FTCBFS: many reasons)



Your message dated Wed, 30 Nov 2022 17:57:14 +0000
with message-id <[🔎] E1p0RKc-00DrmR-NT@fasolo.debian.org>
and subject line Bug#1021094: Removed package(s) from unstable
has caused the Debian Bug report #878358,
regarding dnprogs FTCBFS: many reasons
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
878358: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=878358
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: dnprogs
Version: 2.65
Tags: patch
User: helmutg@debian.org
Usertags: rebootstrap

dnprogs fails to cross build from source for many reasons. The packaging
runs plain make without passing any cross toolchain, so it ends up using
the build architecture toolchain. Indirecting that through dh_auto_build
fixes that. Then dapfs/Makefile hard codes the build architecture
compiler g++ and that of course fails processing host architecture
object files. During installation, it passes -s to install, which uses
the build architecture strip and thus fails. After fixing all of the
above, dnprogs cross builds successfully. Please consider applying the
attached patch.

Helmut
diff --minimal -Nru dnprogs-2.65/Makefile.common dnprogs-2.65+nmu1/Makefile.common
--- dnprogs-2.65/Makefile.common	2017-07-06 21:42:10.000000000 +0200
+++ dnprogs-2.65+nmu1/Makefile.common	2017-10-13 06:57:30.000000000 +0200
@@ -157,12 +157,6 @@
 DEPLIBDAP=$(TOP)/libdap/libdnet-dap.so
 endif
 
-ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
-STRIPBIN=
-else
-STRIPBIN=-s
-endif
-
 LIBS=$(LIBDAP) $(LIBDNET)
 DEPLIBS=$(DEPLIBDAP) $(DEPLIBDNET)
 
diff --minimal -Nru dnprogs-2.65/dapfs/Makefile dnprogs-2.65+nmu1/dapfs/Makefile
--- dnprogs-2.65/dapfs/Makefile	2011-12-09 15:42:32.000000000 +0100
+++ dnprogs-2.65+nmu1/dapfs/Makefile	2017-10-13 06:57:30.000000000 +0200
@@ -13,7 +13,7 @@
 CFLAGS=-I../include -I ../librms -Wall $(DFLAGS) -fdollars-in-identifiers
 
 $(PROG1): $(PROG1OBJS) $(DEPLIBS)
-	g++ -o$(PROG1) $(LDFLAGS) $(PROG1OBJS) $(LIBDAP) -L../librms -lrms $(LIBDNET) -lfuse -lpthread
+	$(CXX) -o$(PROG1) $(LDFLAGS) $(PROG1OBJS) $(LIBDAP) -L../librms -lrms $(LIBDNET) -lfuse -lpthread
 
 install:
 	install -d $(rootprefix)/sbin
diff --minimal -Nru dnprogs-2.65/debian/changelog dnprogs-2.65+nmu1/debian/changelog
--- dnprogs-2.65/debian/changelog	2017-07-06 21:42:10.000000000 +0200
+++ dnprogs-2.65+nmu1/debian/changelog	2017-10-13 06:57:30.000000000 +0200
@@ -1,3 +1,13 @@
+dnprogs (2.65+nmu1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Let dh_auto_build pass cross compilers to make.
+    + Do not hard code g++ in dapfs/Makefile.
+    + Remove -s from install as dh_strip takes care.
+
+ -- Helmut Grohne <helmut@subdivi.de>  Fri, 13 Oct 2017 06:57:30 +0200
+
 dnprogs (2.65) unstable; urgency=low
 
   * QA upload.
diff --minimal -Nru dnprogs-2.65/debian/rules dnprogs-2.65+nmu1/debian/rules
--- dnprogs-2.65/debian/rules	2014-07-28 12:19:45.000000000 +0200
+++ dnprogs-2.65+nmu1/debian/rules	2017-10-13 06:57:27.000000000 +0200
@@ -4,7 +4,7 @@
 
 build:
 	$(checkdir)
-	make prefix=/usr RELEASE=true BUILDING_DEB=true
+	dh_auto_build -- prefix=/usr RELEASE=true BUILDING_DEB=true
 	touch build
 
 build-arch: build

--- End Message ---
--- Begin Message ---
Version: 2.65+rm

Dear submitter,

as the package dnprogs has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1021094

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)

--- End Message ---

Reply to: