download.lst | 8 +- external/curl/curl-7.26.0_win-proxy.patch | 9 -- external/curl/curl-msvc-schannel.patch.1 | 4 - external/nss/UnpackedTarball_nss.mk | 2 external/nss/nss-winXP-sdk.patch.1 | 9 ++ external/openssl/ExternalProject_openssl.mk | 2 external/openssl/UnpackedTarball_openssl.mk | 12 --- external/openssl/openssl-1.0.1g-msvc2012-winxp.patch.1 | 20 ----- external/openssl/openssl-fixbuild.patch.1 | 23 +++++ external/openssl/openssllnx.patch | 8 +- external/openssl/opensslmingw.patch | 36 +++++---- external/openssl/opensslwnt.patch | 66 ++++++++++------- lotuswordpro/qa/cppunit/data/fail/recurse-1.lwp |binary lotuswordpro/qa/cppunit/data/fail/recurse-2.lwp |binary lotuswordpro/source/filter/lwpfootnote.cxx | 2 lotuswordpro/source/filter/lwpframelayout.cxx | 4 - lotuswordpro/source/filter/lwpfribframe.cxx | 2 lotuswordpro/source/filter/lwplayout.cxx | 5 - lotuswordpro/source/filter/lwplayout.hxx | 16 +++- lotuswordpro/source/filter/lwpnotes.cxx | 4 - lotuswordpro/source/filter/lwpobj.cxx | 1 lotuswordpro/source/filter/lwpobj.hxx | 14 +++ lotuswordpro/source/filter/lwppagelayout.cxx | 4 - lotuswordpro/source/filter/lwpstory.cxx | 8 +- 24 files changed, 152 insertions(+), 107 deletions(-)
New commits: commit 23c99c8c25d3f1cbc32ce84b943ac07446c5f24a Author: Michael Stahl <mst...@redhat.com> Date: Wed Jul 1 00:04:32 2015 +0200 curl: upgrade to release 7.43.0 (cherry picked from commit 65327d615b64f487842e4c5d0ee7290f9c823a0f) Reviewed-on: https://gerrit.libreoffice.org/16726 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> Change-Id: Ic16111f21625fc510e79bba8122eaa60662f7a59 diff --git a/download.lst b/download.lst index 5569a90..e8b401a 100644 --- a/download.lst +++ b/download.lst @@ -28,8 +28,8 @@ export COLLADA2GLTF_TARBALL := 4b87018f7fff1d054939d19920b751a0-collada2gltf-mas export CPPUNIT_MD5SUM := d1c6bdd5a76c66d2c38331e2d287bc01 export CPPUNIT_TARBALL := cppunit-1.13.2.tar.gz export CT2N_TARBALL := 1f467e5bb703f12cbbb09d5cf67ecf4a-converttexttonumber-1-5-0.oxt -export CURL_MD5SUM := e6d1f9d1b59da5062109ffe14e0569a4 -export CURL_TARBALL := curl-7.36.0.tar.bz2 +export CURL_MD5SUM := 11bddbb452a8b766b932f859aaeeed39 +export CURL_TARBALL := curl-7.43.0.tar.bz2 export DBGHELP_DLL := 13fbc2e8b37ddf28181dd6d8081c2b8e-dbghelp.dll export EBOOK_MD5SUM := 6b48eda57914e6343efebc9381027b78 export EBOOK_TARBALL := libe-book-0.1.2.tar.bz2 diff --git a/external/curl/curl-7.26.0_win-proxy.patch b/external/curl/curl-7.26.0_win-proxy.patch index 26c42f7..99402a4 100644 --- a/external/curl/curl-7.26.0_win-proxy.patch +++ b/external/curl/curl-7.26.0_win-proxy.patch @@ -117,14 +117,11 @@ char proxy_env[128]; no_proxy=curl_getenv("no_proxy"); -@@ -4189,9 +4265,9 @@ static char *detect_proxy(struct connectdata *conn) +@@ -4189,6 +4265,7 @@ static char *detect_proxy(struct connectdata *conn) } } /* if(!check_noproxy(conn->host.name, no_proxy)) - it wasn't specified non-proxy */ +#endif /* WIN32 */ - if(no_proxy) - free(no_proxy); -- - #else /* !CURL_DISABLE_HTTP */ + free(no_proxy); - (void)conn; + #else /* !CURL_DISABLE_HTTP */ diff --git a/external/curl/curl-msvc-schannel.patch.1 b/external/curl/curl-msvc-schannel.patch.1 index 68af66d..1091a76 100644 --- a/external/curl/curl-msvc-schannel.patch.1 +++ b/external/curl/curl-msvc-schannel.patch.1 @@ -11,11 +11,11 @@ MSVC: use WNT native Schannel SSL/TLS implementation CFGSET = TRUE RESOURCE = $(DIROBJ)\libcurl.res !ENDIF -@@ -411,7 +411,7 @@ +@@ -427,7 +427,7 @@ TARGET = $(LIBCURL_DYN_LIB_DBG) DIROBJ = $(CFG) LNK = $(LNKDLL) $(WINLIBS) /DEBUG /out:$(DIROBJ)\$(TARGET) /IMPLIB:$(DIROBJ)\$(LIBCURL_IMP_LIB_DBG) /PDB:$(DIROBJ)\$(LIBCURL_DYN_LIB_PDB) --CC = $(CCDEBUG) $(RTLIBD) +-CC = $(CCDEBUG) $(RTLIBD) +CC = $(CCDEBUG) $(RTLIBD) $(CFLAGSWINSSL) CFGSET = TRUE RESOURCE = $(DIROBJ)\libcurl.res commit d67b4b89bbd684b0a831c8981a873ff5620fb419 Author: Caolán McNamara <caol...@redhat.com> Date: Thu Jan 28 14:51:47 2016 +0000 upgrade openssl to 1.0.2g We can't "break symlinks after extracting tarball" because they populate that dir during the build now. So instead cripple mklink.pl to copy instead of link. (Configure no-symlinks simply skips the symlink step instead of copying, so that appears useless) Reviewed-on: https://gerrit.libreoffice.org/21880 Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> (cherry picked from commit 01798050c13fdfc51aff95967f6b0177d5d7f5bd) Change-Id: Ib30b2c1b8b3de72511d09c478297a7a5a4bc691e Reviewed-on: https://gerrit.libreoffice.org/23002 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Miklos Vajna <vmik...@collabora.co.uk> (cherry picked from commit 1acbba539c0736a3c2fa54195c75f60c2752fac3) diff --git a/download.lst b/download.lst index 2652850..5569a90 100644 --- a/download.lst +++ b/download.lst @@ -115,8 +115,8 @@ export ODFGEN_TARBALL := libodfgen-0.1.$(ODFGEN_VERSION_MICRO).tar.bz2 export OPENCOLLADA_MD5SUM := 4ca8a6ef0afeefc864e9ef21b9f14bd6 export OPENCOLLADA_TARBALL := OpenCOLLADA-master-6509aa13af.tar.bz2 export OPENLDAP_TARBALL := 804c6cb5698db30b75ad0ff1c25baefd-openldap-2.4.31.tgz -export OPENSSL_MD5SUM := a06c547dac9044161a477211049f60ef -export OPENSSL_TARBALL := openssl-1.0.2a.tar.gz +export OPENSSL_MD5SUM := f3c710c045cdee5fd114feb69feba7aa +export OPENSSL_TARBALL := openssl-1.0.2g.tar.gz export ORCUS_TARBALL := 7681383be6ce489d84c1c74f4e7f9643-liborcus-0.7.0.tar.bz2 export PAGEMAKER_MD5SUM := 795cc7a59ace4db2b12586971d668671 export PAGEMAKER_TARBALL := libpagemaker-0.0.2.tar.bz2 diff --git a/external/openssl/ExternalProject_openssl.mk b/external/openssl/ExternalProject_openssl.mk index ea5f8b2..9ae7a13 100644 --- a/external/openssl/ExternalProject_openssl.mk +++ b/external/openssl/ExternalProject_openssl.mk @@ -68,6 +68,7 @@ $(call gb_ExternalProject_get_state_target,openssl,build): && cmd /c "ms\do_ms.bat $(PERL) $(OPENSSL_PLATFORM)" \ && unset MAKEFLAGS \ && nmake -f "ms\ntdll.mak" \ + && mv inc32/* include/ \ ) else @@ -90,4 +91,5 @@ $(call gb_ExternalProject_get_state_target,openssl,build): -fvisibility=hidden))" \ ) endif + # vim: set noet sw=4 ts=4: diff --git a/external/openssl/UnpackedTarball_openssl.mk b/external/openssl/UnpackedTarball_openssl.mk index b44f576..9fc5f72 100644 --- a/external/openssl/UnpackedTarball_openssl.mk +++ b/external/openssl/UnpackedTarball_openssl.mk @@ -11,26 +11,16 @@ $(eval $(call gb_UnpackedTarball_UnpackedTarball,openssl)) $(eval $(call gb_UnpackedTarball_set_tarball,openssl,$(OPENSSL_TARBALL),,openssl)) -# break symlinks after extracting tarball -# note: escape \; because LO patched make 3.82 cuts off the command otherwise -ifeq ($(OS_FOR_BUILD),WNT) -$(eval $(call gb_UnpackedTarball_set_pre_action,openssl,\ - cd include/openssl && \ - for header in `find . -type l` \; do \ - cp --remove-destination `readlink $$$$header` $$$$header \; \ - done && cd -)) -endif - $(eval $(call gb_UnpackedTarball_add_patches,openssl,\ external/openssl/openssllnx.patch \ external/openssl/opensslmingw.patch \ external/openssl/opensslwnt.patch \ - external/openssl/openssl-1.0.1g-msvc2012-winxp.patch.1 \ external/openssl/openssl-1.0.1h-win64.patch.1 \ external/openssl/opensslsol.patch \ external/openssl/opensslios.patch \ external/openssl/opensslosxppc.patch \ external/openssl/openssl-3650-masm.patch.1 \ + external/openssl/openssl-fixbuild.patch.1 \ )) # vim: set noet sw=4 ts=4: diff --git a/external/openssl/openssl-1.0.1g-msvc2012-winxp.patch.1 b/external/openssl/openssl-1.0.1g-msvc2012-winxp.patch.1 deleted file mode 100644 index de9e6fc..0000000 --- a/external/openssl/openssl-1.0.1g-msvc2012-winxp.patch.1 +++ /dev/null @@ -1,20 +0,0 @@ ---- openssl.org/util/pl/VC-32.pl 2014-05-18 23:41:39.336594400 +0200 -+++ openssl/util/pl/VC-32.pl 2014-05-18 23:47:40.055279300 +0200 -@@ -48,7 +48,7 @@ - my $f = $shlib || $fips ?' /MD':' /MT'; - $opt_cflags=$f.' /Ox'; - $dbg_cflags=$f.'d /Od -DDEBUG -D_DEBUG'; -- $lflags="/nologo /subsystem:console /opt:ref"; -+ $lflags="/nologo /subsystem:console,5.02 /opt:ref"; - - *::perlasm_compile_target = sub { - my ($target,$source,$bname)=@_; -@@ -135,7 +135,7 @@ - $ff = "/fixed"; - $opt_cflags=$f.' -Ox -O2 -Ob2'; - $dbg_cflags=$f.'d -Od -DDEBUG -D_DEBUG'; -- $lflags="/nologo /subsystem:console /opt:ref"; -+ $lflags="/nologo /subsystem:console,5.01 /opt:ref"; - } - $lib_cflag='-Zl' if (!$shlib); # remove /DEFAULTLIBs from static lib - $mlflags=''; diff --git a/external/openssl/openssl-fixbuild.patch.1 b/external/openssl/openssl-fixbuild.patch.1 new file mode 100644 index 0000000..5a986e8 --- /dev/null +++ b/external/openssl/openssl-fixbuild.patch.1 @@ -0,0 +1,23 @@ +--- a/crypto/evp/Makefile ++++ b/crypto/evp/Makefile +@@ -289,7 +289,7 @@ + e_idea.o: ../../e_os.h ../../include/openssl/asn1.h ../../include/openssl/bio.h + e_idea.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h + e_idea.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h +-e_idea.o: ../../include/openssl/evp.h ../../include/openssl/idea.h ++e_idea.o: ../../include/openssl/evp.h ../idea/idea.h + e_idea.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h + e_idea.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h + e_idea.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h +--- a/util/mklink.pl ++++ b/util/mklink.pl +@@ -50,8 +50,7 @@ + my $to = join('/', @to_path); + + my $file; +-$symlink_exists=eval {symlink("",""); 1}; +-if ($^O eq "msys") { $symlink_exists=0 }; ++$symlink_exists=0; + foreach $file (@files) { + my $err = ""; + if ($symlink_exists) { diff --git a/external/openssl/openssllnx.patch b/external/openssl/openssllnx.patch index 23a7d9e..de19807 100644 --- a/external/openssl/openssllnx.patch +++ b/external/openssl/openssllnx.patch @@ -12,12 +12,12 @@ --- build/openssl-0.9.8v/Makefile.org 2010-01-27 17:06:36.000000000 +0100 +++ build/openssl-0.9.8v/Makefile.org 2010-09-20 09:24:00.000000000 +0100 -@@ -199,7 +199,7 @@ - - BUILDENV= PLATFORM='$(PLATFORM)' PROCESSOR='$(PROCESSOR)' \ +@@ -206,7 +206,7 @@ + # same language for uniform treatment. + BUILDENV= LC_ALL=C PLATFORM='$(PLATFORM)' PROCESSOR='$(PROCESSOR)'\ CC='$(CC)' CFLAG='$(CFLAG)' \ - AS='$(CC)' ASFLAG='$(CFLAG) -c' \ -+ AS='$(CC)' ASFLAG='$(CFLAG) -c -Wa,--noexecstack' \ ++ AS='$(CC)' ASFLAG='$(CFLAG) -c -Wa,--noexecstack' \ AR='$(AR)' NM='$(NM)' RANLIB='$(RANLIB)' \ CROSS_COMPILE='$(CROSS_COMPILE)' \ PERL='$(PERL)' ENGDIRS='$(ENGDIRS)' \ diff --git a/external/openssl/opensslmingw.patch b/external/openssl/opensslmingw.patch index 81dc953..2a8729c 100644 --- a/external/openssl/opensslmingw.patch +++ b/external/openssl/opensslmingw.patch @@ -1,5 +1,6 @@ ---- misc/openssl-0.9.8v/Makefile.shared 2008-09-17 17:56:40.000000000 +0200 -+++ misc/build/openssl-0.9.8v/Makefile.shared 2009-03-30 11:52:53.684538000 +0200 +diff -ru openssl.orig/Makefile.shared openssl/Makefile.shared +--- a/openssl.orig/Makefile.shared 2016-03-03 21:16:48.751822016 +0100 ++++ b/openssl/Makefile.shared 2016-03-03 21:27:12.615802449 +0100 @@ -278,7 +278,7 @@ link_a.cygwin: @ $(CALC_VERSIONS); \ @@ -13,7 +14,7 @@ SHLIB_SOVER=32; \ extras="$(LIBNAME).def"; \ $(PERL) util/mkdef.pl 32 $$SHLIB > $$extras; \ -- base=; [ $(LIBNAME) = "crypto" ] && base=-Wl,--image-base,0x63000000; \ +- base=; [ $(LIBNAME) = "crypto" -a -n "$(FIPSCANLIB)" ] && base=-Wl,--image-base,0x63000000; \ + base=; \ + if test $(LIBNAME) = "crypto"; then \ + SHLIB=libeay32; \ @@ -26,14 +27,15 @@ extras="$$extras rc.o"; \ ALLSYMSFLAGS='-Wl,--whole-archive'; \ NOALLSYMSFLAGS='-Wl,--no-whole-archive'; \ -- SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared $$base -Wl,-s,-Bsymbolic -Wl,--out-implib,lib$(LIBNAME).dll.a $$extras"; \ +- SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared $$base -Wl,-Bsymbolic -Wl,--out-implib,lib$(LIBNAME).dll.a $$extras"; \ + SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared $$base -Wl,-s,-Bsymbolic -Wl,--export-all-symbols -Wl,--out-implib,lib$(LIBNAME).dll.a $$extras"; \ [ -f apps/$$dll_name ] && rm apps/$$dll_name; \ [ -f test/$$dll_name ] && rm test/$$dll_name; \ $(LINK_SO_A) || exit 1; \ ---- misc/openssl-0.9.8v/e_os2.h 2005-12-19 03:57:07.000000000 +0900 -+++ misc/build/openssl-0.9.8v/e_os2.h 2009-04-04 23:07:15.324250000 +0900 -@@ -287,7 +287,7 @@ +diff -ru openssl.orig/e_os2.h openssl/e_os2.h +--- a/openssl.orig/e_os2.h 2016-03-01 14:35:53.000000000 +0100 ++++ b/openssl/e_os2.h 2016-03-03 21:27:33.179801804 +0100 +@@ -293,7 +293,7 @@ # ifdef OPENSSL_EXPORT_VAR_AS_FUNCTION # define OPENSSL_IMPLEMENT_GLOBAL(type,name,value) \ type *_shadow_##name(void) \ @@ -42,9 +44,10 @@ # define OPENSSL_DECLARE_GLOBAL(type,name) type *_shadow_##name(void) # define OPENSSL_GLOBAL_REF(name) (*(_shadow_##name())) # else ---- misc/openssl-0.9.8v/ms/mingw32.bat 2006-05-05 15:19:32.000000000 +0200 -+++ misc/build/openssl-0.9.8v/ms/mingw32.bat 2009-03-30 11:54:10.000000000 +0200 -@@ -79,15 +79,41 @@ +diff -ru openssl.orig/ms/mingw32.bat openssl/ms/mingw32.bat +--- a/openssl.orig/ms/mingw32.bat 2016-03-01 14:35:05.000000000 +0100 ++++ b/openssl/ms/mingw32.bat 2016-03-03 21:27:56.487801073 +0100 +@@ -75,15 +75,41 @@ rem copy ms\tlhelp32.h outinc echo Building the libraries @@ -77,20 +80,21 @@ +gcc --shared -shared-libgcc --enable-pseudo-reloc -Wl,-Map,out/ssleay32.map -Lout ms/ssleay32.def -o out/ssleay32.dll out/libssl_static.a -lcrypto +if errorlevel 1 goto end +goto finished -+ + +:shared_gxxlib +gcc --shared -shared-libgcc --enable-pseudo-reloc -Wl,-Map,out/libeay32.map ms/libeay32.def -o out/libeay32.dll out/libcrypto_static.a -lws2_32 -lgdi32 %MINGW_SHARED_LIBSTDSPP% +if errorlevel 1 goto end +gcc --shared -shared-libgcc --enable-pseudo-reloc -Wl,-Map,out/ssleay32.map -Lout ms/ssleay32.def -o out/ssleay32.dll out/libssl_static.a -lcrypto %MINGW_SHARED_LIBSTDSPP% +if errorlevel 1 goto end +goto finished - ++ +:finished echo Done compiling OpenSSL :end ---- misc/openssl-0.9.8v/util/pl/Mingw32.pl 2006-05-05 15:19:34.000000000 +0200 -+++ misc/build/openssl-0.9.8v/util/pl/Mingw32.pl 2009-03-30 11:55:04.000000000 +0200 +diff -ru openssl.orig/util/pl/Mingw32.pl openssl/util/pl/Mingw32.pl +--- a/openssl.orig/util/pl/Mingw32.pl 2016-03-01 14:33:04.000000000 +0100 ++++ b/openssl/util/pl/Mingw32.pl 2016-03-03 21:28:16.691800440 +0100 @@ -6,11 +6,11 @@ $o='/'; $cp='cp'; @@ -107,12 +111,12 @@ $mkdir='mkdir'; # C compiler stuff -@@ -87,7 +87,8 @@ +@@ -85,7 +85,8 @@ ($Name=$name) =~ tr/a-z/A-Z/; $ret.="$target: \$(${Name}OBJ)\n"; - $ret.="\tif exist $target \$(RM) $target\n"; -+ $ret.="\t\$(RM) $target\n"; ++ $ret.="\t\$(RM) $target\n"; +# $ret.="\tif exist $target \$(RM) $target\n"; $ret.="\t\$(MKLIB) $target \$(${Name}OBJ)\n"; $ret.="\t\$(RANLIB) $target\n\n"; diff --git a/external/openssl/opensslwnt.patch b/external/openssl/opensslwnt.patch index e033d25..2d00736 100644 --- a/external/openssl/opensslwnt.patch +++ b/external/openssl/opensslwnt.patch @@ -1,32 +1,39 @@ ---- misc/openssl-0.9.8v/crypto/x509v3/v3_pci.c 2007-03-05 01:06:47.000000000 +0100 -+++ build/openssl-0.9.8v/crypto/x509v3/v3_pci.c 2010-03-26 12:04:20.961547300 +0100 +diff -ru openssl.orig/crypto/x509v3/v3_pci.c openssl/crypto/x509v3/v3_pci.c +--- a/openssl.orig/crypto/x509v3/v3_pci.c 2016-03-01 14:35:05.000000000 +0100 ++++ b/openssl/crypto/x509v3/v3_pci.c 2016-03-03 20:27:42.195914432 +0100 @@ -3,7 +3,7 @@ * Contributed to the OpenSSL Project 2004 by Richard Levitte * (rich...@levitte.org) */ --/* Copyright (c) 2004 Kungliga Tekniska Högskolan +-/* Copyright (c) 2004 Kungliga Tekniska Högskolan +/* Copyright (c) 2004 Kungliga Tekniska Hoegskolan * (Royal Institute of Technology, Stockholm, Sweden). * All rights reserved. * ---- misc/openssl-0.9.8v/crypto/x509v3/v3_pcia.c 2004-12-28 01:21:33.000000000 +0100 -+++ build/openssl-0.9.8v/crypto/x509v3/v3_pcia.c 2010-03-26 12:04:20.961547300 +0100 +diff -ru openssl.orig/crypto/x509v3/v3_pcia.c openssl/crypto/x509v3/v3_pcia.c +--- a/openssl.orig/crypto/x509v3/v3_pcia.c 2016-03-01 14:35:05.000000000 +0100 ++++ b/openssl/crypto/x509v3/v3_pcia.c 2016-03-03 20:27:56.495913984 +0100 @@ -3,7 +3,7 @@ * Contributed to the OpenSSL Project 2004 by Richard Levitte * (rich...@levitte.org) */ --/* Copyright (c) 2004 Kungliga Tekniska Högskolan +-/* Copyright (c) 2004 Kungliga Tekniska Högskolan +/* Copyright (c) 2004 Kungliga Tekniska Hoegskolan * (Royal Institute of Technology, Stockholm, Sweden). * All rights reserved. * ---- misc/openssl-0.9.8v/ms/do_ms.bat 2009-07-28 14:51:19.000000000 +0200 -+++ build/openssl-0.9.8v/ms/do_ms.bat 2010-03-26 12:19:19.399047300 +0100 +diff -ru openssl.orig/ms/do_ms.bat openssl/ms/do_ms.bat +--- a/openssl.orig/ms/do_ms.bat 2015-01-15 15:43:14.000000000 +0100 ++++ b/openssl/ms/do_ms.bat 2016-03-03 20:31:09.355907935 +0100 @@ -1,11 +1,11 @@ -perl util\mkfiles.pl >MINFO -perl util\mk1mf.pl no-asm VC-WIN32 >ms\nt.mak -perl util\mk1mf.pl dll no-asm VC-WIN32 >ms\ntdll.mak +-if x%OSVERSION% == x goto skipce +-perl util\mk1mf.pl no-asm VC-CE >ms\ce.mak +-perl util\mk1mf.pl dll no-asm VC-CE >ms\cedll.mak +-:skipce +%1 util\mkfiles.pl >MINFO +if %2 == VC-WIN32 goto not64a +perl ms\uplink.pl win64a > ms\uptable.asm @@ -34,17 +41,14 @@ +:not64a +%1 util\mk1mf.pl no-asm %2 >ms\nt.mak +%1 util\mk1mf.pl dll no-asm %2 >ms\ntdll.mak --if x%OSVERSION% == x goto skipce --perl util\mk1mf.pl no-asm VC-CE >ms\ce.mak --perl util\mk1mf.pl dll no-asm VC-CE >ms\cedll.mak --:skipce -perl util\mkdef.pl 32 libeay > ms\libeay32.def -perl util\mkdef.pl 32 ssleay > ms\ssleay32.def +%1 util\mkdef.pl 32 libeay > ms\libeay32.def +%1 util\mkdef.pl 32 ssleay > ms\ssleay32.def ---- misc/openssl-0.9.8v/util/mk1mf.pl 2009-09-20 14:46:42.000000000 +0200 -+++ build/openssl-0.9.8v/util/mk1mf.pl 2010-03-26 12:04:20.977172300 +0100 +diff -ru openssl.orig/util/mk1mf.pl openssl/util/mk1mf.pl +--- a/openssl.orig/util/mk1mf.pl 2016-03-03 20:22:21.043924505 +0100 ++++ b/openssl/util/mk1mf.pl 2016-03-03 20:34:45.015901171 +0100 @@ -163,7 +163,7 @@ $inc_def="outinc"; $tmp_def="tmp"; @@ -54,8 +58,8 @@ $mkdir="-mkdir" unless defined $mkdir; ($ssl,$crypto)=("ssl","crypto"); -@@ -343,6 +343,11 @@ - chop; +@@ -347,6 +347,11 @@ + s/\s*$//; # was chop, didn't work in mixture of perls for Windows... ($key,$val)=/^([^=]+)=(.*)/; + @@ -66,7 +70,7 @@ if ($key eq "RELATIVE_DIRECTORY") { if ($lib ne "") -@@ -469,7 +474,7 @@ +@@ -473,7 +478,7 @@ # Set your compiler options PLATFORM=$platform CC=$bin_dir${cc} @@ -75,16 +79,16 @@ APP_CFLAG=$app_cflag LIB_CFLAG=$lib_cflag SHLIB_CFLAG=$shl_cflag -@@ -484,7 +489,7 @@ +@@ -488,7 +493,7 @@ - LINK=$link + LINK_CMD=$link LFLAGS=$lflags -RSC=$rsc +RSC=$rsc \$(SOLARINC) # The output directory for everything interesting OUT_D=$out_dir -@@ -665,7 +670,7 @@ +@@ -669,7 +674,7 @@ printf OUT <<EOF; #ifdef $platform_cpp_symbol /* auto-generated/updated by util/mk1mf.pl for crypto/cversion.c */ @@ -93,8 +97,9 @@ #define PLATFORM "$platform" EOF printf OUT " #define DATE \"%s\"\n", scalar gmtime(); ---- misc/openssl-0.9.8v/util/pl/VC-32.pl 2010-02-04 02:10:24.000000000 +0100 -+++ build/openssl-0.9.8v/util/pl/VC-32.pl 2010-03-26 12:04:20.977172300 +0100 +diff -ru openssl.orig/util/pl/VC-32.pl openssl/util/pl/VC-32.pl +--- a/openssl.orig/util/pl/VC-32.pl 2016-03-01 14:35:53.000000000 +0100 ++++ b/openssl/util/pl/VC-32.pl 2016-03-03 21:15:14.083824986 +0100 @@ -30,7 +30,7 @@ my $ff = ""; @@ -104,6 +109,15 @@ if ($FLAVOR =~ /WIN64/) { # Note that we currently don't have /WX on Win64! There is a lot of +@@ -48,7 +48,7 @@ + my $f = $shlib || $fips ?' /MD':' /MT'; + $opt_cflags=$f.' /Ox'; + $dbg_cflags=$f.'d /Od -DDEBUG -D_DEBUG'; +- $lflags="/nologo /subsystem:console /opt:ref"; ++ $lflags="/nologo /subsystem:console,5.02 /opt:ref"; + + *::perlasm_compile_target = sub { + my ($target,$source,$bname)=@_; @@ -114,7 +114,7 @@ } @@ -132,9 +146,10 @@ $ff = "/fixed"; - $opt_cflags=$f.' /Ox /O2 /Ob2'; - $dbg_cflags=$f.'d /Od -DDEBUG -D_DEBUG'; +- $lflags="/nologo /subsystem:console /opt:ref"; ++ $lflags="/nologo /subsystem:console,5.01 /opt:ref"; + $opt_cflags=$f.' -Ox -O2 -Ob2'; + $dbg_cflags=$f.'d -Od -DDEBUG -D_DEBUG'; - $lflags="/nologo /subsystem:console /opt:ref"; } -$lib_cflag='/Zl' if (!$shlib); # remove /DEFAULTLIBs from static lib +$lib_cflag='-Zl' if (!$shlib); # remove /DEFAULTLIBs from static lib @@ -150,8 +165,9 @@ # EXE linking stuff $link="link"; ---- build/openssl-0.9.8v/ms/uplink.c -+++ build/openssl-0.9.8v/ms/uplink.c +diff -ru openssl.orig/ms/uplink.c openssl/ms/uplink.c +--- a/openssl.orig/ms/uplink.c 2015-03-19 15:02:02.000000000 +0100 ++++ b/openssl/ms/uplink.c 2016-03-03 20:39:19.403892565 +0100 @@ -1,5 +1,6 @@ #if (defined(_WIN64) || defined(_WIN32_WCE)) && !defined(UNICODE) # define UNICODE commit 819d11023b17ab1ad8ce2cb0eed0835cd3df3fa0 Author: Christian Lohmaier <lohmaier+libreoff...@googlemail.com> Date: Tue Mar 15 15:09:45 2016 +0100 fix nss build when targeting windows XP (using 7.1A SDK) otherwise build fails because of macro redefinitions warnings (that are now fatal because of warnings=errors) (cherry picked from commit 09e201fcf2813152335d50588dae0c38adc88d51) Change-Id: I0a15083d9ffd032c48ab491695319309f3053fb7 Reviewed-on: https://gerrit.libreoffice.org/23272 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Miklos Vajna <vmik...@collabora.co.uk> (cherry picked from commit 74c4ae75c06068f8c208973636825603ca49a00e) diff --git a/external/nss/UnpackedTarball_nss.mk b/external/nss/UnpackedTarball_nss.mk index ba358cb..383fd71 100644 --- a/external/nss/UnpackedTarball_nss.mk +++ b/external/nss/UnpackedTarball_nss.mk @@ -29,6 +29,8 @@ $(eval $(call gb_UnpackedTarball_add_patches,nss,\ external/nss/nss-ios.patch) \ $(if $(filter MSC-INTEL,$(COM)-$(CPUNAME)), \ external/nss/nss.cygwin64.in32bit.patch) \ + $(if $(findstring 120_70,$(VCVER)_$(WINDOWS_SDK_VERSION)), \ + external/nss/nss-winXP-sdk.patch.1) \ )) # nss-pem is only needed for internal curl to read the NSS CA database diff --git a/external/nss/nss-winXP-sdk.patch.1 b/external/nss/nss-winXP-sdk.patch.1 new file mode 100644 index 0000000..2c81892 --- /dev/null +++ b/external/nss/nss-winXP-sdk.patch.1 @@ -0,0 +1,9 @@ +diff -ur nss.org/nss/coreconf/config.mk nss/nss/coreconf/config.mk +--- nss.org/nss/coreconf/config.mk 2016-03-15 14:52:19.706093300 +0100 ++++ nss/nss/coreconf/config.mk 2016-03-15 14:56:51.549914800 +0100 +@@ -188,3 +188,5 @@ + + # Hide old, deprecated, TLS cipher suite names when building NSS + DEFINES += -DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES ++# build with 7.1A SDK for winXP compatibility ++DEFINES += -D_USING_V110_SDK71_ commit 61b4a873d94faa6fb4aac475b97b8d5cb0689937 Author: Caolán McNamara <caol...@redhat.com> Date: Tue Mar 15 09:21:10 2016 +0000 recurse protection for XFConvert Change-Id: Ib6008d4b07159acad26c7baeb775702119c12e3b (cherry picked from commit 9e0004f2cc64ffa23ecd5c7c82016624eb8a5a20) Reviewed-on: https://gerrit.libreoffice.org/23259 Reviewed-by: David Tardon <dtar...@redhat.com> Tested-by: David Tardon <dtar...@redhat.com> (cherry picked from commit 8978c75cb0fdb1a5cddbe25545f0455074afecf6) diff --git a/lotuswordpro/qa/cppunit/data/fail/recurse-2.lwp b/lotuswordpro/qa/cppunit/data/fail/recurse-2.lwp new file mode 100644 index 0000000..f19b0d7 Binary files /dev/null and b/lotuswordpro/qa/cppunit/data/fail/recurse-2.lwp differ diff --git a/lotuswordpro/source/filter/lwpfootnote.cxx b/lotuswordpro/source/filter/lwpfootnote.cxx index 0964eda..8c53f39 100644 --- a/lotuswordpro/source/filter/lwpfootnote.cxx +++ b/lotuswordpro/source/filter/lwpfootnote.cxx @@ -194,7 +194,7 @@ void LwpFootnote::XFConvert(XFContentContainer * pCont) LwpContent* pContent = FindFootnoteContent(); if(pContent) { - pContent->XFConvert(pCont); + pContent->DoXFConvert(pCont); } } diff --git a/lotuswordpro/source/filter/lwpframelayout.cxx b/lotuswordpro/source/filter/lwpframelayout.cxx index 19944f7..28dc34e 100644 --- a/lotuswordpro/source/filter/lwpframelayout.cxx +++ b/lotuswordpro/source/filter/lwpframelayout.cxx @@ -840,7 +840,7 @@ void LwpFrameLayout::XFConvertFrame(XFContentContainer* pCont, sal_Int32 nStart rtl::Reference<LwpObject> content = m_Content.obj(); if (content.is()) { - content->XFConvert(pXFFrame); + content->DoXFConvert(pXFFrame); //set frame size according to ole size ApplyGraphicSize(pXFFrame); } @@ -1107,7 +1107,7 @@ void LwpGroupLayout::XFConvertFrame(XFContentContainer* pCont, sal_Int32 nStart LwpVirtualLayout* pLayout = dynamic_cast<LwpVirtualLayout*>(GetChildHead().obj().get()); while(pLayout) { - pLayout->XFConvert(pXFFrame); + pLayout->DoXFConvert(pXFFrame); pLayout = dynamic_cast<LwpVirtualLayout*>(pLayout->GetNext().obj().get()); } diff --git a/lotuswordpro/source/filter/lwpfribframe.cxx b/lotuswordpro/source/filter/lwpfribframe.cxx index 6b1d5f8..2d7e91c 100644 --- a/lotuswordpro/source/filter/lwpfribframe.cxx +++ b/lotuswordpro/source/filter/lwpfribframe.cxx @@ -186,7 +186,7 @@ void LwpFribFrame::XFConvert(XFContentContainer* pCont) } } - pLayout->XFConvert(pXFContentContainer); + pLayout->DoXFConvert(pXFContentContainer); if(m_bRevisionFlag) { diff --git a/lotuswordpro/source/filter/lwpnotes.cxx b/lotuswordpro/source/filter/lwpnotes.cxx index bd16ae9..d85b545 100644 --- a/lotuswordpro/source/filter/lwpnotes.cxx +++ b/lotuswordpro/source/filter/lwpnotes.cxx @@ -184,7 +184,7 @@ void LwpNoteLayout::XFConvert(XFContentContainer * pCont) LwpVirtualLayout* pTextLayout = GetTextLayout(); if(pTextLayout) { - pTextLayout->XFConvert(pCont); + pTextLayout->DoXFConvert(pCont); } } @@ -293,7 +293,7 @@ void LwpNoteTextLayout::XFConvert(XFContentContainer * pCont) rtl::Reference<LwpObject> pContent = m_Content.obj(); if(pContent.is()) { - pContent->XFConvert(pCont); + pContent->DoXFConvert(pCont); } } diff --git a/lotuswordpro/source/filter/lwpobj.cxx b/lotuswordpro/source/filter/lwpobj.cxx index be9a07f..919e392 100644 --- a/lotuswordpro/source/filter/lwpobj.cxx +++ b/lotuswordpro/source/filter/lwpobj.cxx @@ -66,6 +66,7 @@ LwpObject::LwpObject(LwpObjectHeader objHdr, LwpSvStream* pStrm) : m_ObjHdr(objHdr), m_pObjStrm(nullptr), m_pFoundry(nullptr) , m_pStrm(pStrm), m_bRegisteringStyle(false), m_bParsingStyle(false) + , m_bConvertingContent(false) { m_pObjStrm = new LwpObjectStream(pStrm, m_ObjHdr.IsCompressed(), static_cast<sal_uInt16>(m_ObjHdr.GetSize()) ); diff --git a/lotuswordpro/source/filter/lwpobj.hxx b/lotuswordpro/source/filter/lwpobj.hxx index 978bc49..4b2e7b1 100644 --- a/lotuswordpro/source/filter/lwpobj.hxx +++ b/lotuswordpro/source/filter/lwpobj.hxx @@ -96,10 +96,12 @@ protected: LwpSvStream* m_pStrm; bool m_bRegisteringStyle; bool m_bParsingStyle; + bool m_bConvertingContent; protected: virtual void Read(); virtual void RegisterStyle(); virtual void Parse(IXFStream* pOutputStream); + virtual void XFConvert(XFContentContainer* pCont); public: void QuickRead(); //calls RegisterStyle but bails if DoRegisterStyle is called @@ -122,8 +124,16 @@ public: Parse(pOutputStream); m_bParsingStyle = false; } - - virtual void XFConvert(XFContentContainer* pCont); + //calls XFConvert but bails if DoXFConvert is called + //on the same object recursively + void DoXFConvert(XFContentContainer* pCont) + { + if (m_bConvertingContent) + throw std::runtime_error("recursion in parsing"); + m_bConvertingContent = true; + XFConvert(pCont); + m_bConvertingContent = false; + } LwpFoundry* GetFoundry(){return m_pFoundry;} void SetFoundry(LwpFoundry* pFoundry){m_pFoundry = pFoundry;} diff --git a/lotuswordpro/source/filter/lwppagelayout.cxx b/lotuswordpro/source/filter/lwppagelayout.cxx index a62d750..9560b24 100644 --- a/lotuswordpro/source/filter/lwppagelayout.cxx +++ b/lotuswordpro/source/filter/lwppagelayout.cxx @@ -892,7 +892,7 @@ void LwpHeaderLayout::RegisterStyle(XFMasterPage* mp1) RegisterChildStyle(); //End pChangeMgr->SetHeadFootChange(pHeader); - pStory->XFConvert(pHeader); + pStory->DoXFConvert(pHeader); pChangeMgr->SetHeadFootFribMap(false); } @@ -1046,7 +1046,7 @@ void LwpFooterLayout::RegisterStyle(XFMasterPage* mp1) pChangeMgr->SetHeadFootChange(pFooter);//add by ,7/6 - pStory->XFConvert(pFooter); + pStory->DoXFConvert(pFooter); pChangeMgr->SetHeadFootFribMap(false); } diff --git a/lotuswordpro/source/filter/lwpstory.cxx b/lotuswordpro/source/filter/lwpstory.cxx index 64c2555..1722127 100644 --- a/lotuswordpro/source/filter/lwpstory.cxx +++ b/lotuswordpro/source/filter/lwpstory.cxx @@ -334,7 +334,7 @@ void LwpStory::XFConvertFrameInCell(XFContentContainer* pCont) pCont->FindFirstContent(enumXFContentPara)); XFContentContainer* pXFFirtPara = static_cast<XFContentContainer*>(first.get()); if(pXFFirtPara) - xFrameLayout->XFConvert(pXFFirtPara); + xFrameLayout->DoXFConvert(pXFFirtPara); } xFrameLayout.set(dynamic_cast<LwpVirtualLayout*>(xFrameLayout->GetNext().obj().get())); } @@ -361,7 +361,7 @@ void LwpStory::XFConvertFrameInPage(XFContentContainer* pCont) || xFrameLayout->IsSuperTable() || xFrameLayout->IsGroupHead()))) { - xFrameLayout->XFConvert(pCont); + xFrameLayout->DoXFConvert(pCont); } xFrameLayout.set(dynamic_cast<LwpVirtualLayout*>(xFrameLayout->GetNext().obj().get())); } @@ -384,7 +384,7 @@ void LwpStory::XFConvertFrameInFrame(XFContentContainer* pCont) { if (xFrameLayout->IsAnchorFrame()) { - xFrameLayout->XFConvert(pCont); + xFrameLayout->DoXFConvert(pCont); } xFrameLayout.set(dynamic_cast<LwpVirtualLayout*>(xFrameLayout->GetNext().obj().get())); } @@ -412,7 +412,7 @@ void LwpStory::XFConvertFrameInHeaderFooter(XFContentContainer* pCont) pCont->FindFirstContent(enumXFContentPara)); XFContentContainer* pXFFirtPara = static_cast<XFContentContainer*>(first.get()); if(pXFFirtPara) - xFrameLayout->XFConvert(pXFFirtPara); + xFrameLayout->DoXFConvert(pXFFirtPara); } xFrameLayout.set(dynamic_cast<LwpVirtualLayout*>(xFrameLayout->GetNext().obj().get())); } commit a70c989c91979d1ec4dd3403610e3ff9f071b0c5 Author: Caolán McNamara <caol...@redhat.com> Date: Fri Mar 11 10:38:46 2016 +0000 treat ExtMargins with same recurse protection as Margins (cherry picked from commit bcecf9b13b7eee0e7c60a6827a310f8b38d13f69) Change-Id: I24640971ea6ca89878043966293492a991f01008 Reviewed-on: https://gerrit.libreoffice.org/23146 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: David Tardon <dtar...@redhat.com> (cherry picked from commit 8ff93a55256e96e1903bfc69b439238d43cabd26) diff --git a/lotuswordpro/qa/cppunit/data/fail/recurse-1.lwp b/lotuswordpro/qa/cppunit/data/fail/recurse-1.lwp new file mode 100644 index 0000000..ffc7a44 Binary files /dev/null and b/lotuswordpro/qa/cppunit/data/fail/recurse-1.lwp differ diff --git a/lotuswordpro/source/filter/lwplayout.cxx b/lotuswordpro/source/filter/lwplayout.cxx index de77f9c..f8631da 100644 --- a/lotuswordpro/source/filter/lwplayout.cxx +++ b/lotuswordpro/source/filter/lwplayout.cxx @@ -83,6 +83,7 @@ LwpVirtualLayout::LwpVirtualLayout(LwpObjectHeader &objHdr, LwpSvStream* pStrm) , m_bGettingHasProtection(false) , m_bGettingIsProtected(false) , m_bGettingMarginsValue(false) + , m_bGettingExtMarginsValue(false) , m_nAttributes(0) , m_nAttributes2(0) , m_nAttributes3(0) @@ -776,7 +777,7 @@ double LwpMiddleLayout::MarginsValue(const sal_uInt8 &nWhichSide) * @param: * @return: */ -double LwpMiddleLayout::GetExtMarginsValue(const sal_uInt8 &nWhichSide) +double LwpMiddleLayout::ExtMarginsValue(const sal_uInt8 &nWhichSide) { double fValue = 0; if(m_nOverrideFlag & OVER_MARGINS) @@ -794,7 +795,7 @@ double LwpMiddleLayout::GetExtMarginsValue(const sal_uInt8 &nWhichSide) fValue = pStyle->GetExtMarginsValue(nWhichSide); return fValue; } - return LwpVirtualLayout::GetExtMarginsValue(nWhichSide); + return LwpVirtualLayout::ExtMarginsValue(nWhichSide); } /** * @descr: Get the LwpBorderStuff object according to m_LayBorderStuff id. diff --git a/lotuswordpro/source/filter/lwplayout.hxx b/lotuswordpro/source/filter/lwplayout.hxx index ee46b3d5..6102b07 100644 --- a/lotuswordpro/source/filter/lwplayout.hxx +++ b/lotuswordpro/source/filter/lwplayout.hxx @@ -103,7 +103,6 @@ public: inline virtual sal_uInt16 GetNumCols(){return 1;} virtual double GetColWidth(sal_uInt16 nIndex); virtual double GetColGap(sal_uInt16 nIndex); - virtual double GetExtMarginsValue(const sal_uInt8& /*nWhichSide*/){return 0;} virtual bool IsAutoGrow(){ return false;} virtual bool IsAutoGrowUp(){ return false;} virtual bool IsAutoGrowDown(){ return false;} @@ -158,6 +157,15 @@ public: m_bGettingMarginsValue = false; return fRet; } + double GetExtMarginsValue(const sal_uInt8& nWhichSide) + { + if (m_bGettingExtMarginsValue) + throw std::runtime_error("recursion in layout"); + m_bGettingExtMarginsValue = true; + auto fRet = ExtMarginsValue(nWhichSide); + m_bGettingExtMarginsValue = false; + return fRet; + } OUString GetStyleName(){ return m_StyleName;} bool IsComplex(); virtual bool IsAnchorPage(){ return false;} @@ -211,6 +219,7 @@ protected: virtual bool HonorProtection(); virtual bool IsProtected(); virtual double MarginsValue(const sal_uInt8& /*nWhichSide*/){return 0;} + virtual double ExtMarginsValue(const sal_uInt8& /*nWhichSide*/){return 0;} virtual bool MarginsSameAsParent(); protected: bool m_bGettingHonorProtection; @@ -218,6 +227,7 @@ protected: bool m_bGettingHasProtection; bool m_bGettingIsProtected; bool m_bGettingMarginsValue; + bool m_bGettingExtMarginsValue; sal_uInt32 m_nAttributes; sal_uInt32 m_nAttributes2; sal_uInt32 m_nAttributes3; @@ -328,8 +338,6 @@ class LwpMiddleLayout : public LwpVirtualLayout public: LwpMiddleLayout( LwpObjectHeader &objHdr, LwpSvStream* pStrm ); virtual ~LwpMiddleLayout(); - virtual double MarginsValue(const sal_uInt8& nWhichSide) SAL_OVERRIDE; - virtual double GetExtMarginsValue(const sal_uInt8& nWhichSide) SAL_OVERRIDE; LwpLayoutGeometry* GetGeometry() { if (m_bGettingGeometry) @@ -385,6 +393,8 @@ public: protected: void Read() SAL_OVERRIDE; virtual bool MarginsSameAsParent() SAL_OVERRIDE; + virtual double MarginsValue(const sal_uInt8& nWhichSide) SAL_OVERRIDE; + virtual double ExtMarginsValue(const sal_uInt8& nWhichSide) SAL_OVERRIDE; private: LwpObjectID m_BasedOnStyle; LwpLayoutGeometry* Geometry();
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits