[packages/icu] libicudata patch from debian

atler atler at pld-linux.org
Thu Nov 19 19:34:42 CET 2020


commit 330665708ef016b0586054d052efb264290a8668
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Nov 19 19:29:55 2020 +0100

    libicudata patch from debian
    
    on armv6 building without standard libs produces libicudata.so throwing
    "internal error" whenever it is accessed. fedora/gentoo/arch all do the
    same thing too.

 icu.spec              |  2 ++
 icudata-stdlibs.patch | 15 +++++++++++++++
 2 files changed, 17 insertions(+)
---
diff --git a/icu.spec b/icu.spec
index bfc7dd8..519efb6 100644
--- a/icu.spec
+++ b/icu.spec
@@ -14,6 +14,7 @@ Group:		Libraries
 Source0:	https://github.com/unicode-org/icu/releases/download/release-67-1/icu4c-%{ver}-src.tgz
 # Source0-md5:	c4d62b497cbd89ab2a9ca6b543e57b30
 Patch0:		%{name}-cxx-pre11.patch
+Patch1:		icudata-stdlibs.patch
 URL:		http://www.icu-project.org/
 BuildRequires:	autoconf >= 2.69
 BuildRequires:	libstdc++-devel
@@ -97,6 +98,7 @@ biblioteki programistyczne ICU.
 %prep
 %setup -q -n %{name}
 %patch0 -p1
+%patch1 -p1
 
 %build
 cd source
diff --git a/icudata-stdlibs.patch b/icudata-stdlibs.patch
new file mode 100644
index 0000000..5e92bde
--- /dev/null
+++ b/icudata-stdlibs.patch
@@ -0,0 +1,15 @@
+Index: icu-52~m1/source/config/mh-linux
+===================================================================
+--- icu-52~m1.orig/source/config/mh-linux	2013-09-14 18:53:23.284040467 -0400
++++ icu-52~m1/source/config/mh-linux	2013-09-14 18:53:23.284040467 -0400
+@@ -21,7 +21,9 @@
+ LD_RPATH_PRE = -Wl,-rpath,
+ 
+ ## These are the library specific LDFLAGS
+-LDFLAGSICUDT=-nodefaultlibs -nostdlib
++#LDFLAGSICUDT=-nodefaultlibs -nostdlib
++# Debian change: linking icudata as data only causes too many problems.
++LDFLAGSICUDT=
+ 
+ ## Compiler switch to embed a library name
+ # The initial tab in the next line is to prevent icu-config from reading it.
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/icu.git/commitdiff/5589e07dc046263ab59b50c6dce073f612300819



More information about the pld-cvs-commit mailing list