Cleanup dependency arrays

This commit is contained in:
2025-07-27 22:46:40 -04:00
parent f32b8c84b0
commit e4838f361e

View File

@@ -170,79 +170,79 @@ install_dependencies() {
if ((FORCE_DEPENDS)) || [[ ! -f $lock_file ]]; then if ((FORCE_DEPENDS)) || [[ ! -f $lock_file ]]; then
if ((FROM_SOURCE)); then if ((FROM_SOURCE)); then
# For building from source code # For building from source code see:
# https://openwrt.org/docs/guide-developer/toolchain/install-buildsystem # https://openwrt.org/docs/guide-developer/toolchain/install-buildsystem
case "$ID" in case "$ID" in
fedora|centos) fedora|centos)
pkg_list+=( pkg_list+=(
bash-completion bash-completion
bzip2 bzip2
clang # for qosify
diffutils
gcc gcc
gcc-c++ gcc-c++
git git
make
libev-devel libev-devel
pam-devel
libtirpc-devel libtirpc-devel
xz-devel llvm15-libs
net-snmp-devel make
ncurses-devel ncurses-devel
net-snmp-devel
pam-devel
patch
patch patch
rsync
tar
unzip
wget
which
diffutils
python3
python3-devel
python3-setuptools
python3-pyelftools
perl perl
perl-base
perl-Data-Dumper perl-Data-Dumper
perl-File-Compare perl-File-Compare
perl-File-Copy perl-File-Copy
perl-FindBin perl-FindBin
perl-IPC-Cmd perl-IPC-Cmd
perl-JSON-PP
perl-Thread-Queue perl-Thread-Queue
perl-Time-Piece perl-Time-Piece
perl-JSON-PP perl-base
python3
python3-devel
python3-pyelftools
python3-setuptools
rsync
swig swig
clang # for qosify tar
llvm15-libs unzip
patch) wget
;; which
xz-devel
) ;;
debian|ubuntu) debian|ubuntu)
pkg_list+=( pkg_list+=(
build-essential build-essential
clang clang
file
flex flex
g++ g++
gawk gawk
gcc-multilib gcc-multilib
gettext gettext
git git
libncurses5-dev
libssl-dev
libev-dev libev-dev
libpam-dev
libtirpc-dev
liblzma-dev liblzma-dev
libncurses5-dev
libpam-dev
libsnmp-dev libsnmp-dev
libssl-dev
libtirpc-dev
python3-distutils python3-distutils
rsync rsync
patch
unzip unzip
zlib1g-dev
file
wget wget
patch) zlib1g-dev
;; ) ;;
arch) arch)
pkg_list+=( pkg_list+=(
base-devel
autoconf autoconf
automake automake
base-devel
bash bash
binutils binutils
bison bison
@@ -261,8 +261,8 @@ install_dependencies() {
gzip gzip
libelf libelf
libev libev
libtool
libtirpc libtirpc
libtool
libxslt libxslt
m4 m4
make make
@@ -271,6 +271,7 @@ install_dependencies() {
openssl openssl
pam pam
patch patch
patch
pkgconf pkgconf
python python
rsync rsync
@@ -283,12 +284,8 @@ install_dependencies() {
which which
xz xz
zlib zlib
patch) ) ;;
;; *) debug "Unsupported OS, skipping dependencies"; return 1 ;;
*)
debug "Skipping dependency install, your OS is unsupported"
return 1
;;
esac esac
else else
# For Imagebuilder # For Imagebuilder