Use autoreconf more (fixes riscv64 build)

Right now autoreconf is called for Kea itself but not for
Keama.

Additionally, Keama includes an embedded copy of bind, which
also needs autoreconf to be called. If that doesn't happen,
since the copies of config.{sub,guess} included in the archive
are obsolete and don't know about the architecture, it won't
be possible to build on riscv64.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
(cherry picked from commit 82843cba33729559ea98c3eb767d4395a7a0c9dc)
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
Andrea Bolognani 2024-11-21 12:04:43 +01:00 committed by David Abdurachmanov
parent 72d8d2d3cb
commit a188ca8cb6
Signed by: davidlt
GPG Key ID: 7A5F42FAF91FACC3

View File

@ -199,6 +199,25 @@ autoreconf --verbose --force --install
# Configure & build Keama
pushd ../keama-%{keama_version}
# We need to unpack the embedded copy of bind and call autoreconf to
# ensure that config.{sub,guess} is up to date, since the copies
# included in the archive are extremely old (2013) and unaware of
# more recent architectures such as riscv64. The Keama build system
# would normally take care of unpacking the archive, but it also
# handles gracefully us doing it ourselves
tar -C bind/ -zxvf bind/bind.tar.gz
pushd bind/bind-%{bind_version}/
autoreconf --verbose --force --install
# Back to Keama. Its build system will take care of configuring and
# building the embedded copy of bind
popd
autoreconf --verbose --force --install
%configure \
--disable-dependency-tracking \
--disable-silent-rules