GNU bug report logs - #34166
DESTDIR affects distcheck badly.

Previous Next

Package: automake;

Reported by: Van de Bugger <van.de.bugger <at> gmail.com>

Date: Mon, 21 Jan 2019 21:06:01 UTC

Severity: minor

To reply to this bug, email your comments to 34166 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-automake <at> gnu.org:
bug#34166; Package automake. (Mon, 21 Jan 2019 21:06:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Van de Bugger <van.de.bugger <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-automake <at> gnu.org. (Mon, 21 Jan 2019 21:06:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Van de Bugger <van.de.bugger <at> gmail.com>
To: bug-automake <at> gnu.org
Subject: DESTDIR affects distcheck badly.
Date: Tue, 22 Jan 2019 00:05:39 +0300
[Message part 1 (text/plain, inline)]
Software versions
=================

*   Fedora 29, x86_64
*   autoconf-2.69-28.fc29.noarch
*   automake-1.16.1-5.fc29.noarch


Steps to reproduce
==================

    $ tar xaf distdir.patch.tar.gz
    $ cd distdir.patch
    $ mkdir _build
    $ cd _build
    $ autoreconf -i ..
    $ ../configure
    $ DESTDIR=`pwd`/_install make distcheck


The problem
===========

Note enormously long path in the 'make distcheck' output:

    <...>
    make[2]: Entering directory '/home/vdb/prj/Alien/distdir.patch/_build/distdir-1.16.1.patch/_build/sub'
    make[2]: Nothing to be done for 'install-exec-am'.
     /usr/bin/mkdir -p '/home/vdb/prj/Alien/destdir/_build/_install/home/vdb/prj/Alien/distdir.patch/_build/distdir-1.16.1.patch/_inst/share/doc/distdir'
     /usr/bin/install -c -m 644 ../../README '/home/vdb/prj/Alien/destdir/_build/_install/home/vdb/prj/Alien/distdir.patch/_build/distdir-1.16.1.patch/_inst/share/doc/distdir'
    make[2]: Leaving directory '/home/vdb/prj/Alien/distdir.patch/_build/distdir-1.16.1.patch/_build/sub'
    make[1]: Leaving directory '/home/vdb/prj/Alien/distdir.patch/_build/distdir-1.16.1.patch/_build/sub'
    <...>

Namely:

    /home/vdb/prj/Alien/destdir/_build/_install/home/vdb/prj/Alien/distdir.patch/_build/distdir-1.16.1.patch/_inst/share/doc/distdir
    
Note that build directory is doubled.

This is result of interaction between distcheck goal and DESTDIR environment
variable.

In this particular case, path length does not exceed limits, and so distcheck
goal is built successully. However, it could be a real problem in case of
longer build directory path or if DESTDIR points to a non-writable directory.


Proposed solution
=================

See distdir.am.patch.


[distdir.patch.tar.gz (application/x-compressed-tar, attachment)]

Severity set to 'minor' from 'normal' Request was from Mike Frysinger <vapier <at> gentoo.org> to control <at> debbugs.gnu.org. (Fri, 10 Dec 2021 07:16:02 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 186 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.