public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Stefan Schantl <stefan.schantl@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH] compat-icu: New package.
Date: Fri, 08 Apr 2016 09:09:26 +0200	[thread overview]
Message-ID: <1460099366-3327-1-git-send-email-stefan.schantl@ipfire.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 3554 bytes --]

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(a)ipfire.org>
---
 compat-icu/compat-icu.nm                        | 73 +++++++++++++++++++++++++
 compat-icu/patches/icu-test-twodigityear.patch2 | 13 +++++
 2 files changed, 86 insertions(+)
 create mode 100644 compat-icu/compat-icu.nm
 create mode 100644 compat-icu/patches/icu-test-twodigityear.patch2

diff --git a/compat-icu/compat-icu.nm b/compat-icu/compat-icu.nm
new file mode 100644
index 0000000..47e24d4
--- /dev/null
+++ b/compat-icu/compat-icu.nm
@@ -0,0 +1,73 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info(a)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
index 0000000..fba90b5
--- /dev/null
+++ b/compat-icu/patches/icu-test-twodigityear.patch2
@@ -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));
+ }
+
+ // -------------------------------------
-- 
2.4.3


                 reply	other threads:[~2016-04-08  7:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1460099366-3327-1-git-send-email-stefan.schantl@ipfire.org \
    --to=stefan.schantl@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox