Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sys-apps/busybox: Disable standalone shell mode with USE=make-symlinks #22038

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,14 @@ src_configure() {
busybox_config_option n FEATURE_VI_REGEX_SEARCH
fi

# Disable standalone shell mode when using make-symlinks, else Busybox calls its
# applets by default without looking up in PATH.
# This also enables users to disable a builtin by deleting the corresponding symlink.
if use make-symlinks; then
busybox_config_option n FEATURE_PREFER_APPLETS
busybox_config_option n FEATURE_SH_STANDALONE
fi

# If these are not set and we are using a uclibc/busybox setup
# all calls to system() will fail.
busybox_config_option y ASH
Expand Down
8 changes: 8 additions & 0 deletions sys-apps/busybox/busybox-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,14 @@ src_configure() {
busybox_config_option n FEATURE_VI_REGEX_SEARCH
fi

# Disable standalone shell mode when using make-symlinks, else Busybox calls its
# applets by default without looking up in PATH.
# This also enables users to disable a builtin by deleting the corresponding symlink.
if use make-symlinks; then
busybox_config_option n FEATURE_PREFER_APPLETS
busybox_config_option n FEATURE_SH_STANDALONE
fi

# If these are not set and we are using a uclibc/busybox setup
# all calls to system() will fail.
busybox_config_option y ASH
Expand Down