]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
gnutls: fix sed command
authorRobert Yang <liezhi.yang@windriver.com>
Sat, 17 Jan 2015 17:08:39 +0000 (09:08 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 23 Jan 2015 11:35:25 +0000 (11:35 +0000)
The "sed 's/.bak//g'" matchs "bitbake", which would cause strange errors
when the S contains "bitbake", fix to "sed 's/\.bak$//'`"

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
meta/recipes-support/gnutls/gnutls/configure.ac-fix-sed-command.patch [new file with mode: 0644]
meta/recipes-support/gnutls/gnutls_3.3.11.bb

diff --git a/meta/recipes-support/gnutls/gnutls/configure.ac-fix-sed-command.patch b/meta/recipes-support/gnutls/gnutls/configure.ac-fix-sed-command.patch
new file mode 100644 (file)
index 0000000..44a9934
--- /dev/null
@@ -0,0 +1,31 @@
+From eb93aa7b986c84da60a3db40afb29d1a70c50223 Mon Sep 17 00:00:00 2001
+From: Robert Yang <liezhi.yang@windriver.com>
+Date: Sat, 17 Jan 2015 17:02:15 +0000
+Subject: [PATCH] configure.ac: fix sed command
+
+The "sed 's/.bak//g'" matchs "bitbake", which would cause strange errors
+when the S contains "bitbake", fix to "sed 's/\.bak$//'`"
+
+Upstream-Status: Pending
+
+Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index c6818a0..1c4582d 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -466,7 +466,7 @@ if test "$NEED_LIBOPTS_DIR" = "true";then
+       dnl replace libopts-generated files with distributed backups, if present
+       missing_baks=
+       for i in ${srcdir}/src/*-args.c.bak ${srcdir}/src/*-args.h.bak; do
+-              nam=`echo $i|sed 's/.bak//g'`
++              nam=`echo $i|sed 's/\.bak$//'`
+               if test -f $i;then
+                       cp -f $i $nam
+               else
+-- 
+2.0.1
+
index 1cf3a747f1701d1d347974fea221466f32a98b86..7ad462ae903f7153e02f5a7d570dfdf2cac39a21 100644 (file)
@@ -3,6 +3,7 @@ require gnutls.inc
 PR = "r1"
 
 SRC_URI += "file://correct_rpl_gettimeofday_signature.patch \
+            file://configure.ac-fix-sed-command.patch \
            "
 SRC_URI[md5sum] = "b657e3010c10cae2244e7ce79ee3d446"
 SRC_URI[sha256sum] = "aef28d629b6ba824bd435f9b23506525e657e3746d4aa021296b13cbaaa6ae71"