Debian Bug report logs - #806068
linaro-image-tools: FTBFS when built with dpkg-buildpackage -A (No such file or directory)

version graph

Package: src:linaro-image-tools; Maintainer for src:linaro-image-tools is Linaro Packagers <packages@lists.linaro.org>;

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

Date: Tue, 24 Nov 2015 15:32:34 UTC

Severity: serious

Tags: patch

Found in version linaro-image-tools/2014.11-1

Fixed in versions linaro-image-tools/2014.11-1.1, linaro-image-tools/2016.05-1

Done: Fathi Boudra <fabo@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, Linaro Packagers <linaro-pkg@lists.launchpad.net>:
Bug#806068; Package src:linaro-image-tools. (Tue, 24 Nov 2015 15:32:37 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, Linaro Packagers <linaro-pkg@lists.launchpad.net>. (Tue, 24 Nov 2015 15:32:37 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: linaro-image-tools: FTBFS when built with dpkg-buildpackage -A (No such file or directory)
Date: Tue, 24 Nov 2015 15:27:13 +0000
Package: src:linaro-image-tools
Version: 2014.11-1
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:

--------------------------------------------------------------------------------
[...]
 fakeroot debian/rules binary-indep
dh binary-indep --with python2
   dh_testroot -i
   dh_prep -i
   dh_auto_install -i
	python setup.py install --force --root=/<<PKGBUILDDIR>>/debian/tmp --no-compile -O0 --install-layout=deb
ERROR: Python module mock not found
running install
running build
running build_py
running build_scripts
running build_i18n
intltool-update -p -g linaro-image-tools
running build_icons
running build_help
running install_lib
creating /<<PKGBUILDDIR>>/debian/tmp
creating /<<PKGBUILDDIR>>/debian/tmp/usr
creating /<<PKGBUILDDIR>>/debian/tmp/usr/lib
creating /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python2.7
creating /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python2.7/dist-packages
creating /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python2.7/dist-packages/linaro_image_tools

[... snipped ...]

  org.linaro.linaro-image-tools.policy
   debian/rules override_dh_install
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_install
find debian/linaro-image-tools -type f |xargs sed -i 's|#!/usr/bin/env python|#!/usr/bin/python|'
find: `debian/linaro-image-tools': No such file or directory
sed: no input files
debian/rules:11: recipe for target 'override_dh_install' failed
make[1]: *** [override_dh_install] Error 123
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:9: 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.



Information forwarded to debian-bugs-dist@lists.debian.org, Linaro Packagers <linaro-pkg@lists.launchpad.net>:
Bug#806068; Package src:linaro-image-tools. (Fri, 08 Apr 2016 23:09:03 GMT) (full text, mbox, link).


Acknowledgement sent to Santiago Vila <sanvila@unex.es>:
Extra info received and forwarded to list. Copy sent to Linaro Packagers <linaro-pkg@lists.launchpad.net>. (Fri, 08 Apr 2016 23:09:04 GMT) (full text, mbox, link).


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

From: Santiago Vila <sanvila@unex.es>
To: Debian BTS <control@bugs.debian.org>, 806068@bugs.debian.org
Cc: Linaro Packagers <linaro-pkg@lists.launchpad.net>
Subject: Re: Bug#806068: linaro-image-tools: FTBFS when built with dpkg-buildpackage -A (No such file or directory)
Date: Sat, 9 Apr 2016 01:08:10 +0200 (CEST)
[Message part 1 (text/plain, inline)]
tags 806068 + patch
thanks

> dh_install
> find debian/linaro-image-tools -type f |xargs sed -i 's|#!/usr/bin/env python|#!/usr/bin/python|'
> find: `debian/linaro-image-tools': No such file or directory
> sed: no input files
> debian/rules:11: recipe for target 'override_dh_install' failed

Explanation: We are creating arch-independent packages, so
"debian/linaro-image-tools" does not exist because
"linaro-image-tools" is arch-dependent.

The trivial fix is to override dh_install only when creating
arch-dependent packages.

Patch attached.

Thanks.
[linaro-image-tools.patch.txt (text/plain, attachment)]

Added tag(s) patch. Request was from Santiago Vila <sanvila@unex.es> to control@bugs.debian.org. (Fri, 08 Apr 2016 23:09:08 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Linaro Packagers <linaro-pkg@lists.launchpad.net>:
Bug#806068; Package src:linaro-image-tools. (Wed, 13 Jul 2016 21:24:08 GMT) (full text, mbox, link).


Acknowledgement sent to Santiago Vila <sanvila@unex.es>:
Extra info received and forwarded to list. Copy sent to Linaro Packagers <linaro-pkg@lists.launchpad.net>. (Wed, 13 Jul 2016 21:24:08 GMT) (full text, mbox, link).


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

From: Santiago Vila <sanvila@unex.es>
To: 806068@bugs.debian.org
Cc: Linaro Packagers <linaro-pkg@lists.launchpad.net>
Subject: Re: Bug#806068: linaro-image-tools: FTBFS when built with dpkg-buildpackage -A (No such file or directory)
Date: Wed, 13 Jul 2016 23:21:36 +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:15:30 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Linaro Packagers <linaro-pkg@lists.launchpad.net>:
Bug#806068; Package src:linaro-image-tools. (Mon, 26 Sep 2016 19:21:07 GMT) (full text, mbox, link).


Acknowledgement sent to Steve McIntyre <steve@einval.com>:
Extra info received and forwarded to list. Copy sent to Linaro Packagers <linaro-pkg@lists.launchpad.net>. (Mon, 26 Sep 2016 19:21:07 GMT) (full text, mbox, link).


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

From: Steve McIntyre <steve@einval.com>
To: 806068@bugs.debian.org
Subject: linaro-image-tools: diff for NMU version 2014.11-1.1
Date: Mon, 26 Sep 2016 20:17:08 +0100
[Message part 1 (text/plain, inline)]
Control: tags 806068 + pending

Dear maintainer,

I've prepared an NMU for linaro-image-tools (versioned as 2014.11-1.1) and
uploaded it. It's a trivial change, just using the patch from
Santiago. Here's the NMU diff for completeness.

Cheers,

Steve



[linaro-image-tools-2014.11-1.1-nmu.diff (text/x-diff, attachment)]
[signature.asc (application/pgp-signature, inline)]

Added tag(s) pending. Request was from Steve McIntyre <steve@einval.com> to 806068-submit@bugs.debian.org. (Mon, 26 Sep 2016 19:21:07 GMT) (full text, mbox, link).


Reply sent to Steve McIntyre <93sam@debian.org>:
You have taken responsibility. (Mon, 26 Sep 2016 19:39:07 GMT) (full text, mbox, link).


Notification sent to Santiago Vila <sanvila@debian.org>:
Bug acknowledged by developer. (Mon, 26 Sep 2016 19:39:07 GMT) (full text, mbox, link).


Message #31 received at 806068-close@bugs.debian.org (full text, mbox, reply):

From: Steve McIntyre <93sam@debian.org>
To: 806068-close@bugs.debian.org
Subject: Bug#806068: fixed in linaro-image-tools 2014.11-1.1
Date: Mon, 26 Sep 2016 19:36:44 +0000
Source: linaro-image-tools
Source-Version: 2014.11-1.1

We believe that the bug you reported is fixed in the latest version of
linaro-image-tools, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 806068@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Steve McIntyre <93sam@debian.org> (supplier of updated linaro-image-tools package)

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


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Mon, 26 Sep 2016 12:08:40 -0700
Source: linaro-image-tools
Binary: linaro-image-tools python-linaro-image-tools
Architecture: source amd64 all
Version: 2014.11-1.1
Distribution: unstable
Urgency: medium
Maintainer: Linaro Packagers <linaro-pkg@lists.launchpad.net>
Changed-By: Steve McIntyre <93sam@debian.org>
Description:
 linaro-image-tools - collection of tools to work with Linaro images
 python-linaro-image-tools - Python library for the manipulation of Linaro bootable media
Closes: 806068
Changes:
 linaro-image-tools (2014.11-1.1) unstable; urgency=medium
 .
   * NMU
   * Fix build for dpkg-buildpackage -A. Thanks to Santiago Vila for the
     patch. Closes: #806068
Checksums-Sha1:
 2ba15b9bab261c25ad116d9ad5cc8d9c4a79d2e2 2239 linaro-image-tools_2014.11-1.1.dsc
 80fa9900783a60f26b62907371e929752ab337c7 3304 linaro-image-tools_2014.11-1.1.debian.tar.xz
 5703659226262232ce693101bb585a2e7fa3aef1 66008 linaro-image-tools_2014.11-1.1_amd64.deb
 bc671267f3af565e097c7518084cda70fe4660a5 166824 python-linaro-image-tools_2014.11-1.1_all.deb
Checksums-Sha256:
 ab03b043c0f6d06152dc4b70d2221817409a0a4a1a00244d4dbba5ac1d1949e9 2239 linaro-image-tools_2014.11-1.1.dsc
 f4e35cdf57dee879b042ca8e44902e55f70ff9d99f8e21258aae6c11b7340928 3304 linaro-image-tools_2014.11-1.1.debian.tar.xz
 68f5061d26747d8454e50cb3a8086718d3644c89862a57df39b06c18e83ba382 66008 linaro-image-tools_2014.11-1.1_amd64.deb
 7af66ef83e10664b444439b72f8f158b6e0b19078e85331af8459bb49529a25a 166824 python-linaro-image-tools_2014.11-1.1_all.deb
Files:
 6eef2f336c41161ada6cd99ea21503b3 2239 devel optional linaro-image-tools_2014.11-1.1.dsc
 be2134870c3e77416f7888f4baad9499 3304 devel optional linaro-image-tools_2014.11-1.1.debian.tar.xz
 31bac38943800b6d03a1fb3adf000e7c 66008 devel optional linaro-image-tools_2014.11-1.1_amd64.deb
 1617c5b6b2fec8783929b0613dee5c06 166824 python optional python-linaro-image-tools_2014.11-1.1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJX6XNkAAoJEFh5eVc0QmhOsNQP/3Rb2AlgDDfMUB0MQdHVNtaR
ztMTB1h0E+BNHM5SbqyaJSuuiYhOdpAYMtArNWVMG3Y+E4GwQahJb6CXLBto6+gF
gqZU2WSho23ujd4FGz6rTTJ76lOoj68dqPjmSCW6SjPA7sDWvbUEknAWXaQtN33S
ti9X6x04EA9OYzTmvq6PJYD3fTcA0vanliHWmoxB6jwOKC8cwOxKEDjnqb9dU1wu
FmeZhVDpmABmWn0/Kw6SejXNbDqlpdRWaSZDc2NcGF+DPux5y7isVdvkyovT37zU
9smWRlscAurk/RAhlVwcXUbe7bfgJ6ov8qSpffX5MQNabPDXAR1zFkjZDi9NFCZa
4bU+pw7fmno2Eq+wijhz3Fou/7XOA0t1Z2ckwiflc5kX4sn4BMKWfkOKI/zfF2Oj
AC5nHUm6iQS31ov802exrUUqbwxicql21hbClGAbrOn9ENh1z0PsgT6dAep+8gJq
2ZTtq4cnxC3FAb8KkGFy/WWoApQiXUCFw1A6o1X7mSR2lLU8y5BuWVy6CShGUImC
xf7vNVQ3J6QCmFNylz88svxfTQ6YqtJsoNTkMWMteZoHGx5MwvLeGMnjGsgyqe9C
caie9gsYpsxyH60rQHqSXSbD52po26ydXEsmhEIAdof6P8bD4RB+L1OwYGDrqRR7
WUE44pCmKiHe9eTkpfsI
=ZL00
-----END PGP SIGNATURE-----




Reply sent to Fathi Boudra <fabo@debian.org>:
You have taken responsibility. (Tue, 27 Sep 2016 23:51:11 GMT) (full text, mbox, link).


Notification sent to Santiago Vila <sanvila@debian.org>:
Bug acknowledged by developer. (Tue, 27 Sep 2016 23:51:11 GMT) (full text, mbox, link).


Message #36 received at 806068-close@bugs.debian.org (full text, mbox, reply):

From: Fathi Boudra <fabo@debian.org>
To: 806068-close@bugs.debian.org
Subject: Bug#806068: fixed in linaro-image-tools 2016.05-1
Date: Tue, 27 Sep 2016 23:50:15 +0000
Source: linaro-image-tools
Source-Version: 2016.05-1

We believe that the bug you reported is fixed in the latest version of
linaro-image-tools, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 806068@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Fathi Boudra <fabo@debian.org> (supplier of updated linaro-image-tools package)

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


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 28 Sep 2016 00:43:55 +0300
Source: linaro-image-tools
Binary: linaro-image-tools python-linaro-image-tools
Architecture: source amd64 all
Version: 2016.05-1
Distribution: unstable
Urgency: medium
Maintainer: Linaro Packagers <packages@lists.linaro.org>
Changed-By: Fathi Boudra <fabo@debian.org>
Description:
 linaro-image-tools - collection of tools to work with Linaro images
 python-linaro-image-tools - Python library for the manipulation of Linaro bootable media
Closes: 740836 747300 806068 820454
Changes:
 linaro-image-tools (2016.05-1) unstable; urgency=medium
 .
   * New upstream release. (Closes: #747300, #806068, #820454)
   * debian/control:
     - recommends udisks2 instead of udisks1 (Closes: #740836)
     - update upstream Vcs
     - drop command-not-found build dependency
     - add dh-python build dependency
   * debian/rules: fix build for dpkg-buildpackage -A.
     Thanks to Santiago (Closes: #806068)
Checksums-Sha1:
 7a1ccf83a2871a210cab9fb7da34ef007b5226bb 2300 linaro-image-tools_2016.05-1.dsc
 bea793a47ed5fad108b460eedf0de0a8d0fa05b7 183455 linaro-image-tools_2016.05.orig.tar.gz
 6aba7cdffa6ea56d2fb26690b94b39dd67f8babd 3356 linaro-image-tools_2016.05-1.debian.tar.xz
 5a04a67e5cc1d1e23b206143da9f24303d0dc557 15464 linaro-image-tools_2016.05-1_amd64.deb
 8686d7619b43d7c2860ec71984bcec62d4a7c557 116040 python-linaro-image-tools_2016.05-1_all.deb
Checksums-Sha256:
 d654d324f007f44269bbbf8bbfc3f97894664a22084bca6fc57ad3ec2509b158 2300 linaro-image-tools_2016.05-1.dsc
 81a0ca643c64ff951f251403c7cac45016ec255c8eef87399d0340675c2c17dc 183455 linaro-image-tools_2016.05.orig.tar.gz
 6837821096558f63586ed6a3d5acb387360c95af7e91ddc1f410f85cbebad330 3356 linaro-image-tools_2016.05-1.debian.tar.xz
 c4fdfe51ea21557c4f31116ed2daaa146e5e4160c9c6668ed502d237839f3436 15464 linaro-image-tools_2016.05-1_amd64.deb
 c8972a68d9d9276141ac5c1c280e5a6758772cfcc2e842574500d4d4173c2c27 116040 python-linaro-image-tools_2016.05-1_all.deb
Files:
 348071e0ff1b853130d1ef9abdbcd535 2300 devel optional linaro-image-tools_2016.05-1.dsc
 363690af55e2e1018364f6c09e2a363d 183455 devel optional linaro-image-tools_2016.05.orig.tar.gz
 5ac4d1a66687d812b464e9f7752781de 3356 devel optional linaro-image-tools_2016.05-1.debian.tar.xz
 445dcd760e8b688c85c32589bda3ce65 15464 devel optional linaro-image-tools_2016.05-1_amd64.deb
 f75336e136899e29b89d3cc4fdfc37fb 116040 python optional python-linaro-image-tools_2016.05-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJX6wBKAAoJEPuGMlGob55HwDYQAMJCAC5JguH0UoV984BNtyKH
mP98e/cQ4dsX9NXbfi0CFOKYQOir6w/f2OLI2fTrXirU/1FUTjGy0xjCWmu+wjA2
ocweUABJ2IKn01CEdfMEtDZwW5mmj/PvRG6IYoF/on9cf5+m+nRk+bb0t2AhqnPf
vA02tqbJpA26Jm48ZJxiI72Wb66uXEcXjtaZ4veCGAUkig1NzVTim1FnOxa01lar
zP+SM8e0R2gFohadoVSQUwATjGeOlquiboZgivuj+1M1lQ0ECbthIBYZonkQZ8zW
mAWqUyCr517lvAw1FzxrhpdqHsdG2Jj8q0qBqGuWOJ/aJTmTn+Z48BiMllgpVCa1
ohljnxgKYxkvBrj9VWm7+3D15FuOmCn9kDOmnoGLTfBZ+MPvSDL8LUjmmesmczoR
zFquL4T+BsuoZmFuqlrog4PyalNEgiVWyxU8nPPQEQKuU6qYIRIoxUUfxaAydCv0
lucZk+Cx/VS13Aj2cRA2vOyTFaKp3EgjDgD4oi6w7En2yx4HFsvyLNUHQEywaJQt
QuyTZIFxsZnUxN/URjWvOreG51d5ULYouAHqRhmwrcgs7nkLBzS/e19GFRzYN0yj
nbDv5CePERCIsek5ZCvAiHmyJB7PCjzAzzsJHzC/KgZ42CotAlEAkZSnZMtEXR3o
d+/gS9bQh3P1573ox/UM
=ZqKy
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Wed, 26 Oct 2016 07:38:50 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:07:31 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.