Skip to contentSkip to conversation

package/util-linux: adding cfdisk enablement comment

Buildroot Thomas Petazzoni via buildroot 1 participant 1 message Oct 10

lore
Share & tools
lore
#0 lore raw

commit: https://gitlab.com/buildroot.org/buildroot/-/commit/f7019acad226cf01c40f278dfebc32dd5e8dfd73
branch: https://gitlab.com/buildroot.org/buildroot/-/tree/master

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 neither ncurses or slang is enabled. Even if an explicit Buildroot menu option is added for cfdisk (where we can force select ncurses, if slang is not yet enabled), there is no specific configuration option in util-linux to toggle the enablement of cfdisk.

---
 package/util-linux/Config.in | 7 +++++++
 1 file changed, 7 insertions(+)
package/util-linux/Config.in +7 -0
index 5d60d00e3a..9e7d7b7bfd 100644
@@ -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 either ncurses or slang"
+	depends on !BR2_PACKAGE_NCURSES && !BR2_PACKAGE_SLANG
+
+endif
+
 config BR2_PACKAGE_UTIL_LINUX_AGETTY
 	bool "agetty"
 	depends on BR2_USE_MMU # fork()

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot