From 2a93146b3d8f52bd437aba21aa29760aed634718 Mon Sep 17 00:00:00 2001 From: Julien Olivain Date: Sat, 17 Jan 2026 11:45:16 +0100 Subject: [PATCH] package/util-linux: always disable man pages and translations When the host system has asciidoctor and po4a/poman installed, util-linux detect them and automatically enable manual pages and their translations. This can significantly increase the package build time (in my case, from 20s to 1m50s). See upstream commit [1] and [2]. Since manual pages are not needed in Buildroot, this commit adds in _CONF_OPTS for host host and target variants the options to always disable the detection of those programs (--disable-asciidoc --disable-poman). This will always disable the generation of manual pages. Note: Buildroot attempts to globally disable documentation for autotools packages by passing various --disable-docs configure options (see [3]), but those are not recognized by util-linux. This commit also reorder the options for UTIL_LINUX_CONF_OPTS. [1] https://github.com/util-linux/util-linux/commit/9acfc349e0ea68a92baf818cc659121f40ab9c04 [2] https://github.com/util-linux/util-linux/commit/236421a49103ea510bcba1e7ef90b57d24aeab76 [3] https://gitlab.com/buildroot.org/buildroot/-/blob/2025.11/package/pkg-autotools.mk#L184-186 Signed-off-by: Julien Olivain Signed-off-by: Romain Naour (cherry picked from commit dd81c1766e1470b61f5e8d4461a066f64ce60c5e) Signed-off-by: Thomas Perale --- package/util-linux/util-linux.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk index d1abdbdc9e..f43a1a128b 100644 --- a/package/util-linux/util-linux.mk +++ b/package/util-linux/util-linux.mk @@ -47,8 +47,10 @@ UTIL_LINUX_DEPENDENCIES = \ # system is not Y2038 compliant. util-linux will support year2038 if # the system is compliant even with this option passed UTIL_LINUX_CONF_OPTS += \ - --disable-rpath \ + --disable-asciidoc \ --disable-makeinstall-chown \ + --disable-poman \ + --disable-rpath \ --disable-year2038 UTIL_LINUX_LINK_LIBS = $(TARGET_NLS_LIBS) @@ -57,6 +59,8 @@ HOST_UTIL_LINUX_DEPENDENCIES = host-pkgconf # We also don't want the host-python dependency HOST_UTIL_LINUX_CONF_OPTS = \ + --disable-asciidoc \ + --disable-poman \ --without-systemd \ --with-systemdsystemunitdir=no \ --without-python