Debian Bug report logs - #817164
iscsitarget: FTBFS when built with dpkg-buildpackage -A (No such file or directory)

version graph

Package: src:iscsitarget; Maintainer for src:iscsitarget is Debian iSCSI Maintainers <pkg-iscsi-maintainers@lists.alioth.debian.org>;

Reported by: Santiago Vila <sanvila@debian.org>

Date: Tue, 8 Mar 2016 16:57:06 UTC

Severity: serious

Tags: patch

Found in version iscsitarget/1.4.20.3+svn502-2

Fixed in version 1.4.20.3+svn502-2+rm

Done: Debian FTP Masters <ftpmaster@ftp-master.debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, sanvila@debian.org, Debian iSCSI Maintainers <pkg-iscsi-maintainers@lists.alioth.debian.org>:
Bug#817164; Package src:iscsitarget. (Tue, 08 Mar 2016 16:57:09 GMT) (full text, mbox, link).


Acknowledgement sent to Santiago Vila <sanvila@debian.org>:
New Bug report received and forwarded. Copy sent to sanvila@debian.org, Debian iSCSI Maintainers <pkg-iscsi-maintainers@lists.alioth.debian.org>. (Tue, 08 Mar 2016 16:57:09 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Santiago Vila <sanvila@debian.org>
To: Debian BTS <submit@bugs.debian.org>
Subject: iscsitarget: FTBFS when built with dpkg-buildpackage -A (No such file or directory)
Date: Tue, 08 Mar 2016 16:52:45 +0000
Package: src:iscsitarget
Version: 1.4.20.3+svn502-2
User: sanvila@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.



Information forwarded to debian-bugs-dist@lists.debian.org, Debian iSCSI Maintainers <pkg-iscsi-maintainers@lists.alioth.debian.org>:
Bug#817164; Package src:iscsitarget. (Tue, 03 May 2016 22:39:08 GMT) (full text, mbox, link).


Acknowledgement sent to Santiago Vila <sanvila@unex.es>:
Extra info received and forwarded to list. Copy sent to Debian iSCSI Maintainers <pkg-iscsi-maintainers@lists.alioth.debian.org>. (Tue, 03 May 2016 22:39:09 GMT) (full text, mbox, link).


Message #10 received at 817164@bugs.debian.org (full text, mbox, reply):

From: Santiago Vila <sanvila@unex.es>
To: 817164@bugs.debian.org
Cc: Debian iSCSI Maintainers <pkg-iscsi-maintainers@lists.alioth.debian.org>
Subject: Re: Bug#817164: iscsitarget: FTBFS when built with dpkg-buildpackage -A (No such file or directory)
Date: Wed, 4 May 2016 00:36:47 +0200 (CEST)
[Message part 1 (text/plain, inline)]
tags 817164 + patch
thanks

> 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

Explanation: We are building arch-independent packages only, so
debian/iscsitarget/[...] does not exist because iscsitarget is
arch-dependent.

In the "dh" case, this would be fixed by creating override_dh_fixperms-arch
target and putting chmod after dh_fixperms.

In the meantime, the attached patch might fix this.

Thanks.
[iscsitarget.patch.txt (text/plain, attachment)]

Added tag(s) patch. Request was from Santiago Vila <sanvila@unex.es> to control@bugs.debian.org. (Tue, 03 May 2016 22:51:03 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian iSCSI Maintainers <pkg-iscsi-maintainers@lists.alioth.debian.org>:
Bug#817164; Package src:iscsitarget. (Wed, 13 Jul 2016 21:30:06 GMT) (full text, mbox, link).


Acknowledgement sent to Santiago Vila <sanvila@unex.es>:
Extra info received and forwarded to list. Copy sent to Debian iSCSI Maintainers <pkg-iscsi-maintainers@lists.alioth.debian.org>. (Wed, 13 Jul 2016 21:30:06 GMT) (full text, mbox, link).


Message #17 received at 817164@bugs.debian.org (full text, mbox, reply):

From: Santiago Vila <sanvila@unex.es>
To: 817164@bugs.debian.org
Cc: Debian iSCSI Maintainers <pkg-iscsi-maintainers@lists.alioth.debian.org>
Subject: Re: Bug#817164: iscsitarget: FTBFS when built with dpkg-buildpackage -A (No such file or directory)
Date: Wed, 13 Jul 2016 23:27:10 +0200 (CEST)
Greetings.

I have the ok from the Release Managers to consider this issue as RC
for stretch. I'm going to wait at least one week before raising
this to "serious".

There is a patch available for this bug. If you need someone to make
an upload, please ask for a sponsor in debian-mentors.

Thanks.



Severity set to 'serious' from 'important' Request was from Santiago Vila <sanvila@debian.org> to control@bugs.debian.org. (Mon, 01 Aug 2016 21:16:04 GMT) (full text, mbox, link).


Reply sent to Debian FTP Masters <ftpmaster@ftp-master.debian.org>:
You have taken responsibility. (Wed, 17 Aug 2016 00:49:13 GMT) (full text, mbox, link).


Notification sent to Santiago Vila <sanvila@debian.org>:
Bug acknowledged by developer. (Wed, 17 Aug 2016 00:49:13 GMT) (full text, mbox, link).


Message #24 received at 817164-done@bugs.debian.org (full text, mbox, reply):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 477107-done@bugs.debian.org,516996-done@bugs.debian.org,524305-done@bugs.debian.org,533230-done@bugs.debian.org,533627-done@bugs.debian.org,602908-done@bugs.debian.org,606798-done@bugs.debian.org,620541-done@bugs.debian.org,632837-done@bugs.debian.org,650211-done@bugs.debian.org,650213-done@bugs.debian.org,661397-done@bugs.debian.org,667545-done@bugs.debian.org,687619-done@bugs.debian.org,705162-done@bugs.debian.org,708157-done@bugs.debian.org,730125-done@bugs.debian.org,742200-done@bugs.debian.org,742201-done@bugs.debian.org,784756-done@bugs.debian.org,786611-done@bugs.debian.org,793382-done@bugs.debian.org,817164-done@bugs.debian.org,
Cc: iscsitarget@packages.debian.org, iscsitarget@packages.qa.debian.org
Subject: Bug#834523: Removed package(s) from unstable
Date: Wed, 17 Aug 2016 00:46:12 +0000
Version: 1.4.20.3+svn502-2+rm

Dear submitter,

as the package iscsitarget has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/834523

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 05 Dec 2016 10:16:07 GMT) (full text, mbox, link).


Bug unarchived. Request was from Don Armstrong <don@debian.org> to control@bugs.debian.org. (Wed, 07 Dec 2016 01:46:41 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 27 Jan 2017 10:28:10 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Mon Oct 23 00:05:10 2017; Machine Name: beach

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.