merge: branch 'jv/break-autotools'

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1931

(cherry picked from commit edb6fa1dd7)
This commit is contained in:
Jan Vaclav
2024-05-09 12:01:07 +02:00
10 changed files with 34 additions and 9 deletions

View File

@@ -57,11 +57,11 @@ variables:
# #
# This is done by running `ci-fairy generate-template` and possibly bumping # This is done by running `ci-fairy generate-template` and possibly bumping
# ".default_tag". # ".default_tag".
ALPINE_TAG: 'tag-ec0f564800e3' ALPINE_TAG: 'tag-ed94fd969369'
CENTOS_TAG: 'tag-b114f45d4a4e' CENTOS_TAG: 'tag-dc93a9c129f8'
DEBIAN_TAG: 'tag-318ea804326f' DEBIAN_TAG: 'tag-3766b6cf1e7d'
FEDORA_TAG: 'tag-b114f45d4a4e' FEDORA_TAG: 'tag-dc93a9c129f8'
UBUNTU_TAG: 'tag-318ea804326f' UBUNTU_TAG: 'tag-3766b6cf1e7d'
ALPINE_EXEC: 'bash .gitlab-ci/alpine-install.sh' ALPINE_EXEC: 'bash .gitlab-ci/alpine-install.sh'
CENTOS_EXEC: 'bash .gitlab-ci/fedora-install.sh' CENTOS_EXEC: 'bash .gitlab-ci/fedora-install.sh'
@@ -552,7 +552,7 @@ check-tree:
- date '+%Y%m%d-%H%M%S'; git ls-files -z -- 'po/*.po' | xargs -0 -n1 msgfmt -vc - date '+%Y%m%d-%H%M%S'; git ls-files -z -- 'po/*.po' | xargs -0 -n1 msgfmt -vc
- date '+%Y%m%d-%H%M%S'; contrib/scripts/nm-code-format.sh -n - date '+%Y%m%d-%H%M%S'; contrib/scripts/nm-code-format.sh -n
- date '+%Y%m%d-%H%M%S'; ci-fairy generate-template && git diff --exit-code - date '+%Y%m%d-%H%M%S'; ci-fairy generate-template && git diff --exit-code
- date '+%Y%m%d-%H%M%S'; ./autogen.sh && [ "$(LANG=C make -C po update-po 2>&1 1>/dev/null | grep -c 'warning:')" = 0 ] - date '+%Y%m%d-%H%M%S'; ./autogen.sh --disable-autotools-deprecation && [ "$(LANG=C make -C po update-po 2>&1 1>/dev/null | grep -c 'warning:')" = 0 ]
pages: pages:
stage: deploy stage: deploy

View File

@@ -211,7 +211,7 @@ check-tree:
- date '+%Y%m%d-%H%M%S'; git ls-files -z -- 'po/*.po' | xargs -0 -n1 msgfmt -vc - date '+%Y%m%d-%H%M%S'; git ls-files -z -- 'po/*.po' | xargs -0 -n1 msgfmt -vc
- date '+%Y%m%d-%H%M%S'; contrib/scripts/nm-code-format.sh -n - date '+%Y%m%d-%H%M%S'; contrib/scripts/nm-code-format.sh -n
- date '+%Y%m%d-%H%M%S'; ci-fairy generate-template && git diff --exit-code - date '+%Y%m%d-%H%M%S'; ci-fairy generate-template && git diff --exit-code
- date '+%Y%m%d-%H%M%S'; ./autogen.sh && [ "$(LANG=C make -C po update-po 2>&1 1>/dev/null | grep -c 'warning:')" = 0 ] - date '+%Y%m%d-%H%M%S'; ./autogen.sh --disable-autotools-deprecation && [ "$(LANG=C make -C po update-po 2>&1 1>/dev/null | grep -c 'warning:')" = 0 ]
pages: pages:
stage: deploy stage: deploy

View File

@@ -159,6 +159,7 @@ DISTCHECK_CONFIGURE_FLAGS = \
--enable-ifcfg-rh \ --enable-ifcfg-rh \
--enable-ifupdown \ --enable-ifupdown \
--disable-dependency-tracking \ --disable-dependency-tracking \
--disable-autotools-deprecation \
$(NULL) $(NULL)
dist-configure-check: dist-configure-check:

5
NEWS
View File

@@ -8,6 +8,11 @@ subject to change and not guaranteed to be compatible with
the later release. the later release.
USE AT YOUR OWN RISK. NOT RECOMMENDED FOR PRODUCTION USE! USE AT YOUR OWN RISK. NOT RECOMMENDED FOR PRODUCTION USE!
* Building with autotools is now deprecated and will be completely removed
in the next development cycle. We recommend using meson to build
NetworkManager -- for basic setup, see the CONTRIBUTING.md file.
To ignore this deprecation and still build with Autotools, you can specify
the '--disable-autotools-deprecation' argument when configuring.
* Support changing the OpenSSL ciphers for 802.1X authentication via * Support changing the OpenSSL ciphers for 802.1X authentication via
connection property "802-1x.openssl-ciphers". connection property "802-1x.openssl-ciphers".
* The reason why a device is unmanaged is now properly set in the * The reason why a device is unmanaged is now properly set in the

View File

@@ -16,6 +16,20 @@ AC_INIT([NetworkManager], [nm_version],
[http://bugzilla.gnome.org/enter_bug.cgi?product=NetworkManager], [http://bugzilla.gnome.org/enter_bug.cgi?product=NetworkManager],
[NetworkManager]) [NetworkManager])
deprecation_message() {
echo "Building with Autotools is deprecated; meson is the recommended way to build NetworkManager."
echo "To learn more, see the CONTRIBUTING.md file."
echo "To ignore this, pass '--disable-autotools-deprecation' when configuring."
exit 1
}
AC_ARG_ENABLE([autotools-deprecation],
AS_HELP_STRING([--disable-autotools-deprecation],
[Building with autotools is deprecated, passing this argument overrides this error.]),
[ test "$enableval" != "no" && deprecation_message ],
[ deprecation_message ]
)
AC_CONFIG_HEADERS([config.h]) AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([build-aux]) AC_CONFIG_AUX_DIR([build-aux])

View File

@@ -918,7 +918,8 @@ autoreconf --install --force
--with-resolvconf=no \ --with-resolvconf=no \
--with-netconfig=no \ --with-netconfig=no \
--with-config-dns-rc-manager-default=%{dns_rc_manager_default} \ --with-config-dns-rc-manager-default=%{dns_rc_manager_default} \
--with-config-logging-backend-default=%{logging_backend_default} --with-config-logging-backend-default=%{logging_backend_default} \
--disable-autotools-deprecation
%make_build %make_build

View File

@@ -272,6 +272,7 @@ if [[ $NO_DIST != 1 ]]; then
\ \
--with-iptables=/usr/sbin/iptables \ --with-iptables=/usr/sbin/iptables \
--with-nft=/usr/sbin/nft \ --with-nft=/usr/sbin/nft \
--disable-autotools-deprecation \
\ \
|| die "Error autogen.sh" || die "Error autogen.sh"
if [[ $QUICK == 1 ]]; then if [[ $QUICK == 1 ]]; then

View File

@@ -514,6 +514,7 @@ else
--with-netconfig=no \ --with-netconfig=no \
--with-config-dns-rc-manager-default="$P_DNS_RC_MANAGER_DEFAULT" \ --with-config-dns-rc-manager-default="$P_DNS_RC_MANAGER_DEFAULT" \
--with-config-logging-backend-default="$P_LOGGING_BACKEND_DEFAULT" \ --with-config-logging-backend-default="$P_LOGGING_BACKEND_DEFAULT" \
--disable-autotools-deprecation \
; ;
fi fi

View File

@@ -188,6 +188,7 @@ run_autotools() {
\ \
--enable-ifcfg-rh=yes \ --enable-ifcfg-rh=yes \
--enable-ifupdown=yes \ --enable-ifupdown=yes \
--disable-autotools-deprecation \
\ \
#end #end

View File

@@ -26,7 +26,8 @@ _build() {
--with-modem-manager-1 \ --with-modem-manager-1 \
--with-ofono \ --with-ofono \
--with-more-asserts \ --with-more-asserts \
--with-more-logging --with-more-logging \
--disable-autotools-deprecation
make -j20 make -j20
} }