Debian Bug report logs -
#806000
brickos: FTBFS when built with dpkg-buildpackage -A (No such file or directory)
Reported by: Santiago Vila <sanvila@debian.org>
Date: Tue, 24 Nov 2015 15:27:53 UTC
Severity: serious
Tags: patch
Found in version brickos/0.9.0.dfsg-12
Fixed in version brickos/0.9.0.dfsg-12.1
Done: Petter Reinholdtsen <pere@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, sanvila@debian.org, Michael Tautschnig <mt@debian.org>:
Bug#806000; Package src:brickos.
(Tue, 24 Nov 2015 15:27:56 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, Michael Tautschnig <mt@debian.org>.
(Tue, 24 Nov 2015 15:27:56 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: src:brickos
Version: 0.9.0.dfsg-12
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
dh_testroot -i
dh_prep -i
dh_installdirs -i
debian/rules override_dh_auto_install
make[1]: Entering directory '/<<PKGBUILDDIR>>'
# Install the package into debian/brickos.
/usr/bin/make install docs-install inst_prefix=/usr prefix=/<<PKGBUILDDIR>>/debian/brickos/usr mandir=/<<PKGBUILDDIR>>/debian/brickos/usr/share/man
make[2]: Entering directory '/<<PKGBUILDDIR>>'
make[3]: Entering directory '/<<PKGBUILDDIR>>/util'
make[4]: Entering directory '/<<PKGBUILDDIR>>/util/dll-src'
cp -f ../dll /<<PKGBUILDDIR>>/debian/brickos/usr/bin/dll
cp: cannot create regular file '/<<PKGBUILDDIR>>/debian/brickos/usr/bin/dll': No such file or directory
Makefile:57: recipe for target 'install-stamp' failed
make[4]: *** [install-stamp] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/util/dll-src'
Makefile:28: recipe for target 'install' failed
make[3]: *** [install] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/util'
Makefile:34: recipe for target 'install' failed
make[2]: *** [install] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:35: recipe for target 'override_dh_auto_install' failed
make[1]: *** [override_dh_auto_install] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:13: 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, Michael Tautschnig <mt@debian.org>:
Bug#806000; Package src:brickos.
(Thu, 14 Jul 2016 22:12:26 GMT) (full text, mbox, link).
Acknowledgement sent
to Santiago Vila <sanvila@debian.org>:
Extra info received and forwarded to list. Copy sent to Michael Tautschnig <mt@debian.org>.
(Thu, 14 Jul 2016 22:12:27 GMT) (full text, mbox, link).
Message #10 received at 806000@bugs.debian.org (full text, mbox, reply):
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".
If you need help to fix this bug, please tag it as "help".
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:18 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Michael Tautschnig <mt@debian.org>:
Bug#806000; Package src:brickos.
(Fri, 14 Oct 2016 08:00:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Petter Reinholdtsen <pere@hungry.com>:
Extra info received and forwarded to list. Copy sent to Michael Tautschnig <mt@debian.org>.
(Fri, 14 Oct 2016 08:00:02 GMT) (full text, mbox, link).
Message #17 received at 806000@bugs.debian.org (full text, mbox, reply):
Control: tags -1 + patch
I had a look, and while I do not quite understand the build system and why it
fail to create the directory it need to install, I applied this patch and got
the 'dpkg-buildpackage -A' build working:
diff -ur brickos-0.9.0.dfsg/debian/rules brickos-0.9.0.dfsg-pere/debian/rules
--- brickos-0.9.0.dfsg/debian/rules 2015-02-14 18:21:17.000000000 +0000
+++ brickos-0.9.0.dfsg-pere/debian/rules 2016-10-14 07:43:21.284198193 +0000
@@ -33,6 +33,7 @@
override_dh_auto_install:
# Install the package into debian/brickos.
+ mkdir -p $(CURDIR)/debian/brickos/usr/bin
$(MAKE) install docs-install inst_prefix=/usr prefix=$(CURDIR)/debian/brickos/usr mandir=$(CURDIR)/debian/brickos/usr/share/man
# remove docs we shouldn't install
rm -f $(CURDIR)/debian/brickos/usr/share/doc/brickos/html/INSTALL-cygwin*
--
Happy hacking
Petter Reinholdtsen
Added tag(s) patch.
Request was from Petter Reinholdtsen <pere@hungry.com>
to 806000-submit@bugs.debian.org.
(Fri, 14 Oct 2016 08:00:02 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Michael Tautschnig <mt@debian.org>:
Bug#806000; Package src:brickos.
(Fri, 14 Oct 2016 14:57:16 GMT) (full text, mbox, link).
Acknowledgement sent
to Santiago Vila <sanvila@unex.es>:
Extra info received and forwarded to list. Copy sent to Michael Tautschnig <mt@debian.org>.
(Fri, 14 Oct 2016 14:57:16 GMT) (full text, mbox, link).
Message #24 received at 806000@bugs.debian.org (full text, mbox, reply):
On Fri, 14 Oct 2016, Petter Reinholdtsen wrote:
> Control: tags -1 + patch
>
> I had a look, and while I do not quite understand the build system and why it
> fail to create the directory it need to install, I applied this patch and got
> the 'dpkg-buildpackage -A' build working:
>
> diff -ur brickos-0.9.0.dfsg/debian/rules brickos-0.9.0.dfsg-pere/debian/rules
> --- brickos-0.9.0.dfsg/debian/rules 2015-02-14 18:21:17.000000000 +0000
> +++ brickos-0.9.0.dfsg-pere/debian/rules 2016-10-14 07:43:21.284198193 +0000
> @@ -33,6 +33,7 @@
>
> override_dh_auto_install:
> # Install the package into debian/brickos.
> + mkdir -p $(CURDIR)/debian/brickos/usr/bin
> $(MAKE) install docs-install inst_prefix=/usr prefix=$(CURDIR)/debian/brickos/usr mandir=$(CURDIR)/debian/brickos/usr/share/man
> # remove docs we shouldn't install
> rm -f $(CURDIR)/debian/brickos/usr/share/doc/brickos/html/INSTALL-cygwin*
Ok, now that you mention it, the bug is easy to explain:
Since I was doing "dpkg-buildpackage -A", this means we are creating
arch-independent packages only (i.e. Arch:all), so dh_installdirs does
not create debian/brickos because brickos is arch-dependent (i.e. Arch:any).
The proposed patch is probably ok as a workaround, but if this were my
package, I would drop dh_movefiles and would use override_dh_auto_install
to install into debian/tmp and then would use debian/*.install files
to determine which files go to which packages.
(That's probably the current trend, or the "orthodox way").
Thanks a lot.
Reply sent
to Petter Reinholdtsen <pere@debian.org>:
You have taken responsibility.
(Mon, 24 Oct 2016 10:54:08 GMT) (full text, mbox, link).
Notification sent
to Santiago Vila <sanvila@debian.org>:
Bug acknowledged by developer.
(Mon, 24 Oct 2016 10:54:08 GMT) (full text, mbox, link).
Message #29 received at 806000-close@bugs.debian.org (full text, mbox, reply):
Source: brickos
Source-Version: 0.9.0.dfsg-12.1
We believe that the bug you reported is fixed in the latest version of
brickos, 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 806000@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Petter Reinholdtsen <pere@debian.org> (supplier of updated brickos 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, 24 Oct 2016 07:45:48 +0000
Source: brickos
Binary: brickos brickos-doc
Architecture: source
Version: 0.9.0.dfsg-12.1
Distribution: unstable
Urgency: medium
Maintainer: Michael Tautschnig <mt@debian.org>
Changed-By: Petter Reinholdtsen <pere@debian.org>
Description:
brickos - alternative OS for LEGO(r) Mindstorms RCX. Supports devel. in C/C
brickos-doc - documentation for brickOS an Alternative OS for the RCX
Closes: 806000
Changes:
brickos (0.9.0.dfsg-12.1) unstable; urgency=medium
.
* Non-maintainer upload.
* Fixed arch independent build problem (Closes: #806000).
* Updated Standards-Version from 3.9.6 to 3.9.8.
Checksums-Sha1:
1d50316b003cc0427676ca4d627e28013de3cac3 1866 brickos_0.9.0.dfsg-12.1.dsc
3348317d9481cd224ec2e779d6b57757ba8386ce 19668 brickos_0.9.0.dfsg-12.1.debian.tar.xz
Checksums-Sha256:
c0d4ea02089df043c038088071c44991401fabb68a2146f04caecda525b44d1d 1866 brickos_0.9.0.dfsg-12.1.dsc
6937d780d757725d37a094b3b35878f02dbcc59ae42874b326b544f6cdbb86a4 19668 brickos_0.9.0.dfsg-12.1.debian.tar.xz
Files:
ad1b1e3a7e51d07f9ffb0878a6133365 1866 devel extra brickos_0.9.0.dfsg-12.1.dsc
cf2dde95afc0eda3c05dbc25ea126240 19668 devel extra brickos_0.9.0.dfsg-12.1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJYDb2PAAoJEIEoCqCHuvsOH2UP/A7WuxfnPEWOIPxoYPp9JQ+V
TWdI3CBOkiRJq2Ua0F87f6UdAyRWKNDVRZWaAxUpzVDfhC2GfwGHr4Qvj+38eEZR
rgBFpC5Tx9IiC5dtUYzDZODXT/mOtYYjsvExiUXkBPPXQ+RzswV+OcC2Inc8zmX+
6pU6nvuGLn2OXPEu9dfik/SfewI2CL4JK8iFEbvgWqTv0KRS65XSYtsEtxcxPMaZ
9mNRWYdeTW2b7vKYQStW2U/XDLmjm351AT5lFgThtUzYymY9/4VscOs73YcGVxCy
rjTb5VCu4ib24BDx4h2gOXnMX1BfRK3y+M/RIafqst34OjhwmOW03yvI4SKi+NfM
9BT7i2JdoFDVHWcWVGPSr5WoGpIM/ztIvq0J8X5ipCti49noi22N2m6LPxaCOXp0
Dk+P36MueAHMWHZlJs5tvM5VsPdGjEe6hzQZ7C/+eoG5eGwh54pCLua8R/tROd1l
Xf+RxLDuZOl5YViMPmvDFvZw77iNUI8kySqSdJm3on1s6rOSmSH1jELi6fCYbyHz
hf3/K4XssIDtQLxwiA/5e07esAuyzJi5aM7Sz52QgURvV11dNO5qRPsse1LVn+Cm
pnws7celF4LYMH+HIbAIdqxOUjCuUbyUjJIjugP+pVMsj5GrfxtjMhNogrH7wOFX
Xz98gX8lE5vrXQv5tSrb
=PAGz
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Mon, 05 Dec 2016 07:25:44 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:44:05 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 07:26:03 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:
Tue Nov 7 17:52:23 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.