[packages/liblangtag] - updated to 0.6.5; patch to avoid using ksh/bash arrays extension

qboosh qboosh at pld-linux.org
Sat Nov 25 18:29:18 CET 2023


commit a762eeda3da717cbd4e1bad6cc0c8cccdd0fe2c8
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Nov 25 18:01:31 2023 +0100

    - updated to 0.6.5; patch to avoid using ksh/bash arrays extension

 liblangtag-sh.patch    | 23 +++++++++++++++++++++++
 liblangtag-tests.patch | 12 ------------
 liblangtag.spec        |  6 +++---
 3 files changed, 26 insertions(+), 15 deletions(-)
---
diff --git a/liblangtag.spec b/liblangtag.spec
index 9bbda39..4fe7855 100644
--- a/liblangtag.spec
+++ b/liblangtag.spec
@@ -7,13 +7,13 @@
 Summary:	An interface library to access tags for identifying languages
 Summary(pl.UTF-8):	Biblioteka interfejsu dostępu do znaczników identyfikujących języki
 Name:		liblangtag
-Version:	0.6.4
+Version:	0.6.5
 Release:	1
 License:	LGPL v3+
 Group:		Libraries
 Source0:	https://bitbucket.org/tagoh/liblangtag/downloads/%{name}-%{version}.tar.bz2
-# Source0-md5:	c93611c472b5875166b4a3a35a66a62d
-Patch0:		%{name}-tests.patch
+# Source0-md5:	b96d5918f163045a43aa97719af1c2e2
+Patch0:		%{name}-sh.patch
 URL:		http://tagoh.bitbucket.org/liblangtag/
 BuildRequires:	autoconf >= 2.62
 BuildRequires:	automake >= 1:1.11
diff --git a/liblangtag-sh.patch b/liblangtag-sh.patch
new file mode 100644
index 0000000..4d5766f
--- /dev/null
+++ b/liblangtag-sh.patch
@@ -0,0 +1,23 @@
+--- liblangtag-0.6.5/configure.ac.orig	2023-11-24 12:26:58.000000000 +0100
++++ liblangtag-0.6.5/configure.ac	2023-11-25 17:50:51.233768270 +0100
+@@ -29,17 +29,17 @@ AC_PROG_CC_STDC
+ AX_IS_RELEASE([git-directory])
+ AX_COMPILER_FLAGS()
+ 
+-warn=()
++warn=""
+ for w in $WARN_CFLAGS; do
+ 	case $w in
+ 	-Wdeclaration-after-statement)
+ 		;;
+ 	*)
+-		warn+=($w)
++		warn="$warn $w"
+ 		;;
+ 	esac
+ done
+-WARN_CFLAGS="${warn[[@]]}"
++WARN_CFLAGS="$warn"
+ 
+ LT_PREREQ([2.2])
+ LT_INIT([disable-static win32-dll])
diff --git a/liblangtag-tests.patch b/liblangtag-tests.patch
deleted file mode 100644
index 6afe543..0000000
--- a/liblangtag-tests.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-Update following data/common/supplemental/supplementalMetadata.xml change
---- liblangtag-0.6.4/tests/check-tag.c.orig	2021-09-27 06:52:04.000000000 +0200
-+++ liblangtag-0.6.4/tests/check-tag.c	2023-03-04 15:04:16.449713051 +0100
-@@ -197,7 +197,7 @@ TDEF (lt_tag_canonicalize) {
- 	fail_unless(lt_tag_parse(t1, "mo", NULL), "should be valid langtag.");
- 	s = lt_tag_canonicalize(t1, NULL);
- 	fail_unless(s != NULL, "Unable to be canonicalize.");
--	fail_unless(lt_strcmp0(s, "ro-MD") == 0, "Unexpected result to be canonicalized.");
-+	fail_unless(lt_strcmp0(s, "ro") == 0, "Unexpected result to be canonicalized.");
- 	free(s);
- 
- 	lt_tag_unref(t1);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/liblangtag.git/commitdiff/a762eeda3da717cbd4e1bad6cc0c8cccdd0fe2c8



More information about the pld-cvs-commit mailing list