summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libunistring
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2022-01-19 11:40:49 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-01-20 11:57:29 +0000
commit0b630e28a195d5e4a71c9ed055f16e2042755d9b (patch)
treee8e88ada778a6f1395ab50d5d01b8495ec3f82c7 /meta/recipes-support/libunistring
parentb6a9eb01a54623ad8e421cb248377a308093cc3c (diff)
downloadpoky-0b630e28a195d5e4a71c9ed055f16e2042755d9b.tar.gz
libunistring: update 0.9.10 -> 1.0
Delete patches, as one is a backport, another patches code that upstream removed. License-Update: license changed to gplv2+ https://git.savannah.gnu.org/gitweb/?p=libunistring.git;a=commitdiff;h=87f797a50b854a4a2231203c25adbcec4f0dcd05 (From OE-Core rev: 32d2479782c7577352150ea1e3e6d2d48dad2eb0) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/libunistring')
-rw-r--r--meta/recipes-support/libunistring/libunistring/0001-Make-gl_INIT_PACKAGE-work-with-Automake-1.16.4.patch57
-rw-r--r--meta/recipes-support/libunistring/libunistring/0001-Unset-need_charset_alias-when-building-for-musl.patch30
-rw-r--r--meta/recipes-support/libunistring/libunistring_1.0.bb (renamed from meta/recipes-support/libunistring/libunistring_0.9.10.bb)14
3 files changed, 5 insertions, 96 deletions
diff --git a/meta/recipes-support/libunistring/libunistring/0001-Make-gl_INIT_PACKAGE-work-with-Automake-1.16.4.patch b/meta/recipes-support/libunistring/libunistring/0001-Make-gl_INIT_PACKAGE-work-with-Automake-1.16.4.patch
deleted file mode 100644
index d8424f28d4..0000000000
--- a/meta/recipes-support/libunistring/libunistring/0001-Make-gl_INIT_PACKAGE-work-with-Automake-1.16.4.patch
+++ /dev/null
@@ -1,57 +0,0 @@
1From 15e4365267e316f15222b8bf9f0a7cd0db231e9c Mon Sep 17 00:00:00 2001
2From: Bruno Haible <bruno@clisp.org>
3Date: Sun, 8 Aug 2021 01:58:42 +0200
4Subject: [PATCH] Make gl_INIT_PACKAGE work with Automake >= 1.16.4.
5
6Reported and analyzed by Nicole Mazzuca <mazzucan@outlook.com> in
7<https://lists.gnu.org/archive/html/bug-libunistring/2021-08/msg00002.html>.
8
9* m4/init-package-version.m4 (gl_INIT_PACKAGE): Use a new macro
10gl_INIT_EMPTY.
11(gl_INIT_DUMMY): Expand to empty in two steps, via a new macro
12gl_INIT_DUMMY2.
13
14Upstream-Status: Backport
15Signed-off-by: Alexander Kanavin <alex@linutronix.de>
16---
17 ChangeLog | 10 ++++++++++
18 m4/init-package-version.m4 | 12 ++++++++----
19 2 files changed, 18 insertions(+), 4 deletions(-)
20
21diff --git a/m4/init-package-version.m4 b/m4/init-package-version.m4
22index f131a84..a26b1ab 100644
23--- a/m4/init-package-version.m4
24+++ b/m4/init-package-version.m4
25@@ -1,5 +1,5 @@
26-# init-package-version.m4 serial 1 (gettext-0.18)
27-dnl Copyright (C) 1992-2009 Free Software Foundation, Inc.
28+# init-package-version.m4 serial 2
29+dnl Copyright (C) 1992-2021 Free Software Foundation, Inc.
30 dnl This file is free software, distributed under the terms of the GNU
31 dnl General Public License. As a special exception to the GNU General
32 dnl Public License, this file may be distributed as part of a program
33@@ -77,7 +77,7 @@ AC_DEFUN([gl_INIT_PACKAGE],
34 m4_bpatsubst(m4_dquote(
35 m4_defn([AM_INIT_AUTOMAKE])),
36 [AC_PACKAGE_NAME], [gl_INIT_DUMMY])),
37- [AC_PACKAGE_TARNAME], [gl_INIT_DUMMY])),
38+ [AC_PACKAGE_TARNAME], [gl_INIT_EMPTY])),
39 [AC_PACKAGE_VERSION], [gl_INIT_DUMMY])
40 [AC_SUBST([PACKAGE], [$1])
41 AC_SUBST([VERSION], [$2])
42@@ -85,7 +85,11 @@ AC_DEFUN([gl_INIT_PACKAGE],
43 m4_define([AM_INIT_AUTOMAKE],
44 m4_defn([gl_RPL_INIT_AUTOMAKE]))
45 ])
46-m4_define([gl_INIT_DUMMY], [])
47+m4_define([gl_INIT_EMPTY], [])
48+dnl Automake 1.16.4 no longer accepts an empty value for gl_INIT_DUMMY.
49+dnl But a macro that later expands to empty works.
50+m4_define([gl_INIT_DUMMY], [gl_INIT_DUMMY2])
51+m4_define([gl_INIT_DUMMY2], [])
52 AC_DEFUN([gl_RPL_INIT_AUTOMAKE], [
53 m4_ifval([$2],
54 [m4_fatal([After gl_INIT_PACKAGE, the two-argument form of AM_INIT_AUTOMAKE cannot be used.])])
55--
562.20.1
57
diff --git a/meta/recipes-support/libunistring/libunistring/0001-Unset-need_charset_alias-when-building-for-musl.patch b/meta/recipes-support/libunistring/libunistring/0001-Unset-need_charset_alias-when-building-for-musl.patch
deleted file mode 100644
index 2aeacb868e..0000000000
--- a/meta/recipes-support/libunistring/libunistring/0001-Unset-need_charset_alias-when-building-for-musl.patch
+++ /dev/null
@@ -1,30 +0,0 @@
1From b9565dc2fe0c4f7daaec91b7e83bc7313dee2f4a Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 13 Apr 2015 17:02:13 -0700
4Subject: [PATCH] Unset need_charset_alias when building for musl
5
6localcharset uses ac_cv_gnu_library_2_1 from glibc21.m4
7which actually shoudl be fixed in gnulib and then all downstream
8projects will get it eventually. For now we apply the fix to
9coreutils
10
11Upstream-Status: Pending
12
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
15 lib/gnulib.mk | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18Index: libunistring-0.9.4/lib/Makefile.gnulib
19===================================================================
20--- libunistring-0.9.4.orig/lib/Makefile.gnulib
21+++ libunistring-0.9.4/lib/Makefile.gnulib
22@@ -380,7 +380,7 @@ install-exec-localcharset: all-local
23 case '$(host_os)' in \
24 darwin[56]*) \
25 need_charset_alias=true ;; \
26- darwin* | cygwin* | mingw* | pw32* | cegcc*) \
27+ darwin* | cygwin* | mingw* | pw32* | cegcc* | linux-musl*) \
28 need_charset_alias=false ;; \
29 *) \
30 need_charset_alias=true ;; \
diff --git a/meta/recipes-support/libunistring/libunistring_0.9.10.bb b/meta/recipes-support/libunistring/libunistring_1.0.bb
index 0692bbcb44..31c84cb790 100644
--- a/meta/recipes-support/libunistring/libunistring_0.9.10.bb
+++ b/meta/recipes-support/libunistring/libunistring_1.0.bb
@@ -13,19 +13,15 @@ DESCRIPTION = "Text files are nowadays usually encoded in Unicode, and may\
13 13
14HOMEPAGE = "http://www.gnu.org/software/libunistring/" 14HOMEPAGE = "http://www.gnu.org/software/libunistring/"
15SECTION = "devel" 15SECTION = "devel"
16LICENSE = "LGPLv3+ | GPLv2" 16LICENSE = "LGPLv3+ | GPLv2+"
17LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \ 17LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \
18 file://README;beginline=45;endline=65;md5=08287d16ba8d839faed8d2dc14d7d6a5 \ 18 file://README;beginline=45;endline=65;md5=3a896a943b4da2c551e6be1af27eff8d \
19 file://doc/libunistring.texi;md5=287fa6075f78a3c85c1a52b0a92547cd \ 19 file://doc/libunistring.texi;md5=266e4297d7c18f197be3d9622ba99685 \
20 " 20 "
21DEPENDS = "gperf-native" 21DEPENDS = "gperf-native"
22 22
23SRC_URI = "${GNU_MIRROR}/libunistring/libunistring-${PV}.tar.gz \ 23SRC_URI = "${GNU_MIRROR}/libunistring/libunistring-${PV}.tar.gz"
24 file://0001-Unset-need_charset_alias-when-building-for-musl.patch \ 24SRC_URI[sha256sum] = "3c0184c0e492d7c208ce31d25dd1d2c58f0c3ed6cbbe032c5b248cddad318544"
25 file://0001-Make-gl_INIT_PACKAGE-work-with-Automake-1.16.4.patch \
26"
27SRC_URI[md5sum] = "0d3274e9838396b12200f8b54ddaf43b"
28SRC_URI[sha256sum] = "a82e5b333339a88ea4608e4635479a1cfb2e01aafb925e1290b65710d43f610b"
29 25
30inherit autotools texinfo 26inherit autotools texinfo
31BBCLASSEXTEND = "native nativesdk" 27BBCLASSEXTEND = "native nativesdk"