Bug#901535: cb2bib FTCBFS: does not pass cross flags to qmake
Helmut Grohne
helmut at subdivi.de
Thu Jun 14 15:35:02 BST 2018
Source: cb2bib
Version: 1.9.7-2
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap
cb2bib fails to cross build from source, because it does not pass cross
flags to qmake. The easiest way of doing so is letting dh_auto_configure
do it. That makes cb2bib cross buildable. Please consider applying the
attached patch.
Helmut
-------------- next part --------------
diff --minimal -Nru cb2bib-1.9.7/debian/changelog cb2bib-1.9.7/debian/changelog
--- cb2bib-1.9.7/debian/changelog 2018-01-25 17:38:13.000000000 +0100
+++ cb2bib-1.9.7/debian/changelog 2018-06-14 16:26:40.000000000 +0200
@@ -1,3 +1,10 @@
+cb2bib (1.9.7-2.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: Let dh_auto_configure pass cross flags to qmake. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de> Thu, 14 Jun 2018 16:26:40 +0200
+
cb2bib (1.9.7-2) unstable; urgency=low
* Fix broken symbolic man page link. Although the bug report suggested an
diff --minimal -Nru cb2bib-1.9.7/debian/rules cb2bib-1.9.7/debian/rules
--- cb2bib-1.9.7/debian/rules 2017-12-04 14:48:16.000000000 +0100
+++ cb2bib-1.9.7/debian/rules 2018-06-14 16:26:40.000000000 +0200
@@ -2,26 +2,22 @@
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DH_VERBOSE=1
+export QT_SELECT=qt5
BUILDDIR=$(CURDIR)/debian/build
%:
- dh $@ --parallel
+ dh $@ --parallel --buildsystem=qmake --builddirectory=$(BUILDDIR)
override_dh_auto_configure:
mkdir -p $(BUILDDIR) && \
cp -rpf c2bscripts c2btools cb2bib.pro cb2bib.rc data src testPDFImport xpdf $(BUILDDIR) && \
- cd $(BUILDDIR) && \
- qtchooser -run-tool=qmake -qt=5 ../../
+ dh_auto_configure
debian/cb2bib.xpm: src/icons/cb2bib.png
convert src/icons/cb2bib.png -resize 32x32 debian/cb2bib.xpm
override_dh_auto_build: debian/cb2bib.xpm
- $(MAKE) -C $(BUILDDIR)
-
-override_dh_clean:
- dh_clean
- -rm -rf $(BUILDDIR)
-
+ dh_auto_build
+override_dh_auto_install:
More information about the debian-science-maintainers
mailing list