Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

libreoffice: 5.1.2.2 -> 5.1.5.2 (fixes CVE-2016-4324)

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