NetworkManager/contrib/fedora/REQUIRED_PACKAGES
Thomas Haller ae23ef8b3c contrib/REQUIRED_PACKAGES: ignore for non-existing packages "dbus-python", "pygobject3-base" on Fedora 32
These packages no longer exist on Fedora 32 and dnf fails due to
that. Ignore such errors.

(cherry picked from commit bdd45e6afa)
(cherry picked from commit 27664ff425)
(cherry picked from commit e573f77855)
2020-04-20 12:04:21 +02:00

93 lines
1.8 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="$( ( which dnf || dnf --version ) &>/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 \
ModemManager-devel \
ModemManager-glib-devel \
audit-libs-devel \
bluez-libs-devel \
dbus-devel \
dbus-glib-devel \
dbus-x11 \
dhclient \
gcc-c++ \
gettext-devel \
git \
glib2-doc \
gnutls-devel \
gobject-introspection-devel \
gtk-doc \
intltool \
iptables \
jansson-devel \
libcurl-devel \
libndp-devel \
libpsl-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 \
qt-devel \
readline-devel \
rpm-build \
systemd-devel \
teamd-devel \
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 \
python-gobject-base \
dbus-python \
pygobject3-base \
#end