From 432717cf472f8ac5905aeedbec16aced01c42826 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 15 Feb 2017 22:07:26 +0100 Subject: [PATCH] contrib/rpm: add explict configure options for building NetworkManager in "build_clean.sh" When we create a source tarball, documentation and other generated files are disted. Those files depend on the configure options when creating the tarball. For example, the generated man pages contain the compile time configurable default values. For that reason, it is generally better to regenerate the documentation when building NetworkManager. However, let's set explict configure options to have a more reproducible way to generate the tarball. When doing a release, you should not just call `make dist`. Instead, the proper way of creating an official source tarball is: $ ./contrib/fedora/rpm/build_clean.sh --srpm --- contrib/fedora/rpm/build_clean.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/contrib/fedora/rpm/build_clean.sh b/contrib/fedora/rpm/build_clean.sh index 9c66b023aa..656c99df69 100755 --- a/contrib/fedora/rpm/build_clean.sh +++ b/contrib/fedora/rpm/build_clean.sh @@ -110,7 +110,20 @@ if [[ $IGNORE_DIRTY != 1 ]]; then fi if [[ $NO_DIST != 1 ]]; then - ./autogen.sh --enable-gtk-doc --enable-introspection --with-libnm-glib || die "Error autogen.sh" + ./autogen.sh \ + --enable-gtk-doc \ + --enable-introspection \ + --with-libnm-glib \ + --enable-ifcfg-rh \ + --enable-ifupdown \ + --enable-ibft \ + --enable-ifnet \ + --with-config-logging-backend-default=syslog \ + --with-libaudit=yes-disabled-by-default \ + --enable-polkit=yes \ + --with-config-dhcp-default=internal \ + --with-config-dns-rc-manager-default=symlink \ + || die "Error autogen.sh" if [[ $QUICK == 1 ]]; then make dist -j 7 || die "Error make dist" else