Bug#806108: singular: FTBFS when built with dpkg-buildpackage -A (No such file or directory)

Santiago Vila sanvila at debian.org
Tue Nov 24 15:28:37 UTC 2015


Package: src:singular
Version: 4.0.2-p2+ds-3
User: sanvila at debian.org
Usertags: binary-indep
Severity: important

Dear maintainer:

I tried to build this package with "dpkg-buildpackage -A"
(i.e. only architecture-independent packages), and it failed:

--------------------------------------------------------------------------------
[...]
 fakeroot debian/rules binary-indep
dh binary-indep --with autoreconf --parallel
   dh_testroot -i -O--parallel
   dh_prep -i -O--parallel
   debian/rules override_dh_auto_install-indep
make[1]: Entering directory '/<<BUILDDIR>>/singular-4.0.2-p2+ds'
make -C dox install-html TOPSRCDIR=/<<BUILDDIR>>/singular-4.0.2-p2+ds DESTDIR=/<<BUILDDIR>>/singular-4.0.2-p2+ds/debian/tmp
make[2]: Entering directory '/<<BUILDDIR>>/singular-4.0.2-p2+ds/dox'
/bin/mkdir -p /<<BUILDDIR>>/singular-4.0.2-p2+ds/debian/tmp/usr/share/doc/singular/html
cp -rp -t /<<BUILDDIR>>/singular-4.0.2-p2+ds/debian/tmp/usr/share/doc/singular/html html/search
cp -p -t /<<BUILDDIR>>/singular-4.0.2-p2+ds/debian/tmp/usr/share/doc/singular/html html/*.html html/*.png
cp -p -t /<<BUILDDIR>>/singular-4.0.2-p2+ds/debian/tmp/usr/share/doc/singular/html html/doxygen.css html/stylesheet.css html/tabs.css
cp -p -t /<<BUILDDIR>>/singular-4.0.2-p2+ds/debian/tmp/usr/share/doc/singular/html html/dynsections.js html/svgpan.js
rdfind -outputname /dev/null -removeidentinode false -makesymlinks true /<<BUILDDIR>>/singular-4.0.2-p2+ds/debian/tmp/usr/share/doc/singular/html
Now scanning "/<<BUILDDIR>>/singular-4.0.2-p2+ds/debian/tmp/usr/share/doc/singular/html", found 2756 files.
Now have 2756 files in total.
Now removing files with zero size from list...removed 0 files
Total size is 241745107 bytes or 231 Mib
Now sorting on size:removed 2374 files due to unique sizes from list.382 files left.
Now eliminating candidates based on first bytes:removed 50 files from list.332 files left.
Now eliminating candidates based on last bytes:removed 0 files from list.332 files left.
Now eliminating candidates based on md5 checksum:removed 330 files from list.2 files left.
It seems like you have 2 files that are not unique
Totally, 21 kib can be reduced.
Now making results file /dev/null
Now making symbolic links. creating 
Making 1 links.
symlinks -r -c -s -v /<<BUILDDIR>>/singular-4.0.2-p2+ds/debian/tmp/usr/share/doc/singular/html
absolute: /<<BUILDDIR>>/singular-4.0.2-p2+ds/debian/tmp/usr/share/doc/singular/html/search/functions_1b.js -> /<<BUILDDIR>>/singular-4.0.2-p2+ds/debian/tmp/usr/share/doc/singular/html/search/all_1b.js
changed:  /<<BUILDDIR>>/singular-4.0.2-p2+ds/debian/tmp/usr/share/doc/singular/html/search/functions_1b.js -> all_1b.js
rdfind -outputname /dev/null -removeidentinode false -makesymlinks true /<<BUILDDIR>>/singular-4.0.2-p2+ds/debian/tmp/usr/share/doc/singular/html/search
Now scanning "/<<BUILDDIR>>/singular-4.0.2-p2+ds/debian/tmp/usr/share/doc/singular/html/search", found 518 files.
Now have 518 files in total.
Now removing files with zero size from list...removed 0 files
Total size is 4849569 bytes or 5 Mib
Now sorting on size:removed 233 files due to unique sizes from list.285 files left.
Now eliminating candidates based on first bytes:removed 30 files from list.255 files left.
Now eliminating candidates based on last bytes:removed 0 files from list.255 files left.
Now eliminating candidates based on md5 checksum:removed 255 files from list.0 files left.
It seems like you have 0 files that are not unique
Totally, 0 b can be reduced.
Now making results file /dev/null
Now making symbolic links. creating 
Making 0 links.
symlinks -r -c -s -v /<<BUILDDIR>>/singular-4.0.2-p2+ds/debian/tmp/usr/share/doc/singular/html/search
relative: /<<BUILDDIR>>/singular-4.0.2-p2+ds/debian/tmp/usr/share/doc/singular/html/search/functions_1b.js -> all_1b.js
make[2]: Leaving directory '/<<BUILDDIR>>/singular-4.0.2-p2+ds/dox'
make[1]: Leaving directory '/<<BUILDDIR>>/singular-4.0.2-p2+ds'
   dh_install -i -O--parallel
cp: cannot stat 'debian/tmp/usr/include/singular/': No such file or directory
dh_install: cp --reflink=auto -a debian/tmp/usr/include/singular/ debian/libsingular4-dev-common//usr/include/ returned exit code 1
debian/rules:12: recipe for target 'binary-indep' failed
make: *** [binary-indep] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary-indep gave error exit status 2
--------------------------------------------------------------------------------

Sorry not to have a fix, as I am reporting many bugs similar to
this one, but I can give some general hints:

* If all the arch-independent packages are dummy transitional packages
released with jessie, the easy fix is to drop them now.
 
* If not, debian/rules should be modified so that the binary-indep
target works in all cases, even when binary-arch is not used (this is
what the "Architecture: all" autobuilder does). For that:
    
* If you are using debhelper, you might want to use options -a and -i
for dh_* commands so that they do not act on packages they do not
have to act.

* Also, if you are using dh, the (independently) optional targets
override_dh_foo-arch and override_dh_foo-indep (for several values
of "foo") may be useful to write a debian/rules which behaves exactly
as desired.


After checking that both "dpkg-buildpackage -A" and "dpkg-buildpackage -B"
work properly, this package will be suitable to be uploaded in
source-only form if you wish (you might want to try it).

Thanks.



More information about the debian-science-maintainers mailing list