Skip to contentSkip to conversation

trivial build patch

PATCH Patrick Welche 4 participants 5 messages Apr 16, 2013 – Apr 17, 2013

lore
Share & tools
lore
#0 lore raw

Trivial build fix for those of us not using bash... (xenbits.xen.org/xen)

Cheers,

Patrick

Quoted 1 line

From f4431ab39b6056e4cceede2e8c40fc0b11b3bcc0 Mon Sep 17 00:00:00 2001

From: Patrick Welche <[email protected]>
Date: Wed, 10 Apr 2013 11:34:11 +0100
Subject: [PATCH] test(1) uses = not == for string comparison

---
 m4/path_or_fail.m4 | 2 +-
 m4/python_devel.m4 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
m4/path_or_fail.m4 +1 -1
index ece8cd4..04dee42 100644
@@ -1,6 +1,6 @@
 AC_DEFUN([AX_PATH_PROG_OR_FAIL],
 [AC_PATH_PROG([$1], [$2], [no])
-if test x"${$1}" == x"no" 
+if test x"${$1}" = x"no" 
 then
     AC_MSG_ERROR([Unable to find $2, please install $2])
 fi])
m4/python_devel.m4 +1 -1
index 0a2202c..659e7d4 100644
@@ -4,7 +4,7 @@ ac_previous_ldflags=$LDFLAGS
 ac_python_version=`$PYTHON -c 'import distutils.sysconfig; \
     print distutils.sysconfig.get_config_var("VERSION")'`
 AC_PATH_PROG([pyconfig], [$PYTHON-config], [no])
-AS_IF([test x"$pyconfig" == x"no"], [
+AS_IF([test x"$pyconfig" = x"no"], [
     dnl For those that don't have python-config
     CPPFLAGS="$CFLAGS `$PYTHON -c 'import distutils.sysconfig; \
         print "-I" + distutils.sysconfig.get_config_var("INCLUDEPY")'`"
Signature · 1 line
1.8.2.1

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#1 lore raw
Quoted 7 lines · Patrick Welche

Trivial build fix for those of us not using bash... (xenbits.xen.org/xen)

Cheers,

Patrick

Quoted 7 lines

0001-test-1-uses-not-for-string-comparison.patch

From f4431ab39b6056e4cceede2e8c40fc0b11b3bcc0 Mon Sep 17 00:00:00 2001
From: Patrick Welche <[email protected]>
Date: Wed, 10 Apr 2013 11:34:11 +0100
Subject: [PATCH] test(1) uses = not == for string comparison

Thanks, but this patch is missing a SoB, please see:

http://wiki.xen.org/wiki/Submitting_Xen_Patches#Signing_off_a_patch

Apart from that:

Quoted 31 lines
---
 m4/path_or_fail.m4 | 2 +-
 m4/python_devel.m4 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
m4/path_or_fail.m4 +1 -1
index ece8cd4..04dee42 100644
@@ -1,6 +1,6 @@
 AC_DEFUN([AX_PATH_PROG_OR_FAIL],
 [AC_PATH_PROG([$1], [$2], [no])
-if test x"${$1}" == x"no" 
+if test x"${$1}" = x"no" 
 then
     AC_MSG_ERROR([Unable to find $2, please install $2])
 fi])
m4/python_devel.m4 +1 -2
index 0a2202c..659e7d4 100644
@@ -4,7 +4,7 @@ ac_previous_ldflags=$LDFLAGS
 ac_python_version=`$PYTHON -c 'import distutils.sysconfig; \
     print distutils.sysconfig.get_config_var("VERSION")'`
 AC_PATH_PROG([pyconfig], [$PYTHON-config], [no])
-AS_IF([test x"$pyconfig" == x"no"], [
+AS_IF([test x"$pyconfig" = x"no"], [
     dnl For those that don't have python-config
     CPPFLAGS="$CFLAGS `$PYTHON -c 'import distutils.sysconfig; \
         print "-I" + distutils.sysconfig.get_config_var("INCLUDEPY")'`"
-- 1.8.2.1
author Acked-by Roger Pau Monné
#2 lore raw
Quoted 6 lines · Roger Pau Monn
Quoted 1 line · Patrick Welche

Trivial build fix for those of us not using bash... (xenbits.xen.org/xen)

Thanks, but this patch is missing a SoB, please see:

http://wiki.xen.org/wiki/Submitting_Xen_Patches#Signing_off_a_patch

Thanks for the note - I'll attempt git send-email in the future too...

Cheers,

Patrick

Quoted 1 line

From d2049651bd599bc7942c55eebe4da23023b6a9d2 Mon Sep 17 00:00:00 2001

From: Patrick Welche <[email protected]>
Date: Wed, 10 Apr 2013 11:34:11 +0100
Subject: [PATCH 1/2] test(1) uses = not == for string comparison
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 m4/path_or_fail.m4 | 2 +-
 m4/python_devel.m4 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
m4/path_or_fail.m4 +1 -1
index ece8cd4..04dee42 100644
@@ -1,6 +1,6 @@
 AC_DEFUN([AX_PATH_PROG_OR_FAIL],
 [AC_PATH_PROG([$1], [$2], [no])
-if test x"${$1}" == x"no" 
+if test x"${$1}" = x"no" 
 then
     AC_MSG_ERROR([Unable to find $2, please install $2])
 fi])
m4/python_devel.m4 +1 -1
index 0a2202c..659e7d4 100644
@@ -4,7 +4,7 @@ ac_previous_ldflags=$LDFLAGS
 ac_python_version=`$PYTHON -c 'import distutils.sysconfig; \
     print distutils.sysconfig.get_config_var("VERSION")'`
 AC_PATH_PROG([pyconfig], [$PYTHON-config], [no])
-AS_IF([test x"$pyconfig" == x"no"], [
+AS_IF([test x"$pyconfig" = x"no"], [
     dnl For those that don't have python-config
     CPPFLAGS="$CFLAGS `$PYTHON -c 'import distutils.sysconfig; \
         print "-I" + distutils.sysconfig.get_config_var("INCLUDEPY")'`"
Signature · 1 line
1.8.2.1

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#4 lore raw
In reply to Patrick Welche
Quoted 9 lines · Patrick Welche
Quoted 6 lines · Roger Pau Monn
Quoted 1 line · Patrick Welche

Trivial build fix for those of us not using bash... (xenbits.xen.org/xen)

Thanks, but this patch is missing a SoB, please see:

http://wiki.xen.org/wiki/Submitting_Xen_Patches#Signing_off_a_patch

Thanks for the note - I'll attempt git send-email in the future too...

Please.

I've applied this and rerun autogen.sh and added the phrase "Avoids a bash-ism" to the commit message.