tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
libreoffice: 5.1.2.2 -> 5.1.5.2 (fixes CVE-2016-4324)
Michael Raskin
9 years ago
546618cc
8fe93051
+43
-21
2 changed files
expand all
collapse all
unified
split
pkgs
applications
office
libreoffice
default.nix
libreoffice-srcs.nix
+36
-14
pkgs/applications/office/libreoffice/default.nix
···
1
-
{ stdenv, fetchurl, pam, python3, tcsh, libxslt, perl, ArchiveZip
2
, CompressZlib, zlib, libjpeg, expat, pkgconfigUpstream, freetype, libwpd
3
, libxml2, db, sablotron, curl, fontconfig, libsndfile, neon
4
, bison, flex, zip, unzip, gtk3, gtk, libmspack, getopt, file, cairo, which
···
15
, defaultIconTheme, glib, ncurses
16
, langs ? [ "en-US" "en-GB" "ca" "ru" "eo" "fr" "nl" "de" "sl" "pl" ]
17
, withHelp ? true
0
18
}:
19
20
let
21
-
langsSpaces = stdenv.lib.concatStringsSep " " langs;
0
22
major = "5";
23
minor = "1";
24
-
patch = "2";
25
tweak = "2";
26
subdir = "${major}.${minor}.${patch}";
27
version = "${subdir}${if tweak == "" then "" else "."}${tweak}";
···
48
49
translations = fetchSrc {
50
name = "translations";
51
-
sha256 = "1w2m4hfrxb706p8bjfgklqv0j5hnivbvif3vav7sbngp5ms0vgvz";
52
};
53
54
# TODO: dictionaries
55
56
help = fetchSrc {
57
name = "help";
58
-
sha256 = "0lr90z5fdg157lcid5w4p0zxi72c4xziiw51kh38kbbqrbb9ykfw";
59
};
60
61
};
···
64
65
src = fetchurl {
66
url = "http://download.documentfoundation.org/libreoffice/src/${subdir}/libreoffice-${version}.tar.xz";
67
-
sha256 = "108p8jg22lg3g9wypqv5d71j4vkcpmg2x2w9l2v4z9h10agdrv2l";
68
};
69
0
0
0
0
0
0
0
0
0
0
70
# Openoffice will open libcups dynamically, so we link it directly
71
# to make its dlopen work.
72
# It also seems not to mention libdl explicitly in some places.
···
74
75
# For some reason librdf_redland sometimes refers to rasqal.h instead
76
# of rasqal/rasqal.h
77
-
NIX_CFLAGS_COMPILE="-I${librdf_rasqal}/include/rasqal";
0
0
78
79
# If we call 'configure', 'make' will then call configure again without parameters.
80
# It's their system.
···
90
'';
91
92
QT4DIR = qt4;
93
-
KDE4DIR = kde4.kdelibs;
94
95
# Fix boost 1.59 compat
96
# Try removing in the next version
···
123
sed -e /CppunitTest_sd_tiledrendering/d -i sd/Module_sd.mk
124
# one more fragile test?
125
sed -e '/CPPUNIT_TEST(testTdf96536);/d' -i sw/qa/extras/uiwriter/uiwriter.cxx
0
0
0
0
126
'';
127
128
makeFlags = "SHELL=${bash}/bin/bash";
···
178
"--disable-report-builder"
179
"--enable-python=system"
180
"--enable-dbus"
181
-
"--enable-kde4"
182
"--with-package-format=installed"
183
"--enable-epm"
184
"--with-jdk-home=${jdk.home}"
···
230
[ ant ArchiveZip autoconf automake bison boost cairo clucene_core
231
CompressZlib cppunit cups curl db dbus_glib expat file flex fontconfig
232
freetype GConf getopt gnome_vfs gperf gtk3 gtk
233
-
hunspell icu jdk kde4.kdelibs lcms libcdr libexttextcat unixODBC libjpeg
234
libmspack librdf_redland librsvg libsndfile libvisio libwpd libwpg libX11
235
libXaw libXext libXi libXinerama libxml2 libxslt libXtst
236
libXdmcp libpthreadstubs mesa mythes gst_all_1.gstreamer
237
gst_all_1.gst-plugins-base gsettings_desktop_schemas glib
238
neon nspr nss openldap openssl ORBit2 pam perl pkgconfig poppler
239
-
python3 sablotron sane-backends tcsh unzip vigra which zip zlib
240
mdds bluez5 glibc libcmis libwps libabw
241
libxshmfence libatomic_ops graphite2 harfbuzz
242
librevenge libe-book libmwaw glm glew ncurses
243
libodfgen CoinMP librdf_rasqal defaultIconTheme makeWrapper
244
-
];
0
245
246
-
meta = with stdenv.lib; {
247
-
description = "Comprehensive, professional-quality productivity suite, a variant of openoffice.org";
0
0
0
0
248
homepage = http://libreoffice.org/;
249
license = licenses.lgpl3;
250
maintainers = with maintainers; [ viric raskin ];
···
1
+
{ stdenv, fetchurl, pam, python3, libxslt, perl, ArchiveZip
2
, CompressZlib, zlib, libjpeg, expat, pkgconfigUpstream, freetype, libwpd
3
, libxml2, db, sablotron, curl, fontconfig, libsndfile, neon
4
, bison, flex, zip, unzip, gtk3, gtk, libmspack, getopt, file, cairo, which
···
15
, defaultIconTheme, glib, ncurses
16
, langs ? [ "en-US" "en-GB" "ca" "ru" "eo" "fr" "nl" "de" "sl" "pl" ]
17
, withHelp ? true
18
+
, kdeIntegration ? false
19
}:
20
21
let
22
+
lib = stdenv.lib;
23
+
langsSpaces = lib.concatStringsSep " " langs;
24
major = "5";
25
minor = "1";
26
+
patch = "5";
27
tweak = "2";
28
subdir = "${major}.${minor}.${patch}";
29
version = "${subdir}${if tweak == "" then "" else "."}${tweak}";
···
50
51
translations = fetchSrc {
52
name = "translations";
53
+
sha256 = "1mzsz9pd2k1lpvwf7r5q90qmdp57160362cmlxaj6bxz52gr9f2i";
54
};
55
56
# TODO: dictionaries
57
58
help = fetchSrc {
59
name = "help";
60
+
sha256 = "1qqpggcanchz0qqasc5xvginrpa5rx7ahj3dw2vk7n34xaarnni6";
61
};
62
63
};
···
66
67
src = fetchurl {
68
url = "http://download.documentfoundation.org/libreoffice/src/${subdir}/libreoffice-${version}.tar.xz";
69
+
sha256 = "1qg0dj0zwh5ifhmvv4k771nmyqddz4ifn75s9mr1p0nyix8zks8x";
70
};
71
72
+
# we only have this problem on i686 ATM
73
+
patches = if stdenv.is64bit then null else [
74
+
(fetchurl {
75
+
name = "disable-flaky-tests.diff";
76
+
url = "https://anonscm.debian.org/git/pkg-openoffice/libreoffice.git/plain"
77
+
+ "/patches/disable-flaky-tests.diff?h=libreoffice_5.1.5_rc2-1";
78
+
sha256 = "1v1aiqdi64iijjraj6v4ljzclrd9lqan54hmy2h6m20x3ab005wb";
79
+
})
80
+
];
81
+
82
# Openoffice will open libcups dynamically, so we link it directly
83
# to make its dlopen work.
84
# It also seems not to mention libdl explicitly in some places.
···
86
87
# For some reason librdf_redland sometimes refers to rasqal.h instead
88
# of rasqal/rasqal.h
89
+
# curl upgrade to 7.50.0 (#17152) changes the libcurl headers slightly and
90
+
# therefore requires the -fpermissive flag until this package gets updated
91
+
NIX_CFLAGS_COMPILE="-I${librdf_rasqal}/include/rasqal -fpermissive";
92
93
# If we call 'configure', 'make' will then call configure again without parameters.
94
# It's their system.
···
104
'';
105
106
QT4DIR = qt4;
0
107
108
# Fix boost 1.59 compat
109
# Try removing in the next version
···
136
sed -e /CppunitTest_sd_tiledrendering/d -i sd/Module_sd.mk
137
# one more fragile test?
138
sed -e '/CPPUNIT_TEST(testTdf96536);/d' -i sw/qa/extras/uiwriter/uiwriter.cxx
139
+
# rendering-dependent test
140
+
sed -e '/CPPUNIT_ASSERT_EQUAL(11148L, pOleObj->GetLogicRect().getWidth());/d ' -i sc/qa/unit/subsequent_filters-test.cxx
141
+
# one more fragile test?
142
+
sed -e '/CPPUNIT_TEST(testTdf77014);/d' -i sw/qa/extras/uiwriter/uiwriter.cxx
143
'';
144
145
makeFlags = "SHELL=${bash}/bin/bash";
···
195
"--disable-report-builder"
196
"--enable-python=system"
197
"--enable-dbus"
198
+
(lib.enableFeature kdeIntegration "kde4")
199
"--with-package-format=installed"
200
"--enable-epm"
201
"--with-jdk-home=${jdk.home}"
···
247
[ ant ArchiveZip autoconf automake bison boost cairo clucene_core
248
CompressZlib cppunit cups curl db dbus_glib expat file flex fontconfig
249
freetype GConf getopt gnome_vfs gperf gtk3 gtk
250
+
hunspell icu jdk lcms libcdr libexttextcat unixODBC libjpeg
251
libmspack librdf_redland librsvg libsndfile libvisio libwpd libwpg libX11
252
libXaw libXext libXi libXinerama libxml2 libxslt libXtst
253
libXdmcp libpthreadstubs mesa mythes gst_all_1.gstreamer
254
gst_all_1.gst-plugins-base gsettings_desktop_schemas glib
255
neon nspr nss openldap openssl ORBit2 pam perl pkgconfig poppler
256
+
python3 sablotron sane-backends unzip vigra which zip zlib
257
mdds bluez5 glibc libcmis libwps libabw
258
libxshmfence libatomic_ops graphite2 harfbuzz
259
librevenge libe-book libmwaw glm glew ncurses
260
libodfgen CoinMP librdf_rasqal defaultIconTheme makeWrapper
261
+
]
262
+
++ lib.optional kdeIntegration kde4.kdelibs;
263
264
+
passthru = {
265
+
inherit srcs;
266
+
};
267
+
268
+
meta = with lib; {
269
+
description = "Comprehensive, professional-quality productivity suite (Still/stable release)";
270
homepage = http://libreoffice.org/;
271
license = licenses.lgpl3;
272
maintainers = with maintainers; [ viric raskin ];
+7
-7
pkgs/applications/office/libreoffice/libreoffice-srcs.nix
···
95
brief = true;
96
}
97
{
98
-
name = "expat-2.1.0.tar.gz";
99
-
md5 = "dd7dab7a5fea97d2a6a43f511449b7cd";
100
-
brief = false;
101
}
102
{
103
name = "Firebird-2.5.4.26856-0.tar.bz2";
···
331
brief = false;
332
}
333
{
334
-
name = "libxml2-2.9.3.tar.gz";
335
-
md5 = "daece17e045f1c107610e137ab50c179";
336
brief = false;
337
}
338
{
···
401
brief = false;
402
}
403
{
404
-
name = "openssl-1.0.2g.tar.gz";
405
-
md5 = "f3c710c045cdee5fd114feb69feba7aa";
406
brief = true;
407
}
408
{
···
95
brief = true;
96
}
97
{
98
+
name = "expat-2.1.1.tar.bz2";
99
+
md5 = "7380a64a8e3a9d66a9887b01d0d7ea81";
100
+
brief = true;
101
}
102
{
103
name = "Firebird-2.5.4.26856-0.tar.bz2";
···
331
brief = false;
332
}
333
{
334
+
name = "libxml2-2.9.4.tar.gz";
335
+
md5 = "ae249165c173b1ff386ee8ad676815f5";
336
brief = false;
337
}
338
{
···
401
brief = false;
402
}
403
{
404
+
name = "openssl-1.0.2h.tar.gz";
405
+
md5 = "9392e65072ce4b614c1392eefc1f23d0";
406
brief = true;
407
}
408
{