From d250d332782336042e1fe2f225b84abe5365a45b Mon Sep 17 00:00:00 2001
From: Helmut Grohne <helmut@subdivi.de>
Date: Sun, 24 Apr 2022 14:36:27 +0200
Subject: [PATCH] build: bump gettext version to 0.19.8

findutils failed to build from source on musl-libc, because it fails
to detect gettext availability.  Newer gettext fixes this:

  Version 0.19.8 - June 2016
  [...]
  - The AM_GNU_GETTEXT Autoconf macro can now detect musl-libc's
    gettext as a compatible implementation.

* configure.ac (AM_GNU_GETTEXT_VERSION): Update from 0.19.3 to 0.19.8.
(AM_GNU_GETTEXT_REQUIRE_VERSION): Add to make autopoint pull the latest
available version instead of the exact specified version.
* NEWS: Mention the change.

Reported via Andreas Metzler <ametzler@bebt.de> at:
  https://sv.gnu.org/patch/?10203

Fixes: https://bugs.debian.org/1009874

Copyright-paperwork-exempt: Yes
---
 NEWS         | 5 +++++
 configure.ac | 7 +++++--
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/NEWS b/NEWS
index 6b8c3493..dffca5aa 100644
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,11 @@ GNU findutils NEWS - User visible changes.      -*- outline -*- (allout)
   to match the root directory "/".  Previously, a diagnostic falsely claimed
   that this pattern would not match anything. [#62227]
 
+** Changes to the build process
+
+  findutils now builds again on systems with musl-libc.
+  This requires gettext-0.19.8.
+
 
 * Noteworthy changes in release 4.9.0 (2022-02-22) [stable]
 
diff --git a/configure.ac b/configure.ac
index 5c34d10a..d6341f17 100644
--- a/configure.ac
+++ b/configure.ac
@@ -276,9 +276,12 @@ AC_CHECK_MEMBER(struct dirent.d_type,,,[
 
 jy_AC_ATTRIBUTE_NORETURN
 
-dnl internationalization macros
+dnl Internationalization macros.
+dnl AM_GNU_GETTEXT_REQUIRE_VERSION makes autopoint pull the latest available
+dnl version instead of the exact specified version.
 AM_GNU_GETTEXT([external])
-AM_GNU_GETTEXT_VERSION([0.19.3])
+AM_GNU_GETTEXT_VERSION([0.19.8])
+AM_GNU_GETTEXT_REQUIRE_VERSION([0.19.8])
 
 dnl regextype.c and regexprops.c are designed to be usable outside findutils,
 dnl but findutils doesn't want to support all the regex types in gnulib,
-- 
2.36.0

