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

version graph

Package: src:tacacs+; Maintainer for src:tacacs+ is Debian QA Group <packages@qa.debian.org>;

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

Date: Tue, 24 Nov 2015 15:35:46 UTC

Severity: serious

Tags: patch, sid, stretch

Found in version tacacs+/4.0.4.27a-1

Fixed in version tacacs+/4.0.4.27a-2

Done: Mattia Rizzolo <mattia@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, Henry-Nicolas Tourneur <henry.nicolas@tourneur.be>:
Bug#806114; Package src:tacacs+. (Tue, 24 Nov 2015 15:35:50 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, Henry-Nicolas Tourneur <henry.nicolas@tourneur.be>. (Tue, 24 Nov 2015 15:35:50 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: tacacs+: FTBFS when built with dpkg-buildpackage -A (No such file or directory)
Date: Tue, 24 Nov 2015 15:28:49 +0000
Package: src:tacacs+
Version: 4.0.4.27a-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 autotools-dev,quilt
   dh_testroot -i
   dh_prep -i
   debian/rules override_dh_auto_install
make[1]: Entering directory '/build/tacacs+-QzZNjg/tacacs+-4.0.4.27a'
dh_installdirs
dh_installinit --name=tacacs_plus
dh_auto_install
	make -j1 install DESTDIR=/build/tacacs\+-QzZNjg/tacacs\+-4.0.4.27a/debian/tmp AM_UPDATE_INFO_DIR=no
make[2]: Entering directory '/build/tacacs+-QzZNjg/tacacs+-4.0.4.27a'
make[3]: Entering directory '/build/tacacs+-QzZNjg/tacacs+-4.0.4.27a'
test -z "/usr/lib/x86_64-linux-gnu/tacacs" || /bin/mkdir -p "/build/tacacs+-QzZNjg/tacacs+-4.0.4.27a/debian/tmp/usr/lib/x86_64-linux-gnu/tacacs"
 /bin/bash ./libtool   --mode=install /usr/bin/install -c   libtacacs.la '/build/tacacs+-QzZNjg/tacacs+-4.0.4.27a/debian/tmp/usr/lib/x86_64-linux-gnu/tacacs'
libtool: install: /usr/bin/install -c .libs/libtacacs.so.1.0.0 /build/tacacs+-QzZNjg/tacacs+-4.0.4.27a/debian/tmp/usr/lib/x86_64-linux-gnu/tacacs/libtacacs.so.1.0.0
libtool: install: (cd /build/tacacs+-QzZNjg/tacacs+-4.0.4.27a/debian/tmp/usr/lib/x86_64-linux-gnu/tacacs && { ln -s -f libtacacs.so.1.0.0 libtacacs.so.1 || { rm -f libtacacs.so.1 && ln -s libtacacs.so.1.0.0 libtacacs.so.1; }; })
libtool: install: (cd /build/tacacs+-QzZNjg/tacacs+-4.0.4.27a/debian/tmp/usr/lib/x86_64-linux-gnu/tacacs && { ln -s -f libtacacs.so.1.0.0 libtacacs.so || { rm -f libtacacs.so && ln -s libtacacs.so.1.0.0 libtacacs.so; }; })
libtool: install: /usr/bin/install -c .libs/libtacacs.lai /build/tacacs+-QzZNjg/tacacs+-4.0.4.27a/debian/tmp/usr/lib/x86_64-linux-gnu/tacacs/libtacacs.la
libtool: install: /usr/bin/install -c .libs/libtacacs.a /build/tacacs+-QzZNjg/tacacs+-4.0.4.27a/debian/tmp/usr/lib/x86_64-linux-gnu/tacacs/libtacacs.a
libtool: install: chmod 644 /build/tacacs+-QzZNjg/tacacs+-4.0.4.27a/debian/tmp/usr/lib/x86_64-linux-gnu/tacacs/libtacacs.a
libtool: install: ranlib /build/tacacs+-QzZNjg/tacacs+-4.0.4.27a/debian/tmp/usr/lib/x86_64-linux-gnu/tacacs/libtacacs.a
libtool: install: warning: remember to run `libtool --finish /usr/lib/x86_64-linux-gnu/tacacs'
test -z "/usr/sbin" || /bin/mkdir -p "/build/tacacs+-QzZNjg/tacacs+-4.0.4.27a/debian/tmp/usr/sbin"
  /bin/bash ./libtool   --mode=install /usr/bin/install -c tac_pwd tac_plus '/build/tacacs+-QzZNjg/tacacs+-4.0.4.27a/debian/tmp/usr/sbin'
libtool: install: /usr/bin/install -c tac_pwd /build/tacacs+-QzZNjg/tacacs+-4.0.4.27a/debian/tmp/usr/sbin/tac_pwd
libtool: install: warning: `/build/tacacs+-QzZNjg/tacacs+-4.0.4.27a/libtacacs.la' has not been installed in `/usr/lib/x86_64-linux-gnu/tacacs'
libtool: install: /usr/bin/install -c .libs/tac_plus /build/tacacs+-QzZNjg/tacacs+-4.0.4.27a/debian/tmp/usr/sbin/tac_plus
test -z "/usr/include" || /bin/mkdir -p "/build/tacacs+-QzZNjg/tacacs+-4.0.4.27a/debian/tmp/usr/include"
 /usr/bin/install -c -m 644 tacacs.h '/build/tacacs+-QzZNjg/tacacs+-4.0.4.27a/debian/tmp/usr/include'
test -z "/usr/share/man/man5" || /bin/mkdir -p "/build/tacacs+-QzZNjg/tacacs+-4.0.4.27a/debian/tmp/usr/share/man/man5"
 /usr/bin/install -c -m 644 tac_plus.conf.5 '/build/tacacs+-QzZNjg/tacacs+-4.0.4.27a/debian/tmp/usr/share/man/man5'
test -z "/usr/share/man/man8" || /bin/mkdir -p "/build/tacacs+-QzZNjg/tacacs+-4.0.4.27a/debian/tmp/usr/share/man/man8"
 /usr/bin/install -c -m 644 tac_plus.8 tac_pwd.8 '/build/tacacs+-QzZNjg/tacacs+-4.0.4.27a/debian/tmp/usr/share/man/man8'
test -z "/usr/share/tacacs+" || /bin/mkdir -p "/build/tacacs+-QzZNjg/tacacs+-4.0.4.27a/debian/tmp/usr/share/tacacs+"
 /usr/bin/install -c -m 644 do_auth.py users_guide '/build/tacacs+-QzZNjg/tacacs+-4.0.4.27a/debian/tmp/usr/share/tacacs+'
test -z "/usr/share/tacacs+" || /bin/mkdir -p "/build/tacacs+-QzZNjg/tacacs+-4.0.4.27a/debian/tmp/usr/share/tacacs+"
 /usr/bin/install -c tac_convert '/build/tacacs+-QzZNjg/tacacs+-4.0.4.27a/debian/tmp/usr/share/tacacs+'
make[3]: Leaving directory '/build/tacacs+-QzZNjg/tacacs+-4.0.4.27a'
make[2]: Leaving directory '/build/tacacs+-QzZNjg/tacacs+-4.0.4.27a'
install -m 644 debian/tacacs+.default /build/tacacs+-QzZNjg/tacacs+-4.0.4.27a/debian/tacacs+/etc/default/tacacs+
install: cannot create regular file '/build/tacacs+-QzZNjg/tacacs+-4.0.4.27a/debian/tacacs+/etc/default/tacacs+': No such file or directory
debian/rules:16: recipe for target 'override_dh_auto_install' failed
make[1]: *** [override_dh_auto_install] Error 1
make[1]: Leaving directory '/build/tacacs+-QzZNjg/tacacs+-4.0.4.27a'
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, Henry-Nicolas Tourneur <henry.nicolas@tourneur.be>:
Bug#806114; Package src:tacacs+. (Wed, 04 May 2016 23:39:04 GMT) (full text, mbox, link).


Acknowledgement sent to Santiago Vila <sanvila@unex.es>:
Extra info received and forwarded to list. Copy sent to Henry-Nicolas Tourneur <henry.nicolas@tourneur.be>. (Wed, 04 May 2016 23:39:04 GMT) (full text, mbox, link).


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

From: Santiago Vila <sanvila@unex.es>
To: Debian BTS <control@bugs.debian.org>, 806114@bugs.debian.org
Cc: Henry-Nicolas Tourneur <henry.nicolas@tourneur.be>
Subject: Re: Bug#806114: tacacs+: FTBFS when built with dpkg-buildpackage -A (No such file or directory)
Date: Thu, 5 May 2016 01:37:51 +0200 (CEST)
[Message part 1 (text/plain, inline)]
tags 806114 + patch
thanks

On Tue, 24 Nov 2015, Santiago Vila wrote:

> install -m 644 debian/tacacs+.default /build/tacacs+-QzZNjg/tacacs+-4.0.4.27a/debian/tacacs+/etc/default/tacacs+
> install: cannot create regular file '/build/tacacs+-QzZNjg/tacacs+-4.0.4.27a/debian/tacacs+/etc/default/tacacs+': No such file or directory
> debian/rules:16: recipe for target 'override_dh_auto_install' failed
> make[1]: *** [override_dh_auto_install] Error 1

Explanation: This happens because we are creating arch-independent packages only,
so debian/tacacs+/[...] does not exist because tacacs+ is arch-dependent.

The trivial fix is to move most of the current "override_dh_auto_install"
target to "override_dh_auto_install-arch".

Patch attached.

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

Added tag(s) patch. Request was from Santiago Vila <sanvila@unex.es> to control@bugs.debian.org. (Wed, 04 May 2016 23:39:07 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Henry-Nicolas Tourneur <henry.nicolas@tourneur.be>:
Bug#806114; Package src:tacacs+. (Wed, 13 Jul 2016 21:24:16 GMT) (full text, mbox, link).


Acknowledgement sent to Santiago Vila <sanvila@unex.es>:
Extra info received and forwarded to list. Copy sent to Henry-Nicolas Tourneur <henry.nicolas@tourneur.be>. (Wed, 13 Jul 2016 21:24:16 GMT) (full text, mbox, link).


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

From: Santiago Vila <sanvila@unex.es>
To: 806114@bugs.debian.org
Cc: Henry-Nicolas Tourneur <henry.nicolas@tourneur.be>
Subject: Re: Bug#806114: tacacs+: FTBFS when built with dpkg-buildpackage -A (No such file or directory)
Date: Wed, 13 Jul 2016 23:22:51 +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:37 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:17 GMT) (full text, mbox, link).


Reply sent to Mattia Rizzolo <mattia@debian.org>:
You have taken responsibility. (Tue, 27 Sep 2016 22:33:09 GMT) (full text, mbox, link).


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


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

From: Mattia Rizzolo <mattia@debian.org>
To: 806114-close@bugs.debian.org
Subject: Bug#806114: fixed in tacacs+ 4.0.4.27a-2
Date: Tue, 27 Sep 2016 22:31:16 +0000
Source: tacacs+
Source-Version: 4.0.4.27a-2

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

Debian distribution maintenance software
pp.
Mattia Rizzolo <mattia@debian.org> (supplier of updated tacacs+ 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: Tue, 27 Sep 2016 19:50:51 +0000
Source: tacacs+
Binary: tacacs+ libtacacs+1 libtacacs+1-dev
Architecture: source
Version: 4.0.4.27a-2
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Mattia Rizzolo <mattia@debian.org>
Description:
 libtacacs+1 - TACACS+ authentication daemon — shared library
 libtacacs+1-dev - TACACS+ authentication daemon — development header
 tacacs+    - TACACS+ authentication daemon
Closes: 806114 836658
Changes:
 tacacs+ (4.0.4.27a-2) unstable; urgency=medium
 .
   * QA upload.
   * Orphan the package, see #838701.
   * Run wrap-and-sort -ast.
   * Remove explicit usage of quit, dpkg handles it itself with source format
     3.0 (quilt).
   * Add Vcs-* fields pointing to a collab-maint git repository.
   * Stop using hardening-wrapper: the package is already making use of
     dpkg-buildflags.  Closes: #836658
   * Simplify configure call by removing options already passed by
     dh_auto_configure.
   * Build-depend on debhelper (>= 9.20160115) to make sure
     dh_update_autotools_config is called, instead of using the external
     autotools-dev addon.
   * Use a more declarative way to install the files.  Closes: #806114
   * Bump Standards-Version to 3.9.8, no changes needed.
   * Make the main configuration file non-readable by default, as originally
     intended.
   * Update lintian overrides.
   * Add patch so that the build system obeys to CPPFLAGS too.
   * Fix lintian tag duplicate-short-description.
Checksums-Sha1:
 4fd811ca11cf5cb1dfd3880236d12b4f1d988ad9 2044 tacacs+_4.0.4.27a-2.dsc
 2bece62648153ec428114c6006c8bbacc11c695f 7980 tacacs+_4.0.4.27a-2.debian.tar.xz
Checksums-Sha256:
 b506611ba2f39bae458851e7ab9844721b85af0afa4e2bebfab5590539597e0e 2044 tacacs+_4.0.4.27a-2.dsc
 cd18d1e435f4375a4801949c98a24f9499b865c5010dffbd5145e6aee5dbd672 7980 tacacs+_4.0.4.27a-2.debian.tar.xz
Files:
 0829d5df1c2772d2a6e8a26d23c3e86c 2044 net extra tacacs+_4.0.4.27a-2.dsc
 ab3db237833423e86d655675b0020e15 7980 net extra tacacs+_4.0.4.27a-2.debian.tar.xz

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

iQIcBAEBCgAGBQJX6s3fAAoJEEsEP825REVAoksP/2aOkFw+EC9hsk3vgUMI6O3w
KxMPEADb7Ta9htuOtD5AoT5h8gCED53wXCNFbicmm2IMyEq0YnlVcJp0tw6ZmL9m
Zh7yV7ZPg3uKXFwy9Aa5JtTQ3gFlf2lQI3HMMtQ4BmLpEGJ9gqnp95uRkp5XnPZv
Kgq5y9VxX7CYZFs3CNjllekWzWVMFwMWIIaqM/aHab00qzeuMv280dr44tGJxT4w
BcpYurpxpBEEdtirdp1mT2mA+LjF2CmWlFSx02bnktpelJdbQgHIzlbIenQ4IBbz
Q6gxXhZxv3yjrYkkHJZefgHUphNMmHRIZOGNgNxkFdZ77POPW7CjkVDLq2cRHu7+
kYDjMQJrv2NrKw2fxaZZ93XsxUgTsSY30SVBBJu0K4bRRJJbbZkVku2EJZSyFIEL
1OMkqm6OGdil/+7C7qSUNZ1gLaquE3Tf/+2AESVVruoZP0SfMTVJtqNPb4MOVnrN
2BW0BZeQMV40CzMjVMHu3UAV1BWquS+u28XRGopvzRTQ77+ZsiVL0r8OzdiG1huk
byk9/r1+slyK8NtcFGrl/kNueFRQDia1YEDxC/IvemBKyITTONqCXhWfdDS+sC4Z
621JQn5mzmLTB3EUFD6e+QTeoJbZH91w1gaMIhzXZkk8lXXlpHJkrZil4WNjDJrn
jVx5YnGy2uxHXpaZUfZN
=CqNw
-----END PGP SIGNATURE-----




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