mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2025-08-04 13:40:26 +00:00
The latest versions of gettext rely on several changes to gnulib including both changes to modules and new modules and some previously gettext specific code being moved to gnulib. Backport these changes in order to allow updating gettext while using the local gnulib copy of sources. Add patch: - 640-mem-hash-map.patch - 645-next-prime.patch - 646-hashcode-string.patch - 647-hashkey-string.patch - 650-package-version.patch - 651-package-version-simplify.patch - 652-package-version-simplify-further.patch - 653-package-version-warning.patch - 660-version-stamp.patch - 689-vc-mtime.patch - 755-clean-temp-hashkey.patch - 795-string-desc-rename-functions.patch - 796-vc-mtime-less-read.patch - 797-vc-mtime-add-api.patch - 798-vc-mtime-add-api.patch - 799-vc-mtime-old-git.patch - 900-str_startswith-module.patch - 901-str_endswith-module.patch Signed-off-by: Michael Pratt <mcpratt@pm.me> Link: https://github.com/openwrt/openwrt/pull/16522 Signed-off-by: Robert Marko <robimarko@gmail.com>
67 lines
2.7 KiB
Diff
67 lines
2.7 KiB
Diff
From bb0f82be83d43db9cd77049be32ffd0b92ab5bb7 Mon Sep 17 00:00:00 2001
|
|
From: Bruno Haible <bruno@clisp.org>
|
|
Date: Fri, 24 Jan 2025 22:03:29 +0100
|
|
Subject: package-version: Simplify its use.
|
|
|
|
Reported by Basil L. Contovounesios <basil@contovou.net> in
|
|
<https://lists.gnu.org/archive/html/bug-gnulib/2025-01/msg00195.html>.
|
|
|
|
* doc/package-version.texi (Propagating the package version): Recommend
|
|
to pass the usual arguments to AC_INIT.
|
|
* m4/init-package-version.m4: Likewise.
|
|
(gl_INIT_PACKAGE): Define PACKAGE_VERSION and PACKAGE_STRING as needed.
|
|
(gl_RPL_INIT_AUTOMAKE): Improve quoting.
|
|
---
|
|
ChangeLog | 11 +++++++++++
|
|
doc/package-version.texi | 2 +-
|
|
m4/init-package-version.m4 | 20 ++++++++++++++------
|
|
3 files changed, 26 insertions(+), 7 deletions(-)
|
|
|
|
--- a/m4/init-package-version.m4
|
|
+++ b/m4/init-package-version.m4
|
|
@@ -1,5 +1,5 @@
|
|
# init-package-version.m4
|
|
-# serial 3
|
|
+# serial 4
|
|
dnl Copyright (C) 1992-2025 Free Software Foundation, Inc.
|
|
dnl This file is free software, distributed under the terms of the GNU
|
|
dnl General Public License. As a special exception to the GNU General
|
|
@@ -57,7 +57,7 @@ dnl the same distribution terms as the r
|
|
#
|
|
# With the macro defined in this file, the approach can be coded like this:
|
|
#
|
|
-# AC_INIT
|
|
+# AC_INIT(PACKAGE, [dummy], [MORE OPTIONS])
|
|
# AC_CONFIG_SRCDIR(WITNESS)
|
|
# . $srcdir/../version.sh
|
|
# gl_INIT_PACKAGE(PACKAGE, $VERSION_NUMBER)
|
|
@@ -102,8 +102,16 @@ AC_DEFUN([gl_INIT_PACKAGE],
|
|
[AC_PACKAGE_NAME], [gl_INIT_DUMMY])),
|
|
[AC_PACKAGE_TARNAME], [gl_INIT_EMPTY])),
|
|
[AC_PACKAGE_VERSION], [gl_INIT_DUMMY])
|
|
- [AC_SUBST([PACKAGE], [$1])
|
|
- AC_SUBST([VERSION], [$2])
|
|
+ [dnl Set variables documented in Automake.
|
|
+ AC_SUBST([PACKAGE], [$1])
|
|
+ AC_SUBST([VERSION], ["$2"])
|
|
+ dnl Set variables documented in Autoconf.
|
|
+ AC_SUBST([PACKAGE_VERSION], ["$2"])
|
|
+ AC_SUBST([PACKAGE_STRING], ["$1 $2"])
|
|
+ AC_DEFINE_UNQUOTED([PACKAGE_VERSION], ["$2"],
|
|
+ [Define to the version of this package.])
|
|
+ AC_DEFINE_UNQUOTED([PACKAGE_STRING], ["$1 $2"],
|
|
+ [Define to the full name and version of this package.])
|
|
])
|
|
m4_define([AM_INIT_AUTOMAKE],
|
|
m4_defn([gl_RPL_INIT_AUTOMAKE]))
|
|
@@ -118,7 +126,7 @@ AC_DEFUN([gl_RPL_INIT_AUTOMAKE], [
|
|
[m4_fatal([After gl_INIT_PACKAGE, the two-argument form of AM_INIT_AUTOMAKE cannot be used.])])
|
|
gl_AM_INIT_AUTOMAKE([$1 no-define])
|
|
m4_if(m4_index([ $1 ], [ no-define ]), [-1],
|
|
- [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
|
|
- AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])
|
|
+ [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
|
|
+ AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])
|
|
])
|
|
])
|