[Pkg-iscsi-maintainers] Bug#817164: iscsitarget: FTBFS when built with dpkg-buildpackage -A (No such file or directory)

Santiago Vila sanvila at debian.org
Tue Mar 8 16:52:45 UTC 2016


Package: src:iscsitarget
Version: 1.4.20.3+svn502-2
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:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
/bin/sh: 1: [: -le: unexpected operator
/bin/sh: 1: [: -le: unexpected operator
/bin/sh: 1: [: -le: unexpected operator
/bin/sh: 1: [: -le: unexpected operator
/bin/sh: 1: [: -le: unexpected operator
/bin/sh: 1: [: -le: unexpected operator
/bin/sh: 1: [: -le: unexpected operator
/bin/sh: 1: [: -le: unexpected operator
/bin/sh: 1: [: -le: unexpected operator
/bin/sh: 1: [: -le: unexpected operator
/bin/sh: 1: [: -le: unexpected operator

[... snipped ...]

# create toplevel module Makefile
echo "obj-m = kernel/" > debian/iscsitarget-dkms/usr/src/iscsitarget-1.4.20.3+svn502/Makefile
# Prepare dkms.conf from the dkms.conf.in template
sed "s/__VERSION__/1.4.20.3+svn502/g" debian/dkms.conf.in > debian/dkms.conf
grep ^PATCH dkms.conf >> debian/dkms.conf
dh_dkms -piscsitarget-dkms -- debian/dkms.conf
dh_install -i
/usr/bin/make -f debian/rules DH_OPTIONS=-i binary-common
make[1]: Entering directory '/<<BUILDDIR>>/iscsitarget-1.4.20.3+svn502'
/bin/sh: 1: [: -le: unexpected operator
/bin/sh: 1: [: -le: unexpected operator
/bin/sh: 1: [: -le: unexpected operator
/bin/sh: 1: [: -le: unexpected operator
/bin/sh: 1: [: -le: unexpected operator
/bin/sh: 1: [: -le: unexpected operator
/bin/sh: 1: [: -le: unexpected operator
/bin/sh: 1: [: -le: unexpected operator
/bin/sh: 1: [: -le: unexpected operator
/bin/sh: 1: [: -le: unexpected operator
/bin/sh: 1: [: -le: unexpected operator
/bin/sh: 1: [: -le: unexpected operator
/bin/sh: 1: [: -le: unexpected operator
/bin/sh: 1: [: -lt: unexpected operator
dh_testdir
dh_testroot
dh_installchangelogs ChangeLog
dh_installdocs
dh_installinit
dh_installman
dh_link
dh_strip
dh_compress 
dh_fixperms
chmod 600 /<<BUILDDIR>>/iscsitarget-1.4.20.3+svn502/debian/iscsitarget/etc/iet/ietd.conf
chmod: cannot access '/<<BUILDDIR>>/iscsitarget-1.4.20.3+svn502/debian/iscsitarget/etc/iet/ietd.conf': No such file or directory
debian/rules:259: recipe for target 'binary-common' failed
make[1]: *** [binary-common] Error 1
make[1]: Leaving directory '/<<BUILDDIR>>/iscsitarget-1.4.20.3+svn502'
debian/rules:278: 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. The common hints are:

* If the only architecture-independent packages are dummy transitional
ones and they were released with jessie, the easy fix is to drop them
now.

* When using "dh", it is allowed to use (independently)
optional targets override_dh_foo-arch and override_dh_foo-indep
(for several values of "foo").


Once that both "dpkg-buildpackage -A" and "dpkg-buildpackage -B" work
properly, the package would be suitable to be uploaded in source-only
form if you wish.

Thanks.



More information about the Pkg-iscsi-maintainers mailing list