diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2023-01-03 17:02:21 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-01-04 15:33:58 -0800 |
commit | eefad4d27a4578e56bc686b6aa0306e4ec5491c0 (patch) | |
tree | 71c957e6886773cdc10b0d60dd0ac656d7592f26 /meta-initramfs | |
parent | 29abac4415ca21de10e80cca7fd4a87ca76b8f03 (diff) | |
download | meta-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.patch | 24 | ||||
-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.patch | 38 | ||||
-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.patch | 33 | ||||
-rw-r--r-- | meta-initramfs/recipes-devtools/grubby/grubby_git.bb | 19 |
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 dfbe7ba6b4..0000000000 --- a/meta-initramfs/recipes-devtools/grubby/grubby/0001-Add-another-variable-LIBS-to-provides-libraries-from.patch +++ /dev/null | |||
@@ -1,24 +0,0 @@ | |||
1 | From b7b3caa9b5c8abcd3c371d0683001cd681e104b3 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 15 Jul 2017 10:19:22 -0700 | ||
4 | Subject: [PATCH 1/2] Add another variable LIBS to provides libraries from env | ||
5 | |||
6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
7 | |||
8 | --- | ||
9 | Makefile | 2 +- | ||
10 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
11 | |||
12 | diff --git a/Makefile b/Makefile | ||
13 | index 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 e693916e1d..7e1615c5b5 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 @@ | |||
1 | From 15f0572f2f456c2c1b700bc790d9ce7a5c13cc74 Mon Sep 17 00:00:00 2001 | 1 | From 7a72139d2e3cc80f64090a823afe7bcea76e4792 Mon Sep 17 00:00:00 2001 |
2 | From: Jackie Huang <jackie.huang@windriver.com> | 2 | From: Jackie Huang <jackie.huang@windriver.com> |
3 | Date: Tue, 4 Aug 2015 23:54:41 -0700 | 3 | Date: Tue, 4 Aug 2015 23:54:41 -0700 |
4 | Subject: [PATCH] rename grub2-editenv to grub-editenv | 4 | Subject: [PATCH] rename grub2-editenv to grub-editenv |
5 | 5 | ||
6 | We don't use the name grub2-editenv for grub2. | 6 | We don't use the name grub2-editenv for grub2. |
7 | 7 | ||
8 | Upstream-Status: Inappropriate | 8 | Upstream-Status: Inactive-Upstream [lastcommit: 2022 lastrelease: 2016] |
9 | 9 | ||
10 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | 10 | Signed-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 | ||
17 | diff --git a/grubby.c b/grubby.c | 16 | diff --git a/grubby.c b/grubby.c |
18 | index 396041a..3ceae69 100644 | 17 | index 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 | -- | ||
77 | 2.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 0000000000..967a4c94fb --- /dev/null +++ b/meta-initramfs/recipes-devtools/grubby/grubby/0002-Add-another-variable-LIBS-to-provides-libraries-from.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | From c02d1bf46174656cdb6f7c08fa3e8fa520edcd8e Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 15 Jul 2017 10:19:22 -0700 | ||
4 | Subject: [PATCH] Add another variable LIBS to provides libraries from env | ||
5 | |||
6 | Upstream-Status: Inactive-Upstream [lastcommit: 2022 lastrelease: 2016] | ||
7 | |||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | --- | ||
10 | Makefile | 5 +++-- | ||
11 | 1 file changed, 3 insertions(+), 2 deletions(-) | ||
12 | |||
13 | diff --git a/Makefile b/Makefile | ||
14 | index 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 | -- | ||
37 | 2.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 de8133a3a4..86ae01021f 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 @@ | |||
1 | From 8f844ac7f44b8dc428d06cd6958c5f32d383d01c Mon Sep 17 00:00:00 2001 | 1 | From 7e68976eb6edd766471c11382f5bf57940ba9315 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Sat, 15 Jul 2017 10:19:50 -0700 | 3 | Date: Sat, 15 Jul 2017 10:19:50 -0700 |
4 | Subject: [PATCH 2/2] include paths.h for _PATH_MOUNTED | 4 | Subject: [PATCH] include paths.h for _PATH_MOUNTED |
5 | |||
6 | Upstream-Status: Inactive-Upstream [lastcommit: 2022 lastrelease: 2016] | ||
5 | 7 | ||
6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 8 | Signed-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 | ||
11 | diff --git a/grubby.c b/grubby.c | 13 | diff --git a/grubby.c b/grubby.c |
12 | index 47a1a15..59f74a9 100644 | 14 | index 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 | -- |
24 | 2.13.3 | 26 | 2.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 0000000000..c68b492ebe --- /dev/null +++ b/meta-initramfs/recipes-devtools/grubby/grubby/0004-rpm-sort-include-string.h-for-strverscmp.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From 45bc228090b3adfc0a5058b9cd019d91831e110a Mon Sep 17 00:00:00 2001 | ||
2 | From: Yi Zhao <yi.zhao@windriver.com> | ||
3 | Date: Tue, 3 Jan 2023 13:59:48 +0800 | ||
4 | Subject: [PATCH] rpm-sort: include string.h for strverscmp | ||
5 | |||
6 | Include string.h to fix build error: | ||
7 | rpm-sort.c: In function 'package_version_compare': | ||
8 | rpm-sort.c:156:13: error: 'strverscmp' undeclared (first use in this function) | ||
9 | 156 | cmp = strverscmp; | ||
10 | | ^~~~~~~~~~ | ||
11 | |||
12 | Upstream-Status: Inactive-Upstream [lastcommit: 2022 lastrelease: 2016] | ||
13 | |||
14 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
15 | --- | ||
16 | rpm-sort.c | 1 + | ||
17 | 1 file changed, 1 insertion(+) | ||
18 | |||
19 | diff --git a/rpm-sort.c b/rpm-sort.c | ||
20 | index 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 | -- | ||
32 | 2.25.1 | ||
33 | |||
diff --git a/meta-initramfs/recipes-devtools/grubby/grubby_git.bb b/meta-initramfs/recipes-devtools/grubby/grubby_git.bb index bbfabf0209..ff673e21bb 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 | ||
10 | LIC_FILES_CHKSUM = "file://COPYING;md5=892f569a555ba9c07a568a7c0c4fa63a" | 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=892f569a555ba9c07a568a7c0c4fa63a" |
11 | 11 | ||
12 | DEPENDS = "popt util-linux" | 12 | DEPENDS = "popt util-linux rpm" |
13 | DEPENDS:append:libc-musl = " libexecinfo" | 13 | DEPENDS:append:libc-musl = " libexecinfo argp-standalone" |
14 | 14 | ||
15 | S = "${WORKDIR}/git" | 15 | S = "${WORKDIR}/git" |
16 | SRCREV = "a1d2ae93408c3408e672d7eba4550fdf27fb0201" | 16 | SRCREV = "c01b0d5bb182bde35b464d14996acf354a3ada2e" |
17 | SRC_URI = "git://github.com/rhboot/grubby.git;protocol=https;;branch=master \ | 17 | SRC_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 | ||
24 | RDEPENDS:${PN} += "dracut" | 25 | RDEPENDS:${PN} += "dracut" |
25 | 26 | ||
26 | inherit autotools-brokensep ptest | 27 | inherit autotools-brokensep ptest |
27 | 28 | ||
28 | EXTRA_OEMAKE = "-e 'CC=${CC}' 'LDFLAGS=${LDFLAGS}' LIBS='${LIBS}' 'PREFIX'=${@bb.utils.contains('DISTRO_FEATURES','usrmerge','/usr','',d)}" | 29 | EXTRA_OEMAKE = "-e 'CC=${CC}' 'LDFLAGS=${LDFLAGS}' 'LIBS=${LIBS}'" |
29 | 30 | ||
30 | LIBS:libc-musl = "-lexecinfo" | 31 | LIBS:libc-musl = "-lexecinfo -largp" |
31 | LIBS ?= "" | 32 | LIBS ?= "" |
32 | do_install_ptest() { | 33 | do_install_ptest() { |
33 | install -d ${D}${PTEST_PATH} | 34 | install -d ${D}${PTEST_PATH} |