diff options
author | Maho Nakata <maho@FreeBSD.org> | 2004-10-12 07:20:54 +0000 |
---|---|---|
committer | Maho Nakata <maho@FreeBSD.org> | 2004-10-12 07:20:54 +0000 |
commit | dc106744f9e30cdb9e79cc5c95d51eb0c0064b51 (patch) | |
tree | fff480a58353c5662efee6bdefec74f03a574f13 /editors/openoffice-1.1/files | |
parent | Update to 1.0.0: bugfixes and manpages. (diff) |
Update to 1.1.3
a) remove patches which not needed anymore
b) security vulnerablity by mozilla doesn't affect
this port (remove WITHOUT_MOZILLA by default)
see: http://www.openoffice.org/servlets/ReadMsg?list=dev&msgNo=12093
c) add files/geneate.pl, which generates shell script does
build complete localized packages
d) Use CONFIGURE_WRKSRC. no longer need .. for patches.
e) Still weird though, WITH_CCACHE works.
f) Fix: if you build without X, Makefile invokes build twice.
Notes
Notes:
svn path=/head/; revision=118837
Diffstat (limited to 'editors/openoffice-1.1/files')
19 files changed, 253 insertions, 443 deletions
diff --git a/editors/openoffice-1.1/files/Makefile.localized b/editors/openoffice-1.1/files/Makefile.localized index cb4baac91cc4..d01203363382 100644 --- a/editors/openoffice-1.1/files/Makefile.localized +++ b/editors/openoffice-1.1/files/Makefile.localized @@ -17,12 +17,38 @@ LANG_EXT= 96 LANG_CONFIGURE_ARG= ARAB .endif ################################################################ +.if ${LOCALIZED_LANG} == "eu" +LANG_PKGNAME= eu +LANG_EXT= 10 +LANG_CONFIGURE_ARG= BASQUE +.endif +################################################################ .if ${LOCALIZED_LANG} == "ca" LANG_PKGNAME= ca LANG_EXT= 37 LANG_CONFIGURE_ARG= CAT .endif ################################################################ +.if ${LOCALIZED_LANG} == "zh-CN" +CATEGORIES= chinese +LANG_PKGNAME= zh +LANG_SUFFIX= CN +LANG_EXT= 86 +LANG_CONFIGURE_ARG= CHINSIM +BUILD_DEPENDS+= ${PREFIX}/share/fonts/TrueType/gbsn00lp.ttf:${PORTSDIR}/chinese/arphicttf +L10NHELP= helpcontent_${LANG_EXT}_unix.tgz +.endif +################################################################ +.if ${LOCALIZED_LANG} == "zh-TW" +CATEGORIES= chinese +LANG_PKGNAME= zh +LANG_SUFFIX= TW +LANG_EXT= 88 +LANG_CONFIGURE_ARG= CHINTRAD +BUILD_DEPENDS+= ${PREFIX}/share/fonts/TrueType/bsmi00lp.ttf:${PORTSDIR}/chinese/arphicttf +L10NHELP= helpcontent_${LANG_EXT}_unix.tgz +.endif +################################################################ .if ${LOCALIZED_LANG} == "cs" LANG_PKGNAME= cs LANG_EXT= 42 @@ -35,17 +61,11 @@ LANG_EXT= 45 LANG_CONFIGURE_ARG= DAN .endif ################################################################ -.if ${LOCALIZED_LANG} == "el" -LANG_PKGNAME= el -LANG_EXT= 30 -LANG_CONFIGURE_ARG= GREEK -.endif -################################################################ -.if ${LOCALIZED_LANG} == "es" -LANG_PKGNAME= es -LANG_EXT= 34 -L10NHELP= helpcontent_${LANG_EXT}_unix.tgz -LANG_CONFIGURE_ARG= SPAN +.if ${LOCALIZED_LANG} == "nl" +LANG_PKGNAME= nl +LANG_EXT= 31 +L10NHELP= helpcontent_${LANG_EXT}_unix.tgz +LANG_CONFIGURE_ARG= DTCH .endif ################################################################ .if ${LOCALIZED_LANG} == "et" @@ -68,6 +88,13 @@ L10NHELP= helpcontent_${LANG_EXT}_unix.tgz LANG_CONFIGURE_ARG= FREN .endif ################################################################ +.if ${LOCALIZED_LANG} == "gl-ES" +LANG_PKGNAME= gl +LANG_SUFFIX= ES +LANG_EXT= 38 +LANG_CONFIGURE_ARG= GAL +.endif +################################################################ .if ${LOCALIZED_LANG} == "de" CATEGORIES= german LANG_PKGNAME= de @@ -78,12 +105,24 @@ COMMENT= Office-Suite mit Textverarbeitung, Tabellenkalkulation, Datenbank und P PKGMESSAGE= ${FILESDIR}/pkg-message.de .endif ################################################################ +.if ${LOCALIZED_LANG} == "el" +LANG_PKGNAME= el +LANG_EXT= 30 +LANG_CONFIGURE_ARG= GREEK +.endif +################################################################ .if ${LOCALIZED_LANG} == "he" LANG_PKGNAME= he LANG_EXT= 97 LANG_CONFIGURE_ARG= HEBREW .endif ################################################################ +.if ${LOCALIZED_LANG} == "hi-IN" +LANG_PKGNAME= hi +LANG_EXT= 91 +LANG_CONFIGURE_ARG= HINDI +.endif +################################################################ .if ${LOCALIZED_LANG} == "hu" CATEGORIES= hungarian LANG_PKGNAME= hu @@ -108,6 +147,13 @@ RUN_DEPENDS+= ${X11BASE}/lib/X11/fonts/TrueType/kochi-mincho-subst.ttf:${PORTS L10NHELP= helpcontent_${LANG_EXT}_unix.tgz .endif ################################################################ +.if ${LOCALIZED_LANG} == "kn-IN" +LANG_PKGNAME= kn +LANG_SUFFIX= IN +LANG_EXT= 93 +LANG_CONFIGURE_ARG= KANNADA +.endif +################################################################ .if ${LOCALIZED_LANG} == "ko" CATEGORIES= korean LANG_PKGNAME= ko @@ -116,19 +162,18 @@ LANG_CONFIGURE_ARG= KOREAN L10NHELP= helpcontent_${LANG_EXT}_unix.tgz .endif ################################################################ +.if ${LOCALIZED_LANG} == "lt" +LANG_PKGNAME= lt +LANG_EXT= 58 +LANG_CONFIGURE_ARG= LITHUANIAN +.endif +################################################################ .if ${LOCALIZED_LANG} == "nb" LANG_PKGNAME= nb LANG_EXT= 47 LANG_CONFIGURE_ARG= NORBOK .endif ################################################################ -.if ${LOCALIZED_LANG} == "nl" -LANG_PKGNAME= nl -LANG_EXT= 31 -L10NHELP= helpcontent_${LANG_EXT}_unix.tgz -LANG_CONFIGURE_ARG= DTCH -.endif -################################################################ .if ${LOCALIZED_LANG} == "nn" LANG_PKGNAME= nn LANG_EXT= 79 @@ -173,6 +218,13 @@ LANG_EXT= 07 LANG_CONFIGURE_ARG= RUSS .endif ################################################################ +.if ${LOCALIZED_LANG} == "es" +LANG_PKGNAME= es +LANG_EXT= 34 +L10NHELP= helpcontent_${LANG_EXT}_unix.tgz +LANG_CONFIGURE_ARG= SPAN +.endif +################################################################ .if ${LOCALIZED_LANG} == "sv" LANG_PKGNAME= sv LANG_EXT= 46 @@ -193,6 +245,18 @@ LANG_EXT= 50 LANG_CONFIGURE_ARG= SLOVENIAN .endif ################################################################ +.if ${LOCALIZED_LANG} == "th" +LANG_PKGNAME= th +LANG_EXT= 66 +LANG_CONFIGURE_ARG= THAI +.endif +################################################################ +.if ${LOCALIZED_LANG} == "tn" +LANG_PKGNAME= tn +LANG_EXT= 29 +LANG_CONFIGURE_ARG= TSWANA +.endif +################################################################ .if ${LOCALIZED_LANG} == "tr" LANG_PKGNAME= tr LANG_EXT= 90 @@ -205,31 +269,17 @@ LANG_EXT= 53 LANG_CONFIGURE_ARG= WELSH .endif ################################################################ -.if ${LOCALIZED_LANG} == "zh-CN" -CATEGORIES= chinese -LANG_PKGNAME= zh -LANG_SUFFIX= CN -LANG_EXT= 86 -LANG_CONFIGURE_ARG= CHINSIM -BUILD_DEPENDS+= ${PREFIX}/share/fonts/TrueType/gbsn00lp.ttf:${PORTSDIR}/chinese/arphicttf -L10NHELP= helpcontent_${LANG_EXT}_unix.tgz -.endif -################################################################ -.if ${LOCALIZED_LANG} == "zh-TW" -CATEGORIES= chinese -LANG_PKGNAME= zh -LANG_SUFFIX= TW -LANG_EXT= 88 -LANG_CONFIGURE_ARG= CHINTRAD -BUILD_DEPENDS+= ${PREFIX}/share/fonts/TrueType/bsmi00lp.ttf:${PORTSDIR}/chinese/arphicttf -L10NHELP= helpcontent_${LANG_EXT}_unix.tgz -.endif -################################################################ .if ${LOCALIZED_LANG} == "zu" LANG_PKGNAME= zu LANG_EXT= 28 LANG_CONFIGURE_ARG= ZULU .endif ################################################################ +.if defined(LANG_PKGNAME) +PKGNAMEPREFIX= ${LANG_PKGNAME}- +.endif +.if defined(LANG_SUFFIX) +PKGNAMESUFFIX?= -${LANG_SUFFIX} +.endif .endif diff --git a/editors/openoffice-1.1/files/Makefile.mozilla b/editors/openoffice-1.1/files/Makefile.mozilla index 73637f27d724..9593c16dba89 100644 --- a/editors/openoffice-1.1/files/Makefile.mozilla +++ b/editors/openoffice-1.1/files/Makefile.mozilla @@ -32,9 +32,9 @@ build-mozilla: .endif install-mozilla: - @${CP} ${WRKDIR}/FREEBSDGCCIinc.zip ${WRKSRC}/../moz/zipped/ - @${CP} ${WRKDIR}/FREEBSDGCCIlib.zip ${WRKSRC}/../moz/zipped/ - @${CP} ${WRKDIR}/FREEBSDGCCIruntime.zip ${WRKSRC}/../moz/zipped/ + @${CP} ${WRKDIR}/FREEBSDGCCIinc.zip ${WRKSRC}/moz/zipped/ + @${CP} ${WRKDIR}/FREEBSDGCCIlib.zip ${WRKSRC}/moz/zipped/ + @${CP} ${WRKDIR}/FREEBSDGCCIruntime.zip ${WRKSRC}/moz/zipped/ register-mozilla: .if exists(${WRKDIR}/mozilla-runtime) diff --git a/editors/openoffice-1.1/files/freebsd-local.sh b/editors/openoffice-1.1/files/freebsd-local.sh deleted file mode 100644 index e4d951ae481f..000000000000 --- a/editors/openoffice-1.1/files/freebsd-local.sh +++ /dev/null @@ -1,71 +0,0 @@ -#!/bin/sh -# -# $FreeBSD $ - -save_common_xcu() { -sed 's/^X//' > $OOHOME/tmp/Common.xcu << 'END-of-Common.xcu' -X<?xml version="1.0" encoding="UTF-8"?> -X<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="Common" oor:package="org.openoffice.Office"> -X <node oor:name="Internal"> -X <prop oor:name="CurrentTempURL" oor:type="xs:string"> -X <value/> -X </prop> -X </node> -X <node oor:name="Misc"> -X <prop oor:name="FirstRun" oor:type="xs:boolean"> -X <value>true</value> -X </prop> -X </node> -X <node oor:name="ExternalApps"> -X <prop oor:name="file" oor:type="xs:string"> -X <value/> -X </prop> -X <prop oor:name="ftp" oor:type="xs:string"> -X <value/> -X </prop> -X <prop oor:name="http" oor:type="xs:string"> -X <value>%%mozilla%%</value> -X </prop> -X <prop oor:name="https" oor:type="xs:string"> -X <value/> -X </prop> -X <prop oor:name="mailto" oor:type="xs:string"> -X <value/> -X </prop> -X </node> -X</oor:component-data> -END-of-Common.xcu -mozilla=`which mozilla`; -if [ $? -eq 0 ]; then - sed -i orig -e 's#%%mozilla%%#'$mozilla'#g' $OOHOME/tmp/Common.xcu -fi -mozilla=`which linux-mozilla`; -if [ $? -eq 0 ]; then - sed -i orig -e 's#%%mozilla%%#'$mozilla'#g' $OOHOME/tmp/Common.xcu -fi -mv $OOHOME/tmp/Common.xcu $OOHOME/user/registry/data/org/openoffice/Office -} - -# -# Set default lang to en_US.ISO8859-15 -# -if [ ! $LANG ]; then - export LANG=en_US.ISO8859-15 -fi - -# -# Create soffice.cfg if it does not exist. -# -if [ ! -z $OOHOME ] && [ -e $OOHOME/setup ]; then - if [ ! -d $OOHOME/user/config/soffice.cfg ]; then - mkdir $OOHOME/user/config/soffice.cfg - fi -fi - -# -# Detect installed mozilla -# -if [ ! -z $OOHOME ] && [ ! -e $OOHOME/user/registry/data/org/openoffice/Office/Common.xcu ]; then - mkdir -p $OOHOME/tmp; - save_common_xcu; -fi diff --git a/editors/openoffice-1.1/files/generate.pl b/editors/openoffice-1.1/files/generate.pl new file mode 100644 index 000000000000..2f05835d76ba --- /dev/null +++ b/editors/openoffice-1.1/files/generate.pl @@ -0,0 +1,21 @@ +#!/usr/bin/perl + +# generate full build shell script for OpenOffice.org +# Whom: Maho Nakata <maho@FreeBSD.org> +# $FreeBSD: /tmp/pcvs/ports/editors/openoffice-1.1/files/Attic/generate.pl,v 1.1 2004-10-12 07:20:54 maho Exp $ + +print "#!/bin/csh\n"; +print "/usr/bin/time make WITH_CCACHE=yes package package-rename solver sdk deinstall clean >& log.en\n"; +print "/usr/bin/time make ALL_LOCALIZED_LANGS=yes >& log.all\n"; + +open ( FILE, "< Makefile.localized") ; +while(<FILE>){ +@tmp=split (' ',$_); +@tmp2=split ('"',$tmp[3]); +if ( $tmp[1] eq "\${LOCALIZED_LANG}") { $LANG=$tmp2[1]; + print "make TWEAK_L10N=yes LOCALIZED_LANG=$LANG pre-everything\n"; + print "/usr/bin/time make LOCALIZED_LANG=$LANG WITH_CCACHE=yes package package-rename deinstall >& log.$LANG\n"; + } +} +close FILE; + diff --git a/editors/openoffice-1.1/files/patch-connectivity+source+drivers+mozab+mozillasrc+makefile.mk b/editors/openoffice-1.1/files/patch-connectivity+source+drivers+mozab+mozillasrc+makefile.mk deleted file mode 100644 index 2f79f5a07f6e..000000000000 --- a/editors/openoffice-1.1/files/patch-connectivity+source+drivers+mozab+mozillasrc+makefile.mk +++ /dev/null @@ -1,45 +0,0 @@ ---- ../connectivity/source/drivers/mozab/mozillasrc/makefile.mk.orig Tue Apr 15 19:39:14 2003 -+++ ../connectivity/source/drivers/mozab/mozillasrc/makefile.mk Sat May 31 22:34:31 2003 -@@ -64,8 +64,8 @@ - #mozilla specific stuff. - MOZ_LIB=$(SOLARVERSION)$/$(INPATH)$/lib$(UPDMINOREXT) - MOZ_INC=$(SOLARVERSION)$/$(INPATH)$/inc$(UPDMINOREXT)$/mozilla --#MOZ_LIB=$(PRJ)$/$(INPATH)$/lib --#MOZ_INC=$(PRJ)$/$(INPATH)$/inc$/mozilla -+#MOZ_LIB=$(PRJ)$/..$/moz$/$(INPATH)$/lib -+#MOZ_INC=$(PRJ)$/..$/moz$/$(INPATH)$/inc$/mozilla - #End of mozilla specific stuff. - - PRJ=..$/..$/..$/.. -@@ -132,7 +132,7 @@ - -I$(MOZ_INC)$/addrbook -I$(MOZ_INC)$/mork -I$(MOZ_INC)$/locale \ - -I$(MOZ_INC)$/pref -I$(MOZ_INC)$/mime -I$(MOZ_INC)$/chrome \ - -I$(MOZ_INC)$/necko -I$(MOZ_INC)$/intl -I$(MOZ_INC)$/profile \ -- -I$(MOZ_INC)$/embed_base -I$(MOZ_INC)$/mozldap -+ -I$(MOZ_INC)$/embed_base -I$(MOZ_INC)$/mozldap -I$(MOZ_INC)$/ldap-nspr - CDEFS += -DWINVER=0x400 -DMOZILLA_CLIENT \ - -DNS_NET_FILE -DCookieManagement -DSingleSignon -DClientWallet \ - -DTRACING -DXP_PC -DXP_WIN -DXP_WIN32 -DHW_THREADS \ -@@ -150,7 +150,7 @@ - -I$(MOZ_INC)$/addrbook -I$(MOZ_INC)$/mork -I$(MOZ_INC)$/locale \ - -I$(MOZ_INC)$/pref -I$(MOZ_INC)$/mime -I$(MOZ_INC)$/chrome \ - -I$(MOZ_INC)$/necko -I$(MOZ_INC)$/intl -I$(MOZ_INC)$/profile \ -- -I$(MOZ_INC)$/embed_base -I$(MOZ_INC)$/mozldap -+ -I$(MOZ_INC)$/embed_base -I$(MOZ_INC)$/mozldap -I$(MOZ_INC)$/ldap-nspr - CDEFS+= -DMOZILLA_CLIENT \ - -DOSTYPE=\"Linux2.2.14-5\" -DOJI - .IF "$(OS)" == "LINUX" -@@ -166,6 +166,13 @@ - -fno-rtti -Wall -Wconversion -Wpointer-arith \ - -Wbad-function-cast -Wcast-align -Woverloaded-virtual -Wsynth \ - -Wno-long-long -+CDEFS += -DTRACING -+.ELIF "$(OS)" == "FREEBSD" -+CFLAGS += -fPIC -+CFLAGSCXX += \ -+ -fno-rtti -Wall -Wconversion -Wpointer-arith \ -+ -Wbad-function-cast -Wcast-align -Woverloaded-virtual -Wsynth \ -+ -Wno-long-long -pthread - CDEFS += -DTRACING - .ENDIF - .ENDIF diff --git a/editors/openoffice-1.1/files/patch-cppuhelper+source+gcc3_linux_intel.map b/editors/openoffice-1.1/files/patch-cppuhelper+source+gcc3_linux_intel.map index da9fd94b39c0..bbbfeab36816 100644 --- a/editors/openoffice-1.1/files/patch-cppuhelper+source+gcc3_linux_intel.map +++ b/editors/openoffice-1.1/files/patch-cppuhelper+source+gcc3_linux_intel.map @@ -1,5 +1,5 @@ ---- ../cppuhelper/source/gcc3_linux_intel.map.orig Sat Sep 13 22:15:22 2003 -+++ ../cppuhelper/source/gcc3_linux_intel.map Sat Sep 13 22:16:01 2003 +--- cppuhelper/source/gcc3_linux_intel.map.orig Sat Sep 13 22:15:22 2003 ++++ cppuhelper/source/gcc3_linux_intel.map Sat Sep 13 22:16:01 2003 @@ -299,6 +299,7 @@ _ZNK4cppu6UnoUrl11getProtocolEv; _ZNK4cppu6UnoUrl13getConnectionEv; diff --git a/editors/openoffice-1.1/files/patch-desktop+scripts+soffice.sh b/editors/openoffice-1.1/files/patch-desktop+scripts+soffice.sh deleted file mode 100644 index ad1235c24e01..000000000000 --- a/editors/openoffice-1.1/files/patch-desktop+scripts+soffice.sh +++ /dev/null @@ -1,11 +0,0 @@ ---- ../desktop/scripts/soffice.sh.orig Wed Sep 17 05:21:54 2003 -+++ ../desktop/scripts/soffice.sh Wed Sep 17 05:24:59 2003 -@@ -233,6 +233,8 @@ - PATH="$sd_prog":$PATH - export PATH - -+. $sd_prog/freebsd-local.sh -+ - # execute soffice binary - exec "$sd_prog/$sd_binary" "$@" - diff --git a/editors/openoffice-1.1/files/patch-odk+configure.pl b/editors/openoffice-1.1/files/patch-odk+configure.pl index eeebf346c600..bd269a961590 100644 --- a/editors/openoffice-1.1/files/patch-odk+configure.pl +++ b/editors/openoffice-1.1/files/patch-odk+configure.pl @@ -5,8 +5,8 @@ Index: configure.pl RCS file: /cvs/api/odk/configure.pl,v retrieving revision 1.4.12.3 diff -u -r1.4.12.3 configure.pl ---- ../odk/configure.pl 18 May 2004 10:02:00 -0000 1.4.12.3 -+++ ../configure.pl 11 Aug 2004 08:21:04 -0000 +--- odk/configure.pl.orig 18 May 2004 10:02:00 -0000 1.4.12.3 ++++ odk/configure.pl 11 Aug 2004 08:21:04 -0000 @@ -19,7 +19,7 @@ chop ($main::OFFICE_HOME_SUGGESTION); diff --git a/editors/openoffice-1.1/files/patch-odk+setsdkenv_unix.in b/editors/openoffice-1.1/files/patch-odk+setsdkenv_unix.in index dbcad91a1fb4..59269742ab37 100644 --- a/editors/openoffice-1.1/files/patch-odk+setsdkenv_unix.in +++ b/editors/openoffice-1.1/files/patch-odk+setsdkenv_unix.in @@ -1,7 +1,7 @@ http://www.openoffice.org/issues/show_bug.cgi?id=24142 ---- ../odk/setsdkenv_unix.in Sun Jan 25 18:41:01 2004 -+++ ../odk/setsdkenv_unix.in Sun Jan 25 18:42:00 2004 +--- odk/setsdkenv_unix.in.orig Sun Jan 25 18:41:01 2004 ++++ odk/setsdkenv_unix.in Sun Jan 25 18:42:00 2004 @@ -2,7 +2,8 @@ # This script starts a new shell and sets all enviroment variables, which diff --git a/editors/openoffice-1.1/files/patch-odk+settings+settings.mk b/editors/openoffice-1.1/files/patch-odk+settings+settings.mk index 22fd7fd2f816..78814a4cfaee 100644 --- a/editors/openoffice-1.1/files/patch-odk+settings+settings.mk +++ b/editors/openoffice-1.1/files/patch-odk+settings+settings.mk @@ -1,7 +1,7 @@ http://www.openoffice.org/issues/show_bug.cgi?id=24142 ---- ../odk/settings/settings.mk Sun Jan 25 18:41:02 2004 -+++ ../odk/settings/settings.mk Sun Jan 25 18:45:09 2004 +--- odk/settings/settings.mk.orig Sun Jan 25 18:41:02 2004 ++++ odk/settings/settings.mk Sun Jan 25 18:45:09 2004 @@ -368,3 +368,85 @@ endif diff --git a/editors/openoffice-1.1/files/patch-sch_setLogicRectHack b/editors/openoffice-1.1/files/patch-sch_setLogicRectHack index 34b26e9cfc39..44de26bd9cfd 100644 --- a/editors/openoffice-1.1/files/patch-sch_setLogicRectHack +++ b/editors/openoffice-1.1/files/patch-sch_setLogicRectHack @@ -1,5 +1,7 @@ ---- ../sch/source/ui/unoidl/ChXChartObject.cxx 7 Aug 2002 16:01:42 -0000 1.34 -+++ ../sch/source/ui/unoidl/ChXChartObject.cxx 20 Feb 2004 00:43:10 -0000 +#iZ 9462 + +--- sch/source/ui/unoidl/ChXChartObject.cxx.orig 7 Aug 2002 16:01:42 -0000 1.34 ++++ sch/source/ui/unoidl/ChXChartObject.cxx 20 Feb 2004 00:43:10 -0000 @@ -161,9 +161,11 @@ // XShape diff --git a/editors/openoffice-1.1/files/patch-security-tmp-dir b/editors/openoffice-1.1/files/patch-security-tmp-dir deleted file mode 100644 index b1ee4020a451..000000000000 --- a/editors/openoffice-1.1/files/patch-security-tmp-dir +++ /dev/null @@ -1,207 +0,0 @@ -http://www.openoffice.org/issues/show_bug.cgi?id=33357 -Insecure permissions on temporary files at runtime -*** SECURTY FIX *** - ---- ../sal/util/sal.map 9 Jan 2004 18:31:53 -0000 1.42.70.1 -+++ ../sal/util/sal.map 30 Aug 2004 13:59:22 -0000 -@@ -402,6 +403,7 @@ - osl_writeFile; - osl_closeFile; - osl_createDirectory; -+ osl_createDirectoryWithMode; - osl_removeDirectory; - osl_removeFile; - osl_copyFile; -Index: ../sal/inc/osl/file.h -=================================================================== -RCS file: /cvs/porting/sal/inc/osl/file.h,v -retrieving revision 1.27.48.1 -diff -u -r1.27.48.1 file.h ---- ../sal/inc/osl/file.h 9 Jan 2004 18:31:45 -0000 1.27.48.1 -+++ ../sal/inc/osl/file.h 30 Aug 2004 13:59:25 -0000 -@@ -1036,6 +1036,8 @@ - - oslFileError SAL_CALL osl_createDirectory( rtl_uString* pustrDirectoryURL ); - -+oslFileError SAL_CALL osl_createDirectoryWithMode( rtl_uString* pustrDirectoryURL, sal_uInt64 uAttributes ); -+ - - /** Remove an empty directory. - -Index: ../sal/inc/osl/file.hxx -=================================================================== -RCS file: /cvs/porting/sal/inc/osl/file.hxx,v -retrieving revision 1.30.48.1 -diff -u -r1.30.48.1 file.hxx ---- ../sal/inc/osl/file.hxx 9 Jan 2004 18:31:45 -0000 1.30.48.1 -+++ ../sal/inc/osl/file.hxx 30 Aug 2004 13:59:32 -0000 -@@ -1819,6 +1819,12 @@ - inline static RC create( const ::rtl::OUString& ustrDirectoryURL ) - { - return (RC) osl_createDirectory( ustrDirectoryURL.pData ); -+ } -+ -+ inline static RC createWithMode( const ::rtl::OUString& ustrDirectoryURL, -+ sal_uInt64 uAttributes ) -+ { -+ return (RC) osl_createDirectoryWithMode( ustrDirectoryURL.pData, uAttributes ); - } - - /** Remove an empty directory. -Index: ../sal/osl/unx/file.c -=================================================================== -RCS file: /cvs/porting/sal/osl/unx/Attic/file.c,v -retrieving revision 1.72.28.1 -diff -u -r1.72.28.1 file.c ---- ../sal/osl/unx/file.c 9 Jan 2004 18:31:46 -0000 1.72.28.1 -+++ ../sal/osl/unx/file.c 30 Aug 2004 13:59:41 -0000 -@@ -246,7 +246,7 @@ - - static oslFileError osl_psz_getVolumeInformation(const sal_Char* , oslVolumeInfo* pInfo, sal_uInt32 uFieldMask); - static oslFileError osl_psz_removeFile(const sal_Char* pszPath); --static oslFileError osl_psz_createDirectory(const sal_Char* pszPath); -+static oslFileError osl_psz_createDirectory(const sal_Char* pszPath, sal_uInt64 uAttributes); - static oslFileError osl_psz_removeDirectory(const sal_Char* pszPath); - static oslFileError osl_psz_copyFile(const sal_Char* pszPath, const sal_Char* pszDestPath); - static oslFileError osl_psz_moveFile(const sal_Char* pszPath, const sal_Char* pszDestPath); -@@ -853,7 +853,7 @@ - /* osl_createDirectory */ - /****************************************************************************/ - --oslFileError osl_createDirectory( rtl_uString* ustrDirectoryURL ) -+oslFileError osl_createDirectoryWithMode( rtl_uString* ustrDirectoryURL, sal_uInt64 uAttributes ) - { - char path[PATH_MAX]; - oslFileError eRet; -@@ -865,7 +865,13 @@ - if( eRet != osl_File_E_None ) - return eRet; - -- return osl_psz_createDirectory( path ); -+ return osl_psz_createDirectory( path, uAttributes ); -+} -+ -+/* Broken, insecure, deprecated version */ -+oslFileError osl_createDirectory( rtl_uString* ustrDirectoryURL ) -+{ -+ return osl_createDirectoryWithMode( ustrDirectoryURL, 0xffffffff ); - } - - /****************************************************************************/ -@@ -1383,12 +1389,9 @@ - * osl_psz_setFileAttributes - ************************************/ - --static oslFileError osl_psz_setFileAttributes( const sal_Char* pszFilePath, sal_uInt64 uAttributes ) -+static int osl_getNativeMode( sal_uInt64 uAttributes ) - { -- oslFileError osl_error = osl_File_E_None; -- mode_t nNewMode = 0; -- -- OSL_ENSURE(!(osl_File_Attribute_Hidden & uAttributes), "osl_File_Attribute_Hidden doesn't work under Unix"); -+ mode_t nNewMode = 0; - - if (uAttributes & osl_File_Attribute_OwnRead) - nNewMode |= S_IRUSR; -@@ -1417,7 +1420,17 @@ - if (uAttributes & osl_File_Attribute_OthExe) - nNewMode|=S_IXOTH; - -- if (chmod(pszFilePath, nNewMode) < 0) -+ -+ return nNewMode; -+} -+ -+static oslFileError osl_psz_setFileAttributes( const sal_Char* pszFilePath, sal_uInt64 uAttributes ) -+{ -+ oslFileError osl_error = osl_File_E_None; -+ -+ OSL_ENSURE(!(osl_File_Attribute_Hidden & uAttributes), "osl_File_Attribute_Hidden doesn't work under Unix"); -+ -+ if (chmod(pszFilePath, osl_getNativeMode( uAttributes )) < 0) - osl_error = oslTranslateFileError(OSL_FET_ERROR, errno); - - return osl_error; -@@ -1543,13 +1558,12 @@ - * osl_psz_createDirectory - ****************************************/ - --static oslFileError osl_psz_createDirectory( const sal_Char* pszPath ) -+static oslFileError osl_psz_createDirectory( const sal_Char* pszPath, sal_uInt64 uAttributes ) - { - int nRet=0; -- int mode = S_IRWXU | S_IRWXG | S_IRWXO; - -- nRet = mkdir(pszPath,mode); -+ nRet = mkdir(pszPath, osl_getNativeMode( uAttributes )); - - if ( nRet < 0 ) - { - nRet=errno; -Index: unotools/source/ucbhelper/tempfile.cxx -=================================================================== -RCS file: /cvs/util/unotools/source/ucbhelper/tempfile.cxx,v -retrieving revision 1.14 -diff -u -r1.14 tempfile.cxx ---- ../unotools/source/ucbhelper/tempfile.cxx 9 Sep 2002 10:25:47 -0000 1.14 -+++ ../unotools/source/ucbhelper/tempfile.cxx 30 Aug 2004 14:00:58 -0000 -@@ -125,7 +125,10 @@ - return sal_True; - - // try to create the directory -- nError = osl::Directory::create( aPath ); -+ nError = osl::Directory::createWithMode( aPath, -+ osl_File_Attribute_OwnWrite | -+ osl_File_Attribute_OwnRead | -+ osl_File_Attribute_OwnExe ); - sal_Bool bSuccess = ( nError == osl::File::E_None || nError == osl::FileBase::E_EXIST ); - if( !bSuccess ) - { -@@ -139,7 +142,10 @@ - if ( bSuccess ) - { - // Parent directory exists, retry creation of directory -- nError = osl::Directory::create( aPath ); -+ nError = osl::Directory::createWithMode( aPath, -+ osl_File_Attribute_OwnWrite | -+ osl_File_Attribute_OwnRead | -+ osl_File_Attribute_OwnExe ); - bSuccess =( nError == osl::File::E_None || nError == osl::FileBase::E_EXIST ); - } - } -@@ -222,7 +228,10 @@ - - if ( bDir ) - { -- FileBase::RC err = Directory::create( aTmp ); -+ FileBase::RC err = Directory::createWithMode( aTmp, -+ osl_File_Attribute_OwnWrite | -+ osl_File_Attribute_OwnRead | -+ osl_File_Attribute_OwnExe ); - if ( err == FileBase::E_None ) - { - // !bKeep: only for creating a name, not a file or directory -@@ -305,7 +314,10 @@ - aTmp += String::CreateFromAscii( ".tmp" ); - if ( bDirectory ) - { -- FileBase::RC err = Directory::create( aTmp ); -+ FileBase::RC err = osl::Directory::createWithMode( aTmp, -+ osl_File_Attribute_OwnWrite | -+ osl_File_Attribute_OwnRead | -+ osl_File_Attribute_OwnExe ); - if ( err == FileBase::E_None ) - { - pImp->aName = aTmp; -@@ -401,7 +413,10 @@ - - // try to create the directory - sal_Bool bRet = sal_False; -- osl::FileBase::RC err = osl::Directory::create( aUnqPath ); -+ osl::FileBase::RC err = osl::Directory::createWithMode( aUnqPath, -+ osl_File_Attribute_OwnWrite | -+ osl_File_Attribute_OwnRead | -+ osl_File_Attribute_OwnExe ); - if ( err != FileBase::E_None && err != FileBase::E_EXIST ) - // perhaps parent(s) don't exist - bRet = ensuredir( aUnqPath ); diff --git a/editors/openoffice-1.1/files/patch-sfx2+source+config+cfgmgr.cxx b/editors/openoffice-1.1/files/patch-sfx2+source+config+cfgmgr.cxx index be38de290a51..420c61cc7b7b 100644 --- a/editors/openoffice-1.1/files/patch-sfx2+source+config+cfgmgr.cxx +++ b/editors/openoffice-1.1/files/patch-sfx2+source+config+cfgmgr.cxx @@ -1,8 +1,8 @@ -Wired bug? +Weird bug? http://qa.openoffice.org/issues/show_bug.cgi?id=22253 ---- ../sfx2/source/config/cfgmgr.cxx.org Fri Nov 7 19:11:25 2003 -+++ ../sfx2/source/config/cfgmgr.cxx Fri Nov 7 19:30:26 2003 +--- sfx2/source/config/cfgmgr.cxx.org Fri Nov 7 19:11:25 2003 ++++ sfx2/source/config/cfgmgr.cxx Fri Nov 7 19:30:26 2003 @@ -118,6 +118,10 @@ catch(com::sun::star::ucb::InteractiveAugmentedIOException&) { diff --git a/editors/openoffice-1.1/files/patch-shell+source+unix+sysshell+recently_used_file_handler.cxx b/editors/openoffice-1.1/files/patch-shell+source+unix+sysshell+recently_used_file_handler.cxx index c07cab2ab7e8..196084c1657b 100644 --- a/editors/openoffice-1.1/files/patch-shell+source+unix+sysshell+recently_used_file_handler.cxx +++ b/editors/openoffice-1.1/files/patch-shell+source+unix+sysshell+recently_used_file_handler.cxx @@ -1,5 +1,5 @@ ---- ../shell/source/unix/sysshell/recently_used_file_handler.cxx.orig Tue Jan 13 00:56:37 2004 -+++ ../shell/source/unix/sysshell/recently_used_file_handler.cxx Tue Jan 13 00:57:26 2004 +--- shell/source/unix/sysshell/recently_used_file_handler.cxx.orig Tue Jan 13 00:56:37 2004 ++++ shell/source/unix/sysshell/recently_used_file_handler.cxx Tue Jan 13 00:57:26 2004 @@ -188,9 +188,12 @@ write_xml_start_tag(TAG_RECENT_ITEM, file, true); write_xml_tag(TAG_URI, uri_, file); diff --git a/editors/openoffice-1.1/files/patch-solenv+bin+addsym.awk b/editors/openoffice-1.1/files/patch-solenv+bin+addsym.awk deleted file mode 100644 index 996e282b350b..000000000000 --- a/editors/openoffice-1.1/files/patch-solenv+bin+addsym.awk +++ /dev/null @@ -1,16 +0,0 @@ ---- ../solenv/bin/addsym.awk.orig Tue Mar 11 15:11:44 2003 -+++ ../solenv/bin/addsym.awk Tue Mar 11 15:13:19 2003 -@@ -72,11 +72,11 @@ - END { - if (state == 0) { - print "# Weak RTTI symbols for C++ exceptions:" -- print "UDK_3_0_0 { global: _ZTI*; _ZTS*; };" -+ print "UDK_3_0_0 { global: _ZTI*; _ZTS*; GetVersionInfo;};" - } - } - state == 2 { -- print " _ZTI*; _ZTS*; # weak RTTI symbols for C++ exceptions" -+ print " _ZTI*; _ZTS*; GetVersionInfo;# weak RTTI symbols for C++ exceptions" - state = 3 - } - /^[\t ]*UDK_3_0_0[\t ]*{/ { state = 1 } diff --git a/editors/openoffice-1.1/files/patch-svx_setLogicRectHack b/editors/openoffice-1.1/files/patch-svx_setLogicRectHack index 035db5e5e21c..e8c2725e58ab 100644 --- a/editors/openoffice-1.1/files/patch-svx_setLogicRectHack +++ b/editors/openoffice-1.1/files/patch-svx_setLogicRectHack @@ -1,5 +1,6 @@ ---- ../svx/source/unodraw/unoshape.cxx 4 Feb 2004 13:21:23 -0000 1.109 -+++ ../svx/source/unodraw/unoshape.cxx 20 Feb 2004 00:43:50 -0000 +#i9462# +--- svx/source/unodraw/unoshape.cxx.orig 4 Feb 2004 13:21:23 -0000 1.109 ++++ svx/source/unodraw/unoshape.cxx 20 Feb 2004 00:43:50 -0000 @@ -1067,8 +1067,10 @@ // XShape diff --git a/editors/openoffice-1.1/files/patch-tools+source+string+tstring.cxx b/editors/openoffice-1.1/files/patch-tools+source+string+tstring.cxx deleted file mode 100644 index 43a78f4c538b..000000000000 --- a/editors/openoffice-1.1/files/patch-tools+source+string+tstring.cxx +++ /dev/null @@ -1,22 +0,0 @@ ---- ../tools/source/string/tstring.cxx.orig Thu Mar 27 18:04:53 2003 -+++ ../tools/source/string/tstring.cxx Sat May 31 23:04:05 2003 -@@ -103,6 +103,9 @@ - xub_StrLen ImplStringLen( const sal_Char* pStr ) - { - const sal_Char* pTempStr = pStr; -+ -+ if (pStr == NULL) -+ return(0); - while( *pTempStr ) - ++pTempStr; - return (xub_StrLen)(pTempStr-pStr); -@@ -113,6 +116,9 @@ - xub_StrLen ImplStringLen( const sal_Unicode* pStr ) - { - const sal_Unicode* pTempStr = pStr; -+ -+ if (pStr == NULL) -+ return(0); - while( *pTempStr ) - ++pTempStr; - return (xub_StrLen)(pTempStr-pStr); diff --git a/editors/openoffice-1.1/files/patch-translation_limit_64k b/editors/openoffice-1.1/files/patch-translation_limit_64k new file mode 100644 index 000000000000..ce15548f052b --- /dev/null +++ b/editors/openoffice-1.1/files/patch-translation_limit_64k @@ -0,0 +1,121 @@ +#iZ 33228# +#iZ 34210# + +Index: inc/sc.hrc +=================================================================== +RCS file: /cvs/sc/sc/inc/sc.hrc,v +retrieving revision 1.35 +retrieving revision 1.35.288.2 +diff -u -r1.35 -r1.35.288.2 +--- sc/inc/sc.hrc 3 Dec 2002 15:26:06 -0000 1.35 ++++ sc/inc/sc.hrc 17 Sep 2004 14:25:38 -0000 1.35.288.2 +@@ -1141,8 +1141,12 @@ + #define RID_TBXCTL_INSOBJ (SC_RESOURCE_START+40) + #define RID_BMP_REFBTN1 (SC_RESOURCE_START+41) + #define RID_BMP_REFBTN2 (SC_RESOURCE_START+42) +-#define RID_SC_FUNCTION_DESCRIPTIONS1 (SC_RESOURCE_START+43) +-#define RID_SC_FUNCTION_DESCRIPTIONS2 (SC_RESOURCE_START+44) ++// #i34210# split function resources due to 64k limit, don't reuse old values ++// to have obviously empty function lists in case some localisation used the ++// old values for any reason. Don't even reuse the exact name because of the ++// translation database IDs. ++//#define RID_SC_FUNCTION_DESCRIPTIONS1 (SC_RESOURCE_START+43) ++//#define RID_SC_FUNCTION_DESCRIPTIONS2 (SC_RESOURCE_START+44) + #define RID_POPUP_CONTROL (SC_RESOURCE_START+45) + #define RID_POPUP_PAGEBREAK (SC_RESOURCE_START+46) + #define RID_OBJECTBAR_DRAWFORM (SC_RESOURCE_START+47) +@@ -1158,6 +1162,10 @@ + #define RID_IMAGELIST_H_NAVCONT (SC_RESOURCE_START+57) + #define RID_OUTLINEBITMAPS_H (SC_RESOURCE_START+58) + #define RID_OBJECTMENU_EDIT (SC_RESOURCE_START+59) ++#define RID_SC_FUNCTION_DESCRIPTIONS_1 (SC_RESOURCE_START+60) ++#define RID_SC_FUNCTION_DESCRIPTIONS_2 (SC_RESOURCE_START+61) ++#define RID_SC_FUNCTION_DESCRIPTIONS_3 (SC_RESOURCE_START+62) ++#define RID_SC_FUNCTION_DESCRIPTIONS_4 (SC_RESOURCE_START+63) + + #define STR_START (SC_RESOURCE_START+100) + #define STR_ROWHEIGHT (STR_START) +Index: source/core/data/global.cxx +=================================================================== +RCS file: /cvs/sc/sc/source/core/data/global.cxx,v +retrieving revision 1.31 +retrieving revision 1.31.166.2 +diff -u -r1.31 -r1.31.166.2 +--- sc/source/core/data/global.cxx 17 Apr 2003 09:54:45 -0000 1.31 ++++ sc/source/core/data/global.cxx 17 Sep 2004 14:25:38 -0000 1.31.166.2 +@@ -1475,10 +1475,12 @@ + USHORT i,j; + USHORT nDescBlock[] = + { +- RID_SC_FUNCTION_DESCRIPTIONS1, +- RID_SC_FUNCTION_DESCRIPTIONS2 ++ RID_SC_FUNCTION_DESCRIPTIONS_1, ++ RID_SC_FUNCTION_DESCRIPTIONS_2, ++ RID_SC_FUNCTION_DESCRIPTIONS_3, ++ RID_SC_FUNCTION_DESCRIPTIONS_4 + }; +- const USHORT nBlocks = sizeof(nDescBlock) / sizeof(USHORT); ++ const USHORT nBlocks = sizeof(nDescBlock) / sizeof(nDescBlock[0]); + + aFunctionList.Clear(); + +Index: source/ui/src/scfuncs.src +=================================================================== +RCS file: /cvs/sc/sc/source/ui/src/scfuncs.src,v +retrieving revision 1.76.22.8 +retrieving revision 1.76.22.8.4.2 +diff -u -r1.76.22.8 -r1.76.22.8.4.2 +--- sc/source/ui/src/scfuncs.src 10 Sep 2004 14:45:52 -0000 1.76.22.8 ++++ sc/source/ui/src/scfuncs.src 17 Sep 2004 14:25:39 -0000 1.76.22.8.4.2 +@@ -93,10 +93,16 @@ + // RID_SC_FUNCTION_DESCRIPTIONS1 + // RID_SC_FUNCTION_DESCRIPTIONS2 + ++ // #i34210# again splitted resources due to 64k limit ++ // RID_SC_FUNCTION_DESCRIPTIONS_1 ++ // RID_SC_FUNCTION_DESCRIPTIONS_2 ++ // RID_SC_FUNCTION_DESCRIPTIONS_3 ++ // RID_SC_FUNCTION_DESCRIPTIONS_4 ++ + #include "scfuncs.hrc" // ID_FUNCTION_GRP_XXX, HID_FUNC_XXX + #include "compiler.hrc" // SC_OPCODE_XXX + +-Resource RID_SC_FUNCTION_DESCRIPTIONS1 ++Resource RID_SC_FUNCTION_DESCRIPTIONS_1 + { + // -=*# Resource for function DBANZAHL #*=- + Resource SC_OPCODE_DB_COUNT +@@ -15963,6 +15969,11 @@ + Text[ galician ] = "Valor 1; Valor 2;... son de 1 a 30 argumentos que representan os pagamentos e ingresos."; + }; + }; ++}; ++ ++ ++Resource RID_SC_FUNCTION_DESCRIPTIONS_2 ++{ + // -=*# Resource for function IKV #*=- + Resource SC_OPCODE_IKV + { +@@ -32174,7 +32185,8 @@ + }; + }; + +-Resource RID_SC_FUNCTION_DESCRIPTIONS2 ++ ++Resource RID_SC_FUNCTION_DESCRIPTIONS_3 + { + // -=*# Resource for function DBANZAHL2 #*=- + // -=*# Resource for function HÄUFIGKEIT #*=- +@@ -49230,6 +49242,11 @@ + Text[ galician ] = "é o n—ãro de graos de liberdade."; + }; + }; ++}; ++ ++ ++Resource RID_SC_FUNCTION_DESCRIPTIONS_4 ++{ + // -=*# Resource for function STANDARDISIERUNG #*=- + Resource SC_OPCODE_STANDARD + { diff --git a/editors/openoffice-1.1/files/patch-unoil+makefile.pmk b/editors/openoffice-1.1/files/patch-unoil+makefile.pmk deleted file mode 100644 index 7febdabf7b4b..000000000000 --- a/editors/openoffice-1.1/files/patch-unoil+makefile.pmk +++ /dev/null @@ -1,13 +0,0 @@ ---- ../unoil/makefile.pmk.orig Fri Aug 31 18:04:43 2001 -+++ ../unoil/makefile.pmk Thu Sep 12 12:17:50 2002 -@@ -74,8 +74,8 @@ - JAVAFILESLIST := $(shell +cd $(GENJAVADIR)$/$(PACKAGE) $(COMMANDSEPARATOR) ls *.java) - .ENDIF # "$(L10N_framework)"=="" - --GENJAVAFILES := $(foreach,i,$(JAVAFILESLIST) $(GENJAVADIR)$/$(PACKAGE)$/$i) --GENCLASSFILES := $(foreach,i,$(JAVAFILESLIST:b) $(GENCLASSDIR)$/$(PACKAGE)$/$i.class) -+GENJAVAFILES += $(foreach,i,$(JAVAFILESLIST) $(GENJAVADIR)$/$(PACKAGE)$/$i) -+GENCLASSFILES += $(foreach,i,$(JAVAFILESLIST:b) $(GENCLASSDIR)$/$(PACKAGE)$/$i.class) - - # --- Targets ------------------------------------------------------ - |