[jhalfs] 02/06: BLFS tools: allow to select a whole submenu (2)
"Git Owner" ([email protected] via alfs-discuss Mailing List) <[email protected]> Mon, 01 Dec 2025 17:41:39 +0000
| Newsgroups | gmane.linux.lfs.automated |
|---|---|
| Message-ID | <[email protected]> |
This is an automated email from the git hooks/post-receive script. git pushed a commit to branch trunk in repository jhalfs. commit 63273a61900450eef87a0d9e064fce6013057e17 Author: Pierre Labastie <[email protected]> AuthorDate: Mon Dec 1 17:54:12 2025 +0100 BLFS tools: allow to select a whole submenu (2) Patch menuconfig.py so that tristate values are displayed according to: - n: < > - m: <*> - y: <A> A means "all", and this is what is selected if the menuconfig value is y. Note that patching is done when installing the tools. --- BLFS/blfs-menu.patch | 18 ++++++++++++++++++ common/libs/func_install_blfs | 5 +++++ install-blfs-tools.sh | 5 +++++ 3 files changed, 28 insertions(+) diff --git a/BLFS/blfs-menu.patch b/BLFS/blfs-menu.patch new file mode 100644 index 0000000..1386954 --- /dev/null +++ b/BLFS/blfs-menu.patch @@ -0,0 +1,18 @@ +--- menu/menuconfig.py 2025-11-29 10:42:29.881000000 +0100 ++++ /home/pierre/blfs_root/menu/menuconfig.py 2025-11-30 10:12:01.489595958 +0100 +@@ -3071,13 +3071,14 @@ + if _is_y_mode_choice_sym(item): + return "(X)" if item.choice.selection is item else "( )" + +- tri_val_str = (" ", "M", "*")[item.tri_value] ++ tri_val_str = (" ", "*", "A")[item.tri_value] + + if len(item.assignable) <= 1: + # Pinned to a single value + return "" if isinstance(item, Choice) else "-{}-".format(tri_val_str) + + if item.type == BOOL: ++ tri_val_str = (" ", "M", "*")[item.tri_value] + return "[{}]".format(tri_val_str) + + # item.type == TRISTATE diff --git a/common/libs/func_install_blfs b/common/libs/func_install_blfs index 6458e94..e9c27f0 100644 --- a/common/libs/func_install_blfs +++ b/common/libs/func_install_blfs @@ -23,6 +23,11 @@ fi sed -i s@tracking-dir@$TRACKING_DIR@ \ ${BUILDDIR}${BLFS_ROOT}/{Makefile,gen-makefile.sh,gen_pkg_book.sh} +# Fix menuconfig.py for blfs +pushd ${BUILDDIR}${BLFS_ROOT} >/dev/null +patch menu/menuconfig.py blfs-menu.patch +popd + # If we have a working copy, copy it: if [[ "$BLFS_WORKING_COPY" = "y" ]]; then echo "copying the local BLFS working copy (may take some time)" diff --git a/install-blfs-tools.sh b/install-blfs-tools.sh index 28d0997..e557d07 100755 --- a/install-blfs-tools.sh +++ b/install-blfs-tools.sh @@ -150,6 +150,11 @@ rm -rf ${BUILDDIR}${BLFS_ROOT}/$LFS_XML sed -i s@tracking-dir@$TRACKING_DIR@ \ ${BUILDDIR}${BLFS_ROOT}/{Makefile,gen-makefile.sh,gen_pkg_book.sh} +# Fix menuconfig for BLFS +pushd ${BUILDDIR}${BLFS_ROOT}/menu +patch menuconfig.py ../blfs-menu.patch +popd + # Ensures the tracking directory exists. # Throws an error if it does not exist and the user does not # have write permission to create it. -- To stop receiving notification emails like this one, please contact the administrator of this repository. -- http://lists.linuxfromscratch.org/sympa/info/alfs-discuss Unsubscribe: See the above information page