summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2021-08-11 01:30:35 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-13 14:44:06 +0100
commit9fe8f880260f404cae3d5befcf394251627fed10 (patch)
tree13b68444e1a1ff639c81078d2bdbe4fda9555fca /meta/recipes-core
parentb2bda4828bb5b6495d3bd2dba4cebed3a20f85e6 (diff)
downloadpoky-9fe8f880260f404cae3d5befcf394251627fed10.tar.gz
util-linux: add back manpages related settings
There was a time that util-linux requres asciidoctor to be there to have man pages. However, now the tarball ships generated man pages and will use them. So add back the related settings. Otherwise, we get the following error when enabling 'doc-pkgs' image feature. + update-alternatives --install /usr/share/man/man1/kill.1 kill.1 /usr/share/man/man1/kill.1.procps 200 update-alternatives: Error: not linking /.../tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/rootfs/usr/share/man/man1/kill.1 \ to /usr/share/man/man1/kill.1.procps since /.../tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/rootfs/usr/share/man/man1/kill.1 exists and is not a link (From OE-Core rev: 3d66fcc425495b5b68caf1a63c7118c692236cc4) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/util-linux/util-linux_2.37.1.bb31
1 files changed, 30 insertions, 1 deletions
diff --git a/meta/recipes-core/util-linux/util-linux_2.37.1.bb b/meta/recipes-core/util-linux/util-linux_2.37.1.bb
index b67c3dcb53..9351595144 100644
--- a/meta/recipes-core/util-linux/util-linux_2.37.1.bb
+++ b/meta/recipes-core/util-linux/util-linux_2.37.1.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 pkgconfig systemd update-alternatives python3-dir bash-completion ptest 4inherit autotools gettext manpages 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,6 +92,9 @@ EXTRA_OECONF:append = " --disable-hwclock-gplv3"
92# 92#
93PACKAGECONFIG ?= "pcre2" 93PACKAGECONFIG ?= "pcre2"
94PACKAGECONFIG:class-target ?= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'chfn-chsh pam', '', d)}" 94PACKAGECONFIG:class-target ?= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'chfn-chsh 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] = ""
95PACKAGECONFIG[pam] = "--enable-su --enable-runuser,--disable-su --disable-runuser, libpam," 98PACKAGECONFIG[pam] = "--enable-su --enable-runuser,--disable-su --disable-runuser, libpam,"
96# Respect the systemd feature for uuidd 99# Respect the systemd feature for uuidd
97PACKAGECONFIG[systemd] = "--with-systemd --with-systemdsystemunitdir=${systemd_system_unitdir}, --without-systemd --without-systemdsystemunitdir,systemd" 100PACKAGECONFIG[systemd] = "--with-systemd --with-systemdsystemunitdir=${systemd_system_unitdir}, --without-systemd --without-systemdsystemunitdir,systemd"
@@ -263,6 +266,32 @@ ALTERNATIVE_LINK_NAME[utmpdump] = "${bindir}/utmpdump"
263ALTERNATIVE_LINK_NAME[uuidgen] = "${bindir}/uuidgen" 266ALTERNATIVE_LINK_NAME[uuidgen] = "${bindir}/uuidgen"
264ALTERNATIVE_LINK_NAME[wall] = "${bindir}/wall" 267ALTERNATIVE_LINK_NAME[wall] = "${bindir}/wall"
265 268
269ALTERNATIVE:${PN}-doc = "\
270blkid.8 eject.1 findfs.8 fsck.8 kill.1 last.1 lastb.1 libblkid.3 logger.1 mesg.1 \
271mountpoint.1 nologin.8 rfkill.8 sulogin.8 utmpdump.1 uuid.3 wall.1\
272"
273ALTERNATIVE:${PN}-doc += "${@bb.utils.contains('PACKAGECONFIG', 'pam', 'su.1', '', d)}"
274
275ALTERNATIVE_LINK_NAME[blkid.8] = "${mandir}/man8/blkid.8"
276ALTERNATIVE_LINK_NAME[eject.1] = "${mandir}/man1/eject.1"
277ALTERNATIVE_LINK_NAME[findfs.8] = "${mandir}/man8/findfs.8"
278ALTERNATIVE_LINK_NAME[fsck.8] = "${mandir}/man8/fsck.8"
279ALTERNATIVE_LINK_NAME[kill.1] = "${mandir}/man1/kill.1"
280ALTERNATIVE_LINK_NAME[last.1] = "${mandir}/man1/last.1"
281ALTERNATIVE_LINK_NAME[lastb.1] = "${mandir}/man1/lastb.1"
282ALTERNATIVE_LINK_NAME[libblkid.3] = "${mandir}/man3/libblkid.3"
283ALTERNATIVE_LINK_NAME[logger.1] = "${mandir}/man1/logger.1"
284ALTERNATIVE_LINK_NAME[mesg.1] = "${mandir}/man1/mesg.1"
285ALTERNATIVE_LINK_NAME[mountpoint.1] = "${mandir}/man1/mountpoint.1"
286ALTERNATIVE_LINK_NAME[nologin.8] = "${mandir}/man8/nologin.8"
287ALTERNATIVE_LINK_NAME[rfkill.8] = "${mandir}/man8/rfkill.8"
288ALTERNATIVE_LINK_NAME[setpriv.1] = "${mandir}/man1/setpriv.1"
289ALTERNATIVE_LINK_NAME[su.1] = "${mandir}/man1/su.1"
290ALTERNATIVE_LINK_NAME[sulogin.8] = "${mandir}/man8/sulogin.8"
291ALTERNATIVE_LINK_NAME[utmpdump.1] = "${mandir}/man1/utmpdump.1"
292ALTERNATIVE_LINK_NAME[uuid.3] = "${mandir}/man3/uuid.3"
293ALTERNATIVE_LINK_NAME[wall.1] = "${mandir}/man1/wall.1"
294
266BBCLASSEXTEND = "native nativesdk" 295BBCLASSEXTEND = "native nativesdk"
267 296
268PTEST_BINDIR = "1" 297PTEST_BINDIR = "1"