NetworkManager/contrib/fedora/REQUIRED_PACKAGES
Lubomir Rintel dd0b4e72e8 fedora/REQUIRED_PACKAGES: make teamd and dhclient optional
They are no longer in RHEL 10 and we can build just fine without them.
2025-02-06 10:40:09 +01:00

103 lines
2 KiB
Bash
Executable file

#!/bin/bash
# A list of packages useful/needed to build and develop
# NetworkManager on Fedora and RHEL.
#
# Not all of these packages are available, depending
# on your distribution/release. But yum will happily
# skip them.
#
# Not all of these packages are strictly speaking necessary.
# This is a generous list of related packages.
set -xe
DNF="$(command -v dnf &>/dev/null && echo dnf || echo yum)"
SUDO=
[ "$EUID" -eq 0 ] || SUDO=sudo
install() {
if [ "$NM_INSTALL" != "" ]; then
$NM_INSTALL "$@"
else
$SUDO "$DNF" install -y "$@"
fi
}
if test "$NM_NO_EXTRA" != 1; then
# these packages are convenient for developing, but not necessary
# for CI testing.
EXTRA_PACKAGES=(
bash-completion \
cscope \
)
else
EXTRA_PACKAGES=()
fi
install \
/usr/bin/clang-format \
/usr/bin/xargs \
ModemManager-devel \
ModemManager-glib-devel \
audit-libs-devel \
bluez-libs-devel \
clang \
dbus-devel \
dbus-x11 \
ethtool \
firewalld-filesystem \
gcc-c++ \
gettext-devel \
git \
glib2-doc \
gnutls-devel \
gobject-introspection-devel \
gtk-doc \
iptables \
jansson-devel \
jq \
libcurl-devel \
libndp-devel \
libselinux-devel \
libtool \
libuuid-devel \
meson \
mobile-broadband-provider-info-devel \
newt-devel \
nss-devel \
polkit-devel \
ppp \
ppp-devel \
python3-dbus \
python3-gobject \
python3-pexpect \
readline-devel \
rpm-build \
systemd-devel \
util-linux \
vala \
valgrind \
which \
#end
# Some packages don't exist in certain distributions. Ignore errors
# installing them, but still drag them in when available.
install --skip-unavailable \
black \
dbus-python \
dhclient \
iproute-tc \
libasan \
libpsl-devel \
libubsan \
libvala-devel \
pexpect \
pygobject3-base \
python-gobject-base \
python36-pexpect \
qt-devel \
teamd-devel \
vala-devel \
"${EXTRA_PACKAGES[@]}"