Source: sketch Version: 1:0.3.7-4 Tags: patch User: helm...@debian.org Usertags: rebootstrap
sketch fails to cross build from source, because it uses the build architecture toolchain (as a GNU make default). Letting dh_auto_build call make fixes that, because dh_auto_build knows how to pass cross compilers. Then sketch executes the just-built sketch binary for generating the documentation. That fails with -ENOEXEC of course. Then I figured that building the documentation is irrelevant to cross building, because it resides in an arch:all package. Thus skipping the documentation for arch-only builds makes sketch cross build successfully. The attached patch uses make conditional rather than override_dh_auto_build-indep, because it needs to build sketch before building the documentation. Please consider applying it. Helmut
diff --minimal -Nru sketch-0.3.7/debian/changelog sketch-0.3.7/debian/changelog --- sketch-0.3.7/debian/changelog 2017-07-03 21:30:47.000000000 +0200 +++ sketch-0.3.7/debian/changelog 2017-08-07 17:27:31.000000000 +0200 @@ -1,3 +1,12 @@ +sketch (1:0.3.7-4.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Let dh_auto_build pass cross compilers. + + Do not build docs in an arch-only build. + + -- Helmut Grohne <hel...@subdivi.de> Mon, 07 Aug 2017 17:27:31 +0200 + sketch (1:0.3.7-4) unstable; urgency=medium * Bug fix: "pgf is no longer provided by texlive-pictures", thanks to diff --minimal -Nru sketch-0.3.7/debian/control sketch-0.3.7/debian/control --- sketch-0.3.7/debian/control 2017-07-03 21:30:47.000000000 +0200 +++ sketch-0.3.7/debian/control 2017-08-07 17:27:31.000000000 +0200 @@ -3,10 +3,11 @@ Priority: optional Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org> Uploaders: David Bremner <brem...@debian.org> -Build-Depends: debhelper (>= 7.0.50), xsltproc, docbook-xsl, docbook-xml, - quilt (>= 0.46-7), texinfo, texlive-latex-base, texlive-base-bin, +Build-Depends: debhelper (>= 7.0.50), quilt (>= 0.46-7), bison, flex +Build-Depends-Indep: xsltproc, docbook-xsl, docbook-xml, + texinfo, texlive-latex-base, texlive-base-bin, texlive-pstricks (>=2009-6), texlive-latex-recommended, ghostscript, - epstool, bison, flex, texlive-fonts-recommended + epstool, texlive-fonts-recommended Homepage: http://www.frontiernet.net/~eugene.ressler Standards-Version: 3.9.3 Vcs-Git: git://git.debian.org/git/debian-science/packages/sketch diff --minimal -Nru sketch-0.3.7/debian/rules sketch-0.3.7/debian/rules --- sketch-0.3.7/debian/rules 2017-07-03 21:30:47.000000000 +0200 +++ sketch-0.3.7/debian/rules 2017-08-07 17:27:31.000000000 +0200 @@ -24,9 +24,11 @@ perl makever.pl override_dh_auto_build: - $(MAKE) -f makefile + dh_auto_build +ifneq ($(filter sketch-doc,$(shell dh_listpackages)),) cd Doc && perl make.pl linux examples $(XP) -o sketch.1 $(DB2MAN) debian/sketch-man.xml +endif override_dh_auto_clean: $(MAKE) clean
-- debian-science-maintainers mailing list debian-science-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers