mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-07 13:08:10 +02:00
build-from-source: enable nbft support only if the library is available
libnvme >= 1.5 is available only since RHEL 9.4. Disable nbft support at build time otherwise.
This commit is contained in:
parent
c7d8194f5f
commit
9c676e4e2c
1 changed files with 9 additions and 1 deletions
|
|
@ -100,6 +100,13 @@ if [[ "$INSTALL_DEPENDENCIES" == yes ]]; then
|
||||||
-y
|
-y
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# libnvme >= 1.5 is available in RHEL 9.4+, disable when missing
|
||||||
|
if pkgconf 'libnvme >= 1.5'; then
|
||||||
|
_WITH_NBFT="true"
|
||||||
|
else
|
||||||
|
_WITH_NBFT="false"
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "$DO_TEST_BUILD" == yes ]]; then
|
if [[ "$DO_TEST_BUILD" == yes ]]; then
|
||||||
# for the tests, let's pre-load some modules:
|
# for the tests, let's pre-load some modules:
|
||||||
$SUDO modprobe ip_gre || true
|
$SUDO modprobe ip_gre || true
|
||||||
|
|
@ -214,7 +221,8 @@ if [[ "$DO_TEST_BUILD" == yes ]]; then
|
||||||
-Dconfig_dhcp_default=internal \
|
-Dconfig_dhcp_default=internal \
|
||||||
-Dconfig_dns_rc_manager_default=auto \
|
-Dconfig_dns_rc_manager_default=auto \
|
||||||
-Diptables=/usr/sbin/iptables \
|
-Diptables=/usr/sbin/iptables \
|
||||||
-Dnft=/usr/bin/nft
|
-Dnft=/usr/bin/nft \
|
||||||
|
-Dnbft=${_WITH_NBFT}
|
||||||
|
|
||||||
ninja -C ./build
|
ninja -C ./build
|
||||||
ninja test -C ./build
|
ninja test -C ./build
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue