Skip to contentSkip to conversation

configure: unset interfering variables

PATCH Cornelia Huck 2 participants 3 messages Jun 6, 2014 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 20 lines · On Wed, 28 May 2014 12:39:17 +0200 Cornelia Huck <[email protected]>…

The check for big or little endianness relies on grep reporting match/non-match on the generated binary. If the user specified --binary-files=without-match in their GREP_OPTIONS, this will fail.

Let's follow what autoconf does and unset GREP_OPTIONS and CLICOLOR_FORCE at the beginning of the script.

---
 configure | 5 +++++
 1 file changed, 5 insertions(+)
configure +0 -0
index 0e516f9..525da56 100755
@@ -3,6 +3,11 @@
 # qemu configure script (c) 2003 Fabrice Bellard

configure line 13

Quoted 10 lines
configure +5 -0
 #
 
+# Unset some variables known to interfere with behavior of common tools,
+# just as autoconf does.
+CLICOLOR_FORCE= GREP_OPTIONS=
+unset CLICOLOR_FORCE GREP_OPTIONS
+
 # Temporary directory used for files created while
 # configure runs. Since it is in the build directory
 # we can safely blow away any previous version of it

Is there an obvious tree to merge configure changes through, or should I just throw it into my next s390 pull request?

#3 lore raw

Il 06/06/2014 09:41, Cornelia Huck ha scritto:

Quoted 25 lines
Quoted 22 lines · On Wed, 28 May 2014 12:39:17 +0200 Cornelia Huck <[email protected]>…

The check for big or little endianness relies on grep reporting match/non-match on the generated binary. If the user specified --binary-files=without-match in their GREP_OPTIONS, this will fail.

Let's follow what autoconf does and unset GREP_OPTIONS and CLICOLOR_FORCE at the beginning of the script.

---
 configure | 5 +++++
 1 file changed, 5 insertions(+)
configure +0 -0
index 0e516f9..525da56 100755
@@ -3,6 +3,11 @@
 # qemu configure script (c) 2003 Fabrice Bellard
 #
 
Quoted 11 lines

configure line 13

Quoted 8 lines
configure +5 -0
+# Unset some variables known to interfere with behavior of common tools,
+# just as autoconf does.
+CLICOLOR_FORCE= GREP_OPTIONS=
+unset CLICOLOR_FORCE GREP_OPTIONS
+
 # Temporary directory used for files created while
 # configure runs. Since it is in the build directory
 # we can safely blow away any previous version of it

Is there an obvious tree to merge configure changes through, or should I just throw it into my next s390 pull request?

Hi,

I picked up this patch and will push it to a "configure" branch on github.

Paolo

#4 lore raw
Quoted 38 lines · On Fri, 06 Jun 2014 10:11:27 +0200 Paolo Bonzini <[email protected]> wrote:

Il 06/06/2014 09:41, Cornelia Huck ha scritto:

Quoted 25 lines
Quoted 22 lines · On Wed, 28 May 2014 12:39:17 +0200 Cornelia Huck <[email protected]>…

The check for big or little endianness relies on grep reporting match/non-match on the generated binary. If the user specified --binary-files=without-match in their GREP_OPTIONS, this will fail.

Let's follow what autoconf does and unset GREP_OPTIONS and CLICOLOR_FORCE at the beginning of the script.

---
 configure | 5 +++++
 1 file changed, 5 insertions(+)
configure +0 -0
index 0e516f9..525da56 100755
@@ -3,6 +3,11 @@
 # qemu configure script (c) 2003 Fabrice Bellard
 #
 
Quoted 11 lines

configure line 13

Quoted 8 lines
configure +5 -0
+# Unset some variables known to interfere with behavior of common tools,
+# just as autoconf does.
+CLICOLOR_FORCE= GREP_OPTIONS=
+unset CLICOLOR_FORCE GREP_OPTIONS
+
 # Temporary directory used for files created while
 # configure runs. Since it is in the build directory
 # we can safely blow away any previous version of it

Is there an obvious tree to merge configure changes through, or should I just throw it into my next s390 pull request?

Quoted 6 lines

Hi,

I picked up this patch and will push it to a "configure" branch on github.

Paolo

Cool, thx!