Skip to contentSkip to conversation

man-db: Add missing rdep for col utility

PATCH New Khem Raj 1 participant 1 message Mar 24, 2025

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH v6 1/1 man-db: Add missing rdep for col utility

man utility calls col utility internally when formatting is asked for therefore it expects col to be in rootfs otherwise silently errors with retcode 3 meaning 'file not found' in this case its due to col not being found, other distros eg. gets this via bsdextrautils dependency

Add it via packageconfig and keep is disabled by default since its deprecated and col does not exist on musl

libssh2 ptest mansyntax.sh fails due to this error, which now works

---
v5: Turn col into a packageconfig and drop zlib from deps
v6: Turn col packageconfig off by default

 meta/recipes-extended/man-db/man-db_2.13.0.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta/recipes-extended/man-db/man-db_2.13.0.bb +4 -0
index 6e7af950fc2..750263f99ed 100644
@@ -23,7 +23,11 @@ inherit gettext pkgconfig autotools systemd
 EXTRA_OECONF = "--with-pager=less --with-systemdsystemunitdir=${systemd_system_unitdir}"
 EXTRA_AUTORECONF += "-I ${S}/gl/m4"
 
+PACKAGECONFIG ??= ""
+
 PACKAGECONFIG[bzip2] = "--with-bzip2=bzip2,ac_cv_prog_have_bzip2='',bzip2"
+# util-linux col is deprecated and only builds for glibc
+PACKAGECONFIG[col] = "--with-col=col,--with-col=,,util-linux-col"
 PACKAGECONFIG[gzip] = "--with-gzip=gzip,ac_cv_prog_have_gzip='',gzip"
 PACKAGECONFIG[lzip] = "--with-lzip=lzip,ac_cv_prog_have_lzip='',lzip"
 PACKAGECONFIG[lzma] = "--with-lzma=lzma,ac_cv_prog_have_lzma='',xz"