Re: [PATCH] Re: libtool-2.4.2 is fine but libtool-2.4.6 very slow.

Eric Blake <[email protected]>
Newsgroups gmane.comp.gnu.libtool.patches,gmane.comp.gnu.libtool.general
Organization Red Hat, Inc.
Message-ID <[email protected]>
On 09/23/2015 03:37 PM, Pavel Raiskup wrote:

> 
>>From 5e8a4c5173f1aa0786e8eba15fb07bfe04b83862 Mon Sep 17 00:00:00 2001
> From: Pavel Raiskup <[email protected]>
> Date: Fri, 18 Sep 2015 23:17:07 +0200
> Subject: [PATCH] libtoolize: fix infinite recursion in m4
> 
> Some projects use this construct in configure.ac:
> 
>   m4_define([version], m4_include([version])

Missing a )

The faulty package used:

m4_define([version], m4_include(version))

and the infinite recursion occurred _because_ the usage was underquoted.
 But as you wrote things here, you have sufficient quoting that you
won't trigger infinite recursion.  You need to drop the second [] for
this to be an accurate representation of the failure.

>   pkg_version=version
> 
> When the m4_include builtin is undefined (as was done in
> libtoolize and extract-trace scripts), the call to this 'version'
> macro gone to infinite recursion (until ENOMEM).  So rather

s/gone to infinite/enters an infinite/

> re-define all potentially dangerous macros by empty strings,
> suggested by Eric Blake.
> 
> While we are on it, merge the macro-"blacklist" with similar list
> implemented in gettext, except the 'm4_esyscmd'.  It's kept

s/except the/except for/

> defined because we already trace AC_INIT macro for package
> version, while it is often specified by
> m4_esyscmd(git-version-gen).  Similarly to m4_include, m4_esyscmd
> might be opt-in-blacklisted in future.
> 
> References:
> http://lists.gnu.org/archive/html/libtool/2015-09/msg00000.html
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=764580
> 

With the commit message touched up, it looks okay to me.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc (application/pgp-signature, 604 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCAAGBQJWAyMtAAoJEKeha0olJ0Nq4u0H/RFdqQl/nCpdMXygiA7cBnp7
kDBqqfOIPiLsJ5Vo3Rl3nxmORQdsdyge6fBwvqk7Ohl1fc5cYtayL9G/3INZ5Pzq
l6JbNi2heVOjcbHYHg6hmY4lY2GHsnTTmexgk8EcVfnwjOvGpv+LVRQ6X3UJhd/H
Xs9Pw6PeOvTPxBnuexan8NHloTFWniaalVKvyLFhsUlC5CgDG3Zx7SAzKPuNoQyc
U+Fa/8sMkqS4VzGaWfA2fxY6nX5J5vEwClg4H930cxBNnfwGWBD7GscnGtFEimxh
CrDdRdJem98ZQaLSoHH5eFG7CzwSV6wAgFCiAE7oCvuBR1O9F7QdUylYfTqVPT0=
=5OJE
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.