* [ptxdist] [PATCH] util-linux: Fix missing ncurses dependencies
@ 2026-04-13 14:30 Alexander Dahl via ptxdist
2026-04-15 13:52 ` [ptxdist] [APPLIED] " Michael Olbrich
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Dahl via ptxdist @ 2026-04-13 14:30 UTC (permalink / raw)
To: ptxdist; +Cc: Alexander Dahl
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ptxdist] [APPLIED] util-linux: Fix missing ncurses dependencies
2026-04-13 14:30 [ptxdist] [PATCH] util-linux: Fix missing ncurses dependencies Alexander Dahl via ptxdist
@ 2026-04-15 13:52 ` Michael Olbrich
0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2026-04-15 13:52 UTC (permalink / raw)
To: ptxdist; +Cc: Alexander Dahl
Thanks, applied as 77f79b7a834736fde1474959a37babc6097a5e65.
Michael
[sent from post-receive hook]
On Wed, 15 Apr 2026 15:52:18 +0200, Alexander Dahl <ada@thorsis.com> wrote:
> 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>
> Message-Id: <20260413143012.417716-1-ada@thorsis.com>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
>
> diff --git a/rules/util-linux.in b/rules/util-linux.in
> index fd07a25c5f4a..ff68e5377141 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
>
> @@ -241,6 +246,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
> @@ -339,6 +345,7 @@ config UTIL_LINUX_CHMEM
>
> config UTIL_LINUX_DMESG
> bool
> + select UTIL_LINUX_LIBTCOLORS
> depends on !BUSYBOX_DMESG || ALLYES
> prompt "dmesg"
> help
> @@ -423,6 +430,7 @@ comment "BusyBox' ipcs is selected!"
>
> config UTIL_LINUX_IRQTOP
> bool
> + select UTIL_LINUX_LIBTCOLORS
> select UTIL_LINUX_USES_NCURSES
> prompt "irqtop"
> help
> @@ -653,6 +661,7 @@ config UTIL_LINUX_COLUMN
>
> config UTIL_LINUX_HEXDUMP
> bool
> + select UTIL_LINUX_LIBTCOLORS
> depends on !BUSYBOX_HEXDUMP
> prompt "hexdump"
> help
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-04-15 13:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-04-13 14:30 [ptxdist] [PATCH] util-linux: Fix missing ncurses dependencies Alexander Dahl via ptxdist
2026-04-15 13:52 ` [ptxdist] [APPLIED] " Michael Olbrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox