Source: itop
Version: 0.1-4
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

itop fails to cross build from source, because it uses the build
architecture compiler and strips during build with the build
architecture strip. The host architecture compiler can be supplied by
dh_auto_build to $(MAKE) and stripping should be deferred to dh_strip to
get reasonable -dbgsym packages. After fixing both, itop cross builds
successfully. Please consider applying the attached patch.

Helmut
diff -u itop-0.1/debian/rules itop-0.1/debian/rules
--- itop-0.1/debian/rules
+++ itop-0.1/debian/rules
@@ -17,7 +17,7 @@
 
 build-stamp: configure-stamp 
        dh_testdir
-       $(MAKE)
+       dh_auto_build
        touch $@
 
 clean:
diff -u itop-0.1/debian/changelog itop-0.1/debian/changelog
--- itop-0.1/debian/changelog
+++ itop-0.1/debian/changelog
@@ -1,3 +1,12 @@
+itop (0.1-4.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Let dh_auto_build pass cross compilers to $(MAKE).
+    + Do not strip during build.
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sat, 05 Aug 2017 21:40:49 +0200
+
 itop (0.1-4) unstable; urgency=low
 
   * Removed debian/docs, hello Ubuntu! (Closes: #489956)
diff -u itop-0.1/debian/control itop-0.1/debian/control
--- itop-0.1/debian/control
+++ itop-0.1/debian/control
@@ -2,7 +2,7 @@
 Section: admin
 Priority: extra
 Maintainer: Jose Parrella <bure...@debian.org>
-Build-Depends: debhelper (>= 5)
+Build-Depends: debhelper (>= 7)
 Standards-Version: 3.8.0
 Homepage: http://www.hunz.org/
 
only in patch2:
unchanged:
--- itop-0.1.orig/src/Makefile
+++ itop-0.1/src/Makefile
@@ -4,7 +4,6 @@
 
 itop: itop.c
        $(CC) -o itop itop.c
-       strip itop
 
 clean:
        rm -f itop *.o *~

Reply via email to