NetworkManager/contrib/fedora/REQUIRED_PACKAGES
Thomas Haller 7e581a0303
Revert "contrib: no longer install libuuid as build dependency"
Ups, we actually still require libuuid. Actually, we only need to
to build the example script `examples/C/glib/add-connection-gdbus.c`.
The proper solution would be to make this an optional dependency.

So far this was not yet done. Also, libuuid is really an ubiquitous
dependency on Linux, so it's not really a problem to have this build
dependency, even if it's just to build the examples.

This reverts commit c0a3947ff9.
2021-05-26 22:16:35 +02:00

101 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)"
install() {
if [ "$NM_INSTALL" != "" ]; then
$NM_INSTALL "$@"
else
sudo "$DNF" install -y "$@"
fi
}
install_ignore_missing() {
for p; do
install "$p" || :
done
}
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 \
dhclient \
firewalld-filesystem \
gcc-c++ \
gettext-devel \
git \
glib2-doc \
gnutls-devel \
gobject-introspection-devel \
gtk-doc \
intltool \
iptables \
jansson-devel \
libcurl-devel \
libndp-devel \
libselinux-devel \
libtool \
libuuid-devel \
make \
meson \
mobile-broadband-provider-info-devel \
newt-devel \
nss-devel \
polkit-devel \
ppp \
ppp-devel \
python3-dbus \
python3-gobject \
readline-devel \
rpm-build \
systemd-devel \
teamd-devel \
util-linux \
vala-devel \
vala-tools \
valgrind \
which \
"${EXTRA_PACKAGES[@]}"
# some packages don't exist in certain distributions. Install them one-by-one, and ignore errors.
install_ignore_missing \
black \
dbus-python \
iproute-tc \
libasan \
libpsl-devel \
libubsan \
pygobject3-base \
python-gobject-base \
qt-devel \
#end