From e3244332ddf38e7e2889a2cd6fb3a013d060839f 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 Signed-off-by: Richard W.M. Jones (cherry picked from commit 82843cba33729559ea98c3eb767d4395a7a0c9dc) --- kea.spec | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/kea.spec b/kea.spec index 1bfaef2..9c9c6d2 100644 --- a/kea.spec +++ b/kea.spec @@ -201,6 +201,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