diff options
-rw-r--r-- | meta-oe/recipes-security/keyutils/files/0001-tests-toolbox.inc.sh-update-regex-for-getting-endian.patch | 35 | ||||
-rw-r--r-- | meta-oe/recipes-security/keyutils/keyutils_1.6.1.bb | 1 |
2 files changed, 36 insertions, 0 deletions
diff --git a/meta-oe/recipes-security/keyutils/files/0001-tests-toolbox.inc.sh-update-regex-for-getting-endian.patch b/meta-oe/recipes-security/keyutils/files/0001-tests-toolbox.inc.sh-update-regex-for-getting-endian.patch new file mode 100644 index 0000000000..728f464331 --- /dev/null +++ b/meta-oe/recipes-security/keyutils/files/0001-tests-toolbox.inc.sh-update-regex-for-getting-endian.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From 935a31dd6f14bd1aff735495f0fdbae4ca05c695 Mon Sep 17 00:00:00 2001 | ||
2 | From: Changqing Li <changqing.li@windriver.com> | ||
3 | Date: Fri, 2 Dec 2022 15:35:40 +0800 | ||
4 | Subject: [PATCH] tests/toolbox.inc.sh: update regex for getting endian | ||
5 | |||
6 | Update regex for getting endian in following condition: | ||
7 | /proc/777/exe: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2 | ||
8 | |||
9 | Upstream-Status: Submited [Submitted to keyrings@vger.kernel.org ] | ||
10 | |||
11 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
12 | --- | ||
13 | tests/toolbox.inc.sh | 4 ++-- | ||
14 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
15 | |||
16 | diff --git a/tests/toolbox.inc.sh b/tests/toolbox.inc.sh | ||
17 | index 1964450..e827e20 100644 | ||
18 | --- a/tests/toolbox.inc.sh | ||
19 | +++ b/tests/toolbox.inc.sh | ||
20 | @@ -13,10 +13,10 @@ | ||
21 | echo === $OUTPUTFILE === | ||
22 | |||
23 | endian=`file -L /proc/$$/exe` | ||
24 | -if expr "$endian" : '.* MSB \+\(executable\|shared object\).*' >&/dev/null | ||
25 | +if expr "$endian" : '.* MSB .*\(executable\|shared object\).*' >&/dev/null | ||
26 | then | ||
27 | endian=BE | ||
28 | -elif expr "$endian" : '.* LSB \+\(executable\|shared object\).*' >&/dev/null | ||
29 | +elif expr "$endian" : '.* LSB .*\(executable\|shared object\).*' >&/dev/null | ||
30 | then | ||
31 | endian=LE | ||
32 | else | ||
33 | -- | ||
34 | 2.25.1 | ||
35 | |||
diff --git a/meta-oe/recipes-security/keyutils/keyutils_1.6.1.bb b/meta-oe/recipes-security/keyutils/keyutils_1.6.1.bb index 8a95a15f6f..019118f38b 100644 --- a/meta-oe/recipes-security/keyutils/keyutils_1.6.1.bb +++ b/meta-oe/recipes-security/keyutils/keyutils_1.6.1.bb | |||
@@ -19,6 +19,7 @@ SRC_URI = "http://people.redhat.com/dhowells/keyutils/${BP}.tar.bz2 \ | |||
19 | file://keyutils-fix-error-report-by-adding-default-message.patch \ | 19 | file://keyutils-fix-error-report-by-adding-default-message.patch \ |
20 | file://run-ptest \ | 20 | file://run-ptest \ |
21 | file://fix_library_install_path.patch \ | 21 | file://fix_library_install_path.patch \ |
22 | file://0001-tests-toolbox.inc.sh-update-regex-for-getting-endian.patch \ | ||
22 | " | 23 | " |
23 | 24 | ||
24 | SRC_URI[md5sum] = "919af7f33576816b423d537f8a8692e8" | 25 | SRC_URI[md5sum] = "919af7f33576816b423d537f8a8692e8" |