GNU bug report logs - #44544
Failures Building in non-Git Directory

Previous Next

Package: dejagnu;

Reported by: Fred Wright <fw <at> fwright.net>

Date: Tue, 10 Nov 2020 01:54:02 UTC

Owned by: jcb62281 <at> gmail.com

Severity: normal

Done: Jacob Bachmeyer <jcb62281 <at> gmail.com>

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 44544 in the body.
You can then email your comments to 44544 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-dejagnu <at> gnu.org:
bug#44544; Package dejagnu. (Tue, 10 Nov 2020 01:54:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Fred Wright <fw <at> fwright.net>:
New bug report received and forwarded. Copy sent to bug-dejagnu <at> gnu.org. (Tue, 10 Nov 2020 01:54:02 GMT) Full text and rfc822 format available.

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

From: Fred Wright <fw <at> fwright.net>
To: bug-dejagnu <at> gnu.org
Subject: Failures Building in non-Git Directory
Date: Mon, 9 Nov 2020 17:53:36 -0800 (PST)
When running in a directory that's not a git repo, there are at least two 
failures:

MacPro:dejagnu fw$ ./configure
[...]
checking for expect... /usr/bin/expect
checking Tcl version 8.5 or greater... yes
fatal: not a git repository (or any parent up to mount point /Volumes)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
MacPro:dejagnu fw$ echo $?
0

Note that the allegedly "fatal" error doesn't avoid a zero exit status 
(which may be a separate bug).

After the "successful" configure, building succeeds, with no error 
messages:

MacPro:dejagnu fw$ make
[...]
	rm -rf $backupdir; exit $rc
Done. Now run 'make install'.
MacPro:dejagnu fw$ echo $?
0

Many tests now fail, which may or may not be related, so that's not 
included here.

But install fails:

MacPro:dejagnu fw$ sudo make install
Password:
Done. Now run 'make install'.
[...]
make  install-data-hook
revision=`cd . &&  git rev-parse --short HEAD` \
	&& sed -i -e "s/^set *frame_version.*/set frame_version 
-${revision}/" /usr/local/share/dejagnu/runtest.exp
fatal: not a git repository (or any parent up to mount point /Volumes)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
make[2]: *** [install-data-hook] Error 128
make[1]: *** [install-data-am] Error 2
make: *** [install-am] Error 2
MacPro:dejagnu fw$ echo $?
2

This is commonly seen when copying all tracked files to another location 
for testing (e.g., using git ls-files and rsync), but for purposes of 
reproducing the failure, another approach is to temporarily rename the 
.git subdirectory to something else.

The above examples are from the current master branch @3d62df2.  They are 
from Mac OSX, but essentially identical failures also occur on Ubuntu 
14.04, CentOS 7, and Fedora 25.

These failures do not occur with the 1.6.2 release version, which may be 
due to a new bug, or may be due to differences between release and 
non-release builds.  In general, anything relying on git during builds 
should have a fallback for the non-git environment.

Fred Wright




Information forwarded to bug-dejagnu <at> gnu.org:
bug#44544; Package dejagnu. (Wed, 11 Nov 2020 00:34:01 GMT) Full text and rfc822 format available.

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

From: Jacob Bachmeyer <jcb62281 <at> gmail.com>
To: Fred Wright <fw <at> fwright.net>
Cc: 44544 <at> debbugs.gnu.org
Subject: Re: bug#44544: Failures Building in non-Git Directory
Date: Tue, 10 Nov 2020 18:33:28 -0600
Fred Wright wrote:
>
> When running in a directory that's not a git repo, there are at least 
> two failures:
>
> [...]
>
> Note that the allegedly "fatal" error doesn't avoid a zero exit status 
> (which may be a separate bug).

The "fatal" error is from Git, which exits reporting failure, which 
configure ignores.

> After the "successful" configure, building succeeds, with no error 
> messages:
>
> MacPro:dejagnu fw$ make
> [...]
>     rm -rf $backupdir; exit $rc
> Done. Now run 'make install'.
> MacPro:dejagnu fw$ echo $?
> 0
>
> Many tests now fail, which may or may not be related, so that's not 
> included here.

There seem to be other issues with Mac OS X; you are correct that those 
are a separate bug.

> But install fails:
>
> MacPro:dejagnu fw$ sudo make install
> Password:
> Done. Now run 'make install'.
> [...]
> make  install-data-hook
> revision=`cd . &&  git rev-parse --short HEAD` \
>     && sed -i -e "s/^set *frame_version.*/set frame_version 
> -${revision}/" /usr/local/share/dejagnu/runtest.exp
> fatal: not a git repository (or any parent up to mount point /Volumes)
> Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not 
> set).
> make[2]: *** [install-data-hook] Error 128
> make[1]: *** [install-data-am] Error 2
> make: *** [install-am] Error 2
> MacPro:dejagnu fw$ echo $?
> 2

Same error here, but make does not ignore it.

> This is commonly seen when copying all tracked files to another 
> location for testing (e.g., using git ls-files and rsync), but for 
> purposes of reproducing the failure, another approach is to 
> temporarily rename the .git subdirectory to something else.

The issue was verified here using `git ls-files -z | cpio -0dp 
/tmp/some/where/else`.

> The above examples are from the current master branch @3d62df2.  They 
> are from Mac OSX, but essentially identical failures also occur on 
> Ubuntu 14.04, CentOS 7, and Fedora 25.
>
> These failures do not occur with the 1.6.2 release version, which may 
> be due to a new bug, or may be due to differences between release and 
> non-release builds.  In general, anything relying on git during builds 
> should have a fallback for the non-git environment.

The version hook was removed in commit 
650af6e75776a52afa4803d02aae0f923a9ec82f which is now current master.  
This should fix the problem.  Can you confirm that it corrects this issue?


-- Jacob




Information forwarded to bug-dejagnu <at> gnu.org:
bug#44544; Package dejagnu. (Wed, 11 Nov 2020 00:58:01 GMT) Full text and rfc822 format available.

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

From: Fred Wright <fw <at> fwright.net>
To: Jacob Bachmeyer <jcb62281 <at> gmail.com>
Cc: 44544 <at> debbugs.gnu.org
Subject: Re: bug#44544: Failures Building in non-Git Directory
Date: Tue, 10 Nov 2020 16:56:57 -0800 (PST)
On Tue, 10 Nov 2020, Jacob Bachmeyer wrote:
> Fred Wright wrote:
[...]
>> Many tests now fail, which may or may not be related, so that's not 
>> included here.
>
> There seem to be other issues with Mac OS X; you are correct that those are a 
> separate bug.

Also on at least three versions of Linux.

[...]
> The version hook was removed in commit 
> 650af6e75776a52afa4803d02aae0f923a9ec82f which is now current master.  This 
> should fix the problem.  Can you confirm that it corrects this issue?

Yes, it does.  And, as expected, it doesn't fix the test failures.  So far 
I've only tested on the Mac; I may not have time to test on the Linux VMs 
until tomorrow.

Fred Wright




Owner recorded as jcb62281 <at> gmail.com. Request was from Jacob Bachmeyer <jcb62281 <at> gmail.com> to control <at> debbugs.gnu.org. (Fri, 13 Nov 2020 00:16:02 GMT) Full text and rfc822 format available.

Reply sent to jcb62281 <at> gmail.com:
You have taken responsibility. (Fri, 04 Jun 2021 04:38:01 GMT) Full text and rfc822 format available.

Notification sent to Fred Wright <fw <at> fwright.net>:
bug acknowledged by developer. (Fri, 04 Jun 2021 04:38:01 GMT) Full text and rfc822 format available.

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

From: Jacob Bachmeyer <jcb62281 <at> gmail.com>
To: Fred Wright <fw <at> fwright.net>
Cc: 44544-done <at> debbugs.gnu.org
Subject: Re: bug#44544: Failures Building in non-Git Directory
Date: Thu, 03 Jun 2021 23:37:26 -0500
Fred Wright wrote:
> On Tue, 10 Nov 2020, Jacob Bachmeyer wrote:
>> The version hook was removed in commit 
>> 650af6e75776a52afa4803d02aae0f923a9ec82f which is now current 
>> master.  This should fix the problem.  Can you confirm that it 
>> corrects this issue?
>
> Yes, it does.  And, as expected, it doesn't fix the test failures.  So 
> far I've only tested on the Mac; I may not have time to test on the 
> Linux VMs until tomorrow.

Closing bug report; apologies for the long delay as this somehow fell 
through the cracks.


-- Jacob





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 02 Jul 2021 11:24:05 GMT) Full text and rfc822 format available.

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

Previous Next


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