mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 11:19:16 +02:00
build-from-source: introduce INSTALL_DEPENDENCIES env variable
Environments like Copr cannot install the dependencies during the script execution. In order to solve this, this patch introduces "INSTALL_DEPENDENCIES" environment variable. Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net> https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/490
This commit is contained in:
parent
2efe2f9e43
commit
bc0c79faeb
1 changed files with 58 additions and 53 deletions
|
|
@ -16,6 +16,7 @@ DO_TEST_BUILD="${DO_TEST_BUILD:-yes}"
|
||||||
DO_TEST_PACKAGE="${DO_TEST_PACKAGE:-yes}"
|
DO_TEST_PACKAGE="${DO_TEST_PACKAGE:-yes}"
|
||||||
DO_INSTALL="${DO_INSTALL:-yes}"
|
DO_INSTALL="${DO_INSTALL:-yes}"
|
||||||
SUDO="$SUDO"
|
SUDO="$SUDO"
|
||||||
|
INSTALL_DEPENDENCIES="${INSTALL_DEPENDENCIES:-yes}"
|
||||||
|
|
||||||
if [ -z "$SUDO" ]; then
|
if [ -z "$SUDO" ]; then
|
||||||
unset SUDO
|
unset SUDO
|
||||||
|
|
@ -26,60 +27,64 @@ if grep -q --quiet Ootpa /etc/redhat-release; then
|
||||||
YUM_ARGS+=("--enablerepo=rhel-8-buildroot")
|
YUM_ARGS+=("--enablerepo=rhel-8-buildroot")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$SUDO yum install \
|
if [[ "$INSTALL_DEPENDENCIES" == yes ]]; then
|
||||||
'perl(XML::Parser)' \
|
$SUDO yum install \
|
||||||
'perl(YAML)' \
|
'perl(XML::Parser)' \
|
||||||
/usr/bin/dbus-launch \
|
'perl(YAML)' \
|
||||||
ModemManager-glib-devel \
|
/usr/bin/dbus-launch \
|
||||||
audit-libs-devel \
|
ModemManager-glib-devel \
|
||||||
automake \
|
audit-libs-devel \
|
||||||
bluez-libs-devel \
|
automake \
|
||||||
dbus-devel \
|
bluez-libs-devel \
|
||||||
dbus-glib-devel \
|
dbus-devel \
|
||||||
dbus-python \
|
dbus-glib-devel \
|
||||||
dhclient \
|
dbus-python \
|
||||||
gettext-devel \
|
dhclient \
|
||||||
git \
|
gettext-devel \
|
||||||
glib2-devel \
|
git \
|
||||||
gnutls-devel \
|
glib2-devel \
|
||||||
gobject-introspection-devel \
|
gnutls-devel \
|
||||||
gtk-doc \
|
gobject-introspection-devel \
|
||||||
intltool \
|
gtk-doc \
|
||||||
iptables \
|
intltool \
|
||||||
jansson-devel \
|
iptables \
|
||||||
libasan \
|
jansson-devel \
|
||||||
libcurl-devel \
|
libasan \
|
||||||
libgudev1-devel \
|
libcurl-devel \
|
||||||
libndp-devel \
|
libgudev1-devel \
|
||||||
libnl3-devel \
|
libndp-devel \
|
||||||
libpsl-devel \
|
libnl3-devel \
|
||||||
libselinux-devel \
|
libpsl-devel \
|
||||||
libsoup-devel \
|
libselinux-devel \
|
||||||
libubsan \
|
libsoup-devel \
|
||||||
libudev-devel \
|
libubsan \
|
||||||
libuuid-devel \
|
libudev-devel \
|
||||||
mobile-broadband-provider-info-devel \
|
libuuid-devel \
|
||||||
newt-devel \
|
mobile-broadband-provider-info-devel \
|
||||||
nss-devel \
|
newt-devel \
|
||||||
pkgconfig \
|
nss-devel \
|
||||||
polkit-devel \
|
pkgconfig \
|
||||||
ppp-devel \
|
polkit-devel \
|
||||||
pygobject3-base \
|
ppp-devel \
|
||||||
python3 \
|
pygobject3-base \
|
||||||
readline-devel \
|
python3 \
|
||||||
rpm-build \
|
readline-devel \
|
||||||
strace \
|
rpm-build \
|
||||||
systemd \
|
strace \
|
||||||
teamd-devel \
|
systemd \
|
||||||
vala-tools \
|
teamd-devel \
|
||||||
valgrind \
|
vala-tools \
|
||||||
wireless-tools-devel \
|
valgrind \
|
||||||
"${YUM_ARGS[@]}" \
|
wireless-tools-devel \
|
||||||
--skip-broken \
|
"${YUM_ARGS[@]}" \
|
||||||
-y
|
--skip-broken \
|
||||||
|
-y
|
||||||
|
fi
|
||||||
|
|
||||||
# for the tests, let's pre-load some modules:
|
if [[ "$DO_TEST_BUILD" == yes ]]; then
|
||||||
$SUDO modprobe ip_gre
|
# for the tests, let's pre-load some modules:
|
||||||
|
$SUDO modprobe ip_gre
|
||||||
|
fi
|
||||||
|
|
||||||
if grep -q Maipo /etc/redhat-release; then
|
if grep -q Maipo /etc/redhat-release; then
|
||||||
PYTHON=$(which python2)
|
PYTHON=$(which python2)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue