From 836392d6413ffb2f5893ce6dfbed9c044b9e26de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20M=C3=A9lotte?= Date: Thu, 15 Oct 2026 15:28:00 +0200 Subject: [PATCH] package/util-linux: adding cfdisk enablement comment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit introduces a menu comment to users to indicate whether the `cfdisk` can be built, even when the basic set binaries option is enabled. For users wishing to support `fdisks` utilities (cfdisk, fdisk and sfdisk) in Buildroot, these utilities are enabled through a `BR2_PACKAGE_UTIL_LINUX_BINARIES` option. This option configures `all-programs`, which will default enable `fdisks` (along with other program options that do not have an explicit configuration). While a user can enable "all programs", there is no guarantee that the `cfdisk` utility will be built if ncurses is not enabled. Even if an explicit Buildroot menu option is added for `cfdisk` (where we can force select ncurses), there is no specific configuration option in util-linux to toggle the enablement of `cfdisk`. (alternative to commit f7019acad226cf01c40f278dfebc32dd5e8dfd73) Signed-off-by: Raphaël Mélotte --- package/util-linux/Config.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/util-linux/Config.in b/package/util-linux/Config.in index e6ee4c3ced..32fe0ada5a 100644 --- a/package/util-linux/Config.in +++ b/package/util-linux/Config.in @@ -67,6 +67,13 @@ config BR2_PACKAGE_UTIL_LINUX_BINARIES The setarch utility also installs architecture-specific symlinks like linux32, linux64, uname26, i386 and x86_64. +if BR2_PACKAGE_UTIL_LINUX_BINARIES + +comment "cfdisk needs ncurses" + depends on !BR2_PACKAGE_NCURSES + +endif + config BR2_PACKAGE_UTIL_LINUX_AGETTY bool "agetty" depends on BR2_USE_MMU # fork()