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

Bug#901200: marked as done (dbview successfully cross builds for the build architecture)



Your message dated Sun, 16 Feb 2020 20:07:46 +0000
with message-id <20200216200746.zlnmhgipft3b2fxr@debian>
and subject line Re: dbview successfully cross builds for the build architecture
has caused the Debian Bug report #901200,
regarding dbview successfully cross builds for the build architecture
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.)


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

dbview cross builds successfully, but the resulting binary packages is
utterly broken, because it contains build architecture binaries. The
attached patch fixes that. Please consider applying it.

Helmut
diff -u dbview-1.0.4/debian/changelog dbview-1.0.4/debian/changelog
--- dbview-1.0.4/debian/changelog
+++ dbview-1.0.4/debian/changelog
@@ -1,3 +1,10 @@
+dbview (1.0.4-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Use host tools. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de>  Sat, 09 Jun 2018 22:08:53 +0200
+
 dbview (1.0.4-1) unstable; urgency=low
 
   * Fixed typo in NMU-Disclaimer, thanks to Petter Reinholdtsen (See:
diff -u dbview-1.0.4/debian/rules dbview-1.0.4/debian/rules
--- dbview-1.0.4/debian/rules
+++ dbview-1.0.4/debian/rules
@@ -24,6 +24,9 @@
 version = $(shell grep "^$(package) " debian/changelog|head -1 |sed 's/.*(\(.*\)\-[^\-]*).*/\1/g')
 revision = $(shell grep "^$(package) " debian/changelog|head -1 |sed 's/.*([^\-]*\-\(.*\)).*/\1/g')
 
+include /usr/share/dpkg/architecture.mk
+-include /usr/share/dpkg/buildtools.mk
+
 installbin = install -o root -g root -m 755
 installdoc = install -o root -g root -m 644
 
@@ -33,13 +36,13 @@
 CFLAGS = -O2 -Wall
 endif
 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
-STRIP = strip
+STRIP = $(DEB_HOST_GNU_TYPE)-strip
 else
 STRIP = echo
 endif
 
 build:
-	$(MAKE) CFLAGS="$(CFLAGS) -fomit-frame-pointer -pipe"
+	$(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) -fomit-frame-pointer -pipe"
 	touch stamp-build
 
 clean: debclean

--- End Message ---
--- Begin Message ---
Version: 1.0.4-2

It seems with dbview/1.0.4-2 this problem does not exist. I cross built
for arm64 and verfied the resultant binary.

$ file usr/bin/dbview 
usr/bin/dbview: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=a9565bf3cb29829461ce4bf6d732b1f6f2b018b7, for GNU/Linux 3.7.0, stripped

--
Regards
Sudip

--- End Message ---

Reply to: