diff options
author | Armin Kuster <akuster808@gmail.com> | 2022-05-03 14:31:21 -0700 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2022-05-14 10:51:32 -0700 |
commit | a764533c20c9cedf0834138076d38d329982e1af (patch) | |
tree | 4cedb5cc647faeef6636ad0319b495cf89d8a2ea /dynamic-layers/meta-perl/recipes-security/bastille/files/fix_version_parse.patch | |
parent | 20c13f6335165d693f7f3270c829b3069dbbad66 (diff) | |
download | meta-security-a764533c20c9cedf0834138076d38d329982e1af.tar.gz |
meta-security: move perl and python recipes to dynamic layers structure
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'dynamic-layers/meta-perl/recipes-security/bastille/files/fix_version_parse.patch')
-rw-r--r-- | dynamic-layers/meta-perl/recipes-security/bastille/files/fix_version_parse.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/dynamic-layers/meta-perl/recipes-security/bastille/files/fix_version_parse.patch b/dynamic-layers/meta-perl/recipes-security/bastille/files/fix_version_parse.patch new file mode 100644 index 0000000..5923c04 --- /dev/null +++ b/dynamic-layers/meta-perl/recipes-security/bastille/files/fix_version_parse.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | Upstream Status: Inappropriate [No upstream maintenance] | ||
2 | |||
3 | Signed-off-by: Anne Mulhern <mulhern@yoctoproject.org> | ||
4 | |||
5 | --- | ||
6 | |||
7 | Index: Bastille/bin/bastille | ||
8 | =================================================================== | ||
9 | --- Bastille.orig/bin/bastille | ||
10 | +++ Bastille/bin/bastille | ||
11 | @@ -162,11 +162,12 @@ fi | ||
12 | # We check that the version is at least the minimum | ||
13 | |||
14 | PERL_VERSION=`${CURRENT_PERL_PATH}/perl -version | | ||
15 | - head -2 | # the second line contains the version | ||
16 | + head -n 2 | # the second line contains the version | ||
17 | tr " " "\n" | # split words into separate lines | ||
18 | - sed -e "s/^v//" | # to get rid of the v in v5.6.0 | ||
19 | - grep "^[1-9]\." | # find a "word" that starts with number dot | ||
20 | - sed -e "s/_/./"` # substitute _patchlevel with .patchlevel | ||
21 | + grep "^(v" | # find a "word" that starts with '(v' | ||
22 | + sed -e "s/^(v//" -e "s/)//" -e "s/_/./"` | ||
23 | + # to get rid of the (v in v5.6.0 | ||
24 | + # substitute _patchlevel with .patchlevel | ||
25 | # (used in 5.005_03 and prior) | ||
26 | |||
27 | # everything before the first . | ||