]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/commitdiff
compat-icu: New package.
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 8 Apr 2016 07:09:26 +0000 (09:09 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 8 Apr 2016 12:57:41 +0000 (13:57 +0100)
This package provides compatiblity libraries of icu 50.2.1,
which are required by various binaries which are linked against
them.

Fixes #10961.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
compat-icu/compat-icu.nm [new file with mode: 0644]
compat-icu/patches/icu-test-twodigityear.patch2 [new file with mode: 0644]

diff --git a/compat-icu/compat-icu.nm b/compat-icu/compat-icu.nm
new file mode 100644 (file)
index 0000000..47e24d4
--- /dev/null
@@ -0,0 +1,73 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = compat-icu
+version    = %{ver_major}.%{ver_minor}.%{ver_plevel}
+ver_major  = 50
+ver_minor  = 1
+ver_plevel = 2
+release    = 1
+thisapp    = icu-%{version}
+
+groups     = Development/Tools
+url        = http://www.icu-project.org
+license    = MIT and UCD and Public Domain
+summary    = International Components for Unicode.
+
+description
+       Tools and utilities for developing with icu.
+end
+
+source_dl  = http://download.icu-project.org/files/icu4c/%{version}/
+sources    = icu4c-%{ver_major}_%{ver_minor}_%{ver_plevel}-src.tgz
+
+build
+       DIR_APP = %{DIR_SRC}/icu/source
+
+       configure_options += \
+               --disable-static \
+               --with-data-packaging=library \
+               --disable-samples
+
+       prepare_cmds
+               sed -i 's|-nodefaultlibs -nostdlib||' config/mh-linux
+       end
+
+       configure_cmds
+               # There is no source/doc/html/search/ directory
+               sed -i '/^\s\+\$(INSTALL_DATA) \$(docsrchfiles) \$(DESTDIR)\$(docdir)\/\$(docsubsrchdir)\s*$/d' Makefile
+
+               # The configure --disable-renaming and possibly other options result in icu/source/uconfig.h.prepend
+               # being created, include that content in icu/source/common/unicode/uconfig.h to propagate to consumer packages.
+               test -f uconfig.h.prepend && sed -e '/^#define __UCONFIG_H__/ r uconfig.h.prepend' \
+                       -i common/unicode/uconfig.h
+       end
+
+       test
+               make check
+       end
+
+       install
+               # Install just the library and no headers.
+               mkdir -pv %{BUILDROOT}%{libdir}
+               cp -av lib/*.so.* %{BUILDROOT}%{libdir}
+       end
+end
+
+packages
+       package %{name}
+               provides
+                       icu = %{thisver}
+               end
+
+               obsoletes
+                       icu <= %{thisver}
+               end
+       end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
+end
diff --git a/compat-icu/patches/icu-test-twodigityear.patch2 b/compat-icu/patches/icu-test-twodigityear.patch2
new file mode 100644 (file)
index 0000000..fba90b5
--- /dev/null
@@ -0,0 +1,13 @@
+In the year 2034 ...
+http://sourceforge.net/p/icu/mailman/message/32443311/
+--- icu.orig/source/test/intltest/dtfmttst.cpp 2013-10-04 22:48:00.000000000 +0200
++++ icu/source/test/intltest/dtfmttst.cpp      2014-06-13 19:34:40.611299572 +0200
+@@ -1129,7 +1129,7 @@
+         return;
+     }
+     parse2DigitYear(fmt, "5/6/17", date(117, UCAL_JUNE, 5));
+-    parse2DigitYear(fmt, "4/6/34", date(34, UCAL_JUNE, 4));
++    parse2DigitYear(fmt, "4/6/34", date(134, UCAL_JUNE, 4));
+ }
+
+ // -------------------------------------