Re: DIST_COMMON

2021-02-17 Thread Nick Bowler
On 2021-02-17, Leo Butler wrote: > I cannot find DIST_COMMON documented in the automake manual[*]. Is this > intended or an oversight? Most likely intentional, this looks pretty internal to the "make dist" machinery and not meant to be used directly by package authors. > Look

DIST_COMMON

2021-02-17 Thread Leo Butler
Hello, I cannot find DIST_COMMON documented in the automake manual[*]. Is this intended or an oversight? Looking at the automake perl script doesn't really enlighten me, either. I would like to know: -what does DIST_COMMON contain by default? -is it possible to set it or otherwise over-ride

bug#18734: [PATCH] vala: Improper parsing of valac arguments leads to garbage in DIST_COMMON

2020-04-05 Thread Karl Berry
- if (grep (/$lastflag/, ('-H', '-h', '--header', '--internal-header', - '--vapi', '--internal-vapi', '--gir'))) + if (grep (/^$lastflag$/, ('-H', '-h', '--header', '--internal-header', + '--vapi', '--internal-vapi',

bug#18734: [PATCH] vala: Improper parsing of valac arguments leads to garbage in DIST_COMMON

2020-04-01 Thread Karl Berry
Hi Colomban - back on your automake bug report from six years ago (sorry!): Date: Wed, 15 Oct 2014 17:17:00 +0200 From: Colomban Wendling [...] The problem is that parsing of valac flags uses a non-anchored pattern and so any argument happening to be a subset of a parsed

bug#17908: [PATCH] dist: ordering of files in DIST_COMMON is deterministic now

2014-12-22 Thread Stefano Lattarini
similar commit v1.14-19-g52e6404. Fixes automake bug http://debbugs.gnu.org/17908 * bin/automake.in (handle_dist): Sort @dist_common. (print_autodist_files): Swap invocations of 'sort' and 'uniq', for consistency with the new code in 'handle_dist' and to get rid of a minor hack. * NEWS: Update

bug#17908: [PATCH] dist: ordering of files in DIST_COMMON is deterministic now

2014-12-22 Thread Peter Rosin
diff --git a/NEWS b/NEWS index bdc9bb9..5d14c5e 100644 --- a/NEWS +++ b/NEWS @@ -116,6 +116,10 @@ New in 1.14.2: risks causing Arg list too long for projects using automatic dependency tracking and having a ton of source files (bug#18744). + - Automake tries to offer a more

[PATCH] dist: ordering of files in DIST_COMMON is deterministic now

2014-12-22 Thread Stefano Lattarini
similar commit v1.14-19-g52e6404. Fixes automake bug http://debbugs.gnu.org/17908 * bin/automake.in (handle_dist): Sort @dist_common. (print_autodist_files): Swap invocations of 'sort' and 'uniq', for consistency with the new code in 'handle_dist' and to get rid of a minor hack. * NEWS: Update

Re: [PATCH] dist: ordering of files in DIST_COMMON is deterministic now

2014-12-22 Thread Peter Rosin
diff --git a/NEWS b/NEWS index bdc9bb9..5d14c5e 100644 --- a/NEWS +++ b/NEWS @@ -116,6 +116,10 @@ New in 1.14.2: risks causing Arg list too long for projects using automatic dependency tracking and having a ton of source files (bug#18744). + - Automake tries to offer a more

Re: [PATCH] dist: ordering of files in DIST_COMMON is deterministic now

2014-12-22 Thread Stefano Lattarini
Hi Peter. On 12/22/2014 01:30 PM, Peter Rosin wrote: diff --git a/NEWS b/NEWS index bdc9bb9..5d14c5e 100644 --- a/NEWS +++ b/NEWS @@ -116,6 +116,10 @@ New in 1.14.2: risks causing Arg list too long for projects using automatic dependency tracking and having a ton of source files

[PATCH] tests: refactor some tests on DIST_COMMON

2014-12-22 Thread Stefano Lattarini
: + echo ' ' $(DIST_COMMON) ' ' | $(FGREP) ' $(top_srcdir)/depcomp ' +END $ACLOCAL $AUTOCONF $AUTOMAKE test ! -e depcomp -cat subdir/Makefile.am 'END' +cat subdir/Makefile.am 'END' bin_PROGRAMS = foo +.PHONY: test-distcom +test-distcom: + echo ' ' $(DIST_COMMON) ' ' | $(FGREP

[PATCH] cleanup: refactor code to initialize DIST_COMMON

2014-12-22 Thread Stefano Lattarini
There is not need to make that an Automake variable early, only to later get and munge its contents, and use the new content to redefine the variable. * bin/automake.in (@dist_common): New global variable. (push_dist_common, handle_dist): Use it. (handle_dist): Define am__DIST_COMMON instead

bug#18734: [PATCH] vala: Improper parsing of valac arguments leads to garbage in DIST_COMMON

2014-10-15 Thread Colomban Wendling
Hi, The parsing of valac flags is too permissive and incorrectly matches some input, possibly leading to garbage in DIST_COMMON -- and then, build failures. The problem is that parsing of valac flags uses a non-anchored pattern and so any argument happening to be a subset of a parsed argument

[PATCH] dist: don't bother putting README first in $(DIST_COMMON)

2012-05-03 Thread Stefano Lattarini
Comments on some of our automake-time pre-processing of $(DIST_COMMON) said that it was done in order to put README first because it then becomes easier to make a Usenet-compliant shar file. But such a format is hardly relevant anymore, and not worth the (albeit small) added complexity

[PATCH 5/8] dist: separate auxiliary file instantiation from DIST_COMMON update

2011-10-09 Thread Stefano Lattarini
This change simplifies the automake internals dealing with the checking, copying and distributing of required auxiliary files. With this change, a required auxiliary file is *unconditionally* added to the contents of the DIST_COMMON variable in the generated Makefile.in, before checking whether

Re: Automake 1.5 - depcomp not added to DIST_COMMON

2001-11-09 Thread Akim Demaille
adl == Alexandre Duret-Lutz [EMAIL PROTECTED] writes: adl 2001-09-22 Alexandre Duret-Lutz [EMAIL PROTECTED] adlFix for distcommon2.test: * automake.in adl (automake_needs_to_reprocess_all_files): New variable. (main): adl Process all Makefiles a second time if adl

Re: Automake 1.5 - depcomp not added to DIST_COMMON

2001-11-09 Thread Alexandre Duret-Lutz
leading to .lo objects. +* Fixed late inclusion of --add-missing files (e.g. depcomp) in DIST_COMMON New in 1.5: * Support for `configure.ac'. Index: automake.in === RCS file: /cvs/automake/automake/automake.in,v retrieving revision

depcomp sometimes missing in DIST_COMMON files

2001-10-16 Thread Martin Frydl
Hello, I've discovered some problem with depcomp file. If I haven't it in my root and run automake --foreign -a, it will be created, but it will not be listed in DIST_COMMON files of Makefile.in. As a result, it is missing in distribution package and it cannot be successfully built. If I

Re: Automake 1.5 - depcomp not added to DIST_COMMON

2001-09-22 Thread Alexandre Duret-Lutz
. Pavel The problem is that Automake doesn't add depcomp to DIST_COMMON if Pavel 1) the sources are in the subdirectory and Pavel 2) depcomp doesn't already exist in the top-level directory. depcomp should appear in the DIST_COMMON variable from the toplevel, unfortunately its existence starts

Re: Automake 1.5 - depcomp not added to DIST_COMMON

2001-09-22 Thread Raja R Harinath
); + } } +++$automake_has_run; } +while ($automake_needs_to_reprocess_all_files); This doesn't look like it'll work with, say automake --add-missing src/Makefile This won't add 'depcomp' to DIST_COMMON in the top Makefile.in. - Hari -- Raja R Harinath -- [EMAIL

Re: Automake 1.5 - depcomp not added to DIST_COMMON

2001-09-22 Thread Robert Collins
- Original Message - From: Raja R Harinath [EMAIL PROTECTED] This doesn't look like it'll work with, say automake --add-missing src/Makefile This won't add 'depcomp' to DIST_COMMON in the top Makefile.in. You cannot use automake --add-missing src/Makefile until a straight

Re: DIST_COMMON broke

2001-02-07 Thread Derek R. Price
"Derek R. Price" wrote: "Derek R. Price" wrote: Looks like someone broke the 'make dist' target in the last few days. Specifically, input files from AC_OUTPUT are no longer being added to DIST_COMMON... Here's the patch. This doesn't appear to be the correct fix.

Re: DIST_COMMON broke

2001-02-07 Thread Pavel Roskin
Hello, Derek! Looks like someone broke the 'make dist' target in the last few days. I also noticed that. Specifically, input files from AC_OUTPUT are no longer being added to DIST_COMMON... Exactly the same problem. Here's the patch. This doesn't appear to be the correct fix

Re: DIST_COMMON broke

2001-02-07 Thread Pavel Roskin
Hello, Tom! Derek I've attached a slightly more succinct test for the original Derek problem I pointed out (distcommon.test). It's nice as a Derek perquisite at least, as it doesn't require autoconf or make... Derek I'm not quite sure I understand the second problem you pointed Derek out.

Re: DIST_COMMON broke

2001-02-07 Thread Pavel Roskin
This area still requires more work. I think I know another case where it can fail: suppose you do `AC_OUTPUT(subdir/foo)' where there is no Makefile.am in subdir? Then I think no rule to rebuild subdir/foo will be generated. I would not call it a "failure" - if Automake doesn't control

Re: DIST_COMMON broke

2001-02-07 Thread Tom Tromey
This area still requires more work. I think I know another case where it can fail: suppose you do `AC_OUTPUT(subdir/foo)' where there is no Makefile.am in subdir? Then I think no rule to rebuild subdir/foo will be generated. Pavel I would not call it a "failure" - if Automake doesn't

Re: DIST_COMMON broke

2001-02-07 Thread Derek R. Price
Tom Tromey wrote: Anyway I wrote a test for the weird case and checked it in. I also checked in a fix for both the recent bugs in that area. I'm afraid I'm not entirely sure why my fix fixes distcommon.test :-(. Checked in? Fixes? I'm not pulling any changes... Derek -- Derek Price

Re: DIST_COMMON broke

2001-02-07 Thread Derek R. Price
/\\$/{N;s/\\.//g;}' testSubDir/Makefile.in \ |grep '^DIST_COMMON.*subdir/bar.in' Makefile.in || exit 1 exit 0

Re: DIST_COMMON broke

2001-02-07 Thread Tom Tromey
Derek Checked in? Fixes? I'm not pulling any changes... I can't explain that. I've seen the commit message and everything. You aren't using the subversions automake are you? That is a mirror that doesn't update. Tom

Re: DIST_COMMON broke

2001-02-07 Thread Tom Tromey
"Derek" == Derek R Price [EMAIL PROTECTED] writes: Derek Also, looking at this area of the code reminds me that I sent Derek a, unfortunately largish, patch in something over a month ago Derek that hasn't been reviewed to my knowledge. The patch was Derek intended to fix a misplaced depcomp

Re: DIST_COMMON broke

2001-02-07 Thread Tom Tromey
You aren't using the subversions automake are you? That is a mirror that doesn't update. Derek Yeah, I am. Where is the other one? All the info is available via the home page. http://sources.redhat.com/automake/ Tom

Re: DIST_COMMON broke

2001-02-07 Thread Derek R. Price
"Derek R. Price" wrote: Tom Tromey wrote: Derek Checked in? Fixes? I'm not pulling any changes... I can't explain that. I've seen the commit message and everything. You aren't using the subversions automake are you? That is a mirror that doesn't update. Yeah, I am. Where is

Re: DIST_COMMON broke

2001-02-07 Thread Derek R. Price
Tom Tromey wrote: "Derek" == Derek R Price [EMAIL PROTECTED] writes: Derek Also, looking at this area of the code reminds me that I sent Derek a, unfortunately largish, patch in something over a month ago Derek that hasn't been reviewed to my knowledge. The patch was Derek intended to

Re: DIST_COMMON broke

2001-02-07 Thread Derek R. Price
Tom Tromey wrote: "Derek" == Derek R Price [EMAIL PROTECTED] writes: Derek Also, looking at this area of the code reminds me that I sent Derek a, unfortunately largish, patch in something over a month ago Derek that hasn't been reviewed to my knowledge. The patch was Derek intended to