]> code.ossystems Code Review - openembedded-core.git/commitdiff
libxml2: fix AM_PATH_XML2
authorRobert Yang <liezhi.yang@windriver.com>
Fri, 8 Apr 2016 10:14:21 +0000 (03:14 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 9 Apr 2016 06:50:25 +0000 (07:50 +0100)
The code: suppose $1 == 2.7:
verdep=ifelse([$1], [], [], [>= $1])
results in:
verdep=>= 2.7
This is wrong in shell:
bash: 2.7: command not found

Use quotation marks to fix the problem.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/libxml/libxml2/libxml-m4-use-pkgconfig.patch

index 0fc84070edd67da172590bc7ebd8d53683507060..32771656184b9049bfbcb7eae36f767a82e8faa9 100644 (file)
@@ -190,7 +190,7 @@ index 68cd824..5fa0a9b 100644
 -          LIBS="$ac_save_LIBS"
 -       fi
 -     fi
-+  verdep=ifelse([$1], [], [], [>= $1])
++  verdep=ifelse([$1], [], [], [">= $1"])
 +  PKG_CHECK_MODULES(XML, [libxml-2.0 $verdep], [$2], [$3])
  
 -     XML_CPPFLAGS=""