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

version graph

Package: src:pcb; Maintainer for src:pcb is Debian Electronics Team <pkg-electronics-devel@lists.alioth.debian.org>;

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

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

Severity: serious

Tags: sid, stretch

Found in version pcb/20140316-3

Fixed in version pcb/20140316-3.1

Done: Dima Kogan <dkogan@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 Electronics Team <pkg-electronics-devel@lists.alioth.debian.org>:
Bug#806092; Package src:pcb. (Tue, 24 Nov 2015 15:34:17 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 Electronics Team <pkg-electronics-devel@lists.alioth.debian.org>. (Tue, 24 Nov 2015 15:34:17 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: pcb: FTBFS when built with dpkg-buildpackage -A (No such file or directory)
Date: Tue, 24 Nov 2015 15:28:03 +0000
Package: src:pcb
Version: 20140316-3
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=autotools_dev
   dh_testroot -i
   dh_prep -i
   dh_installdirs -i
   debian/rules override_dh_auto_install
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_install --builddirectory build_gtk
	make -j1 install DESTDIR=/<<PKGBUILDDIR>>/debian/tmp AM_UPDATE_INFO_DIR=no
make[2]: Entering directory '/<<PKGBUILDDIR>>/build_gtk'
Making install in w32
make[3]: Entering directory '/<<PKGBUILDDIR>>/build_gtk/w32'
make[4]: Entering directory '/<<PKGBUILDDIR>>/build_gtk/w32'
make[4]: Nothing to be done for 'install-exec-am'.
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory '/<<PKGBUILDDIR>>/build_gtk/w32'
make[3]: Leaving directory '/<<PKGBUILDDIR>>/build_gtk/w32'
Making install in intl
make[3]: Entering directory '/<<PKGBUILDDIR>>/build_gtk/intl'
if { test "pcb" = "gettext-runtime" || test "pcb" = "gettext-tools"; } \
   && test 'no' = yes; then \
  /bin/sh ../../mkinstalldirs /<<PKGBUILDDIR>>/debian/tmp/usr/lib/x86_64-linux-gnu /<<PKGBUILDDIR>>/debian/tmp/usr/include; \

[... snipped ...]

# installing common files:
rm -rf /<<PKGBUILDDIR>>/debian/tmp/usr/lib
rm -rf /<<PKGBUILDDIR>>/debian/tmp/usr/include
dh_install -Xusr/bin -Xusr/share/pcb- -Xusr/share/doc -Xexamples -Xtutorial -Xusr/share/info
# Install pcb-gtk binary:
install build_gtk/src/pcb debian/pcb-gtk/usr/bin/pcb-gtk
install: cannot create regular file 'debian/pcb-gtk/usr/bin/pcb-gtk': No such file or directory
debian/rules:33: recipe for target 'override_dh_install' failed
make[1]: *** [override_dh_install] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:11: 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, Debian Electronics Team <pkg-electronics-devel@lists.alioth.debian.org>:
Bug#806092; Package src:pcb. (Thu, 14 Jul 2016 22:13:20 GMT) (full text, mbox, link).


Acknowledgement sent to Santiago Vila <sanvila@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Electronics Team <pkg-electronics-devel@lists.alioth.debian.org>. (Thu, 14 Jul 2016 22:13:20 GMT) (full text, mbox, link).


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

From: Santiago Vila <sanvila@debian.org>
To: 806092@bugs.debian.org
Subject: pcb: FTBFS when built with dpkg-buildpackage -A (No such file or directory)
Date: Thu, 14 Jul 2016 22:09:27 +0000
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.



Information forwarded to debian-bugs-dist@lists.debian.org, Debian Electronics Team <pkg-electronics-devel@lists.alioth.debian.org>:
Bug#806092; Package src:pcb. (Thu, 14 Jul 2016 23:54:06 GMT) (full text, mbox, link).


Acknowledgement sent to Bdale Garbee <bdale@gag.com>:
Extra info received and forwarded to list. Copy sent to Debian Electronics Team <pkg-electronics-devel@lists.alioth.debian.org>. (Thu, 14 Jul 2016 23:54:06 GMT) (full text, mbox, link).


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

From: Bdale Garbee <bdale@gag.com>
To: Santiago Vila <sanvila@debian.org>, 806092@bugs.debian.org, 806092@bugs.debian.org
Subject: Re: [Pkg-electronics-devel] Bug#806092: pcb: FTBFS when built with dpkg-buildpackage -A (No such file or directory)
Date: Thu, 14 Jul 2016 17:43:44 -0600
[Message part 1 (text/plain, inline)]
Santiago Vila <sanvila@debian.org> writes:

> 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".

Go ahead and raise the severity whenever you want.

I'll be happy to take a look at this, but I really don't have time this
week.  I've got huge amounts of airplane seat time in the following two
weeks, though... /o\

Bdale
[signature.asc (application/pgp-signature, inline)]

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:33 GMT) (full text, mbox, link).


Added tag(s) sid and stretch. Request was from Andreas Beckmann <anbe@debian.org> to control@bugs.debian.org. (Tue, 02 Aug 2016 16:24:18 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian Electronics Team <pkg-electronics-devel@lists.alioth.debian.org>:
Bug#806092; Package src:pcb. (Sun, 25 Dec 2016 23:18:02 GMT) (full text, mbox, link).


Acknowledgement sent to Dima Kogan <dkogan@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Electronics Team <pkg-electronics-devel@lists.alioth.debian.org>. (Sun, 25 Dec 2016 23:18:02 GMT) (full text, mbox, link).


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

From: Dima Kogan <dkogan@debian.org>
To: 806092@bugs.debian.org
Subject: proposed fix
Date: Sun, 25 Dec 2016 15:14:32 -0800
[Message part 1 (text/plain, inline)]
I'm attaching two patches to fix this. Please review soon if
possible. If I don't hear back by Dec 26, I'll NMU this. That's the
latest possible day to meet the cutoff for stretch.


[0001-We-can-now-build-arch-dependent-and-arch-independent.patch (text/x-diff, inline)]
From 65bd793529cc6aae5f6f1946396cde03e55a2620 Mon Sep 17 00:00:00 2001
From: Dima Kogan <dkogan@debian.org>
Date: Sun, 25 Dec 2016 14:55:05 -0800
Subject: [PATCH 1/2] We can now build arch-dependent and arch-independent
 packages only

I.e. "dpkg-buildpackage -A" and "dpkg-buildpackage -B" works. Closes: #806092
---
 debian/rules | 32 ++++++++++++++++++++++----------
 1 file changed, 22 insertions(+), 10 deletions(-)

diff --git a/debian/rules b/debian/rules
index 759ed3d..e7df4c7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,26 +10,31 @@ CONFIGURE_OPTS=--disable-rpath --enable-dbus --disable-update-desktop-database -
 %:
 	dh $@ --with=autotools_dev
 
+# I configure build-gtk unconditionally (arch-dependent and arch-independent)
+# because I need a single configure invocation in both cases
 override_dh_auto_configure:
-	dh_auto_configure --builddirectory build_gtk -- $(CONFIGURE_OPTS) --with-gui=gtk
-	dh_auto_configure --builddirectory build_lesstif -- $(CONFIGURE_OPTS) --with-gui=lesstif
+	dh_auto_configure    --builddirectory build_gtk -- $(CONFIGURE_OPTS) --with-gui=gtk
+	dh_auto_configure -a --builddirectory build_lesstif -- $(CONFIGURE_OPTS) --with-gui=lesstif
 
 override_dh_auto_build:
-	dh_auto_build --builddirectory build_gtk
-	dh_auto_build --builddirectory build_lesstif
+	dh_auto_build -a --builddirectory build_gtk
+	dh_auto_build -a --builddirectory build_lesstif
 
 override_dh_auto_test:
-	dh_auto_test --builddirectory build_gtk
-	dh_auto_test --builddirectory build_lesstif
+	dh_auto_test -a --builddirectory build_gtk
+	dh_auto_test -a --builddirectory build_lesstif
 
-override_dh_auto_install:
-	dh_auto_install --builddirectory build_gtk
+override_dh_auto_install-arch:
+	make -C build_gtk install-exec DESTDIR=$$PWD/debian/tmp AM_UPDATE_INFO_DIR=no
+
+override_dh_auto_install-indep:
+	make -C build_gtk install-data DESTDIR=$$PWD/debian/tmp AM_UPDATE_INFO_DIR=no
 
 override_dh_auto_clean:
 	dh_auto_clean --builddirectory build_gtk
 	dh_auto_clean --builddirectory build_lesstif
 
-override_dh_install:
+override_dh_install-arch:
 	# Remove needlessly installed static library and header file before
 	# installing common files:
 	rm -rf $(CURDIR)/debian/tmp/usr/lib
@@ -42,6 +47,13 @@ override_dh_install:
 	# Install pcb-lesstif binary:
 	install build_lesstif/src/pcb debian/$(package)-lesstif/usr/bin/pcb-lesstif
 
+override_dh_install-indep:
+	# Remove needlessly installed static library and header file before
+	# installing common files:
+	rm -rf $(CURDIR)/debian/tmp/usr/lib
+	rm -rf $(CURDIR)/debian/tmp/usr/include
+	dh_install -Xusr/bin -Xusr/share/pcb- -Xusr/share/doc -Xexamples -Xtutorial -Xusr/share/info
+
 	# Set executable bit for pcb tools:
 	[ ! -d debian/$(package)-common ] || chmod a+x debian/$(package)-common/usr/share/pcb/tools/MergePCBPS
 	[ ! -d debian/$(package)-common ] || chmod a+x debian/$(package)-common/usr/share/pcb/tools/Merge_dimPCBPS
@@ -52,7 +64,7 @@ override_dh_install:
 	# Remove empty dirs:
 	[ ! -d debian/$(package)-common ] || find debian/$(package)-common -type d -empty -delete
 
-override_dh_fixperms:
+override_dh_fixperms-indep:
 	dh_fixperms
 	# Fix permissions of a couple of example files:
 	[ ! -d debian/$(package)-common ] || chmod -x debian/$(package)-common/usr/share/doc/$(package)-common/examples/LED.pcb
-- 
2.10.1

[0002-changelog-bump.patch (text/x-diff, inline)]
From 77ee5069c455bd3458a20875c328c9642ded0fdf Mon Sep 17 00:00:00 2001
From: Dima Kogan <dkogan@debian.org>
Date: Sun, 25 Dec 2016 14:56:11 -0800
Subject: [PATCH 2/2] changelog bump

---
 debian/changelog | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 1fa754f..62c65c5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+pcb (20140316-3.1) unstable; urgency=medium
+
+  * Non-maintainer upload
+  * Closes: #806092
+
+ -- Dima Kogan <dkogan@debian.org>  Sun, 25 Dec 2016 14:56:02 -0800
+
 pcb (20140316-3) unstable; urgency=medium
 
   * (Build-)Depend on unversioned tcl/tk
-- 
2.10.1


Reply sent to Dima Kogan <dkogan@debian.org>:
You have taken responsibility. (Mon, 26 Dec 2016 00:36:03 GMT) (full text, mbox, link).


Notification sent to Santiago Vila <sanvila@debian.org>:
Bug acknowledged by developer. (Mon, 26 Dec 2016 00:36:03 GMT) (full text, mbox, link).


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

From: Dima Kogan <dkogan@debian.org>
To: 806092-close@bugs.debian.org
Subject: Bug#806092: fixed in pcb 20140316-3.1
Date: Mon, 26 Dec 2016 00:34:16 +0000
Source: pcb
Source-Version: 20140316-3.1

We believe that the bug you reported is fixed in the latest version of
pcb, 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 806092@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Dima Kogan <dkogan@debian.org> (supplier of updated pcb 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: SHA512

Format: 1.8
Date: Sun, 25 Dec 2016 14:56:02 -0800
Source: pcb
Binary: pcb pcb-common pcb-gtk pcb-lesstif
Architecture: source
Version: 20140316-3.1
Distribution: unstable
Urgency: medium
Maintainer: Debian Electronics Team <pkg-electronics-devel@lists.alioth.debian.org>
Changed-By: Dima Kogan <dkogan@debian.org>
Description:
 pcb        - printed circuit board (pcb) design program - meta-package
 pcb-common - printed circuit board (pcb) design program - common files
 pcb-gtk    - printed circuit board (pcb) design program - GTK+ interface
 pcb-lesstif - printed circuit board (pcb) design program - LessTif interface
Closes: 806092
Changes:
 pcb (20140316-3.1) unstable; urgency=medium
 .
   * Non-maintainer upload
   * debian/rules update to be able to make arch-indep-only builds and
     arch-dependent-only builds. Closes: #806092
Checksums-Sha1:
 dbc1d57681a35510c323f3fedc79a96f9b72d78a 2387 pcb_20140316-3.1.dsc
 c18b8edf7a61cc1458db9aa15188d77ab7623ef3 12512 pcb_20140316-3.1.debian.tar.xz
Checksums-Sha256:
 3151f5d17c1a921acb6552ac255e8deb97726f8a88048a273a705b6ca9d00c88 2387 pcb_20140316-3.1.dsc
 e5dcb143ab3c447d686a9e0c6dd18dd1a84c24d316fdeadec6008d27bdda58a8 12512 pcb_20140316-3.1.debian.tar.xz
Files:
 80c058ff8921ef1577a87190ef5c7db8 2387 electronics optional pcb_20140316-3.1.dsc
 560f6011c0a383e4131b4fb4c4d552d5 12512 electronics optional pcb_20140316-3.1.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIvBAEBCgAZBQJYYF6aEhxka29nYW5AZGViaWFuLm9yZwAKCRDtY7YSWh0VYWxe
D/9TPGz1TQps0d2R7PKkS6t2L2DyTYC4uoqvmvgFZeVpbjouXGVmvxe0Q4YsTaiO
+xkHGnkrKFl/6b00e4D2LbcD3xiD4Yh7a/y6/x9tiPnCrCnswmBx1s04j2RDW1ZG
mACPE8comFlLR0wp2wy7t5WPaxsqWW2KlDRRuzOL3FwECvnkQT0Eti2ZGuf5oaYr
pBtWPqjszPvMd+6QJpYehxhdD3m0AQm2KOtSpnZD649P98vFLvYbKD700S2H7XXU
HwK0bWvUSkadhgkgDOLjYiSuk2VAaiFHAkGbgBuIhth6bDm9f5Jrv/GvkiflFarp
dYaMC2bt3ILFExYbUfaAngyNEoizbTHdwcFV1LVISdqATCKFuDXkv7SvZJowAyNG
9n91aIfvTOo5GU+tW58SlkhGp7vsW+7he0px/N2kEhiM3kCzxxYkiYIc9tMisf57
sSL1qfLfBCWoAE3OcBjkx88XP5jPAHPXsmhsIPcFu3OH4eBxIzHfpR0I6nPHfr3C
L0Lxqr42Dx2kSMcKjagteVWVcnzdGk12isLNG4ztXraTtIUKkAVdML1oy/5hDgD6
rSiwYSAUkWHUvsAOPcf/2J3mXTOA9l3iR5j5chcBxrE6c0h0TWiMVXv1lfE2DbTS
r9yF0QuOM1gw0kRsI98X5XmDbPZSFAFy/68eoVuGSG6liA==
=Fb9A
-----END PGP SIGNATURE-----




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Electronics Team <pkg-electronics-devel@lists.alioth.debian.org>:
Bug#806092; Package src:pcb. (Mon, 26 Dec 2016 18:09:03 GMT) (full text, mbox, link).


Acknowledgement sent to Bdale Garbee <bdale@gag.com>:
Extra info received and forwarded to list. Copy sent to Debian Electronics Team <pkg-electronics-devel@lists.alioth.debian.org>. (Mon, 26 Dec 2016 18:09:03 GMT) (full text, mbox, link).


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

From: Bdale Garbee <bdale@gag.com>
To: Dima Kogan <dkogan@debian.org>, 806092@bugs.debian.org, 806092@bugs.debian.org
Subject: Re: [Pkg-electronics-devel] Bug#806092: proposed fix
Date: Mon, 26 Dec 2016 10:57:19 -0700
[Message part 1 (text/plain, inline)]
Dima Kogan <dkogan@debian.org> writes:

> I'm attaching two patches to fix this. Please review soon if
> possible. If I don't hear back by Dec 26, I'll NMU this. That's the
> latest possible day to meet the cutoff for stretch.

Thank you for your work on this.  I see that an upload has happened.
Please push this patch to the collab-maint git repo master branch, and
tag with "debian/20140316-3.1" so we don't lose track of this work going
forward.  If you don't know how to do this, let me know and I can do it
for you.

Regards,

Bdale
[signature.asc (application/pgp-signature, inline)]

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 02 Feb 2017 07:33:34 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:06:29 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.