summaryrefslogtreecommitdiffstats
path: root/recipes-security/bastille/files/fix_version_parse.patch
diff options
context:
space:
mode:
authorAndrei Dinu <andrei.adrianx.dinu@intel.com>2013-06-17 17:24:38 +0300
committerAndrei Dinu <andrei.adrianx.dinu@intel.com>2013-06-17 17:24:38 +0300
commit60d90b25631471e8193b3069c6a520ccf7c82008 (patch)
treee413ea3904059ff52a4539aeff358518fa0ae327 /recipes-security/bastille/files/fix_version_parse.patch
downloadmeta-security-60d90b25631471e8193b3069c6a520ccf7c82008.tar.gz
meta-security : initial commit
Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com>
Diffstat (limited to 'recipes-security/bastille/files/fix_version_parse.patch')
-rw-r--r--recipes-security/bastille/files/fix_version_parse.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/recipes-security/bastille/files/fix_version_parse.patch b/recipes-security/bastille/files/fix_version_parse.patch
new file mode 100644
index 0000000..3163af1
--- /dev/null
+++ b/recipes-security/bastille/files/fix_version_parse.patch
@@ -0,0 +1,21 @@
1Index: Bastille/bin/bastille
2===================================================================
3--- Bastille.orig/bin/bastille
4+++ Bastille/bin/bastille
5@@ -162,11 +162,12 @@ fi
6 # We check that the version is at least the minimum
7
8 PERL_VERSION=`${CURRENT_PERL_PATH}/perl -version |
9- head -2 | # the second line contains the version
10+ head -n 2 | # the second line contains the version
11 tr " " "\n" | # split words into separate lines
12- sed -e "s/^v//" | # to get rid of the v in v5.6.0
13- grep "^[1-9]\." | # find a "word" that starts with number dot
14- sed -e "s/_/./"` # substitute _patchlevel with .patchlevel
15+ grep "^(v" | # find a "word" that starts with '(v'
16+ sed -e "s/^(v//" -e "s/)//" -e "s/_/./"`
17+ # to get rid of the (v in v5.6.0
18+ # substitute _patchlevel with .patchlevel
19 # (used in 5.005_03 and prior)
20
21 # everything before the first .