summaryrefslogtreecommitdiffstats
path: root/meta-initramfs
diff options
context:
space:
mode:
authorYi Zhao <yi.zhao@windriver.com>2023-01-03 17:02:21 +0800
committerKhem Raj <raj.khem@gmail.com>2023-01-04 15:33:58 -0800
commiteefad4d27a4578e56bc686b6aa0306e4ec5491c0 (patch)
tree71c957e6886773cdc10b0d60dd0ac656d7592f26 /meta-initramfs
parent29abac4415ca21de10e80cca7fd4a87ca76b8f03 (diff)
downloadmeta-openembedded-eefad4d27a4578e56bc686b6aa0306e4ec5491c0.tar.gz
grubby: update to latest git rev
* Refresh patches. * Update SRC_URI. The upstrem repository has been archived. * Depends on rpm to rpm-sort build. * Add a patch to fix rpm-sort build error. * Do not specify PREFIX as the issue has been fixed upstream. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-initramfs')
-rw-r--r--meta-initramfs/recipes-devtools/grubby/grubby/0001-Add-another-variable-LIBS-to-provides-libraries-from.patch24
-rw-r--r--meta-initramfs/recipes-devtools/grubby/grubby/0001-rename-grub2-editenv-to-grub-editenv.patch (renamed from meta-initramfs/recipes-devtools/grubby/grubby/grubby-rename-grub2-editenv-to-grub-editenv.patch)10
-rw-r--r--meta-initramfs/recipes-devtools/grubby/grubby/0002-Add-another-variable-LIBS-to-provides-libraries-from.patch38
-rw-r--r--meta-initramfs/recipes-devtools/grubby/grubby/0003-include-paths.h-for-_PATH_MOUNTED.patch (renamed from meta-initramfs/recipes-devtools/grubby/grubby/0002-include-paths.h-for-_PATH_MOUNTED.patch)10
-rw-r--r--meta-initramfs/recipes-devtools/grubby/grubby/0004-rpm-sort-include-string.h-for-strverscmp.patch33
-rw-r--r--meta-initramfs/recipes-devtools/grubby/grubby_git.bb19
6 files changed, 93 insertions, 41 deletions
diff --git a/meta-initramfs/recipes-devtools/grubby/grubby/0001-Add-another-variable-LIBS-to-provides-libraries-from.patch b/meta-initramfs/recipes-devtools/grubby/grubby/0001-Add-another-variable-LIBS-to-provides-libraries-from.patch
deleted file mode 100644
index dfbe7ba6b..000000000
--- a/meta-initramfs/recipes-devtools/grubby/grubby/0001-Add-another-variable-LIBS-to-provides-libraries-from.patch
+++ /dev/null
@@ -1,24 +0,0 @@
1From b7b3caa9b5c8abcd3c371d0683001cd681e104b3 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 15 Jul 2017 10:19:22 -0700
4Subject: [PATCH 1/2] Add another variable LIBS to provides libraries from env
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7
8---
9 Makefile | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12diff --git a/Makefile b/Makefile
13index cc7e823..ae30a07 100644
14--- a/Makefile
15+++ b/Makefile
16@@ -31,7 +31,7 @@ ifneq ($(VERBOSE_TEST),)
17 VERBOSE_TEST="--verbose"
18 endif
19
20-grubby_LIBS = -lblkid -lpopt
21+grubby_LIBS = -lblkid -lpopt ${LIBS}
22
23 all: grubby
24
diff --git a/meta-initramfs/recipes-devtools/grubby/grubby/grubby-rename-grub2-editenv-to-grub-editenv.patch b/meta-initramfs/recipes-devtools/grubby/grubby/0001-rename-grub2-editenv-to-grub-editenv.patch
index e693916e1..7e1615c5b 100644
--- a/meta-initramfs/recipes-devtools/grubby/grubby/grubby-rename-grub2-editenv-to-grub-editenv.patch
+++ b/meta-initramfs/recipes-devtools/grubby/grubby/0001-rename-grub2-editenv-to-grub-editenv.patch
@@ -1,21 +1,20 @@
1From 15f0572f2f456c2c1b700bc790d9ce7a5c13cc74 Mon Sep 17 00:00:00 2001 1From 7a72139d2e3cc80f64090a823afe7bcea76e4792 Mon Sep 17 00:00:00 2001
2From: Jackie Huang <jackie.huang@windriver.com> 2From: Jackie Huang <jackie.huang@windriver.com>
3Date: Tue, 4 Aug 2015 23:54:41 -0700 3Date: Tue, 4 Aug 2015 23:54:41 -0700
4Subject: [PATCH] rename grub2-editenv to grub-editenv 4Subject: [PATCH] rename grub2-editenv to grub-editenv
5 5
6We don't use the name grub2-editenv for grub2. 6We don't use the name grub2-editenv for grub2.
7 7
8Upstream-Status: Inappropriate 8Upstream-Status: Inactive-Upstream [lastcommit: 2022 lastrelease: 2016]
9 9
10Signed-off-by: Jackie Huang <jackie.huang@windriver.com> 10Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
11
12--- 11---
13 grubby.c | 4 ++-- 12 grubby.c | 4 ++--
14 test.sh | 8 ++++---- 13 test.sh | 8 ++++----
15 2 files changed, 6 insertions(+), 6 deletions(-) 14 2 files changed, 6 insertions(+), 6 deletions(-)
16 15
17diff --git a/grubby.c b/grubby.c 16diff --git a/grubby.c b/grubby.c
18index 396041a..3ceae69 100644 17index 98c1516..be832f6 100644
19--- a/grubby.c 18--- a/grubby.c
20+++ b/grubby.c 19+++ b/grubby.c
21@@ -301,7 +301,7 @@ static char *grub2GetEnv(struct configFileInfo *info, char *name) 20@@ -301,7 +301,7 @@ static char *grub2GetEnv(struct configFileInfo *info, char *name)
@@ -74,3 +73,6 @@ index 33d24cf..009479c 100755
74 "saved_entry=title" 73 "saved_entry=title"
75 74
76 testing="GRUB2 --default-index with default=saved_entry" 75 testing="GRUB2 --default-index with default=saved_entry"
76--
772.25.1
78
diff --git a/meta-initramfs/recipes-devtools/grubby/grubby/0002-Add-another-variable-LIBS-to-provides-libraries-from.patch b/meta-initramfs/recipes-devtools/grubby/grubby/0002-Add-another-variable-LIBS-to-provides-libraries-from.patch
new file mode 100644
index 000000000..967a4c94f
--- /dev/null
+++ b/meta-initramfs/recipes-devtools/grubby/grubby/0002-Add-another-variable-LIBS-to-provides-libraries-from.patch
@@ -0,0 +1,38 @@
1From c02d1bf46174656cdb6f7c08fa3e8fa520edcd8e Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 15 Jul 2017 10:19:22 -0700
4Subject: [PATCH] Add another variable LIBS to provides libraries from env
5
6Upstream-Status: Inactive-Upstream [lastcommit: 2022 lastrelease: 2016]
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
10 Makefile | 5 +++--
11 1 file changed, 3 insertions(+), 2 deletions(-)
12
13diff --git a/Makefile b/Makefile
14index 968c276..75abe44 100644
15--- a/Makefile
16+++ b/Makefile
17@@ -31,7 +31,8 @@ ifneq ($(VERBOSE_TEST),)
18 VERBOSE_TEST="--verbose"
19 endif
20
21-grubby_LIBS = -lblkid -lpopt
22+grubby_LIBS = -lblkid -lpopt ${LIBS}
23+rpm-sort_LIBS = ${LIBS}
24
25 all: grubby rpm-sort
26
27@@ -63,7 +64,7 @@ grubby:: $(OBJECTS)
28 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(grubby_LIBS)
29
30 rpm-sort::rpm-sort.o
31- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ -lrpmio
32+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ -lrpmio $(rpm-sort_LIBS)
33
34 clean:
35 rm -f *.o grubby rpm-sort *~
36--
372.25.1
38
diff --git a/meta-initramfs/recipes-devtools/grubby/grubby/0002-include-paths.h-for-_PATH_MOUNTED.patch b/meta-initramfs/recipes-devtools/grubby/grubby/0003-include-paths.h-for-_PATH_MOUNTED.patch
index de8133a3a..86ae01021 100644
--- a/meta-initramfs/recipes-devtools/grubby/grubby/0002-include-paths.h-for-_PATH_MOUNTED.patch
+++ b/meta-initramfs/recipes-devtools/grubby/grubby/0003-include-paths.h-for-_PATH_MOUNTED.patch
@@ -1,7 +1,9 @@
1From 8f844ac7f44b8dc428d06cd6958c5f32d383d01c Mon Sep 17 00:00:00 2001 1From 7e68976eb6edd766471c11382f5bf57940ba9315 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 15 Jul 2017 10:19:50 -0700 3Date: Sat, 15 Jul 2017 10:19:50 -0700
4Subject: [PATCH 2/2] include paths.h for _PATH_MOUNTED 4Subject: [PATCH] include paths.h for _PATH_MOUNTED
5
6Upstream-Status: Inactive-Upstream [lastcommit: 2022 lastrelease: 2016]
5 7
6Signed-off-by: Khem Raj <raj.khem@gmail.com> 8Signed-off-by: Khem Raj <raj.khem@gmail.com>
7--- 9---
@@ -9,7 +11,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 1 file changed, 1 insertion(+) 11 1 file changed, 1 insertion(+)
10 12
11diff --git a/grubby.c b/grubby.c 13diff --git a/grubby.c b/grubby.c
12index 47a1a15..59f74a9 100644 14index be832f6..4825797 100644
13--- a/grubby.c 15--- a/grubby.c
14+++ b/grubby.c 16+++ b/grubby.c
15@@ -34,6 +34,7 @@ 17@@ -34,6 +34,7 @@
@@ -21,5 +23,5 @@ index 47a1a15..59f74a9 100644
21 23
22 #include "log.h" 24 #include "log.h"
23-- 25--
242.13.3 262.25.1
25 27
diff --git a/meta-initramfs/recipes-devtools/grubby/grubby/0004-rpm-sort-include-string.h-for-strverscmp.patch b/meta-initramfs/recipes-devtools/grubby/grubby/0004-rpm-sort-include-string.h-for-strverscmp.patch
new file mode 100644
index 000000000..c68b492eb
--- /dev/null
+++ b/meta-initramfs/recipes-devtools/grubby/grubby/0004-rpm-sort-include-string.h-for-strverscmp.patch
@@ -0,0 +1,33 @@
1From 45bc228090b3adfc0a5058b9cd019d91831e110a Mon Sep 17 00:00:00 2001
2From: Yi Zhao <yi.zhao@windriver.com>
3Date: Tue, 3 Jan 2023 13:59:48 +0800
4Subject: [PATCH] rpm-sort: include string.h for strverscmp
5
6Include string.h to fix build error:
7rpm-sort.c: In function 'package_version_compare':
8rpm-sort.c:156:13: error: 'strverscmp' undeclared (first use in this function)
9 156 | cmp = strverscmp;
10 | ^~~~~~~~~~
11
12Upstream-Status: Inactive-Upstream [lastcommit: 2022 lastrelease: 2016]
13
14Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
15---
16 rpm-sort.c | 1 +
17 1 file changed, 1 insertion(+)
18
19diff --git a/rpm-sort.c b/rpm-sort.c
20index f196356..2eb91ce 100644
21--- a/rpm-sort.c
22+++ b/rpm-sort.c
23@@ -8,6 +8,7 @@
24 #include <argp.h>
25 #include <rpm/rpmlib.h>
26 #include <err.h>
27+#include <string.h>
28
29 typedef enum {
30 RPMNVRCMP,
31--
322.25.1
33
diff --git a/meta-initramfs/recipes-devtools/grubby/grubby_git.bb b/meta-initramfs/recipes-devtools/grubby/grubby_git.bb
index bbfabf020..ff673e21b 100644
--- a/meta-initramfs/recipes-devtools/grubby/grubby_git.bb
+++ b/meta-initramfs/recipes-devtools/grubby/grubby_git.bb
@@ -9,25 +9,26 @@ LICENSE = "GPL-2.0-or-later"
9 9
10LIC_FILES_CHKSUM = "file://COPYING;md5=892f569a555ba9c07a568a7c0c4fa63a" 10LIC_FILES_CHKSUM = "file://COPYING;md5=892f569a555ba9c07a568a7c0c4fa63a"
11 11
12DEPENDS = "popt util-linux" 12DEPENDS = "popt util-linux rpm"
13DEPENDS:append:libc-musl = " libexecinfo" 13DEPENDS:append:libc-musl = " libexecinfo argp-standalone"
14 14
15S = "${WORKDIR}/git" 15S = "${WORKDIR}/git"
16SRCREV = "a1d2ae93408c3408e672d7eba4550fdf27fb0201" 16SRCREV = "c01b0d5bb182bde35b464d14996acf354a3ada2e"
17SRC_URI = "git://github.com/rhboot/grubby.git;protocol=https;;branch=master \ 17SRC_URI = "git://github.com/rhboot/grubby.git;protocol=https;;branch=main \
18 file://grubby-rename-grub2-editenv-to-grub-editenv.patch \ 18 file://0001-rename-grub2-editenv-to-grub-editenv.patch \
19 file://0002-Add-another-variable-LIBS-to-provides-libraries-from.patch \
20 file://0003-include-paths.h-for-_PATH_MOUNTED.patch \
21 file://0004-rpm-sort-include-string.h-for-strverscmp.patch \
19 file://run-ptest \ 22 file://run-ptest \
20 file://0001-Add-another-variable-LIBS-to-provides-libraries-from.patch \
21 file://0002-include-paths.h-for-_PATH_MOUNTED.patch \
22 " 23 "
23 24
24RDEPENDS:${PN} += "dracut" 25RDEPENDS:${PN} += "dracut"
25 26
26inherit autotools-brokensep ptest 27inherit autotools-brokensep ptest
27 28
28EXTRA_OEMAKE = "-e 'CC=${CC}' 'LDFLAGS=${LDFLAGS}' LIBS='${LIBS}' 'PREFIX'=${@bb.utils.contains('DISTRO_FEATURES','usrmerge','/usr','',d)}" 29EXTRA_OEMAKE = "-e 'CC=${CC}' 'LDFLAGS=${LDFLAGS}' 'LIBS=${LIBS}'"
29 30
30LIBS:libc-musl = "-lexecinfo" 31LIBS:libc-musl = "-lexecinfo -largp"
31LIBS ?= "" 32LIBS ?= ""
32do_install_ptest() { 33do_install_ptest() {
33 install -d ${D}${PTEST_PATH} 34 install -d ${D}${PTEST_PATH}