Ignoring entries generated by autoconf in code tree

Started by Michael Paquieralmost 11 years ago4 messages
#1Michael Paquier
michael.paquier@gmail.com
1 attachment(s)

Hi all,

When running autoconf from the root tree, autom4te.cache/ is
automatically generated.
Wouldn't it make sense to add an entry in .gitignore for that?
Regards,
--
Michael

Attachments:

20150325_automake_ignore.patchapplication/x-patch; name=20150325_automake_ignore.patchDownload
diff --git a/.gitignore b/.gitignore
index 8d3af50..b1f04bb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -28,6 +28,7 @@ lib*dll.def
 lib*.pc
 
 # Local excludes in root directory
+/autom4te.cache/
 /GNUmakefile
 /config.cache
 /config.log
#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Michael Paquier (#1)
Re: Ignoring entries generated by autoconf in code tree

Michael Paquier <michael.paquier@gmail.com> writes:

When running autoconf from the root tree, autom4te.cache/ is
automatically generated.
Wouldn't it make sense to add an entry in .gitignore for that?

Personally, I don't want such a thing, as then I would tend to forget
to remove that cache file. And you do want to remove it. autoconf
goes pretty berserk if the cache file hangs around across significant
changes to configure.in, such as if you were to switch branches.
(Or at least that used to be true --- last time I got burnt by it
was quite some time ago, but possibly that's just because I'm careful
about removing the cache file.)

In short, -1.

regards, tom lane

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#3Peter Eisentraut
peter_e@gmx.net
In reply to: Tom Lane (#2)
Re: Ignoring entries generated by autoconf in code tree

On 3/25/15 10:34 AM, Tom Lane wrote:

Michael Paquier <michael.paquier@gmail.com> writes:

When running autoconf from the root tree, autom4te.cache/ is
automatically generated.
Wouldn't it make sense to add an entry in .gitignore for that?

Personally, I don't want such a thing, as then I would tend to forget
to remove that cache file. And you do want to remove it. autoconf
goes pretty berserk if the cache file hangs around across significant
changes to configure.in, such as if you were to switch branches.
(Or at least that used to be true --- last time I got burnt by it
was quite some time ago, but possibly that's just because I'm careful
about removing the cache file.)

I think you might be confusing it with config.cache?

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#4Tom Lane
tgl@sss.pgh.pa.us
In reply to: Peter Eisentraut (#3)
Re: Ignoring entries generated by autoconf in code tree

Peter Eisentraut <peter_e@gmx.net> writes:

On 3/25/15 10:34 AM, Tom Lane wrote:

Michael Paquier <michael.paquier@gmail.com> writes:

When running autoconf from the root tree, autom4te.cache/ is
automatically generated.
Wouldn't it make sense to add an entry in .gitignore for that?

Personally, I don't want such a thing, as then I would tend to forget
to remove that cache file. And you do want to remove it. autoconf
goes pretty berserk if the cache file hangs around across significant
changes to configure.in, such as if you were to switch branches.
(Or at least that used to be true --- last time I got burnt by it
was quite some time ago, but possibly that's just because I'm careful
about removing the cache file.)

I think you might be confusing it with config.cache?

No, I've never used config.cache. I'm not actually sure what autoconf
keeps in autom4te.cache/, but I've definitely seen it generate wacko
output files when that directory still has contents from a previous
run with some other version of the input files.

regards, tom lane

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers