diff options
author | Peter Bergin <peter@berginkonsult.se> | 2022-10-31 22:10:12 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-11-01 17:34:59 +0000 |
commit | a501f13c500ffe0f5f6a7a971dfeb56f80f09955 (patch) | |
tree | def4c9358baa519026ad3aab4fdf220cd0819510 | |
parent | f5320f05bd06a82b152751eba8dedb4e720daec7 (diff) | |
download | poky-a501f13c500ffe0f5f6a7a971dfeb56f80f09955.tar.gz |
gptfdisk: remove warning message from target system
A recent change in libuuid made warning when running
sgdisk. Backport patch from upstream to silent warning.
The warning:
"Warning! Unable to generate a proper UUID! Creating an improper one as a last
resort! Windows 7 may crash if you save this partition table!"
(From OE-Core rev: ce6491b900e509a776eddaf6bd57251628393fa3)
Signed-off-by: Peter Bergin <peter@berginkonsult.se>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/fdisk/gptfdisk/0001-Updated-guid.cc-to-deal-with-minor-change-in-libuuid.patch | 27 | ||||
-rw-r--r-- | meta/recipes-devtools/fdisk/gptfdisk_1.0.9.bb | 1 |
2 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-devtools/fdisk/gptfdisk/0001-Updated-guid.cc-to-deal-with-minor-change-in-libuuid.patch b/meta/recipes-devtools/fdisk/gptfdisk/0001-Updated-guid.cc-to-deal-with-minor-change-in-libuuid.patch new file mode 100644 index 0000000000..f358081092 --- /dev/null +++ b/meta/recipes-devtools/fdisk/gptfdisk/0001-Updated-guid.cc-to-deal-with-minor-change-in-libuuid.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | From c640d9011a8330ebaad501784fb0ee1ce5e7a5ef Mon Sep 17 00:00:00 2001 | ||
2 | From: Rod Smith <rodsmith@rodsbooks.com> | ||
3 | Date: Sat, 16 Apr 2022 09:32:04 -0400 | ||
4 | Subject: [PATCH] Updated guid.cc to deal with minor change in libuuid | ||
5 | |||
6 | Upstream-Status: Backport [https://sourceforge.net/p/gptfdisk/code/ci/6a8416cbd12d55f882bb751993b94f72d338d96f/] | ||
7 | Signed-off-by: Peter Bergin <peter@berginkonsult.se> | ||
8 | --- | ||
9 | guid.cc | 2 +- | ||
10 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
11 | |||
12 | diff --git a/guid.cc b/guid.cc | ||
13 | index 1e73ab7..d3e4fd5 100644 | ||
14 | --- a/guid.cc | ||
15 | +++ b/guid.cc | ||
16 | @@ -141,7 +141,7 @@ void GUIDData::Zero(void) { | ||
17 | void GUIDData::Randomize(void) { | ||
18 | int i, uuidGenerated = 0; | ||
19 | |||
20 | -#ifdef _UUID_UUID_H | ||
21 | +#if defined (_UUID_UUID_H) || defined (_UL_LIBUUID_UUID_H) | ||
22 | uuid_generate(uuidData); | ||
23 | ReverseBytes(&uuidData[0], 4); | ||
24 | ReverseBytes(&uuidData[4], 2); | ||
25 | -- | ||
26 | 2.34.1 | ||
27 | |||
diff --git a/meta/recipes-devtools/fdisk/gptfdisk_1.0.9.bb b/meta/recipes-devtools/fdisk/gptfdisk_1.0.9.bb index e473b9cd55..2c093c20ae 100644 --- a/meta/recipes-devtools/fdisk/gptfdisk_1.0.9.bb +++ b/meta/recipes-devtools/fdisk/gptfdisk_1.0.9.bb | |||
@@ -9,6 +9,7 @@ DEPENDS = "util-linux" | |||
9 | 9 | ||
10 | SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${PV}/${BP}.tar.gz \ | 10 | SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${PV}/${BP}.tar.gz \ |
11 | file://0001-gptcurses-correctly-include-curses.h.patch \ | 11 | file://0001-gptcurses-correctly-include-curses.h.patch \ |
12 | file://0001-Updated-guid.cc-to-deal-with-minor-change-in-libuuid.patch \ | ||
12 | " | 13 | " |
13 | SRC_URI[sha256sum] = "dafead2693faeb8e8b97832b23407f6ed5b3219bc1784f482dd855774e2d50c2" | 14 | SRC_URI[sha256sum] = "dafead2693faeb8e8b97832b23407f6ed5b3219bc1784f482dd855774e2d50c2" |
14 | 15 | ||