summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-06-15 10:12:16 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-06-17 00:07:05 +0100
commit6091f104bbd943bc0787533bd42810bdcdfc8c50 (patch)
treebf320929e67183d0a256a0bf8f05fa84c46c9c07
parent2e9cdb69795682c14ff5b4ab12663dfa2ce114c8 (diff)
downloadpoky-6091f104bbd943bc0787533bd42810bdcdfc8c50.tar.gz
util-linux: update 2.36.2 -> 2.37
Drop manpages support, as it requires asciidoctor (written in ruby, isn't in oe-core). (From OE-Core rev: 6cb58dd4feae12a064fad3ab30b1d44e159fe7e2) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-core/util-linux/util-linux-libuuid_2.37.bb (renamed from meta/recipes-core/util-linux/util-linux-libuuid_2.36.2.bb)0
-rw-r--r--meta/recipes-core/util-linux/util-linux.inc3
-rw-r--r--meta/recipes-core/util-linux/util-linux/Automake-use-EXTRA_LTLIBRARIES-instead-of-noinst_LTL.patch49
-rw-r--r--meta/recipes-core/util-linux/util-linux/avoid_parallel_tests.patch27
-rw-r--r--meta/recipes-core/util-linux/util-linux/ptest.patch15
-rw-r--r--meta/recipes-core/util-linux/util-linux_2.37.bb (renamed from meta/recipes-core/util-linux/util-linux_2.36.2.bb)32
6 files changed, 28 insertions, 98 deletions
diff --git a/meta/recipes-core/util-linux/util-linux-libuuid_2.36.2.bb b/meta/recipes-core/util-linux/util-linux-libuuid_2.37.bb
index 9612c491cd..9612c491cd 100644
--- a/meta/recipes-core/util-linux/util-linux-libuuid_2.36.2.bb
+++ b/meta/recipes-core/util-linux/util-linux-libuuid_2.37.bb
diff --git a/meta/recipes-core/util-linux/util-linux.inc b/meta/recipes-core/util-linux/util-linux.inc
index 6b47f417aa..6a7a6a968f 100644
--- a/meta/recipes-core/util-linux/util-linux.inc
+++ b/meta/recipes-core/util-linux/util-linux.inc
@@ -35,6 +35,5 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/util-linux/v${MAJOR_VERSION}/util-lin
35 file://run-ptest \ 35 file://run-ptest \
36 file://display_testname_for_subtest.patch \ 36 file://display_testname_for_subtest.patch \
37 file://avoid_parallel_tests.patch \ 37 file://avoid_parallel_tests.patch \
38 file://Automake-use-EXTRA_LTLIBRARIES-instead-of-noinst_LTL.patch \
39 " 38 "
40SRC_URI[sha256sum] = "f7516ba9d8689343594356f0e5e1a5f0da34adfbc89023437735872bb5024c5f" 39SRC_URI[sha256sum] = "bd07b7e98839e0359842110525a3032fdb8eaf3a90bedde3dd1652d32d15cce5"
diff --git a/meta/recipes-core/util-linux/util-linux/Automake-use-EXTRA_LTLIBRARIES-instead-of-noinst_LTL.patch b/meta/recipes-core/util-linux/util-linux/Automake-use-EXTRA_LTLIBRARIES-instead-of-noinst_LTL.patch
deleted file mode 100644
index 272518914e..0000000000
--- a/meta/recipes-core/util-linux/util-linux/Automake-use-EXTRA_LTLIBRARIES-instead-of-noinst_LTL.patch
+++ /dev/null
@@ -1,49 +0,0 @@
1Author: Luca Boccassi <luca.boccassi@microsoft.com>
2Description: Automake: use EXTRA_LTLIBRARIES instead of noinst_LTLIBRARIES
3 noinst_LTLIBRARIES causes the libraries to be always built
4 unconditionally. EXTRA_LTLIBRARIES causes them to be built
5 only if other build target needs them.
6 In other words, avoid building libcommon.a and libtcolors.a
7 unless they are needed by another library/executable and
8 save some build time.
9Upstream-Status: backport, commit:c65953d72bbc7412f32e566d9fa6e780d84f0696
10--- a/Makefile.am
11+++ b/Makefile.am
12@@ -39,7 +39,7 @@ bashcompletiondir = @bashcompletiondir@
13
14 dist_noinst_HEADERS =
15 noinst_PROGRAMS =
16-noinst_LTLIBRARIES =
17+EXTRA_LTLIBRARIES =
18 usrbin_exec_PROGRAMS =
19 usrsbin_exec_PROGRAMS =
20 dist_man_MANS =
21@@ -169,7 +169,7 @@ else
22 edit_cmd += -e 's|@vendordir[@]||g'
23 endif
24
25-CLEANFILES += $(PATHFILES)
26+CLEANFILES += $(PATHFILES) $(EXTRA_LTLIBRARIES)
27 EXTRA_DIST += $(PATHFILES:=.in)
28
29 $(PATHFILES): Makefile
30--- a/lib/Makemodule.am
31+++ b/lib/Makemodule.am
32@@ -9,7 +9,7 @@
33 # Note that you need "make install-strip" (or proper rpm / Debian build)
34 # to generate binaries with only relevant stuff.
35 #
36-noinst_LTLIBRARIES += libcommon.la
37+EXTRA_LTLIBRARIES += libcommon.la
38 libcommon_la_CFLAGS = $(AM_CFLAGS)
39 libcommon_la_SOURCES = \
40 lib/blkdev.c \
41@@ -59,7 +59,7 @@ libcommon_la_SOURCES += lib/sysfs.c
42 endif
43 endif
44
45-noinst_LTLIBRARIES += libtcolors.la
46+EXTRA_LTLIBRARIES += libtcolors.la
47 libtcolors_la_CFLAGS = $(AM_CFLAGS)
48 libtcolors_la_SOURCES = lib/colors.c lib/color-names.c include/colors.h include/color-names.h
49 libtcolors_la_LIBADD =
diff --git a/meta/recipes-core/util-linux/util-linux/avoid_parallel_tests.patch b/meta/recipes-core/util-linux/util-linux/avoid_parallel_tests.patch
index 748b6ef096..f1cbdb3beb 100644
--- a/meta/recipes-core/util-linux/util-linux/avoid_parallel_tests.patch
+++ b/meta/recipes-core/util-linux/util-linux/avoid_parallel_tests.patch
@@ -1,20 +1,29 @@
1From ee3c7812e1efa6719af68b994804f0e6caceabd8 Mon Sep 17 00:00:00 2001
2From: Tudor Florea <tudor.florea@enea.com>
3Date: Mon, 14 Jun 2021 14:00:31 +0200
4Subject: [PATCH] util-linux: Add ptest
5
1Ptest needs buildtest-TESTS and runtest-TESTS targets. 6Ptest needs buildtest-TESTS and runtest-TESTS targets.
2serial-tests is required to generate those targets. 7serial-tests is required to generate those targets.
3Revert run.sh script accordingly to serialize running tests 8Revert run.sh script accordingly to serialize running tests
4 9
5Signed-off-by: Tudor Florea <tudor.florea@enea.com> 10Signed-off-by: Tudor Florea <tudor.florea@enea.com>
6Upstream-Status: Inappropriate 11Upstream-Status: Inappropriate
12
13---
14 configure.ac | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
7 16
8Index: util-linux-2.32/configure.ac 17diff --git a/configure.ac b/configure.ac
9=================================================================== 18index 5664f9f..075ef27 100644
10--- util-linux-2.32.orig/configure.ac 19--- a/configure.ac
11+++ util-linux-2.32/configure.ac 20+++ b/configure.ac
12@@ -11,7 +11,7 @@ AC_CONFIG_MACRO_DIR([m4]) 21@@ -11,7 +11,7 @@ AC_CONFIG_MACRO_DIR([m4])
13 dnl AC_USE_SYSTEM_EXTENSIONS must be called before any macros that run 22 dnl AC_USE_SYSTEM_EXTENSIONS must be called before any macros that run
14 dnl the compiler (like AC_PROG_LIBTOOL) to avoid autoconf errors. 23 dnl the compiler (like LT_INIT) to avoid autoconf errors.
15 AC_USE_SYSTEM_EXTENSIONS 24 AC_USE_SYSTEM_EXTENSIONS
16-AM_INIT_AUTOMAKE([-Wall foreign 1.10 tar-pax no-dist-gzip dist-xz subdir-objects]) 25-AM_INIT_AUTOMAKE([-Wall -Wno-portability foreign 1.10 tar-pax no-dist-gzip dist-xz subdir-objects])
17+AM_INIT_AUTOMAKE([-Wall foreign 1.10 tar-pax no-dist-gzip dist-xz subdir-objects serial-tests]) 26+AM_INIT_AUTOMAKE([-Wall -Wno-portability foreign 1.10 tar-pax no-dist-gzip dist-xz subdir-objects serial-tests])
18 27
19 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])], 28 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])],
20 [AC_SUBST([AM_DEFAULT_VERBOSITY], [1])]) 29 [AC_SUBST([AM_DEFAULT_VERBOSITY], [1])])
diff --git a/meta/recipes-core/util-linux/util-linux/ptest.patch b/meta/recipes-core/util-linux/util-linux/ptest.patch
index 0537f7d856..ba2bd3f6ac 100644
--- a/meta/recipes-core/util-linux/util-linux/ptest.patch
+++ b/meta/recipes-core/util-linux/util-linux/ptest.patch
@@ -1,23 +1,24 @@
1Define TESTS variable 1From af073c13ef184ca75811df688e0a0a25827b36c3 Mon Sep 17 00:00:00 2001
2From: Tudor Florea <tudor.florea@enea.com>
3Date: Thu, 3 Dec 2015 04:08:00 +0100
4Subject: [PATCH] Define TESTS variable
2 5
3Signed-off-by: Tudor Florea <tudor.florea@enea.com> 6Signed-off-by: Tudor Florea <tudor.florea@enea.com>
4Upstream-Status: Pending 7Upstream-Status: Pending
8
5--- 9---
6 Makefile.am | 1 + 10 Makefile.am | 1 +
7 1 file changed, 1 insertion(+) 11 1 file changed, 1 insertion(+)
8 12
9diff --git a/Makefile.am b/Makefile.am 13diff --git a/Makefile.am b/Makefile.am
10index bbaccb1..7d5a6bb 100644 14index 886598d..1cf4346 100644
11--- a/Makefile.am 15--- a/Makefile.am
12+++ b/Makefile.am 16+++ b/Makefile.am
13@@ -48,6 +48,7 @@ systemdsystemunit_DATA = 17@@ -57,6 +57,7 @@ systemdsystemunit_DATA =
14 dist_bashcompletion_DATA = 18 dist_bashcompletion_DATA =
15 check_PROGRAMS = 19 check_PROGRAMS =
16 dist_check_SCRIPTS = 20 dist_check_SCRIPTS =
17+TESTS = $(check_PROGRAMS) 21+TESTS = $(check_PROGRAMS)
18 22
19 PATHFILES = 23 PATHFILES =
20 24 ADOCFILES_COMMON =
21--
222.8.3
23
diff --git a/meta/recipes-core/util-linux/util-linux_2.36.2.bb b/meta/recipes-core/util-linux/util-linux_2.37.bb
index c79cf782d1..9a50c75e77 100644
--- a/meta/recipes-core/util-linux/util-linux_2.36.2.bb
+++ b/meta/recipes-core/util-linux/util-linux_2.37.bb
@@ -1,7 +1,7 @@
1require util-linux.inc 1require util-linux.inc
2 2
3#gtk-doc is not enabled as it requires xmlto which requires util-linux 3#gtk-doc is not enabled as it requires xmlto which requires util-linux
4inherit autotools gettext manpages pkgconfig systemd update-alternatives python3-dir bash-completion ptest 4inherit autotools gettext pkgconfig systemd update-alternatives python3-dir bash-completion ptest
5DEPENDS = "libcap-ng ncurses virtual/crypt zlib util-linux-libuuid" 5DEPENDS = "libcap-ng ncurses virtual/crypt zlib util-linux-libuuid"
6 6
7PACKAGES =+ "${PN}-swaponoff" 7PACKAGES =+ "${PN}-swaponoff"
@@ -92,9 +92,6 @@ EXTRA_OECONF_append = " --disable-hwclock-gplv3"
92# 92#
93PACKAGECONFIG ?= "pcre2" 93PACKAGECONFIG ?= "pcre2"
94PACKAGECONFIG_class-target ?= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" 94PACKAGECONFIG_class-target ?= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}"
95# inherit manpages requires this to be present, however util-linux does not have
96# configuration options, and installs manpages always
97PACKAGECONFIG[manpages] = ""
98PACKAGECONFIG[pam] = "--enable-su --enable-runuser,--disable-su --disable-runuser, libpam," 95PACKAGECONFIG[pam] = "--enable-su --enable-runuser,--disable-su --disable-runuser, libpam,"
99# Respect the systemd feature for uuidd 96# Respect the systemd feature for uuidd
100PACKAGECONFIG[systemd] = "--with-systemd --with-systemdsystemunitdir=${systemd_system_unitdir}, --without-systemd --without-systemdsystemunitdir,systemd" 97PACKAGECONFIG[systemd] = "--with-systemd --with-systemdsystemunitdir=${systemd_system_unitdir}, --without-systemd --without-systemdsystemunitdir,systemd"
@@ -263,33 +260,6 @@ ALTERNATIVE_LINK_NAME[utmpdump] = "${bindir}/utmpdump"
263ALTERNATIVE_LINK_NAME[uuidgen] = "${bindir}/uuidgen" 260ALTERNATIVE_LINK_NAME[uuidgen] = "${bindir}/uuidgen"
264ALTERNATIVE_LINK_NAME[wall] = "${bindir}/wall" 261ALTERNATIVE_LINK_NAME[wall] = "${bindir}/wall"
265 262
266ALTERNATIVE_${PN}-doc = "\
267blkid.8 eject.1 findfs.8 fsck.8 kill.1 last.1 lastb.1 libblkid.3 logger.1 mesg.1 \
268mountpoint.1 nologin.8 rfkill.8 sulogin.8 utmpdump.1 uuid.3 wall.1\
269"
270ALTERNATIVE_${PN}-doc += "${@bb.utils.contains('PACKAGECONFIG', 'pam', 'su.1', '', d)}"
271
272ALTERNATIVE_LINK_NAME[blkid.8] = "${mandir}/man8/blkid.8"
273ALTERNATIVE_LINK_NAME[eject.1] = "${mandir}/man1/eject.1"
274ALTERNATIVE_LINK_NAME[findfs.8] = "${mandir}/man8/findfs.8"
275ALTERNATIVE_LINK_NAME[fsck.8] = "${mandir}/man8/fsck.8"
276ALTERNATIVE_LINK_NAME[kill.1] = "${mandir}/man1/kill.1"
277ALTERNATIVE_LINK_NAME[last.1] = "${mandir}/man1/last.1"
278ALTERNATIVE_LINK_NAME[lastb.1] = "${mandir}/man1/lastb.1"
279ALTERNATIVE_LINK_NAME[libblkid.3] = "${mandir}/man3/libblkid.3"
280ALTERNATIVE_LINK_NAME[logger.1] = "${mandir}/man1/logger.1"
281ALTERNATIVE_LINK_NAME[mesg.1] = "${mandir}/man1/mesg.1"
282ALTERNATIVE_LINK_NAME[mountpoint.1] = "${mandir}/man1/mountpoint.1"
283ALTERNATIVE_LINK_NAME[nologin.8] = "${mandir}/man8/nologin.8"
284ALTERNATIVE_LINK_NAME[rfkill.8] = "${mandir}/man8/rfkill.8"
285ALTERNATIVE_LINK_NAME[setpriv.1] = "${mandir}/man1/setpriv.1"
286ALTERNATIVE_LINK_NAME[su.1] = "${mandir}/man1/su.1"
287ALTERNATIVE_LINK_NAME[sulogin.8] = "${mandir}/man8/sulogin.8"
288ALTERNATIVE_LINK_NAME[utmpdump.1] = "${mandir}/man1/utmpdump.1"
289ALTERNATIVE_LINK_NAME[uuid.3] = "${mandir}/man3/uuid.3"
290ALTERNATIVE_LINK_NAME[wall.1] = "${mandir}/man1/wall.1"
291
292
293BBCLASSEXTEND = "native nativesdk" 263BBCLASSEXTEND = "native nativesdk"
294 264
295PTEST_BINDIR = "1" 265PTEST_BINDIR = "1"