All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] util-linux: upgrade 2.34 -> 2.35.1
@ 2020-02-26 17:35 Pierre-Jean Texier
  2020-02-28 12:25 ` Richard Purdie
  0 siblings, 1 reply; 3+ messages in thread
From: Pierre-Jean Texier @ 2020-02-26 17:35 UTC (permalink / raw)
  To: openembedded-core

License-Update: add GPLv3 text in README.licensing

Also:
 - Drop upstreamed patch
 - Use 'disable-hwclock-gplv3' explicitly.

Since commit 7a3000f7ba548cf7d74ac77cc63fe8de228a669e ("hwclock: use parse_date function") hwclock is linked
with parse_date.y from gnullib. This gnulib code is distributed with GPLv3.
So, we have to use '--disable-hwclock-gplv3' to exclude this code.

See full changelog https://lore.kernel.org/util-linux/20200131095846.ogjtqrs7ai774tka@ws.net.home/T/#u

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
---
Changes v1 -> v2
 - bump to 2.35.1 instead of 2.35
 - use disable-hwclock-gplv3 option to not use datetime parsing GPLv3 code
 
FYI, hwclock will be made GPLv2-only again in v2.36, see:

 - https://lore.kernel.org/util-linux/20200127202152.4jh2w4chch37wgee@ws.net.home/T/#e0c176440ca3f7b10693ff8f0afaf114b4b94405d

 meta/recipes-core/util-linux/util-linux.inc        |  3 +-
 ...lsblk-force-to-print-PKNAME-for-partition.patch | 36 ----------------------
 meta/recipes-core/util-linux/util-linux_2.34.bb    | 14 ---------
 meta/recipes-core/util-linux/util-linux_2.35.1.bb  | 13 ++++++++
 4 files changed, 15 insertions(+), 51 deletions(-)
 delete mode 100644 meta/recipes-core/util-linux/util-linux/0001-lsblk-force-to-print-PKNAME-for-partition.patch
 delete mode 100644 meta/recipes-core/util-linux/util-linux_2.34.bb
 create mode 100644 meta/recipes-core/util-linux/util-linux_2.35.1.bb

diff --git a/meta/recipes-core/util-linux/util-linux.inc b/meta/recipes-core/util-linux/util-linux.inc
index 179cb3d..0566569 100644
--- a/meta/recipes-core/util-linux/util-linux.inc
+++ b/meta/recipes-core/util-linux/util-linux.inc
@@ -8,7 +8,7 @@ SECTION = "base"
 
 LICENSE = "GPLv2+ & LGPLv2.1+ & BSD-3-Clause & BSD-4-Clause"
 
-LIC_FILES_CHKSUM = "file://README.licensing;md5=972a134f1e14b2b060e365df2fab0099 \
+LIC_FILES_CHKSUM = "file://README.licensing;md5=0fd5c050c6187d2bf0a4492b7f4e33da \
                     file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
                     file://Documentation/licenses/COPYING.GPL-2.0-or-later;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
                     file://Documentation/licenses/COPYING.LGPL-2.1-or-later;md5=4fbd65380cdd255951079008b364516c \
@@ -105,6 +105,7 @@ EXTRA_OECONF = "\
 EXTRA_OECONF_append_class-target = " --enable-setpriv"
 EXTRA_OECONF_append_class-native = " --without-cap-ng --disable-setpriv"
 EXTRA_OECONF_append_class-nativesdk = " --without-cap-ng --disable-setpriv"
+EXTRA_OECONF_append = " --disable-hwclock-gplv3"
 
 # enable pcre2 for native/nativesdk to match host distros
 # this helps to keep same expectations when using the SDK or
diff --git a/meta/recipes-core/util-linux/util-linux/0001-lsblk-force-to-print-PKNAME-for-partition.patch b/meta/recipes-core/util-linux/util-linux/0001-lsblk-force-to-print-PKNAME-for-partition.patch
deleted file mode 100644
index 5d4c148..0000000
--- a/meta/recipes-core/util-linux/util-linux/0001-lsblk-force-to-print-PKNAME-for-partition.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-From e3bb9bfb76c17b1d05814436ced62c05c4011f48 Mon Sep 17 00:00:00 2001
-From: Karel Zak <kzak@redhat.com>
-Date: Thu, 27 Jun 2019 09:22:18 +0200
-Subject: [PATCH] lsblk: force to print PKNAME for partition
-
-PKNAME (parent kernel device name) is based on printed tree according
-to parent -> child relationship. The tree is optional and not printed
-if partition specified (.e.g "lsblk -o+PKNAME /dev/sda1"), but old
-versions print the PKNAME also in this case.
-
-Upstream-Status: Backport [https://github.com/karelzak/util-linux/commit/e3bb9bfb76c17b1d05814436ced62c05c4011f48]
-
-Addresses: https://github.com/karelzak/util-linux/issues/813
-Signed-off-by: Karel Zak <kzak@redhat.com>
-Signed-off-by: Liwei Song <liwei.song@windriver.com>
----
- misc-utils/lsblk.c | 3 +++
- 1 file changed, 3 insertions(+)
-
-diff --git a/misc-utils/lsblk.c b/misc-utils/lsblk.c
-index e95af7af0256..3ce6da730264 100644
---- a/misc-utils/lsblk.c
-+++ b/misc-utils/lsblk.c
-@@ -1019,6 +1019,9 @@ static void device_to_scols(
- 	DBG(DEV, ul_debugobj(dev, "add '%s' to scols", dev->name));
- 	ON_DBG(DEV, if (ul_path_isopen_dirfd(dev->sysfs)) ul_debugobj(dev, " %s ---> is open!", dev->name));
- 
-+	if (!parent && dev->wholedisk)
-+		parent = dev->wholedisk;
-+
- 	/* Do not print device more than one in --list mode */
- 	if (!(lsblk->flags & LSBLK_TREE) && dev->is_printed)
- 		return;
--- 
-2.17.1
-
diff --git a/meta/recipes-core/util-linux/util-linux_2.34.bb b/meta/recipes-core/util-linux/util-linux_2.34.bb
deleted file mode 100644
index 557449d..0000000
--- a/meta/recipes-core/util-linux/util-linux_2.34.bb
+++ /dev/null
@@ -1,14 +0,0 @@
-require util-linux.inc
-
-SRC_URI += "file://configure-sbindir.patch \
-            file://runuser.pamd \
-            file://runuser-l.pamd \
-            file://ptest.patch \
-            file://run-ptest \
-            file://display_testname_for_subtest.patch \
-            file://avoid_parallel_tests.patch \
-            file://0001-lsblk-force-to-print-PKNAME-for-partition.patch \
-            file://0001-hwclock-fix-for-glibc-2.31-settimeofday.patch \
-"
-SRC_URI[md5sum] = "a78cbeaed9c39094b96a48ba8f891d50"
-SRC_URI[sha256sum] = "743f9d0c7252b6db246b659c1e1ce0bd45d8d4508b4dfa427bbb4a3e9b9f62b5"
diff --git a/meta/recipes-core/util-linux/util-linux_2.35.1.bb b/meta/recipes-core/util-linux/util-linux_2.35.1.bb
new file mode 100644
index 0000000..03afd2a
--- /dev/null
+++ b/meta/recipes-core/util-linux/util-linux_2.35.1.bb
@@ -0,0 +1,13 @@
+require util-linux.inc
+
+SRC_URI += "file://configure-sbindir.patch \
+            file://runuser.pamd \
+            file://runuser-l.pamd \
+            file://ptest.patch \
+            file://run-ptest \
+            file://display_testname_for_subtest.patch \
+            file://avoid_parallel_tests.patch \
+            file://0001-hwclock-fix-for-glibc-2.31-settimeofday.patch \
+"
+SRC_URI[md5sum] = "7f64882f631225f0295ca05080cee1bf"
+SRC_URI[sha256sum] = "d9de3edd287366cd908e77677514b9387b22bc7b88f45b83e1922c3597f1d7f9"
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] util-linux: upgrade 2.34 -> 2.35.1
  2020-02-26 17:35 [PATCH v2] util-linux: upgrade 2.34 -> 2.35.1 Pierre-Jean Texier
@ 2020-02-28 12:25 ` Richard Purdie
  2020-02-29 13:35   ` Pierre-Jean Texier
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2020-02-28 12:25 UTC (permalink / raw)
  To: Pierre-Jean Texier, openembedded-core

On Wed, 2020-02-26 at 18:35 +0100, Pierre-Jean Texier via Openembedded-core wrote:
> License-Update: add GPLv3 text in README.licensing
> 
> Also:
>  - Drop upstreamed patch
>  - Use 'disable-hwclock-gplv3' explicitly.
> 
> Since commit 7a3000f7ba548cf7d74ac77cc63fe8de228a669e ("hwclock: use parse_date function") hwclock is linked
> with parse_date.y from gnullib. This gnulib code is distributed with GPLv3.
> So, we have to use '--disable-hwclock-gplv3' to exclude this code.
> 
> See full changelog https://lore.kernel.org/util-linux/20200131095846.ogjtqrs7ai774tka@ws.net.home/T/#u
> 
> Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
> ---
> Changes v1 -> v2
>  - bump to 2.35.1 instead of 2.35
>  - use disable-hwclock-gplv3 option to not use datetime parsing GPLv3 code
>  
> FYI, hwclock will be made GPLv2-only again in v2.36, see:
> 
>  - https://lore.kernel.org/util-linux/20200127202152.4jh2w4chch37wgee@ws.net.home/T/#e0c176440ca3f7b10693ff8f0afaf114b4b94405d
> 
>  meta/recipes-core/util-linux/util-linux.inc        |  3 +-
>  ...lsblk-force-to-print-PKNAME-for-partition.patch | 36 ----------------------
>  meta/recipes-core/util-linux/util-linux_2.34.bb    | 14 ---------
>  meta/recipes-core/util-linux/util-linux_2.35.1.bb  | 13 ++++++++
>  4 files changed, 15 insertions(+), 51 deletions(-)
>  delete mode 100644 meta/recipes-core/util-linux/util-linux/0001-lsblk-force-to-print-PKNAME-for-partition.patch
>  delete mode 100644 meta/recipes-core/util-linux/util-linux_2.34.bb
>  create mode 100644 meta/recipes-core/util-linux/util-linux_2.35.1.bb

Unfortately this does seem to expose a problem with wic, e.g.:

https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/732

which can be reproduced with:

oe-selftest -r wic.Wic2.test_expand_mbr_image

Cheers,

Richard



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] util-linux: upgrade 2.34 -> 2.35.1
  2020-02-28 12:25 ` Richard Purdie
@ 2020-02-29 13:35   ` Pierre-Jean Texier
  0 siblings, 0 replies; 3+ messages in thread
From: Pierre-Jean Texier @ 2020-02-29 13:35 UTC (permalink / raw)
  To: Richard Purdie; +Cc: openembedded-core

Hello Richard,

Le 28/02/2020 à 13:25, Richard Purdie a écrit :
> Unfortately this does seem to expose a problem with wic, e.g.:
> 
> https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/732
> 
> which can be reproduced with:
> 
> oe-selftest -r wic.Wic2.test_expand_mbr_image

Afer a quick check, it seems the failure is related to
the commit 03154d2cf25c1d5ce908da9e72d324004b8d5722 ("sfdisk: add -J 
between mutually exclusive options") [1] in the version 2.35.1.

ERROR: _exec_cmd: 
/home/pokybuild/yocto-worker/oe-selftest-centos/build/build-st-4047/tmp/work/core2-64-poky-linux/wic-tools/1.0-r0/recipe-sysroot-native/usr/sbin/sfdisk 
-dJ 
/home/pokybuild/yocto-worker/oe-selftest-centos/build/build-st-4047/tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.wic 
returned '1' instead of 0
output: sfdisk: mutually exclusive arguments: --list-free --json --dump

So, I think we have to update this command [2] in order to drop the '-J'
option.

I will investigate, and I will send a v3 to fix this issue.

Thanks !

[1] - 
https://github.com/karelzak/util-linux/commit/03154d2cf25c1d5ce908da9e72d324004b8d5722#diff-31d5cc325380dbdafe64d0e019846f12
[2] - 
https://git.openembedded.org/openembedded-core/tree/scripts/lib/wic/engine.py#n442
-- 
Pierre-Jean Texier
Embedded Linux Engineer
https://koncepto.io


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-02-29 13:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-26 17:35 [PATCH v2] util-linux: upgrade 2.34 -> 2.35.1 Pierre-Jean Texier
2020-02-28 12:25 ` Richard Purdie
2020-02-29 13:35   ` Pierre-Jean Texier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.