mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Alexander Dahl via ptxdist <ptxdist@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Alexander Dahl <ada@thorsis.com>
Subject: [ptxdist] [PATCH] util-linux: Fix missing ncurses dependencies
Date: Mon, 13 Apr 2026 16:30:12 +0200	[thread overview]
Message-ID: <20260413143012.417716-1-ada@thorsis.com> (raw)

util-linux has an internal static library called lib_tcolors which
depends on ncurses.  With the modular build approach introduced with
v2.41 some builds fail if tools are enabled which require that (e.g.
dmesg, lsblk, …), but no other tool is enabled which selects the ncurses
dependency.

Signed-off-by: Alexander Dahl <ada@thorsis.com>
---
 rules/util-linux.in | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/rules/util-linux.in b/rules/util-linux.in
index 2ffb1c68d..0f9bb6385 100644
--- a/rules/util-linux.in
+++ b/rules/util-linux.in
@@ -33,6 +33,7 @@ config UTIL_LINUX_LIBFDISK
 config UTIL_LINUX_FDISKS
 	select UTIL_LINUX_LIBFDISK
 	select UTIL_LINUX_LIBSMARTCOLS
+	select UTIL_LINUX_LIBTCOLORS
 	select UTIL_LINUX_USES_NCURSES
 	bool
 
@@ -44,6 +45,10 @@ config UTIL_LINUX_USES_NCURSESW
 	depends on UTIL_LINUX_USES_NCURSES
 	default NCURSES_WIDE_CHAR
 
+config UTIL_LINUX_LIBTCOLORS
+	bool
+	select UTIL_LINUX_USES_NCURSES
+
 config UTIL_LINUX_USES_PAM
 	bool
 
@@ -231,6 +236,7 @@ config UTIL_LINUX_LSBLK
 	select UTIL_LINUX_LIBBLKID
 	select UTIL_LINUX_LIBMOUNT
 	select UTIL_LINUX_LIBSMARTCOLS
+	select UTIL_LINUX_LIBTCOLORS
 	prompt "lsblk"
 	help
 	  The lsblk command lists information about all available or the
@@ -329,6 +335,7 @@ config UTIL_LINUX_CHMEM
 
 config UTIL_LINUX_DMESG
 	bool
+	select UTIL_LINUX_LIBTCOLORS
 	depends on !BUSYBOX_DMESG || ALLYES
 	prompt "dmesg"
 	help
@@ -413,6 +420,7 @@ comment "BusyBox' ipcs is selected!"
 
 config UTIL_LINUX_IRQTOP
 	bool
+	select UTIL_LINUX_LIBTCOLORS
 	select UTIL_LINUX_USES_NCURSES
 	prompt "irqtop"
 	help
@@ -643,6 +651,7 @@ config UTIL_LINUX_COLUMN
 
 config UTIL_LINUX_HEXDUMP
 	bool
+	select UTIL_LINUX_LIBTCOLORS
 	depends on !BUSYBOX_HEXDUMP
 	prompt "hexdump"
 	help

base-commit: 16cb63ffcc4d137dceb2db094b91df9b4d6582dd
-- 
2.47.3




             reply	other threads:[~2026-04-13 14:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-13 14:30 Alexander Dahl via ptxdist [this message]
2026-04-15 13:52 ` [ptxdist] [APPLIED] " Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260413143012.417716-1-ada@thorsis.com \
    --to=ptxdist@pengutronix.de \
    --cc=ada@thorsis.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox