From 17ecf6f9ae3fecbf8e4f449637b77f3cccf3f6f5 Mon Sep 17 00:00:00 2001 From: Jan Horak Date: Thu, 24 Aug 2017 14:45:50 +0200 Subject: [PATCH] Fixing libicu build: xlocale.h is missing in newer glibc-headers, using locale.h instead --- build-missing-xlocale-h.patch | 12 ++++++++++++ thunderbird.spec | 7 ++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 build-missing-xlocale-h.patch diff --git a/build-missing-xlocale-h.patch b/build-missing-xlocale-h.patch new file mode 100644 index 0000000..b4a62b2 --- /dev/null +++ b/build-missing-xlocale-h.patch @@ -0,0 +1,12 @@ +diff -up thunderbird-52.3.0/mozilla/intl/icu/source/i18n/digitlst.cpp.xlocale thunderbird-52.3.0/mozilla/intl/icu/source/i18n/digitlst.cpp +--- thunderbird-52.3.0/mozilla/intl/icu/source/i18n/digitlst.cpp.xlocale 2017-08-24 14:42:48.634084293 +0200 ++++ thunderbird-52.3.0/mozilla/intl/icu/source/i18n/digitlst.cpp 2017-08-24 14:42:50.534084676 +0200 +@@ -64,7 +64,7 @@ + # if U_PLATFORM_USES_ONLY_WIN32_API || U_PLATFORM == U_PF_CYGWIN + # include + # else +-# include ++# include + # endif + #endif + diff --git a/thunderbird.spec b/thunderbird.spec index 57cbaf2..38b5b22 100644 --- a/thunderbird.spec +++ b/thunderbird.spec @@ -62,6 +62,10 @@ %endif %endif +%if %{?system_libvpx} +%global libvpx_version 1.4.0 +%endif + %define tb_version 45.6.0 %define thunderbird_app_id \{3550f703-e582-4d05-9a08-453d09bdfdc6\} @@ -136,6 +140,7 @@ Patch303: mozilla-1253216.patch Patch304: mozilla-1245783.patch Patch305: build-fix-dupes.patch Patch306: build-toml-fix.patch +Patch307: build-missing-xlocale-h.patch # Fedora specific patches Patch400: rhbz-966424.patch @@ -191,7 +196,6 @@ BuildRequires: desktop-file-utils BuildRequires: libcurl-devel BuildRequires: mesa-libGL-devel BuildRequires: libvpx-devel >= %{libvpx_version} -Requires: libvpx >= %{libvpx_version} BuildRequires: pulseaudio-libs-devel BuildRequires: libicu-devel BuildRequires: GConf2-devel @@ -273,6 +277,7 @@ cd mozilla # Patch for big endian platforms only %if 0%{?big_endian} %patch26 -p1 -b .icu +%patch307 -p1 -b .xlocale %endif cd ..