From a0aeb2bec4d6f45300969e9d7b6300e873cbee62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= Date: Fri, 13 Feb 2026 11:41:06 +0100 Subject: [PATCH] Recreate configure unconditionally Previous fix did not work, because new configure was not regenerated after changing configure.ac. Make new configure on every build. Resolves: RHEL-147790 --- unbound.spec | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/unbound.spec b/unbound.spec index 2964468..b1f90c8 100644 --- a/unbound.spec +++ b/unbound.spec @@ -106,9 +106,11 @@ BuildRequires: systemd-rpm-macros %else BuildRequires: systemd %endif -# Required for SVN versions -# BuildRequires: bison -# BuildRequires: automake autoconf libtool +# Required for snapshot versions or modified configure.ac +BuildRequires: bison +BuildRequires: automake +BuildRequires: autoconf +BuildRequires: libtool # Needed because /usr/sbin/unbound links unbound libs staticly Requires: %{name}-libs%{?_isa} = %{version}-%{release} @@ -231,7 +233,7 @@ pushd %{pkgname} %autopatch -p2 # only for snapshots -# autoreconf -iv +autoreconf -fiv # copy common doc files - after here, since it may be patched cp -pr doc pythonmod libunbound ../ @@ -252,9 +254,6 @@ cp -a %{dir_primary} %{dir_secondary} %endif %build -# This is needed to rebuild the configure script to support Python 3.x -# autoreconf -iv - # ./configure script common arguments %global configure_args --with-libevent --with-pthreads --with-ssl \\\ --disable-rpath --disable-static \\\