[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #65800] bootstrap oddity: .gitignore discrepancy
From: |
Collin Funk |
Subject: |
[bug #65800] bootstrap oddity: .gitignore discrepancy |
Date: |
Tue, 16 Jul 2024 14:21:56 -0400 (EDT) |
Follow-up Comment #6, bug #65800 (group groff):
Hi, I saw this and assumed it was a bug with the rewritten Python gnulib-tool
that I worked on recently. However running the following command:
$ env GNULIB_TOOL_IMPL=sh ./bootstrap
$ git diff .
diff --git a/.gitignore b/.gitignore
index 2c749f1aa..3786ce62d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
+/build-aux
# artifacts expected in a clean tree
/.version
/Makefile.in
This means that it is not a bug necessarily in the Python gnulib-tool. The
Python version is supposed to output the same files and stdout as the shell
script. We can test that in groff by doing:
$ env GNULIB_TOOL_IMPL=sh+py ./bootstrap
Which then is successful and runs as normal. If the test failed it would tell
you to diff two directories to see the discrepancy. In the Gnulib group on
Savannah you can go to the "gnulib maintainer tools" repository and look under
gnulib-tool-tests/* to see the full test suite which passes.
I've seen this in other repositories so I am not sure if it is a bug in the
original gnulib-tool that I then reproduced in the Python version. Or if it
was an intentional change to enforce some .gitignore convention. I'll look
into it when I have time. Until then if you add a line '/build-aux' to the
.gitignore it should stop the annoying diff. Something like this should work:
$ git diff master
diff --git a/.gitignore b/.gitignore
index 2c749f1aa..5c18f3392 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,6 +4,7 @@
/aclocal.m4
/autom4te.cache/
/build-aux/
+/build-aux
/configure
/gnulib_m4/
/lib/
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65800>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature