Debian Bug report logs -
#806059
libmtp: 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:31:57 UTC
Severity: serious
Tags: patch
Found in version libmtp/1.1.10-2
Fixed in version libmtp/1.1.12-1
Done: Alessio Treglia <alessio@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, Alessio Treglia <alessio@debian.org>:
Bug#806059; Package src:libmtp.
(Tue, 24 Nov 2015 15:32:00 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, Alessio Treglia <alessio@debian.org>.
(Tue, 24 Nov 2015 15:32:00 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: src:libmtp
Version: 1.1.10-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:
--------------------------------------------------------------------------------
[...]
fakeroot debian/rules binary-indep
dh binary-indep --with autoreconf
dh_testroot -i
dh_prep -i
dh_auto_install -i
make -j1 install DESTDIR=/<<PKGBUILDDIR>>/debian/tmp AM_UPDATE_INFO_DIR=no
make[1]: Entering directory '/<<PKGBUILDDIR>>'
Making install in src
make[2]: Entering directory '/<<PKGBUILDDIR>>/src'
make[3]: Entering directory '/<<PKGBUILDDIR>>/src'
/bin/mkdir -p '/<<PKGBUILDDIR>>/debian/tmp/usr/lib/x86_64-linux-gnu'
/bin/bash ../libtool --mode=install /usr/bin/install -c libmtp.la '/<<PKGBUILDDIR>>/debian/tmp/usr/lib/x86_64-linux-gnu'
libtool: install: /usr/bin/install -c .libs/libmtp.so.9.3.0 /<<PKGBUILDDIR>>/debian/tmp/usr/lib/x86_64-linux-gnu/libmtp.so.9.3.0
libtool: install: (cd /<<PKGBUILDDIR>>/debian/tmp/usr/lib/x86_64-linux-gnu && { ln -s -f libmtp.so.9.3.0 libmtp.so.9 || { rm -f libmtp.so.9 && ln -s libmtp.so.9.3.0 libmtp.so.9; }; })
libtool: install: (cd /<<PKGBUILDDIR>>/debian/tmp/usr/lib/x86_64-linux-gnu && { ln -s -f libmtp.so.9.3.0 libmtp.so || { rm -f libmtp.so && ln -s libmtp.so.9.3.0 libmtp.so; }; })
libtool: install: /usr/bin/install -c .libs/libmtp.lai /<<PKGBUILDDIR>>/debian/tmp/usr/lib/x86_64-linux-gnu/libmtp.la
libtool: install: warning: remember to run `libtool --finish /usr/lib/x86_64-linux-gnu'
/bin/mkdir -p '/<<PKGBUILDDIR>>/debian/tmp/usr/include'
/usr/bin/install -c -m 644 libmtp.h '/<<PKGBUILDDIR>>/debian/tmp/usr/include'
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'
Making install in examples
[... snipped ...]
make[1]: Entering directory '/<<PKGBUILDDIR>>'
echo "udev=udev" >> debian/libmtp9.substvars
# Remove rpath from the library
chrpath --delete \
/<<PKGBUILDDIR>>/debian/libmtp9/usr/lib/x86_64-linux-gnu/libmtp.so.*.*
open: No such file or directory
elf_open: Invalid argument
debian/rules:89: recipe for target 'override_dh_installdeb' failed
make[1]: *** [override_dh_installdeb] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:38: 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, Alessio Treglia <alessio@debian.org>:
Bug#806059; Package src:libmtp.
(Mon, 30 May 2016 11:21:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Santiago Vila <sanvila@unex.es>:
Extra info received and forwarded to list. Copy sent to Alessio Treglia <alessio@debian.org>.
(Mon, 30 May 2016 11:21:04 GMT) (full text, mbox, link).
Message #10 received at 806059@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
tags 806059 + patch
thanks
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> echo "udev=udev" >> debian/libmtp9.substvars
> # Remove rpath from the library
> chrpath --delete \
> /<<PKGBUILDDIR>>/debian/libmtp9/usr/lib/x86_64-linux-gnu/libmtp.so.*.*
> open: No such file or directory
> elf_open: Invalid argument
> debian/rules:89: recipe for target 'override_dh_installdeb' failed
> make[1]: *** [override_dh_installdeb] Error 1
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> debian/rules:38: recipe for target 'binary-indep' failed
> make: *** [binary-indep] Error 2
> dpkg-buildpackage: error: fakeroot debian/rules binary-indep gave error exit status 2
> --------------------------------------------------------------------------------
Explanation: We are creating arch-independent packages only, so
debian/libmtp9/[...] does not exist because libmtp9 is arch-dependent.
The attached patch may help. It overrides dh_installdeb only for
arch-dependent packages.
Thanks.
[libmtp.patch.txt (text/plain, attachment)]
Added tag(s) patch.
Request was from Santiago Vila <sanvila@unex.es>
to control@bugs.debian.org.
(Mon, 30 May 2016 11:21:11 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Alessio Treglia <alessio@debian.org>:
Bug#806059; Package src:libmtp.
(Wed, 13 Jul 2016 21:24:06 GMT) (full text, mbox, link).
Acknowledgement sent
to Santiago Vila <sanvila@unex.es>:
Extra info received and forwarded to list. Copy sent to Alessio Treglia <alessio@debian.org>.
(Wed, 13 Jul 2016 21:24:06 GMT) (full text, mbox, link).
Message #17 received at 806059@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".
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:29 GMT) (full text, mbox, link).
Reply sent
to Alessio Treglia <alessio@debian.org>:
You have taken responsibility.
(Sun, 28 Aug 2016 17:45:22 GMT) (full text, mbox, link).
Notification sent
to Santiago Vila <sanvila@debian.org>:
Bug acknowledged by developer.
(Sun, 28 Aug 2016 17:45:23 GMT) (full text, mbox, link).
Message #24 received at 806059-close@bugs.debian.org (full text, mbox, reply):
Source: libmtp
Source-Version: 1.1.12-1
We believe that the bug you reported is fixed in the latest version of
libmtp, 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 806059@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Alessio Treglia <alessio@debian.org> (supplier of updated libmtp 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, 28 Aug 2016 17:47:14 +0100
Source: libmtp
Binary: libmtp9 libmtp-common libmtp-runtime libmtp-dev libmtp-dbg libmtp-doc mtp-tools
Architecture: source all amd64
Version: 1.1.12-1
Distribution: unstable
Urgency: medium
Maintainer: Alessio Treglia <alessio@debian.org>
Changed-By: Alessio Treglia <alessio@debian.org>
Description:
libmtp-common - Media Transfer Protocol (MTP) common files
libmtp-dbg - Media Transfer Protocol (MTP) debugging symbols
libmtp-dev - Media Transfer Protocol (MTP) development files
libmtp-doc - Media Transfer Protocol (MTP) library documentation
libmtp-runtime - Media Transfer Protocol (MTP) runtime tools
libmtp9 - Media Transfer Protocol (MTP) library
mtp-tools - Media Transfer Protocol (MTP) library tools
Closes: 806059
Changes:
libmtp (1.1.12-1) unstable; urgency=medium
.
* Imported Upstream version 1.1.12
* Update symbols file.
* Fix FTBFS on arch-indep builds.
Thanks to Santiago Vila for the patch. (Closes: #806059)
* Bump Standards.
Checksums-Sha1:
18f6ab1fea15e2c26ebd1d67223d1cb17aeea4aa 2327 libmtp_1.1.12-1.dsc
468641f64c5e51751503aecd14e83874d43e157d 776555 libmtp_1.1.12.orig.tar.gz
57221585c2c97885d9fe0caff05b83bc6925c2fb 20656 libmtp_1.1.12-1.debian.tar.xz
781635a447bf611c485848dfde8dd596965de141 81050 libmtp-common_1.1.12-1_all.deb
8493f378f27895ecb3ec8ddc16983e9d32481c5f 287714 libmtp-dbg_1.1.12-1_amd64.deb
f2d56c8fd7a61d55b17e71caeb22ea9b388d98e8 50550 libmtp-dev_1.1.12-1_amd64.deb
4d997c46ecfeaa20442c8294af80c452b06aa58d 368758 libmtp-doc_1.1.12-1_all.deb
ec3454679a2e1b903a95a275cf0c9933bb5e4d9d 9966 libmtp-runtime-dbgsym_1.1.12-1_amd64.deb
09b02247dc9b2f220b24bf50f4cbe511e0a85565 46314 libmtp-runtime_1.1.12-1_amd64.deb
1e912bf3e9760de72bdced2ccc5b573fd797134c 190888 libmtp9_1.1.12-1_amd64.deb
cc2194879ad23bced7d118ccd512afc3d276c26d 189834 mtp-tools-dbgsym_1.1.12-1_amd64.deb
dfe44334964ce88d87c3170208276ab325722237 74384 mtp-tools_1.1.12-1_amd64.deb
Checksums-Sha256:
5309d1c163ad03990079fec0656bdafda2c11bd0b6d8c5f07702c93f3a6b6f8c 2327 libmtp_1.1.12-1.dsc
cdf59e816c6cda3e908a876c7fb42943f40b85669aea0029a1ca431c89afa1a0 776555 libmtp_1.1.12.orig.tar.gz
f0854f6efbd5f6550e747c521b99ebc58f6c02208c01cc2d8648a46f45f29c9f 20656 libmtp_1.1.12-1.debian.tar.xz
4aad5c927ed66b25ea0ef09c2eba872c19968730ebb2a36989e22a794482ff8c 81050 libmtp-common_1.1.12-1_all.deb
1c208570bc18db7205322bc88c16807fe574285cc4794bd25fbf9402253a6aa5 287714 libmtp-dbg_1.1.12-1_amd64.deb
0d72d91c1182dd001563e6534fcba00315e8b443036ab8b3b49506606ce8082e 50550 libmtp-dev_1.1.12-1_amd64.deb
0aff9f9d03dc4a25a7dbc0c159c04bae31cd6e4c077e4b88746604109a7b8e87 368758 libmtp-doc_1.1.12-1_all.deb
64ad51f790f9836e1cf4815d811a15d9a1934255ffa50df5af971f87f9f086f7 9966 libmtp-runtime-dbgsym_1.1.12-1_amd64.deb
a59c66778d72764aefadb0049895c603e59eb3183f85ba0853bc9dbbba13b82b 46314 libmtp-runtime_1.1.12-1_amd64.deb
5bd0142ce0bc4eaab1536ff7f608d26ee14fb3f8c7d8056d9e93194062561288 190888 libmtp9_1.1.12-1_amd64.deb
ac5523f20eba2674b1c961ffc45d7d9ddafc890c1fd2ce25c8f1128169b9d55f 189834 mtp-tools-dbgsym_1.1.12-1_amd64.deb
e526e12d5273f42a1623e888495cd18a2db6a2878ad06ffb21a755beefb4ea1d 74384 mtp-tools_1.1.12-1_amd64.deb
Files:
d3e854b5f617757cf568f8df20c541bb 2327 libs optional libmtp_1.1.12-1.dsc
0c59559ea253d02170511ecf6b05d577 776555 libs optional libmtp_1.1.12.orig.tar.gz
c980a168d7e3d3fc7d830ba64283003a 20656 libs optional libmtp_1.1.12-1.debian.tar.xz
903c3adbc069eaf212333eb063f7eb63 81050 libs optional libmtp-common_1.1.12-1_all.deb
735f68492bd5070311b95ceaf664e88d 287714 debug extra libmtp-dbg_1.1.12-1_amd64.deb
1a1e06a0a21507fa400c323160fc8120 50550 libdevel optional libmtp-dev_1.1.12-1_amd64.deb
21a519148481c6d7fadaf102032e661b 368758 doc optional libmtp-doc_1.1.12-1_all.deb
9b4951aef388f76623e4fc834803adaa 9966 debug extra libmtp-runtime-dbgsym_1.1.12-1_amd64.deb
d69ef1875986aaaba4f0f2015dba4d52 46314 libs optional libmtp-runtime_1.1.12-1_amd64.deb
19f65f13b62bf57f8ce52d2e888f6ded 190888 libs optional libmtp9_1.1.12-1_amd64.deb
68ed9c18392aa84311d5c5aee3f11604 189834 debug extra mtp-tools-dbgsym_1.1.12-1_amd64.deb
c08de729a7bdd4b9bdb7affedcc43036 74384 utils optional mtp-tools_1.1.12-1_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBCgAGBQJXwxl3AAoJEOikiuUxHXZaAnsP/RMQKTee4TtW0dOfesQrMxnb
VTqzjOoX5VSd7B8c+2OqrKk5yypHG/3Ko8ebi/7/h76ctrX72CfaFlo+5+jdISAG
jfx1pTBuN0YZQrHYYLbxnm51J/QuSC4RO3IzOnLsk3oPZRHfAFbAqymeisg5pGxg
4cgIT3Tq88yaZ1yKhQavC0zSUmz5hSIcb9KIhs3U3XI69zzRXlhfIxEhMQDDUb12
N2GSREIV53MGd6ThiGTTHrhxfQc9p8lg10UPpV9sNUr9P3RER76fKJfX1V9iU0El
2DIxkSw4Lp9hoMuNG8CZY77I5m/MAkrLeof8+8Wef6CMn3uhj5yAhaU2lU7R391W
H3KlMOxFSwJUy1MkKv6Nl9AlpUmPiY2v90GM14IYWO5YlRtk2gv7jvuc4EXzvRR4
nMWCMTmvofvdtASknBU36JHi1HrkgW3dRlY5JB14+WyGCqEFIj/lFxAigo0g6+E1
mXU/IhKyCBjP8jgYaTf6Xsg8vxMgF1dlO+DgN3sFe1XUSL64BXB2mqRGRlSQNoCY
e3XsZ0poGLj2hEVuzNeB0TsXsLMfo88R65u/QHjFEsVm5rZ+M5aH6FpWmFZ2mofp
bdobAMGaGsPg/KPztZf5Q7s8zTUc4JhHhy22ZxOIQRlF90SqKezgxY7oy9vS+uQj
bsjO9reJmDRnAQk4xIj+
=A9rd
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Mon, 26 Sep 2016 07:33:22 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:04:40 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.