Commit 432717cf authored by Thomas Haller's avatar Thomas Haller

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
parent 4179cbb6
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment