OpenWrt: drop the bash dependency (#1932)

mount.veracrypt is a POSIX shell script since #1895 and runs with
BusyBox ash, so the OpenWrt recipe no longer needs bash: drop it from
the package dependencies, the minimal SDK config, the feeds and runtime
packages the build script prepares, the QEMU test's package list, and
the README.

Signed-off-by: Ville Takio <ville+git@takio.fi>
This commit is contained in:
Ville Takio
2026-10-22 09:40:28 +09:00
committed by GitHub
parent 8172bc55f8
commit eb4b97c95c
5 changed files with 5 additions and 9 deletions
+3 -4
View File
@@ -24,8 +24,8 @@ The package installs only:
- `/sbin/mount.veracrypt`
- `/usr/share/licenses/veracrypt/License.txt`
`mount.veracrypt` uses a Bash shebang, so the OpenWrt package declares `bash`
as a runtime dependency.
`mount.veracrypt` is a POSIX shell script and runs with BusyBox `ash`, so the
package does not depend on `bash`.
## Build
@@ -39,7 +39,7 @@ The script downloads and verifies the OpenWrt SDK against a pinned SHA-256 for
the supported release/target, downloads and verifies wxWidgets 3.2.10, installs
the required OpenWrt feeds, renders
`package/utils/veracrypt/Makefile` inside the SDK, builds the `.ipk`, and
also builds the local userland `bash`, `fuse3`, `util-linux`, and `lvm2` feed
also builds the local userland `fuse3`, `util-linux`, and `lvm2` feed
packages used by the QEMU runtime test. Kernel modules for the stock OpenWrt
image are resolved by the test from the official OpenWrt kmod feed for the
selected release and target.
@@ -136,7 +136,6 @@ OpenWrt package symbols:
- `libstdcpp`
- `libfuse3`
- `bash`
OpenWrt's FUSE3 recipe defines `Package/libfuse3` with ABI version `3`, so the
binary IPK and package-index metadata are emitted as `libfuse3-3` while still
@@ -10,7 +10,6 @@ CONFIG_TARGET_DEVICE_x86_64_DEVICE_generic=y
# CONFIG_DEVEL is not set
CONFIG_PACKAGE_veracrypt=m
CONFIG_PACKAGE_bash=m
CONFIG_PACKAGE_libfuse3=m
CONFIG_PACKAGE_fuse3-utils=m
CONFIG_PACKAGE_kmod-fuse=m
@@ -25,7 +25,7 @@ define Package/veracrypt
SUBMENU:=Filesystem
TITLE:=VeraCrypt console
URL:=https://www.veracrypt.fr/
DEPENDS:=+libstdcpp +libfuse3 +bash
DEPENDS:=+libstdcpp +libfuse3
endef
define Package/veracrypt/description
+1 -2
View File
@@ -310,7 +310,7 @@ configure_sdk() {
rm -rf feeds/base feeds/packages
PATH="$HOST_TOOLS/bin:$PATH" ./scripts/feeds update packages base
fi
PATH="$HOST_TOOLS/bin:$PATH" ./scripts/feeds install fuse3 lvm2 util-linux pcsc-lite bash
PATH="$HOST_TOOLS/bin:$PATH" ./scripts/feeds install fuse3 lvm2 util-linux pcsc-lite
PATH="$HOST_TOOLS/bin:$PATH" make defconfig
)
}
@@ -330,7 +330,6 @@ build_runtime_packages() {
(
cd "$SDK_DIR"
for target in \
package/feeds/packages/bash/compile \
package/feeds/packages/fuse3/compile \
package/feeds/base/util-linux/compile \
package/feeds/packages/lvm2/compile
-1
View File
@@ -43,7 +43,6 @@ PREINSTALLED_PACKAGES = {
"opkg",
}
DEFAULT_RUNTIME_PACKAGES = [
"bash",
# OpenWrt emits the FUSE3 library IPK with its ABI suffix; it still
# Provides: libfuse3.
"libfuse3-3",