aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/guile/files/guile_2.0.6_fix_sed_error.patch
blob: 5597bb21f1aa5f47c0d2ec21281af42dcc843fb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Upstream-Status: Pending

This fixes sed issue when prefix has / in it, like /usr/local

autoreconf error avoided:
| sed: -e expression #1, char 9: unknown option to `s'
| configure.ac:39: error: AC_INIT should be called with package and version arguments

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
2012/05/01

Index: guile-2.0.5/build-aux/git-version-gen
===================================================================
--- guile-2.0.5.orig/build-aux/git-version-gen
+++ guile-2.0.5/build-aux/git-version-gen
@@ -187,7 +187,7 @@ else
     v=UNKNOWN
 fi
 
-v=`echo "$v" |sed "s/^$prefix//"`
+v=`echo "$v" |sed "s#^$prefix##"`
 
 # Test whether to append the "-dirty" suffix only if the version
 # string we're using came from git.  I.e., skip the test if it's "UNKNOWN"