[PATCH] [OE-core] [PATCH] parted: upgrade 3.3 -> 3.4
0001-Move-python-helper-scripts-used-only-in-tests-to-Pyt.patch 0001-libparted-fs-add-sourcedir-lib-to-include-paths.patch 0002-tests-use-skip_-rather-than-skip_test_-which-is-unde.patch removed since they are included in 3.4 Add python3-core to RDEPENDS_parted-ptest since /usr/lib/parted/ptest/tests/msdos-overlap contained in package parted-ptest requires /usr/bin/python3 Signed-off-by: Wang Mingyu --- ...er-scripts-used-only-in-tests-to-Pyt.patch | 33 -- ...s-add-sourcedir-lib-to-include-paths.patch | 26 ...rather-than-skip_test_-which-is-unde.patch | 66 --- .../parted/{parted_3.3.bb => parted_3.4.bb} | 9 +-- 4 files changed, 3 insertions(+), 131 deletions(-) delete mode 100644 meta/recipes-extended/parted/files/0001-Move-python-helper-scripts-used-only-in-tests-to-Pyt.patch delete mode 100644 meta/recipes-extended/parted/files/0001-libparted-fs-add-sourcedir-lib-to-include-paths.patch delete mode 100644 meta/recipes-extended/parted/files/0002-tests-use-skip_-rather-than-skip_test_-which-is-unde.patch rename meta/recipes-extended/parted/{parted_3.3.bb => parted_3.4.bb} (81%) diff --git a/meta/recipes-extended/parted/files/0001-Move-python-helper-scripts-used-only-in-tests-to-Pyt.patch b/meta/recipes-extended/parted/files/0001-Move-python-helper-scripts-used-only-in-tests-to-Pyt.patch deleted file mode 100644 index 829c0c8b78..00 --- a/meta/recipes-extended/parted/files/0001-Move-python-helper-scripts-used-only-in-tests-to-Pyt.patch +++ /dev/null @@ -1,33 +0,0 @@ -From ddbefd80d74c3baaae328332458db447e1666240 Mon Sep 17 00:00:00 2001 -From: Alexander Kanavin -Date: Thu, 27 Apr 2017 16:37:24 +0300 -Subject: [PATCH] Move python helper scripts (used only in tests) to Python 3 - -Upstream-Status: Pending -Signed-off-by: Alexander Kanavin - - tests/gpt-header-move | 2 +- - tests/msdos-overlap | 2 +- - 2 files changed, 2 insertions(+), 2 deletions(-) - -diff --git a/tests/gpt-header-move b/tests/gpt-header-move -index 3dda5cb..a2b9508 100755 a/tests/gpt-header-move -+++ b/tests/gpt-header-move -@@ -1,4 +1,4 @@ --#!/usr/bin/python -+#!/usr/bin/env python3 - - # open img file, subtract 33 from altlba address, and move the last 33 sectors - # back by 33 sectors -diff --git a/tests/msdos-overlap b/tests/msdos-overlap -index d6ae8d6..2c6747b 100755 a/tests/msdos-overlap -+++ b/tests/msdos-overlap -@@ -1,4 +1,4 @@ --#!/usr/bin/python -+#!/usr/bin/env python3 - """ - Write an overlapping partition to a msdos disk - diff --git a/meta/recipes-extended/parted/files/0001-libparted-fs-add-sourcedir-lib-to-include-paths.patch b/meta/recipes-extended/parted/files/0001-libparted-fs-add-sourcedir-lib-to-include-paths.patch deleted file mode 100644 index 4dc2ab259d..00 --- a/meta/recipes-extended/parted/files/0001-libparted-fs-add-sourcedir-lib-to-include-paths.patch +++ /dev/null @@ -1,26 +0,0 @@ -From d60a8a86f6593738b5324ccd8fe3e6d84a1fe7bc Mon Sep 17 00:00:00 2001 -From: Alexander Kanavin -Date: Wed, 11 Dec 2019 14:18:36 +0100 -Subject: [PATCH] libparted/fs: add $sourcedir/lib to include paths - -Otherwise, getopt-pfx-core.h won't be found. - -Upstream-Status: Pending -Signed-off-by: Alexander Kanavin - libparted/fs/Makefile.am | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/libparted/fs/Makefile.am b/libparted/fs/Makefile.am -index 286bff6..65f45d3 100644 a/libparted/fs/Makefile.am -+++ b/libparted/fs/Makefile.am -@@ -3,7 +3,7 @@ - # - # This file may be modified and/or distributed without restriction. - --partedincludedir = -I$(top_builddir)/include -I$(top_srcdir)/include -+partedincludedir = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/lib - - AM_CFLAGS = $(WARN_CFLAGS) - diff --git a/meta/recipes-extended/parted/files/0002-tests-use-skip_-rather-than-skip_test_-which-is-unde.patch b/meta/recipes-extended/parted/files/0002-tests-use-skip_-rather-than-skip_test_-which-is-unde.patch deleted file mode 100644 index 9524adf7b8..00 --- a/meta/recipes-extended/parted/files/0002-tests-use-skip_-rather-than-skip_test_-which-is-unde.patch +++ /dev/null @@ -1,66 +0,0 @@ -From 9f844484cedb39e301b016e9da7852c1a0fb6eea Mon Sep 17 00:00:00 2001 -From: Alexander Kanavin -Date: Wed, 11 Dec 2019 16:27:48 +0100 -Subject: [PATCH] tests: use skip_ rather than skip_test_ (which is undefined) - -Upstream-Status: Pending -Signed-off-by: Alexander Kanavin - tests/t6001-psep.sh | 2 +- - tests/t6004-dm-many-partitions.sh | 2 +- - tests/t6005-dm-uuid.sh| 2 +- - tests/t6006-dm-512b-sectors.sh| 2 +- - 4 files changed, 4 insertions(+), 4 deletions(-) - -diff --git a/tests/t6001-psep.sh b/tests/t6001-psep.sh -index e350bd2..67014a0 100644 a/tests/t6001-psep.sh -+++ b/tests/t6001-psep.sh -@@ -21,7 +21,7 @@ - require_root_ - require_udevadm_settle_ - --(dmsetup --help) > /dev/null 2>&1 || skip_test_ "No dmsetup installed" -+(dmsetup
Re: [OE-core] [PATCH] parted: upgrade 3.3 -> 3.4
Have you confirmed that ptests still pass? Alex On Fri, 5 Feb 2021 at 03:28, Wang Mingyu wrote: > 0001-Move-python-helper-scripts-used-only-in-tests-to-Pyt.patch > 0001-libparted-fs-add-sourcedir-lib-to-include-paths.patch > 0002-tests-use-skip_-rather-than-skip_test_-which-is-unde.patch > removed since they are included in 3.4 > > Signed-off-by: Wang Mingyu > --- > ...er-scripts-used-only-in-tests-to-Pyt.patch | 33 -- > ...s-add-sourcedir-lib-to-include-paths.patch | 26 > ...rather-than-skip_test_-which-is-unde.patch | 66 --- > .../parted/{parted_3.3.bb => parted_3.4.bb} | 7 +- > 4 files changed, 2 insertions(+), 130 deletions(-) > delete mode 100644 > meta/recipes-extended/parted/files/0001-Move-python-helper-scripts-used-only-in-tests-to-Pyt.patch > delete mode 100644 > meta/recipes-extended/parted/files/0001-libparted-fs-add-sourcedir-lib-to-include-paths.patch > delete mode 100644 > meta/recipes-extended/parted/files/0002-tests-use-skip_-rather-than-skip_test_-which-is-unde.patch > rename meta/recipes-extended/parted/{parted_3.3.bb => parted_3.4.bb} > (83%) > > diff --git > a/meta/recipes-extended/parted/files/0001-Move-python-helper-scripts-used-only-in-tests-to-Pyt.patch > b/meta/recipes-extended/parted/files/0001-Move-python-helper-scripts-used-only-in-tests-to-Pyt.patch > deleted file mode 100644 > index 829c0c8b78..00 > --- > a/meta/recipes-extended/parted/files/0001-Move-python-helper-scripts-used-only-in-tests-to-Pyt.patch > +++ /dev/null > @@ -1,33 +0,0 @@ > -From ddbefd80d74c3baaae328332458db447e1666240 Mon Sep 17 00:00:00 2001 > -From: Alexander Kanavin > -Date: Thu, 27 Apr 2017 16:37:24 +0300 > -Subject: [PATCH] Move python helper scripts (used only in tests) to > Python 3 > - > -Upstream-Status: Pending > -Signed-off-by: Alexander Kanavin > - > > - tests/gpt-header-move | 2 +- > - tests/msdos-overlap | 2 +- > - 2 files changed, 2 insertions(+), 2 deletions(-) > - > -diff --git a/tests/gpt-header-move b/tests/gpt-header-move > -index 3dda5cb..a2b9508 100755 > a/tests/gpt-header-move > -+++ b/tests/gpt-header-move > -@@ -1,4 +1,4 @@ > --#!/usr/bin/python > -+#!/usr/bin/env python3 > - > - # open img file, subtract 33 from altlba address, and move the last 33 > sectors > - # back by 33 sectors > -diff --git a/tests/msdos-overlap b/tests/msdos-overlap > -index d6ae8d6..2c6747b 100755 > a/tests/msdos-overlap > -+++ b/tests/msdos-overlap > -@@ -1,4 +1,4 @@ > --#!/usr/bin/python > -+#!/usr/bin/env python3 > - """ > - Write an overlapping partition to a msdos disk > - > diff --git > a/meta/recipes-extended/parted/files/0001-libparted-fs-add-sourcedir-lib-to-include-paths.patch > b/meta/recipes-extended/parted/files/0001-libparted-fs-add-sourcedir-lib-to-include-paths.patch > deleted file mode 100644 > index 4dc2ab259d..00 > --- > a/meta/recipes-extended/parted/files/0001-libparted-fs-add-sourcedir-lib-to-include-paths.patch > +++ /dev/null > @@ -1,26 +0,0 @@ > -From d60a8a86f6593738b5324ccd8fe3e6d84a1fe7bc Mon Sep 17 00:00:00 2001 > -From: Alexander Kanavin > -Date: Wed, 11 Dec 2019 14:18:36 +0100 > -Subject: [PATCH] libparted/fs: add $sourcedir/lib to include paths > - > -Otherwise, getopt-pfx-core.h won't be found. > - > -Upstream-Status: Pending > -Signed-off-by: Alexander Kanavin > > - libparted/fs/Makefile.am | 2 +- > - 1 file changed, 1 insertion(+), 1 deletion(-) > - > -diff --git a/libparted/fs/Makefile.am b/libparted/fs/Makefile.am > -index 286bff6..65f45d3 100644 > a/libparted/fs/Makefile.am > -+++ b/libparted/fs/Makefile.am > -@@ -3,7 +3,7 @@ > - # > - # This file may be modified and/or distributed without restriction. > - > --partedincludedir = -I$(top_builddir)/include -I$(top_srcdir)/include > -+partedincludedir = -I$(top_builddir)/include -I$(top_srcdir)/include > -I$(top_srcdir)/lib > - > - AM_CFLAGS = $(WARN_CFLAGS) > - > diff --git > a/meta/recipes-extended/parted/files/0002-tests-use-skip_-rather-than-skip_test_-which-is-unde.patch > b/meta/recipes-extended/parted/files/0002-tests-use-skip_-rather-than-skip_test_-which-is-unde.patch > deleted file mode 100644 > index 9524adf7b8..00 > --- > a/meta/recipes-extended/parted/files/0002-tests-use-skip_-rather-than-skip_test_-which-is-unde.patch > +++ /dev/null > @@ -1,66 +0,0 @@ > -From 9f844484cedb39e301b016e9da7852c1a0fb6eea Mon Sep 17 00:00:00 2001 > -From: Alexander Kanavin > -Date: Wed, 11 Dec 2019 16:27:48 +0100 > -Subject: [PATCH] tests: use skip_ rather than skip_test_ (which is > undefined) > - > -Upstream-Status: Pending > -Signed-off-by: Alexander Kanavin > > - tests/t6001-psep.sh | 2 +- > - tests/t6004-dm-many-partitions.sh | 2 +- > - tests/t6005-dm-uuid.sh| 2 +- > - tests/t6006-dm-512b-sectors.sh| 2 +- > - 4 files changed, 4 insertions(+), 4 deletions(-) > - > -diff --git a/tests/t6001-psep.sh b/tests/t6001-psep.sh > -index e350bd2..67014a0 100644 > a/tests/t6001-psep.sh >
[OE-core] [PATCH] parted: upgrade 3.3 -> 3.4
0001-Move-python-helper-scripts-used-only-in-tests-to-Pyt.patch 0001-libparted-fs-add-sourcedir-lib-to-include-paths.patch 0002-tests-use-skip_-rather-than-skip_test_-which-is-unde.patch removed since they are included in 3.4 Signed-off-by: Wang Mingyu --- ...er-scripts-used-only-in-tests-to-Pyt.patch | 33 -- ...s-add-sourcedir-lib-to-include-paths.patch | 26 ...rather-than-skip_test_-which-is-unde.patch | 66 --- .../parted/{parted_3.3.bb => parted_3.4.bb} | 7 +- 4 files changed, 2 insertions(+), 130 deletions(-) delete mode 100644 meta/recipes-extended/parted/files/0001-Move-python-helper-scripts-used-only-in-tests-to-Pyt.patch delete mode 100644 meta/recipes-extended/parted/files/0001-libparted-fs-add-sourcedir-lib-to-include-paths.patch delete mode 100644 meta/recipes-extended/parted/files/0002-tests-use-skip_-rather-than-skip_test_-which-is-unde.patch rename meta/recipes-extended/parted/{parted_3.3.bb => parted_3.4.bb} (83%) diff --git a/meta/recipes-extended/parted/files/0001-Move-python-helper-scripts-used-only-in-tests-to-Pyt.patch b/meta/recipes-extended/parted/files/0001-Move-python-helper-scripts-used-only-in-tests-to-Pyt.patch deleted file mode 100644 index 829c0c8b78..00 --- a/meta/recipes-extended/parted/files/0001-Move-python-helper-scripts-used-only-in-tests-to-Pyt.patch +++ /dev/null @@ -1,33 +0,0 @@ -From ddbefd80d74c3baaae328332458db447e1666240 Mon Sep 17 00:00:00 2001 -From: Alexander Kanavin -Date: Thu, 27 Apr 2017 16:37:24 +0300 -Subject: [PATCH] Move python helper scripts (used only in tests) to Python 3 - -Upstream-Status: Pending -Signed-off-by: Alexander Kanavin - - tests/gpt-header-move | 2 +- - tests/msdos-overlap | 2 +- - 2 files changed, 2 insertions(+), 2 deletions(-) - -diff --git a/tests/gpt-header-move b/tests/gpt-header-move -index 3dda5cb..a2b9508 100755 a/tests/gpt-header-move -+++ b/tests/gpt-header-move -@@ -1,4 +1,4 @@ --#!/usr/bin/python -+#!/usr/bin/env python3 - - # open img file, subtract 33 from altlba address, and move the last 33 sectors - # back by 33 sectors -diff --git a/tests/msdos-overlap b/tests/msdos-overlap -index d6ae8d6..2c6747b 100755 a/tests/msdos-overlap -+++ b/tests/msdos-overlap -@@ -1,4 +1,4 @@ --#!/usr/bin/python -+#!/usr/bin/env python3 - """ - Write an overlapping partition to a msdos disk - diff --git a/meta/recipes-extended/parted/files/0001-libparted-fs-add-sourcedir-lib-to-include-paths.patch b/meta/recipes-extended/parted/files/0001-libparted-fs-add-sourcedir-lib-to-include-paths.patch deleted file mode 100644 index 4dc2ab259d..00 --- a/meta/recipes-extended/parted/files/0001-libparted-fs-add-sourcedir-lib-to-include-paths.patch +++ /dev/null @@ -1,26 +0,0 @@ -From d60a8a86f6593738b5324ccd8fe3e6d84a1fe7bc Mon Sep 17 00:00:00 2001 -From: Alexander Kanavin -Date: Wed, 11 Dec 2019 14:18:36 +0100 -Subject: [PATCH] libparted/fs: add $sourcedir/lib to include paths - -Otherwise, getopt-pfx-core.h won't be found. - -Upstream-Status: Pending -Signed-off-by: Alexander Kanavin - libparted/fs/Makefile.am | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/libparted/fs/Makefile.am b/libparted/fs/Makefile.am -index 286bff6..65f45d3 100644 a/libparted/fs/Makefile.am -+++ b/libparted/fs/Makefile.am -@@ -3,7 +3,7 @@ - # - # This file may be modified and/or distributed without restriction. - --partedincludedir = -I$(top_builddir)/include -I$(top_srcdir)/include -+partedincludedir = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/lib - - AM_CFLAGS = $(WARN_CFLAGS) - diff --git a/meta/recipes-extended/parted/files/0002-tests-use-skip_-rather-than-skip_test_-which-is-unde.patch b/meta/recipes-extended/parted/files/0002-tests-use-skip_-rather-than-skip_test_-which-is-unde.patch deleted file mode 100644 index 9524adf7b8..00 --- a/meta/recipes-extended/parted/files/0002-tests-use-skip_-rather-than-skip_test_-which-is-unde.patch +++ /dev/null @@ -1,66 +0,0 @@ -From 9f844484cedb39e301b016e9da7852c1a0fb6eea Mon Sep 17 00:00:00 2001 -From: Alexander Kanavin -Date: Wed, 11 Dec 2019 16:27:48 +0100 -Subject: [PATCH] tests: use skip_ rather than skip_test_ (which is undefined) - -Upstream-Status: Pending -Signed-off-by: Alexander Kanavin - tests/t6001-psep.sh | 2 +- - tests/t6004-dm-many-partitions.sh | 2 +- - tests/t6005-dm-uuid.sh| 2 +- - tests/t6006-dm-512b-sectors.sh| 2 +- - 4 files changed, 4 insertions(+), 4 deletions(-) - -diff --git a/tests/t6001-psep.sh b/tests/t6001-psep.sh -index e350bd2..67014a0 100644 a/tests/t6001-psep.sh -+++ b/tests/t6001-psep.sh -@@ -21,7 +21,7 @@ - require_root_ - require_udevadm_settle_ - --(dmsetup --help) > /dev/null 2>&1 || skip_test_ "No dmsetup installed" -+(dmsetup --help) > /dev/null 2>&1 || skip_ "No dmsetup installed" - - # Device maps names - should be random to not conflict with existing ones on - # the system -diff