public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* BUGREPORT: Problem with automake/autoconf scripts
@ 2001-12-11  6:52 Martin Oberhuber
  2001-12-11  9:25 ` Charles Wilson
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Oberhuber @ 2001-12-11  6:52 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

[-- Attachment #1: Type: text/plain, Size: 1466 bytes --]

Hello,

I have found a problem with the automake and autoconf scripts installed
in /usr/bin for switching between the DEVEL and STABLE versions of
automake and autoconf.

The bug leads to breaking automake or aclocal on scripts where some
text follows the AC_PREREQ line (like, for instance, in the DDD 
configuration script).

In Detail: automake allows a line like
AC_PREREQ(2.13)dnl
where some text follows the closing parenthesis after the version number.
The trailing text is not correctly eliminated by the SED script
which extracts the version number in the automake/autoconf scripts
distributed.

For correcting the bug, replace the following line:
VER=`sed -n -e '/AC_PREREQ/s/[^(]*(\([[:digit:]\.]*\))/\1/p' < $infile`
with the corrected line:
VER=`sed -n -e '/AC_PREREQ/s/[^(]*(\([[:digit:]\.]*\)).*$/\1/p' < $infile`

in all autoconf/automake scripts:
aclocal autoheader autoreconf autoupdate autoconf automake autoscan ifnames

corrected versions of these scripts are in the attached tarfile.

Cheers,
Martin

--
---------------------------------/()\-----------------------------------
DI Martin Oberhuber                mailto:martin.oberhuber@windriver.com
Senior Software Engineer           Phone  (UTC +1h): +43 (662) 457915-85
Wind River Systems (Salzburg) GmbH              Fax: +43 (662) 457915-6
Jakob-Haringer-Str.8, A-5020 Salzburg, Austria  http://www.windriver.com
----------------------- How Smart Things Think -------------------------
 


[-- Attachment #2: autoscript-fixes.tgz --]
[-- Type: application/octet-stream, Size: 3580 bytes --]

[-- Attachment #3: Type: text/plain, Size: 214 bytes --]

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: BUGREPORT: Problem with automake/autoconf scripts
  2001-12-11  6:52 BUGREPORT: Problem with automake/autoconf scripts Martin Oberhuber
@ 2001-12-11  9:25 ` Charles Wilson
  0 siblings, 0 replies; 2+ messages in thread
From: Charles Wilson @ 2001-12-11  9:25 UTC (permalink / raw)
  To: Martin Oberhuber; +Cc: 'cygwin@cygwin.com'

Martin Oberhuber wrote:

> Hello,
> 
> I have found a problem with the automake and autoconf scripts installed
> in /usr/bin for switching between the DEVEL and STABLE versions of
> automake and autoconf.
> 
> The bug leads to breaking automake or aclocal on scripts where some
> text follows the AC_PREREQ line (like, for instance, in the DDD 
> configuration script).
> 
> In Detail: automake allows a line like
> AC_PREREQ(2.13)dnl
> where some text follows the closing parenthesis after the version number.
> The trailing text is not correctly eliminated by the SED script
> which extracts the version number in the automake/autoconf scripts
> distributed.
> 
> For correcting the bug, replace the following line:
> VER=`sed -n -e '/AC_PREREQ/s/[^(]*(\([[:digit:]\.]*\))/\1/p' < $infile`
> with the corrected line:
> VER=`sed -n -e '/AC_PREREQ/s/[^(]*(\([[:digit:]\.]*\)).*$/\1/p' < $infile`
> 
> in all autoconf/automake scripts:
> aclocal autoheader autoreconf autoupdate autoconf automake autoscan ifnames
> 
> corrected versions of these scripts are in the attached tarfile.


Thanks -- I've corrected this in the primary source packages here:
   http://www.neuro.gatech.edu/users/cwilson/auto-wrapper/
     automake-scripts-1.5b.tar.bz2
     autoconf-scripts-2.52a.tar.bz2

Also, I've put updated cygwin-style packages for Corinna here:
   http://www.neuro.gatech.edu/users/cwilson/cygutils/testing/
     automake-1.5b-1.tar.bz2
     automake-1.5b-1-src.tar.bz2
     autoconf-2.52a-1.tar.bz2
     autoconf-2.52a-1-src.tar.bz2

Finally, I've also made a note to correct this in the (very very 
experimental) libtool scripts.

Next time, however, it would be better to generate a patch against the 
source code (automake.in, aclocal.in) and not simply create new output 
files.  (That's kinda like shipping a corrected '.exe' file without 
incuding the source.  Not quite, because THESE ".exe" files are just 
text, but still...)

And also a changelog.

Thanks,
Chuck



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-12-11 17:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-11  6:52 BUGREPORT: Problem with automake/autoconf scripts Martin Oberhuber
2001-12-11  9:25 ` Charles Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).