[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#804070: texlive-bin: FTBFS when built with dpkg-buildpackage -A



Package: texlive-bin
Version: 2015.20150524.37493-7
Tags: patch

Dear maintainer: I tried building this package with "dpkg-buildpackage -A"
and this is what happened:

[...]
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   debian/rules override_dh_install
make[1]: Entering directory '/<<PKGBUILDDIR>>'
# remove .la files which we do not install, so that dh_install
# can work with --fail-missing
rm -f debian/tmp/usr/lib/*.la debian/tmp/usr/lib/*/*.la
# mv c-auto.h into arch-dependent include path
mkdir -p debian/tmp/usr/include/x86_64-linux-gnu/kpathsea
mv debian/tmp/usr/lib/x86_64-linux-gnu/kpathsea/c-auto.h \
        debian/tmp/usr/include/x86_64-linux-gnu/kpathsea/
rmdir debian/tmp/usr/lib/x86_64-linux-gnu/kpathsea
dh_install --fail-missing --sourcedir=/<<PKGBUILDDIR>>/debian/tmp
# replace xdvi wrapper shell script with perl variant to
# allow for opening of gz etc files
rm debian/texlive-binaries/usr/bin/xdvi
rm: cannot remove 'debian/texlive-binaries/usr/bin/xdvi': No such file or directory
debian/rules:168: recipe for target 'override_dh_install' failed
make[1]: *** [override_dh_install] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:64: recipe for target 'binary-indep' failed
make: *** [binary-indep] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary-indep gave error exit status 2
[...]

Needless to say, this is bad because source-only uploads have their
own "Arch: all" autobuilder, which means this package may not be
uploaded as source-only in its current state.

Moreover, according to sbuild, the (failed) build needed 30 minutes
and 1 GB of disk space. That's certainly suboptimal considering that
the only architecture-independent package generated by this source
package has just three files:

$ dpkg -c luatex_2015.20150524.37493-7_all.deb | grep ^-
-rw-r--r-- root/root     26615 2015-10-14 08:10 ./usr/share/doc/luatex/copyright
-rw-r--r-- root/root       763 2015-05-14 01:14 ./usr/share/doc/luatex/changelog.gz
-rw-r--r-- root/root     18342 2015-10-14 08:10 ./usr/share/doc/luatex/changelog.Debian.gz

This could be avoided by using build-arch and build-indep.

I see, however, that luatex is a dummy package, and a stable release
(jessie) has already happened, so my recommendation is that the luatex
package is just dropped. The attached (untested) patch might work.

Thanks.
--- a/debian/control
+++ b/debian/control
@@ -132,14 +132,3 @@ Depends: ${misc:Depends}, libtexluajit2 (= ${binary:Version})
 Description: Tex Live: LuaJIT, modified for use with LuaJITTeX (development part)
  This package contains the static library and header files for the texluajit
  library.
-
-Package: luatex
-Section: oldlibs
-Priority: extra
-Architecture: all
-Multi-Arch: foreign
-Depends: texlive-binaries (>= 2014)
-Description: TeX Live: transitional dummy package
- This is a transitional package for luatex to ensure proper upgrade
- to texlive-binaries. It can be safely removed after the installation
- is complete.

Reply to: