Source: cdrkit
Version: 9:1.1.11-3
Tags: patch
User: [email protected]
Usertags: rebootstrap

cdrkit fails to cross build from source, because it runs cmake for the
build architecture. While building the cmake project, it hides compiler
invocations, which makes diagnosing issues unnecessarily hard. By using
dh_auto_configure/dh_auto_build, the build logs show that a cross
compiler is being used. Unfortunately, cdrkit uses a try_run check and
thus still fails. Yet, I think that the attached patch is a worthwhile
improvement to the packaging as it makes the try_run failure visible.
Please consider applying it and close this bug when doing so or
modernizing the package.

Helmut
diff -u cdrkit-1.1.11/debian/changelog cdrkit-1.1.11/debian/changelog
--- cdrkit-1.1.11/debian/changelog
+++ cdrkit-1.1.11/debian/changelog
@@ -1,3 +1,10 @@
+cdrkit (9:1.1.11-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Let dh_auto_configure run cmake. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Tue, 26 Jun 2018 06:26:10 +0200
+
 cdrkit (9:1.1.11-3) unstable; urgency=medium
 
   * Fix FTBFS on kfreebsd-*. Closes: #754642. kfreebsd-* now includes a
diff -u cdrkit-1.1.11/debian/control cdrkit-1.1.11/debian/control
--- cdrkit-1.1.11/debian/control
+++ cdrkit-1.1.11/debian/control
@@ -3,7 +3,7 @@
 Section: otherosfs
 Maintainer: Joerg Jaspert <[email protected]>
 Uploaders: Eduard Bloch <[email protected]>, Steve McIntyre <[email protected]>
-Build-Depends: debhelper (>=5.0.37.3), libbz2-dev, zlib1g-dev, autotools-dev, 
cmake (>= 2.4.2), libcap2-dev [linux-any], libcam-dev [kfreebsd-any], 
libmagic-dev
+Build-Depends: debhelper (>=7), libbz2-dev, zlib1g-dev, autotools-dev, cmake 
(>= 2.4.2), libcap2-dev [linux-any], libcam-dev [kfreebsd-any], libmagic-dev
 Standards-Version: 3.9.2
 
 Package: wodim
diff -u cdrkit-1.1.11/debian/rules cdrkit-1.1.11/debian/rules
--- cdrkit-1.1.11/debian/rules
+++ cdrkit-1.1.11/debian/rules
@@ -32,7 +32,8 @@
        @echo "--- Compiling"
        dh_testdir
        echo "#define ZISOFS_TOOLS_VERSION \"$(ziso_VERSION)\"" > 
3rd-party/zisofs_tools/version.h
-       make CFLAGS='$(CFLAGS)'
+       dh_auto_configure --builddirectory=build
+       dh_auto_build --builddirectory=build
        cd 3rd-party/zisofs_tools && CFLAGS='$(CFLAGS)' ./configure && $(MAKE)
        touch build/build-debstamp
 

Reply via email to