summaryrefslogtreecommitdiffstats
path: root/meta-initramfs
diff options
context:
space:
mode:
authorMingli Yu <Mingli.Yu@windriver.com>2016-09-19 13:45:26 +0800
committerMartin Jansa <Martin.Jansa@gmail.com>2016-09-26 08:29:12 +0200
commitbe8aa13c2fef0d103bb32defa862a5ea568690c8 (patch)
tree8b2833747c2c218c08a96d7aa85e69a8abbe4d0d /meta-initramfs
parentdfcb67af35936a351789044039a55e3fad299c1a (diff)
downloadmeta-openembedded-be8aa13c2fef0d103bb32defa862a5ea568690c8.tar.gz
grubby: add bash to RDEPENDS_grubby-ptest
* Add bash to RDEPENDS_grubby-ptest * As grubby upstream still continually updates ptest script test.sh with bash specific syntax such as commit 98cab84501f86bd98f12653c11f4ecc632139399 and etc, so no need to remove bashisms Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-initramfs')
-rw-r--r--meta-initramfs/recipes-devtools/grubby/grubby/grubby-remove-bashisms-in-test.sh.patch29
-rw-r--r--meta-initramfs/recipes-devtools/grubby/grubby_8.40.bb3
2 files changed, 1 insertions, 31 deletions
diff --git a/meta-initramfs/recipes-devtools/grubby/grubby/grubby-remove-bashisms-in-test.sh.patch b/meta-initramfs/recipes-devtools/grubby/grubby/grubby-remove-bashisms-in-test.sh.patch
deleted file mode 100644
index 6734e7f0f..000000000
--- a/meta-initramfs/recipes-devtools/grubby/grubby/grubby-remove-bashisms-in-test.sh.patch
+++ /dev/null
@@ -1,29 +0,0 @@
1From c3a004b8d6dff1a767573dd7baf5d45efddb9f2b Mon Sep 17 00:00:00 2001
2From: Mingli Yu <mingli.yu@windriver.com>
3Date: Fri, 15 Jul 2016 11:23:17 +0800
4Subject: [PATCH] grubby: remove bashisms in test.sh
5
6* Update #!/bin/bash to #!/bin/sh in test.sh to
7 remove below warning:
8 QA Issue: /usr/lib/grubby/ptest/test.sh contained
9 in package grubby-ptest requires /bin/bash, but no
10 providers found in RDEPENDS_grubby-ptest? [file-rdeps]
11
12Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
13---
14 test.sh | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/test.sh b/test.sh
18index f738388..f3537f3 100755
19--- a/test.sh
20+++ b/test.sh
21@@ -1,4 +1,4 @@
22-#!/bin/bash
23+#!/bin/sh
24 #
25 # test.sh -- grubby regression tests
26 #
27--
282.8.1
29
diff --git a/meta-initramfs/recipes-devtools/grubby/grubby_8.40.bb b/meta-initramfs/recipes-devtools/grubby/grubby_8.40.bb
index 1a61e9dce..0e9379085 100644
--- a/meta-initramfs/recipes-devtools/grubby/grubby_8.40.bb
+++ b/meta-initramfs/recipes-devtools/grubby/grubby_8.40.bb
@@ -13,7 +13,6 @@ DEPENDS = "popt util-linux"
13SRC_URI = "https://github.com/rhinstaller/${BPN}/archive/${PV}-1.tar.gz;downloadfilename=${BPN}-${PV}-1.tar.gz \ 13SRC_URI = "https://github.com/rhinstaller/${BPN}/archive/${PV}-1.tar.gz;downloadfilename=${BPN}-${PV}-1.tar.gz \
14 file://grubby-rename-grub2-editenv-to-grub-editenv.patch \ 14 file://grubby-rename-grub2-editenv-to-grub-editenv.patch \
15 file://run-ptest \ 15 file://run-ptest \
16 file://grubby-remove-bashisms-in-test.sh.patch \
17" 16"
18 17
19SRC_URI[md5sum] = "1005907b275d6d93368d045274537d86" 18SRC_URI[md5sum] = "1005907b275d6d93368d045274537d86"
@@ -33,6 +32,6 @@ do_install_ptest() {
33 sed -i 's|./grubby|grubby|' ${D}${PTEST_PATH}/test.sh 32 sed -i 's|./grubby|grubby|' ${D}${PTEST_PATH}/test.sh
34} 33}
35 34
36RDEPENDS_${PN}-ptest = "util-linux-getopt" 35RDEPENDS_${PN}-ptest = "util-linux-getopt bash"
37 36
38COMPATIBLE_HOST = '(x86_64.*|i.86.*)-(linux|freebsd.*)' 37COMPATIBLE_HOST = '(x86_64.*|i.86.*)-(linux|freebsd.*)'