mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-09 17:03:35 -09:00
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]9acfc349e0[2]236421a491[3] https://gitlab.com/buildroot.org/buildroot/-/blob/2025.11/package/pkg-autotools.mk#L184-186 Signed-off-by: Julien Olivain <ju.o@free.fr> Signed-off-by: Romain Naour <romain.naour@smile.fr> (cherry picked from commitdd81c1766e) Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
committed by
Thomas Perale
parent
f64ce221a5
commit
afb87a2142
@@ -46,8 +46,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)
|
||||
@@ -56,6 +58,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
|
||||
|
||||
Reference in New Issue
Block a user