[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Readonly shell variables containing newlines break caching

From: Quinn Grier
Subject: Readonly shell variables containing newlines break caching
Date: Wed, 3 Aug 2016 19:19:15 -0500
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

It appears that a configure script tries to unset all shell variables
that contain newlines in a subshell as part of the caching code. This
causes the subshell to exit early if any of the variables is readonly.
At a minimum, this breaks caching.

Here is a configure.ac file that demonstrates the issue:

      AC_INIT(p, v)
      readonly x='

Here is the result with Autoconf 2.69:

      $ autoconf
      $ ./configure
      ./configure: line 1699: x: readonly variable
      configure: creating ./config.status
      ./configure: line 23: x: readonly variable

If you further compare using the --cache-file option with and without
the x variable being readonly, you'll find that the cache files differ.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]