GNU bug report logs - #61186
build failure when building from git source in a subdirectory

Previous Next

Package: gzip;

Reported by: Bruno Haible <bruno <at> clisp.org>

Date: Mon, 30 Jan 2023 21:30:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 61186 in the body.
You can then email your comments to 61186 AT debbugs.gnu.org in the normal way.

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-gzip <at> gnu.org:
bug#61186; Package gzip. (Mon, 30 Jan 2023 21:30:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Bruno Haible <bruno <at> clisp.org>:
New bug report received and forwarded. Copy sent to bug-gzip <at> gnu.org. (Mon, 30 Jan 2023 21:30:02 GMT) Full text and rfc822 format available.

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

From: Bruno Haible <bruno <at> clisp.org>
To: bug-gzip <at> gnu.org
Subject: build failure when building from git source in a subdirectory
Date: Mon, 30 Jan 2023 22:28:57 +0100
[Message part 1 (text/plain, inline)]
Hi,

When building gzip from the git repository in a subdirectory (VPATH build),
I get a build failure.

How to reproduce:

$ unset GNULIB_SRCDIR
$ git clone https://git.savannah.gnu.org/git/gzip.git
$ cd gzip
$ ./bootstrap
$ mkdir vpath
$ cd vpath
$ ../configure
$ make
$ make check
...
make[3]: Entering directory '/tmp/gzip/vpath'
  GEN      gzip.doc
  GEN      gzip.doc.gz
/bin/bash: line 1: ../gzip.doc: No such file or directory
make[3]: *** [Makefile:2435: gzip.doc.gz] Error 1
make[3]: Leaving directory '/tmp/gzip/vpath'

The problem is that while gzip.doc is expected to be in the source
directory (1. because it's in EXTRA_DIST, 2. see the check-local rule),
it's being generated in the build directory. The GNU Coding Standards
<https://www.gnu.org/prep/standards/html_node/Makefile-Basics.html>
make it clear that the file should be generated in the source directory.

The attached patch fixes it. I verified that "make distcheck" passes.

[0001-Fix-make-check-in-a-subdirectory-VPATH-build.patch (text/x-patch, attachment)]

Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Mon, 30 Jan 2023 22:58:02 GMT) Full text and rfc822 format available.

Notification sent to Bruno Haible <bruno <at> clisp.org>:
bug acknowledged by developer. (Mon, 30 Jan 2023 22:58:02 GMT) Full text and rfc822 format available.

Message #10 received at 61186-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Bruno Haible <bruno <at> clisp.org>
Cc: 61186-done <at> debbugs.gnu.org
Subject: Re: bug#61186: build failure when building from git source in a
 subdirectory
Date: Mon, 30 Jan 2023 14:57:24 -0800
Thanks, I installed that.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 28 Feb 2023 12:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 108 days ago.

Previous Next


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