On 2022-04-23 Andreas Metzler <ametz...@bebt.de> wrote: > Control: tags 1008832 + pending
> Dear maintainer, > I've prepared an NMU for freeradius (versioned as 3.0.25+dfsg-1.1) and > uploaded it to DELAYED/5. Please feel free to tell me if I > should delay it longer. > Kind regards > Andreas Hello, this would be the alternative version to make dh_autoreconf regenerate all configure scripts. I do not think can be polished more, the codebase currently does not have a (working) way of regenerating the scripts. aclocal is kind of necessary but cannot be used without modifying the code. cu Andreas
>From 5ca6ad8c6c9d5fb17d034fe11a8dd9b747ab4eba Mon Sep 17 00:00:00 2001 From: Andreas Metzler <ametz...@bebt.de> Date: Sun, 24 Apr 2022 14:19:33 +0200 Subject: [PATCH] regenerate all configure scripts --- debian/autoreconfme | 29 +++++++++++++++++++++++++++++ debian/rules | 4 ++++ 2 files changed, 33 insertions(+) create mode 100755 debian/autoreconfme diff --git a/debian/autoreconfme b/debian/autoreconfme new file mode 100755 index 0000000..3aedfea --- /dev/null +++ b/debian/autoreconfme @@ -0,0 +1,29 @@ +#!/bin/sh + +set -e + +base=`pwd` + +mkdir build-aclocal +cd build-aclocal +find "${base}" -mindepth 2 -path "${base}/build-aclocal" -prune \ + -o \( -name configure.ac -printf '%h\n' \) |\ + while read i ; do + cd ${base}/build-aclocal + echo processing $i + test -e ${i}/m4 || mkdir ${i}/m4 + grep -v '^AC_INCLUDE(aclocal.m4)' \ + ${base}/acinclude.m4 > ${i}/m4/acinclude.m4 + grep -v '^[[:space:]]*m4_include(' $i/configure.ac \ + > configure.ac + aclocal --force --install -I $i/m4\ + --output=$i/aclocal.m4 + rm -f ${base}/build-aclocal/configure.ac + cd $i + autoconf --force --include=m4 + done + +cd ${base} +aclocal --force --install -I m4 +autoconf --force --include=m4 +rm -rf build-aclocal diff --git a/debian/rules b/debian/rules index f1d6ddb..0ab5d22 100755 --- a/debian/rules +++ b/debian/rules @@ -9,6 +9,10 @@ ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) MAKEFLAGS += -j$(NUMJOBS) endif +override_dh_autoreconf: + chmod +x debian/autoreconfme + dh_autoreconf --verbose debian/autoreconfme + override_dh_auto_clean: [ ! -f Make.inc ] || dh_auto_clean -- 2.35.1