Bug#905085: scilab: FTBFS with dpkg-buildpackage -B (arch: any vs. arch: all)

Steve Langasek steve.langasek at canonical.com
Tue Jul 31 07:25:09 BST 2018


Package: scilab
Version: 6.0.1-4
Severity: serious:
Tags: patch
Justification: FTBFS
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu cosmic ubuntu-patch

Dear Julien,

You may have seen that scilab has failed to build in unstable on all arches
except for amd64, because it tries to move files around during the build
that are only present when building the arch-independent packages.

I've uploaded the attached patch to Ubuntu, which fixes the issue there. 
Please consider applying this in Debian as well.

Thanks,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                   https://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
diff -Nru scilab-6.0.1/debian/rules scilab-6.0.1/debian/rules
--- scilab-6.0.1/debian/rules	2018-07-30 02:05:03.000000000 -0700
+++ scilab-6.0.1/debian/rules	2018-07-30 16:12:18.000000000 -0700
@@ -111,21 +111,29 @@
 	# Remove empty directories
 	find debian/tmp/usr/share/scilab -type d -empty -delete
 
+ifneq (,$(filter $(shell dh_listpackages), scilab-doc))
 	mkdir $(CURDIR)/debian/scilab-doc/usr/share/scilab/modules/helptools/jar/
 	EN_US_DOC=$(CURDIR)/debian/tmp/usr/share/scilab/modules/helptools/jar/scilab_en_US_help.jar; \
 	mv $$EN_US_DOC $(CURDIR)/debian/scilab-doc/usr/share/scilab/modules/helptools/jar/
+endif
 
+ifneq (,$(filter $(shell dh_listpackages), scilab-doc-fr))
 	mkdir $(CURDIR)/debian/scilab-doc-fr/usr/share/scilab/modules/helptools/jar/
 	FR_FR_DOC=$(CURDIR)/debian/tmp/usr/share/scilab/modules/helptools/jar/scilab_fr_FR_help.jar; \
 	mv $$FR_FR_DOC $(CURDIR)/debian/scilab-doc-fr/usr/share/scilab/modules/helptools/jar/
+endif
 
+ifneq (,$(filter $(shell dh_listpackages), scilab-doc-pt-br))
 	mkdir $(CURDIR)/debian/scilab-doc-pt-br/usr/share/scilab/modules/helptools/jar/
 	PT_BR_DOC=$(CURDIR)/debian/tmp/usr/share/scilab/modules/helptools/jar/scilab_pt_BR_help.jar; \
 	mv $$PT_BR_DOC $(CURDIR)/debian/scilab-doc-pt-br/usr/share/scilab/modules/helptools/jar/
+endif
 
+ifneq (,$(filter $(shell dh_listpackages), scilab-doc-ja))
 	mkdir -p $(CURDIR)/debian/scilab-doc-ja/usr/share/scilab/modules/helptools/jar/
 	JA_DOC=$(CURDIR)/debian/tmp/usr/share/scilab/modules/helptools/jar/scilab_ja_JP_help.jar; \
 	mv $$JA_DOC $(CURDIR)/debian/scilab-doc-ja/usr/share/scilab/modules/helptools/jar/
+endif
 
 	mkdir -p $(CURDIR)/debian/scilab-minimal-bin/usr/bin
 	mv $(CURDIR)/debian/tmp/usr/bin/scilab-cli-bin $(CURDIR)/debian/scilab-minimal-bin/usr/bin/


More information about the debian-science-maintainers mailing list