diff options
Diffstat (limited to 'contrib/scripts')
| -rwxr-xr-x | contrib/scripts/nm-ci-run.sh | 12 | ||||
| -rwxr-xr-x | contrib/scripts/nm-copr-build.sh | 10 |
2 files changed, 18 insertions, 4 deletions
diff --git a/contrib/scripts/nm-ci-run.sh b/contrib/scripts/nm-ci-run.sh index 57b867c5..49b31f6d 100755 --- a/contrib/scripts/nm-ci-run.sh +++ b/contrib/scripts/nm-ci-run.sh @@ -55,6 +55,7 @@ _WITH_LIBTEAM="true" _WITH_DOCS="true" _WITH_SYSTEMD_LOGIND="true" _WITH_NBFT="true" +_WITH_CLAT="true" if [ $IS_ALPINE = 1 ]; then _WITH_SYSTEMD_LOGIND="false" fi @@ -63,6 +64,14 @@ if ! pkgconf 'libnvme >= 1.5'; then _WITH_NBFT="false" fi +if ! pkgconf 'libndp >= 1.9'; then + _WITH_CLAT="false" +fi + +if ! pkgconf 'libbpf >= 1.3'; then + _WITH_CLAT="false" +fi + if [ -z "${NMTST_SEED_RAND+x}" ]; then NMTST_SEED_RAND="$SRANDOM" if [ -z "$NMTST_SEED_RAND" ]; then @@ -169,6 +178,7 @@ meson setup build \ -D ld_gc=false \ -D session_tracking=no \ -D systemdsystemunitdir=no \ + -D systemdsystemgeneratordir=no \ -D systemd_journal=false \ -D selinux=false \ -D libaudit=no \ @@ -184,7 +194,6 @@ meson setup build \ -D ofono=true \ -D teamdctl=$_WITH_LIBTEAM \ \ - -D dhclient=/bin/nowhere/dhclient \ -D dhcpcd=/bin/nowhere/dhcpd \ \ -D netconfig=/bin/nowhere/netconfig \ @@ -194,6 +203,7 @@ meson setup build \ -D ifupdown=true \ \ -D nbft=$_WITH_NBFT \ + -D clat=$_WITH_CLAT \ \ #end diff --git a/contrib/scripts/nm-copr-build.sh b/contrib/scripts/nm-copr-build.sh index 93dcc083..0fdfdf6c 100755 --- a/contrib/scripts/nm-copr-build.sh +++ b/contrib/scripts/nm-copr-build.sh @@ -74,9 +74,13 @@ get_nm_git_bundle() { fi mkdir nm-git-bundle pushd nm-git-bundle - time curl "$NM_GIT_BUNDLE" \ - | rpm2cpio - \ - | cpio -idmv + if ! time curl --fail -o nm-git-bundle.rpm "$NM_GIT_BUNDLE"; then + # The bundle is only a fetch speed-up; fall back to the git fetch below. + echo "nm-git-bundle unavailable at $NM_GIT_BUNDLE, falling back to upstream git fetch" >&2 + popd + return 0 + fi + rpm2cpio nm-git-bundle.rpm | cpio -idmv popd git remote add nm-git-bundle "$PWD/nm-git-bundle/usr/share/NetworkManager/nm-git-bundle.git" git fetch nm-git-bundle |