Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/libreoffice/files/, app-office/libreoffice/
Date: Sun, 04 Feb 2018 18:58:16
Message-Id: 1517770662.9340ca0e6718d790d4fdd949a7e8f7392441a4d9.asturm@gentoo
1 commit: 9340ca0e6718d790d4fdd949a7e8f7392441a4d9
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 4 18:57:42 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 4 18:57:42 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9340ca0e
7
8 app-office/libreoffice: Fix build with media-libs/jpeg
9
10 Backport picked from upstream.
11
12 Bug: https://bugs.gentoo.org/638520
13 Package-Manager: Portage-2.3.24, Repoman-2.3.6
14
15 .../files/libreoffice-6.0.0.3-jpeg-9.patch | 41 ++++++++++++++++++++++
16 app-office/libreoffice/libreoffice-6.0.0.3.ebuild | 7 ++--
17 app-office/libreoffice/libreoffice-6.0.9999.ebuild | 4 +--
18 app-office/libreoffice/libreoffice-9999.ebuild | 4 +--
19 4 files changed, 50 insertions(+), 6 deletions(-)
20
21 diff --git a/app-office/libreoffice/files/libreoffice-6.0.0.3-jpeg-9.patch b/app-office/libreoffice/files/libreoffice-6.0.0.3-jpeg-9.patch
22 new file mode 100644
23 index 00000000000..40dfb08d56a
24 --- /dev/null
25 +++ b/app-office/libreoffice/files/libreoffice-6.0.0.3-jpeg-9.patch
26 @@ -0,0 +1,41 @@
27 +From 5184506ffddca982f22eede24cffad64ff3576e3 Mon Sep 17 00:00:00 2001
28 +From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@××××××.com>
29 +Date: Sat, 3 Feb 2018 16:39:12 +0000
30 +Subject: tdf#115416 allow build with classic libjpeg
31 +MIME-Version: 1.0
32 +Content-Type: text/plain; charset=UTF-8
33 +Content-Transfer-Encoding: 8bit
34 +
35 +Change-Id: I96252e1a78dbc52d21095e11b7bdb0807e5d76b6
36 +Reviewed-on: https://gerrit.libreoffice.org/49187
37 +Tested-by: Jenkins <ci@×××××××××××.org>
38 +Reviewed-by: Caolán McNamara <caolanm@××××××.com>
39 +Tested-by: Caolán McNamara <caolanm@××××××.com>
40 +---
41 + vcl/source/filter/jpeg/jpegc.cxx | 3 ++-
42 + 1 file changed, 2 insertions(+), 1 deletion(-)
43 +
44 +diff --git a/vcl/source/filter/jpeg/jpegc.cxx b/vcl/source/filter/jpeg/jpegc.cxx
45 +index 570c036..059ec20 100644
46 +--- a/vcl/source/filter/jpeg/jpegc.cxx
47 ++++ b/vcl/source/filter/jpeg/jpegc.cxx
48 +@@ -244,6 +244,7 @@ void ReadJPEG(JpegStuff& rContext, JPEGReader* pJPEGReader, void* pInputStream,
49 + eScanlineFormat = ScanlineFormat::N8BitPal;
50 + nPixelSize = 1;
51 + }
52 ++#if defined(JCS_EXTENSIONS)
53 + else if (eFinalFormat == ScanlineFormat::N32BitTcBgra)
54 + {
55 + best_out_color_space = JCS_EXT_BGRA;
56 +@@ -262,7 +263,7 @@ void ReadJPEG(JpegStuff& rContext, JPEGReader* pJPEGReader, void* pInputStream,
57 + eScanlineFormat = eFinalFormat;
58 + nPixelSize = 4;
59 + }
60 +-
61 ++#endif
62 + if (rContext.cinfo.jpeg_color_space == JCS_YCCK)
63 + rContext.cinfo.out_color_space = JCS_CMYK;
64 +
65 +--
66 +cgit v1.1
67 +
68
69 diff --git a/app-office/libreoffice/libreoffice-6.0.0.3.ebuild b/app-office/libreoffice/libreoffice-6.0.0.3.ebuild
70 index fb3e9b376d0..170a95f8825 100644
71 --- a/app-office/libreoffice/libreoffice-6.0.0.3.ebuild
72 +++ b/app-office/libreoffice/libreoffice-6.0.0.3.ebuild
73 @@ -254,6 +254,9 @@ PATCHES=(
74
75 # gtk3-kde5 vcl plugin backported from master
76 "${WORKDIR}"/${PATCHSET/.tar.xz/}
77 +
78 + # 6.1 branch
79 + "${FILESDIR}/${P}-jpeg-9.patch"
80 )
81
82 pkg_pretend() {
83 @@ -261,8 +264,8 @@ pkg_pretend() {
84 ewarn "If you plan to use Base application you should enable java or you will get various crashes."
85
86 if has_version "<app-office/libreoffice-5.3.0[firebird]"; then
87 - ewarn "Firebird has been upgraded to version 3.0.0. It is unable to read back Firebird 2.5 data,"
88 - ewarn "so embedded firebird odb files created in LibreOffice pre-5.3 cannot be opened with LibreOffice 5.3."
89 + ewarn "Firebird has been upgraded to version 3. It is unable to read back Firebird 2.5 data, so"
90 + ewarn "embedded firebird odb files created in LibreOffice pre-5.3 can't be opened with this version."
91 ewarn "See also: https://wiki.documentfoundation.org/ReleaseNotes/5.3#Base"
92 fi
93
94
95 diff --git a/app-office/libreoffice/libreoffice-6.0.9999.ebuild b/app-office/libreoffice/libreoffice-6.0.9999.ebuild
96 index 9890bb1bf83..95d104f0bb3 100644
97 --- a/app-office/libreoffice/libreoffice-6.0.9999.ebuild
98 +++ b/app-office/libreoffice/libreoffice-6.0.9999.ebuild
99 @@ -260,8 +260,8 @@ pkg_pretend() {
100 ewarn "If you plan to use Base application you should enable java or you will get various crashes."
101
102 if has_version "<app-office/libreoffice-5.3.0[firebird]"; then
103 - ewarn "Firebird has been upgraded to version 3.0.0. It is unable to read back Firebird 2.5 data,"
104 - ewarn "so embedded firebird odb files created in LibreOffice pre-5.3 cannot be opened with LibreOffice 5.3."
105 + ewarn "Firebird has been upgraded to version 3. It is unable to read back Firebird 2.5 data, so"
106 + ewarn "embedded firebird odb files created in LibreOffice pre-5.3 can't be opened with this version."
107 ewarn "See also: https://wiki.documentfoundation.org/ReleaseNotes/5.3#Base"
108 fi
109
110
111 diff --git a/app-office/libreoffice/libreoffice-9999.ebuild b/app-office/libreoffice/libreoffice-9999.ebuild
112 index 4869257cf96..59c64ab8a1c 100644
113 --- a/app-office/libreoffice/libreoffice-9999.ebuild
114 +++ b/app-office/libreoffice/libreoffice-9999.ebuild
115 @@ -258,8 +258,8 @@ pkg_pretend() {
116 ewarn "If you plan to use Base application you should enable java or you will get various crashes."
117
118 if has_version "<app-office/libreoffice-5.3.0[firebird]"; then
119 - ewarn "Firebird has been upgraded to version 3.0.0. It is unable to read back Firebird 2.5 data,"
120 - ewarn "so embedded firebird odb files created in LibreOffice pre-5.3 cannot be opened with LibreOffice 5.3."
121 + ewarn "Firebird has been upgraded to version 3. It is unable to read back Firebird 2.5 data, so"
122 + ewarn "embedded firebird odb files created in LibreOffice pre-5.3 can't be opened with this version."
123 ewarn "See also: https://wiki.documentfoundation.org/ReleaseNotes/5.3#Base"
124 fi