mirror of
https://git.yoctoproject.org/poky
synced 2026-04-19 15:32:13 +02:00
libunistring: address automake 1.16.5 failures
(From OE-Core rev: fe0e7e4b626c70416a0e19f339cb5d52e16b9d2c) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
b5c30fb196
commit
fbc3830ecf
@@ -0,0 +1,57 @@
|
||||
From 15e4365267e316f15222b8bf9f0a7cd0db231e9c Mon Sep 17 00:00:00 2001
|
||||
From: Bruno Haible <bruno@clisp.org>
|
||||
Date: Sun, 8 Aug 2021 01:58:42 +0200
|
||||
Subject: [PATCH] Make gl_INIT_PACKAGE work with Automake >= 1.16.4.
|
||||
|
||||
Reported and analyzed by Nicole Mazzuca <mazzucan@outlook.com> in
|
||||
<https://lists.gnu.org/archive/html/bug-libunistring/2021-08/msg00002.html>.
|
||||
|
||||
* m4/init-package-version.m4 (gl_INIT_PACKAGE): Use a new macro
|
||||
gl_INIT_EMPTY.
|
||||
(gl_INIT_DUMMY): Expand to empty in two steps, via a new macro
|
||||
gl_INIT_DUMMY2.
|
||||
|
||||
Upstream-Status: Backport
|
||||
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
|
||||
---
|
||||
ChangeLog | 10 ++++++++++
|
||||
m4/init-package-version.m4 | 12 ++++++++----
|
||||
2 files changed, 18 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/m4/init-package-version.m4 b/m4/init-package-version.m4
|
||||
index f131a84..a26b1ab 100644
|
||||
--- a/m4/init-package-version.m4
|
||||
+++ b/m4/init-package-version.m4
|
||||
@@ -1,5 +1,5 @@
|
||||
-# init-package-version.m4 serial 1 (gettext-0.18)
|
||||
-dnl Copyright (C) 1992-2009 Free Software Foundation, Inc.
|
||||
+# init-package-version.m4 serial 2
|
||||
+dnl Copyright (C) 1992-2021 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
|
||||
dnl Public License, this file may be distributed as part of a program
|
||||
@@ -77,7 +77,7 @@ AC_DEFUN([gl_INIT_PACKAGE],
|
||||
m4_bpatsubst(m4_dquote(
|
||||
m4_defn([AM_INIT_AUTOMAKE])),
|
||||
[AC_PACKAGE_NAME], [gl_INIT_DUMMY])),
|
||||
- [AC_PACKAGE_TARNAME], [gl_INIT_DUMMY])),
|
||||
+ [AC_PACKAGE_TARNAME], [gl_INIT_EMPTY])),
|
||||
[AC_PACKAGE_VERSION], [gl_INIT_DUMMY])
|
||||
[AC_SUBST([PACKAGE], [$1])
|
||||
AC_SUBST([VERSION], [$2])
|
||||
@@ -85,7 +85,11 @@ AC_DEFUN([gl_INIT_PACKAGE],
|
||||
m4_define([AM_INIT_AUTOMAKE],
|
||||
m4_defn([gl_RPL_INIT_AUTOMAKE]))
|
||||
])
|
||||
-m4_define([gl_INIT_DUMMY], [])
|
||||
+m4_define([gl_INIT_EMPTY], [])
|
||||
+dnl Automake 1.16.4 no longer accepts an empty value for gl_INIT_DUMMY.
|
||||
+dnl But a macro that later expands to empty works.
|
||||
+m4_define([gl_INIT_DUMMY], [gl_INIT_DUMMY2])
|
||||
+m4_define([gl_INIT_DUMMY2], [])
|
||||
AC_DEFUN([gl_RPL_INIT_AUTOMAKE], [
|
||||
m4_ifval([$2],
|
||||
[m4_fatal([After gl_INIT_PACKAGE, the two-argument form of AM_INIT_AUTOMAKE cannot be used.])])
|
||||
--
|
||||
2.20.1
|
||||
|
||||
@@ -22,6 +22,7 @@ DEPENDS = "gperf-native"
|
||||
|
||||
SRC_URI = "${GNU_MIRROR}/libunistring/libunistring-${PV}.tar.gz \
|
||||
file://0001-Unset-need_charset_alias-when-building-for-musl.patch \
|
||||
file://0001-Make-gl_INIT_PACKAGE-work-with-Automake-1.16.4.patch \
|
||||
"
|
||||
SRC_URI[md5sum] = "0d3274e9838396b12200f8b54ddaf43b"
|
||||
SRC_URI[sha256sum] = "a82e5b333339a88ea4608e4635479a1cfb2e01aafb925e1290b65710d43f610b"
|
||||
|
||||
Reference in New Issue
Block a user