forked from ports/contrib
libreoffice: include a patch to build against icu 68
This commit is contained in:
parent
d35876108d
commit
c15d4054a0
@ -1,6 +1,6 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF305YwIZ5pwEif8RPstPCAOb73T1UZ12EjCsWj0/qOEGB2LUizF57IOGdFVTDMHxDj9nShhLefHDVedz5hp95Ugw=
|
||||
SHA256 (Pkgfile) = 8dc97bcbafd7936f6cbe5dc63ae2892c5a71db2f499053d573d435f2ac3850e7
|
||||
RWSagIOpLGJF30MsgukDQVdLzDd6lIT+RkpPrHgvQjuf/3fF61a/sZnoLcNbPXjB2SLyqoTNwKCfPpiM1N4Fv18dq+iyb2NYlgA=
|
||||
SHA256 (Pkgfile) = dc2f569c8a4539622cf7a8ed90bffd631e241c44751f65431697d4d87b1d2a9a
|
||||
SHA256 (.footprint) = 413126b9fb6905484606a1cb4c613cc9cec56387f3cb203a04463404caafdba0
|
||||
SHA256 (libreoffice-7.0.3.1.tar.xz) = 6566bce180c6b9561554de334b02344340a59f3bc0663d2c3c72addec444292d
|
||||
SHA256 (libreoffice-dictionaries-7.0.3.1.tar.xz) = 959001bc692a67fd65296a0f33179a33414c0754182908396756849da1fee034
|
||||
@ -10,3 +10,4 @@ SHA256 (dtoa-20180411.tgz) = 0082d0684f7db6f62361b76c4b7faba19e0c7ce5cb8e36c4b65
|
||||
SHA256 (skia-m85-e684c6daef6bfb774a325a069eda1f76ca6ac26c.tar.xz) = 3294877fa2b61b220d98a0f7bfc11325429b13edd2cf455444c703ee3a14d760
|
||||
SHA256 (pdfium-4137.tar.bz2) = 9a2f9bddca935a263f06c81003483473a525ccd0f4e517bc75fceb914d4c54b6
|
||||
SHA256 (makefile.in.patch) = 88856d163b66cecf7a5cb4dc6d46a95ec07b21569b26e90cf8d5e82ce684b332
|
||||
SHA256 (libreoffice-6.4.7.2-icu-68-1.patch) = 89d278a4fd5aea2873378e4da751abf543345aadf94c681e681269dd53b74010
|
||||
|
@ -14,7 +14,9 @@ source=(https://downloadarchive.documentfoundation.org/libreoffice/old/$version/
|
||||
https://dev-www.libreoffice.org/src/0168229624cfac409e766913506961a8-ucpp-1.3.2.tar.gz
|
||||
https://dev-www.libreoffice.org/src/dtoa-20180411.tgz
|
||||
https://dev-www.libreoffice.org/src/skia-m85-e684c6daef6bfb774a325a069eda1f76ca6ac26c.tar.xz
|
||||
https://dev-www.libreoffice.org/src/pdfium-$pdfiumversion.tar.bz2 makefile.in.patch)
|
||||
https://dev-www.libreoffice.org/src/pdfium-$pdfiumversion.tar.bz2 makefile.in.patch
|
||||
# https://gitweb.gentoo.org/repo/gentoo.git/tree/app-office/libreoffice/files
|
||||
libreoffice-6.4.7.2-icu-68-1.patch)
|
||||
|
||||
unpack_source() {
|
||||
for file in ${source[@]}; do
|
||||
@ -46,6 +48,8 @@ build() {
|
||||
cd $name-$version
|
||||
|
||||
patch -Np1 -i $SRC/makefile.in.patch
|
||||
[ $(pkginfo -i | awk '/^icu / {split($2,a,"."); print a[1]}') -ge 68 ] && \
|
||||
patch -Np1 -i $SRC/libreoffice-6.4.7.2-icu-68-1.patch
|
||||
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||
|
46
libreoffice/libreoffice-6.4.7.2-icu-68-1.patch
Normal file
46
libreoffice/libreoffice-6.4.7.2-icu-68-1.patch
Normal file
@ -0,0 +1,46 @@
|
||||
From 0b14b9ec55fb2a8dd0ec24e1c03702bc4bbf1878 Mon Sep 17 00:00:00 2001
|
||||
From: Rene Engelhard <rene@debian.org>
|
||||
Date: Sun, 1 Nov 2020 18:30:49 +0100
|
||||
Subject: fix build with ICU 68
|
||||
|
||||
use standard true.
|
||||
|
||||
/home/rene/LibreOffice/git/master/i18npool/source/calendar/calendar_gregorian.cxx: In member function 'virtual void i18npool::Calendar_gregorian::setLocalDateTime(double)':
|
||||
/home/rene/LibreOffice/git/master/i18npool/source/calendar/calendar_gregorian.cxx:363:40: error: 'TRUE' was not declared in this scope
|
||||
363 | body->getTimeZone().getOffset( fR, TRUE, nZoneOffset, nDSTOffset, status );
|
||||
| ^~~~
|
||||
|
||||
/usr/include/unicode/umachine.h says:
|
||||
|
||||
@deprecated ICU 68 Use standard "true" instead.
|
||||
|
||||
Change-Id: I45d2b0afa6a9043767af5c2cf41ba24377f2cdc4
|
||||
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105057
|
||||
Tested-by: Jenkins
|
||||
Reviewed-by: Eike Rathke <erack@redhat.com>
|
||||
---
|
||||
i18npool/source/calendar/calendar_gregorian.cxx | 9 ++++++++-
|
||||
1 file changed, 8 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/i18npool/source/calendar/calendar_gregorian.cxx b/i18npool/source/calendar/calendar_gregorian.cxx
|
||||
index b7ae49fbd96e..59ee46fa0e0f 100644
|
||||
--- a/i18npool/source/calendar/calendar_gregorian.cxx
|
||||
+++ b/i18npool/source/calendar/calendar_gregorian.cxx
|
||||
@@ -347,7 +347,14 @@ Calendar_gregorian::setLocalDateTime( double fTimeInDays )
|
||||
"Calendar_gregorian::setLocalDateTime: " << std::fixed << fM << " rounded to " << fR);
|
||||
int32_t nZoneOffset, nDSTOffset;
|
||||
UErrorCode status = U_ZERO_ERROR;
|
||||
- body->getTimeZone().getOffset( fR, TRUE, nZoneOffset, nDSTOffset, status );
|
||||
+ body->getTimeZone().getOffset( fR,
|
||||
+#if U_ICU_VERSION_MAJOR_NUM >= 68
|
||||
+ true,
|
||||
+#else
|
||||
+ TRUE,
|
||||
+#endif
|
||||
+ nZoneOffset, nDSTOffset, status );
|
||||
+
|
||||
if ( !U_SUCCESS(status) ) throw ERROR;
|
||||
status = U_ZERO_ERROR;
|
||||
body->setTime( fR - (nZoneOffset + nDSTOffset), status );
|
||||
--
|
||||
cgit v1.2.1
|
Loading…
x
Reference in New Issue
Block a user