Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/util-linux: explicit slang dependency fallback for cfdisk
@ 2024-02-16  5:57 James Knight
  2026-10-10 21:06 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: James Knight @ 2024-02-16  5:57 UTC (permalink / raw)
  To: buildroot; +Cc: James Knight

The cfdisk utility (under `fdisks`; defaulted by `all-programs`)
provides TUI capabilities from either using ncurses or slang. This
package provides explicit configuration of enabling ncurses support, but
not for slang. Updating the package to explicitly enable slang support
if the slang package is available and we are not already using ncurses.

Signed-off-by: James Knight <james.d.knight@live.com>
---
 package/util-linux/util-linux.mk | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk
index 72126adb005f8422a19ec303897b732f86dd22d2..8a162f179cf332b9d1bab8b42a5f6e6e652b2942 100644
--- a/package/util-linux/util-linux.mk
+++ b/package/util-linux/util-linux.mk
@@ -96,6 +96,14 @@ endif
 UTIL_LINUX_CONF_OPTS += --without-ncursesw --without-ncurses
 endif
 
+# if ncurses is not available for cfdisk, try to fallback onto slang
+ifeq ($(BR2_PACKAGE_SLANG)x$(BR2_PACKAGE_NCURSES),yx)
+UTIL_LINUX_DEPENDENCIES += slang
+UTIL_LINUX_CONF_OPTS += --with-slang
+else
+UTIL_LINUX_CONF_OPTS += --without-slang
+endif
+
 # workaround for static_assert on uclibc-ng < 1.0.42
 UTIL_LINUX_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -Dstatic_assert=_Static_assert"
 
-- 
2.40.1.windows.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-10-13 17:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-16  5:57 [Buildroot] [PATCH 1/2] package/util-linux: explicit slang dependency fallback for cfdisk James Knight
2026-10-10 21:06 ` Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox