summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2022-11-20 14:31:21 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-11-22 12:26:46 +0000
commite3f65282c9e6a42198eabd7bc3132367aaeb3bab (patch)
tree148e36351d42b37ff7271a304a8354da4574cd54
parentaf0d4a2c432ebba4d1c110b6dff30ca477ded088 (diff)
downloadpoky-e3f65282c9e6a42198eabd7bc3132367aaeb3bab.tar.gz
popt: update 1.18 -> 1.19
Patch is merged upstream. License-update: clarification https://github.com/rpm-software-management/popt/commit/dcec86df3cfc96d3dd3a3e9f7f1086b768d2d88f Backport a regression fix for gptfdisk. (From OE-Core rev: 262aa17e0eeac5274298ec9a938e5353094b8fa5) Signed-off-by: Alexander Kanavin <alex@linutronix.de> 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-Fix-failure-crash-of-sgdisk-when-compiled-with-lates.patch59
-rw-r--r--meta/recipes-devtools/fdisk/gptfdisk_1.0.9.bb1
-rw-r--r--meta/recipes-support/popt/popt/0001-popt-test-output-format-for-ptest.patch68
-rw-r--r--meta/recipes-support/popt/popt_1.19.bb (renamed from meta/recipes-support/popt/popt_1.18.bb)12
4 files changed, 65 insertions, 75 deletions
diff --git a/meta/recipes-devtools/fdisk/gptfdisk/0001-Fix-failure-crash-of-sgdisk-when-compiled-with-lates.patch b/meta/recipes-devtools/fdisk/gptfdisk/0001-Fix-failure-crash-of-sgdisk-when-compiled-with-lates.patch
new file mode 100644
index 0000000000..218d9d6713
--- /dev/null
+++ b/meta/recipes-devtools/fdisk/gptfdisk/0001-Fix-failure-crash-of-sgdisk-when-compiled-with-lates.patch
@@ -0,0 +1,59 @@
1From 5d5e76d369a412bfb3d2cebb5fc0a7509cef878d Mon Sep 17 00:00:00 2001
2From: Rod Smith <rodsmith@rodsbooks.com>
3Date: Fri, 15 Apr 2022 18:10:14 -0400
4Subject: [PATCH] Fix failure & crash of sgdisk when compiled with latest popt
5 (commit 740; presumably eventually release 1.19)
6
7Upstream-Status: Backport [https://sourceforge.net/p/gptfdisk/code/ci/5d5e76d369a412bfb3d2cebb5fc0a7509cef878d/]
8Signed-off-by: Alexander Kanavin <alex@linutronix.de>
9---
10 NEWS | 8 ++++++++
11 gptcl.cc | 2 +-
12 support.h | 2 +-
13 3 files changed, 10 insertions(+), 2 deletions(-)
14
15diff --git a/NEWS b/NEWS
16index c7add56..9e153fd 100644
17--- a/NEWS
18+++ b/NEWS
19@@ -1,3 +1,11 @@
20+1.0.10 (?/??/2022):
21+-------------------
22+
23+- Fixed problem that caused sgdisk to crash with errors about being unable
24+ to read the disk's partition table when compiled with the latest popt
25+ (commit 740, which is pre-release as I type; presumably version 1.19 and
26+ later once released).
27+
28 1.0.9 (4/14/2022):
29 ------------------
30
31diff --git a/gptcl.cc b/gptcl.cc
32index 34c9421..0d578eb 100644
33--- a/gptcl.cc
34+++ b/gptcl.cc
35@@ -155,7 +155,7 @@ int GPTDataCL::DoOptions(int argc, char* argv[]) {
36 } // while
37
38 // Assume first non-option argument is the device filename....
39- device = (char*) poptGetArg(poptCon);
40+ device = strdup((char*) poptGetArg(poptCon));
41 poptResetContext(poptCon);
42
43 if (device != NULL) {
44diff --git a/support.h b/support.h
45index 8ba9ad1..f91f1bc 100644
46--- a/support.h
47+++ b/support.h
48@@ -8,7 +8,7 @@
49 #include <stdlib.h>
50 #include <string>
51
52-#define GPTFDISK_VERSION "1.0.9"
53+#define GPTFDISK_VERSION "1.0.9.1"
54
55 #if defined (__FreeBSD__) || defined (__FreeBSD_kernel__) || defined (__APPLE__)
56 // Darwin (Mac OS) & FreeBSD: disk IOCTLs are different, and there is no lseek64
57--
582.30.2
59
diff --git a/meta/recipes-devtools/fdisk/gptfdisk_1.0.9.bb b/meta/recipes-devtools/fdisk/gptfdisk_1.0.9.bb
index 2c093c20ae..4a25945363 100644
--- a/meta/recipes-devtools/fdisk/gptfdisk_1.0.9.bb
+++ b/meta/recipes-devtools/fdisk/gptfdisk_1.0.9.bb
@@ -10,6 +10,7 @@ DEPENDS = "util-linux"
10SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${PV}/${BP}.tar.gz \ 10SRC_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 file://0001-Updated-guid.cc-to-deal-with-minor-change-in-libuuid.patch \
13 file://0001-Fix-failure-crash-of-sgdisk-when-compiled-with-lates.patch \
13 " 14 "
14SRC_URI[sha256sum] = "dafead2693faeb8e8b97832b23407f6ed5b3219bc1784f482dd855774e2d50c2" 15SRC_URI[sha256sum] = "dafead2693faeb8e8b97832b23407f6ed5b3219bc1784f482dd855774e2d50c2"
15 16
diff --git a/meta/recipes-support/popt/popt/0001-popt-test-output-format-for-ptest.patch b/meta/recipes-support/popt/popt/0001-popt-test-output-format-for-ptest.patch
deleted file mode 100644
index 020949cc34..0000000000
--- a/meta/recipes-support/popt/popt/0001-popt-test-output-format-for-ptest.patch
+++ /dev/null
@@ -1,68 +0,0 @@
1From 330b77081c3a4c7ae76cb08602db385b40fa7ff7 Mon Sep 17 00:00:00 2001
2From: Simone Weiss <simone.weiss@elektrobit.com>
3Date: Mon, 13 Dec 2021 09:29:53 +0000
4Subject: [PATCH] popt test output format for ptest
5
6patch test output format to match simple-test as it is used in ptests.
7
8Upstream-Status: Pending
9
10Signed-off-by: Simone Weiss <simone.weiss@elektrobit.com>
11Signed-off-by: David Niederpruem <david.niederpruem@elektrobit.com>
12---
13 tests/testit.sh | 20 ++++++++------------
14 1 file changed, 8 insertions(+), 12 deletions(-)
15
16diff --git a/tests/testit.sh b/tests/testit.sh
17index 2a7b4aa..50b42e2 100755
18--- a/tests/testit.sh
19+++ b/tests/testit.sh
20@@ -5,12 +5,11 @@ run() {
21 name=$1; shift
22 answer=$1; shift
23
24- echo Running test $name.
25-
26 result=`HOME=$builddir $builddir/$prog $*`
27 if [ "$answer" != "$result" ]; then
28- echo "Test \"$prog $*\" failed with: \"$result\" != \"$answer\" "
29- exit 2
30+ echo "FAIL: $name"
31+ else
32+ echo "PASS: $name"
33 fi
34 }
35
36@@ -23,17 +22,17 @@ run_diff() {
37 out=$builddir/tmp.out
38 diff_file=$builddir/tmp.diff
39
40- echo Running test $name.
41-
42 $builddir/$prog $in_file > $out
43 ret=$?
44 diff $out $answer_file > $diff_file
45 diff_ret=$?
46
47 if [ "$diff_ret" != "0" ]; then
48- echo "Test \"$name\" failed output is in $out, diff is:"
49- cat $diff_file
50- exit 2
51+ echo "FAIL: $name"
52+ echo "diff is:"
53+ cat $diff_file
54+ else
55+ echo "PASS: $name"
56 fi
57 rm $out $diff_file
58 }
59@@ -174,6 +173,3 @@ Help options:
60 #run_diff test3 "test3 - 51" test3-data/01.input test3-data/01.answer
61 #run_diff test3 "test3 - 52" test3-data/02.input test3-data/02.answer
62 #run_diff test3 "test3 - 53" test3-data/03.input test3-data/03.answer
63-
64-echo ""
65-echo "Passed."
66--
672.17.1
68
diff --git a/meta/recipes-support/popt/popt_1.18.bb b/meta/recipes-support/popt/popt_1.19.bb
index b465f8817d..b1d8bea790 100644
--- a/meta/recipes-support/popt/popt_1.18.bb
+++ b/meta/recipes-support/popt/popt_1.19.bb
@@ -4,16 +4,14 @@ HOMEPAGE = "https://www.rpm.org/"
4SECTION = "libs" 4SECTION = "libs"
5 5
6LICENSE = "MIT" 6LICENSE = "MIT"
7LIC_FILES_CHKSUM = "file://COPYING;md5=cb0613c30af2a8249b8dcc67d3edb06d" 7LIC_FILES_CHKSUM = "file://COPYING;md5=e0206ac9471d06667e076212db20c5f4"
8 8
9DEPENDS = "virtual/libiconv" 9DEPENDS = "virtual/libiconv"
10 10
11SRC_URI = "\ 11SRC_URI = "http://ftp.rpm.org/popt/releases/popt-1.x/${BP}.tar.gz \
12 http://ftp.rpm.org/popt/releases/popt-1.x/${BP}.tar.gz \ 12 file://run-ptest \
13 file://0001-popt-test-output-format-for-ptest.patch \ 13 "
14 file://run-ptest \ 14SRC_URI[sha256sum] = "c25a4838fc8e4c1c8aacb8bd620edb3084a3d63bf8987fdad3ca2758c63240f9"
15"
16SRC_URI[sha256sum] = "5159bc03a20b28ce363aa96765f37df99ea4d8850b1ece17d1e6ad5c24fdc5d1"
17 15
18inherit autotools gettext ptest 16inherit autotools gettext ptest
19 17