From a188ca8cb6f48c1f79d33ce80be025c5e7d72c7f Mon Sep 17 00:00:00 2001 From: Andrea Bolognani Date: Thu, 21 Nov 2024 12:04:43 +0100 Subject: [PATCH] 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 (cherry picked from commit 82843cba33729559ea98c3eb767d4395a7a0c9dc) Signed-off-by: David Abdurachmanov --- kea.spec | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/kea.spec b/kea.spec index 52bde7e..8cb120f 100644 --- a/kea.spec +++ b/kea.spec @@ -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