diff options
author | maho <maho@FreeBSD.org> | 2005-10-31 16:01:25 +0800 |
---|---|---|
committer | maho <maho@FreeBSD.org> | 2005-10-31 16:01:25 +0800 |
commit | 7eda32b20143582b13a5d587d6837b7ef7034279 (patch) | |
tree | 9372dba742517d348f08506f6d210e1ab0c2997e /editors | |
parent | 63a4d576cf8c7b955b88b032941c6d04a1d43893 (diff) | |
download | freebsd-ports-gnome-7eda32b20143582b13a5d587d6837b7ef7034279.tar.gz freebsd-ports-gnome-7eda32b20143582b13a5d587d6837b7ef7034279.tar.zst freebsd-ports-gnome-7eda32b20143582b13a5d587d6837b7ef7034279.zip |
Update to m136
o cosmetic changes, fix typos
o use libart instead of GPC[1]
o remove BROKEN for old FreeBSDs, IMHO this is too strict.
o build crashreport
Implicitly suggested by: "Mikhail T." <mi@aldan.algebra.com>[1]
Diffstat (limited to 'editors')
95 files changed, 3894 insertions, 224 deletions
diff --git a/editors/openoffice-3-devel/Makefile b/editors/openoffice-3-devel/Makefile index fcddd167f4e6..682aa73aac89 100644 --- a/editors/openoffice-3-devel/Makefile +++ b/editors/openoffice-3-devel/Makefile @@ -13,7 +13,10 @@ MASTER_SITES+= http://openoffice.lunarshells.com/sources/ \ ftp://ftp.cs.man.ac.uk/pub/toby/gpc/:gpc \ ${MASTER_SITE_MOZILLA:S/$/:mozsrc/} MASTER_SITE_SUBDIR= mozilla/releases/mozilla${MOZILLA_VERSION}/source/:mozsrc -DISTFILES+= OOo_${RELEASE_NR}m${MILESTONE}_source.tar.bz2 gpc231.tar.Z:gpc +DISTFILES+= OOo_${RELEASE_NR}m${MILESTONE}_source.tar.bz2 +.if defined(WITH_GPC) +DISTFILES+= gpc231.tar.Z:gpc +.endif EXTRACT_ONLY= OOo_${RELEASE_NR}m${MILESTONE}_source.tar.bz2 MAINTAINER= openoffice@FreeBSD.org @@ -50,17 +53,14 @@ JAVA_VENDOR= bsdjava .include <bsd.port.pre.mk> .include <${FILESDIR}/Makefile.localized> -.if (${OSVERSION} < 503001 && ${OSVERSION} >= 500000) || (${OSVERSION} <= 492000) -BROKEN= "rtld depends on _end symbol. type make -DTRYBROKEN to see how to upgrade your rtld" -.endif .if ${PERL_LEVEL} < 500600 IGNORE= Install lang/perl5.8 then try again .endif CODELINE= 680 -RELEASE_NR= 1.9 -MILESTONE= 134 -SNAPDATE= 20051014 +RELEASE_NR= 2.0 +MILESTONE= 136 +SNAPDATE= 20051026 INSTALLATION_BASEDIR= openoffice.org${RELEASE_NR}m${MILESTONE} EXECBASE= openoffice.org-${RELEASE_NR}m${MILESTONE} DIST_SUBDIR= openoffice.org2.0 @@ -117,7 +117,9 @@ BUILD_DEPENDS+= ${ANT}:${PORTSDIR}/devel/apache-ant LIB_DEPENDS+= xslt.2:${PORTSDIR}/textproc/libxslt LIB_DEPENDS+= xml2.5:${PORTSDIR}/textproc/libxml2 .endif - +.if !defined(WITH_GPC) +LIB_DEPENDS= art_lgpl_2:${PORTSDIR}/graphics/libart_lgpl2 +.endif GNU_CONFIGURE= yes WRKSRC= ${WRKDIR} CONFIGURE_WRKSRC= ${WRKSRC}/config_office @@ -127,7 +129,7 @@ TCSH?= /bin/tcsh PKGMESSAGE= ${WRKDIR}/pkg-message NUMOFPROCESSES?= 1 -CONFIGURE_ARGS+= --with-gnu-cp=${LOCALBASE}/bin/gcp --with-gnu-patch=${LOCALBASE}/bin/gpatch --with-epm=internal --with-system-freetype +CONFIGURE_ARGS+= --with-gnu-cp=${LOCALBASE}/bin/gcp --with-gnu-patch=${LOCALBASE}/bin/gpatch --with-epm=internal --with-system-freetype --enable-crashdump=yes --enable-symbols=SMALL .include <${FILESDIR}/Makefile.knobs> @@ -155,9 +157,11 @@ post-extract: .if (${OSVERSION} <= 492000) @cd ${WRKSRC} ; ${PATCH} < ${FILESDIR}/fbsd4-workaroundpatch .endif +.if defined(WITH_GPC) @cd ${WRKDIR} ; ${CAT} ${DISTDIR}/${DIST_SUBDIR}/gpc231.tar.Z | ${TAR} xfz - @${CP} ${WRKDIR}/gpc231/gpc.c ${WRKSRC}/external/gpc/ @${CP} ${WRKDIR}/gpc231/gpc.h ${WRKSRC}/external/gpc/ +.endif .if !defined(WITHOUT_MOZILLA) @${CP} ${DISTDIR}/${DIST_SUBDIR}/${MOZILLA_SOURCE} ${WRKSRC}/moz/download .endif @@ -201,11 +205,6 @@ post-install: @${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-simpress @${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-spadmin @${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-swriter -# python post-install script start -# consult instsetoo_native/inc_openoffice/unix/shellscripts_pyuno.txt - @cd ${PREFIX}/${INSTALLATION_BASEDIR}/program ; ${LN} -s python-core-2.3.4 ${PREFIX}/${INSTALLATION_BASEDIR}/program/python-core; ${LN} -s python.sh ${PREFIX}/${INSTALLATION_BASEDIR}/program/python - ${CHMOD} +x ${PREFIX}/${INSTALLATION_BASEDIR}/program/python-core-2.3.4/bin/python -# python post-install script end @${PRINTF} "bin/openoffice.org\n" > ${TMPPLIST} @cd ${PREFIX} ; ${FIND} -s bin -type f | ${GREP} ${EXECBASE} >> ${TMPPLIST} @cd ${PREFIX} ; ${FIND} -s bin -type l | ${GREP} ${EXECBASE} >> ${TMPPLIST} diff --git a/editors/openoffice-3-devel/distinfo b/editors/openoffice-3-devel/distinfo index d197cee91002..58d929a8df0a 100644 --- a/editors/openoffice-3-devel/distinfo +++ b/editors/openoffice-3-devel/distinfo @@ -1,5 +1,5 @@ -MD5 (openoffice.org2.0/OOo_1.9m134_source.tar.bz2) = ee2bb0be1307e1edea82969dcec794b0 -SIZE (openoffice.org2.0/OOo_1.9m134_source.tar.bz2) = 228972679 +MD5 (openoffice.org2.0/OOo_2.0m136_source.tar.bz2) = 838779d94d677b29060ce58b2da723ac +SIZE (openoffice.org2.0/OOo_2.0m136_source.tar.bz2) = 230644111 MD5 (openoffice.org2.0/gpc231.tar.Z) = fdb06fdb5a4670b172f9fb738b717be9 SIZE (openoffice.org2.0/gpc231.tar.Z) = 27917 MD5 (openoffice.org2.0/mozilla-source-1.7.5.tar.gz) = d3f3528b6c5eade402ed058207cffa14 diff --git a/editors/openoffice-3-devel/files/Makefile.knobs b/editors/openoffice-3-devel/files/Makefile.knobs index 366ae60ba851..1f3ae9cce1a4 100644 --- a/editors/openoffice-3-devel/files/Makefile.knobs +++ b/editors/openoffice-3-devel/files/Makefile.knobs @@ -12,6 +12,10 @@ CONFIGURE_ARGS+= --with-java=gij --with-ant-home=${LOCALBASE}/ant CONFIGURE_ARGS+= --without-java .endif +.if !defined(WITH_GPC) +CONFIGURE_ARGS+= --enable-libart +.endif + .if defined(WITH_KDE) CONFIGURE_ARGS+= --enable-kde QTDIR="${QT_PREFIX}" .endif @@ -114,6 +118,11 @@ pre-fetch: @${ECHO} "You can compile OOo to use Qt/KDE vclplug with" @${ECHO} "make -DWITH_KDE" .endif +.if !defined(WITH_GPC) + @${ECHO} + @${ECHO} "You can compile OOo with gpc instead of libart by" + @${ECHO} "make -DWITH_GPC" +.endif @${ECHO} @${ECHO} "NOTICE:" @${ECHO} diff --git a/editors/openoffice-3-devel/files/generate.pl b/editors/openoffice-3-devel/files/generate.pl index f9585f8d0b92..a9ae012d15f4 100644 --- a/editors/openoffice-3-devel/files/generate.pl +++ b/editors/openoffice-3-devel/files/generate.pl @@ -1,5 +1,4 @@ #!/usr/bin/perl - # generate full build shell script for OpenOffice.org # Whom: Maho Nakata <maho@FreeBSD.org> # $FreeBSD$ diff --git a/editors/openoffice-3-devel/files/patch-Python-2.3.4.patch b/editors/openoffice-3-devel/files/patch-Python-2.3.4.patch index 646b69d1385a..41b3577a44c6 100644 --- a/editors/openoffice-3-devel/files/patch-Python-2.3.4.patch +++ b/editors/openoffice-3-devel/files/patch-Python-2.3.4.patch @@ -1,7 +1,7 @@ -Issutracker : #i53287# -CWS : N/A -Author: : <maho@openoffice.org> (JCA) -Description : Support for FreeBSD 6 and 7 +Issuetracker : #i53287# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : Support for FreeBSD 6 and 7 Index: python/Python-2.3.4.patch =================================================================== diff --git a/editors/openoffice-3-devel/files/patch-backtrace b/editors/openoffice-3-devel/files/patch-backtrace new file mode 100644 index 000000000000..523bba02d5e4 --- /dev/null +++ b/editors/openoffice-3-devel/files/patch-backtrace @@ -0,0 +1,95 @@ +Issuetracker : #i56946# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : FreeBSD porting : An implementation of backtrace at sal/osl/unx +To pass the compilation, we had been preparing dummy function at sal. +We implemented this. + +--- sal/osl/unx/backtrace.c Thu Sep 8 23:52:44 2005 ++++ sal/osl/unx/backtrace.c Sun Oct 23 09:19:04 2005 +@@ -129,6 +129,7 @@ + #include <pthread.h> + #include <setjmp.h> + #include <stdio.h> ++#include <stddef.h> + #include "backtrace.h" + + #define FRAME_PTR_OFFSET 1 +@@ -136,11 +137,55 @@ + + int backtrace( void **buffer, int max_frames ) + { +- return 1; ++ struct frame *fp; ++ jmp_buf ctx; ++ int i; ++ /* get stack- and framepointer */ ++ setjmp(ctx); ++ fp = (struct frame*)(((size_t*)(ctx))[FRAME_PTR_OFFSET]); ++ for ( i=0; (i<FRAME_OFFSET) && (fp!=0); i++) ++ fp = fp->fr_savfp; ++ /* iterate through backtrace */ ++ for (i=0; fp && fp->fr_savpc && i<max_frames; i++) ++ { ++ /* store frame */ ++ *(buffer++) = (void *)fp->fr_savpc; ++ /* next frame */ ++ fp=fp->fr_savfp; ++ } ++ return i; + } + + void backtrace_symbols_fd( void **buffer, int size, int fd ) + { ++ FILE *fp = fdopen( fd, "w" ); ++ ++ if ( fp ) ++ { ++ void **pFramePtr; ++ for ( pFramePtr = buffer; size > 0 && pFramePtr && *pFramePtr; pFramePtr++, size-- ) ++ { ++ Dl_info dli; ++ ptrdiff_t offset; ++ ++ if ( 0 != dladdr( *pFramePtr, &dli ) ) ++ { ++ if ( dli.dli_fname && dli.dli_fbase ) ++ { ++ offset = (ptrdiff_t)*pFramePtr - (ptrdiff_t)dli.dli_fbase; ++ fprintf( fp, "%s+0x%x", dli.dli_fname, offset ); ++ } ++ if ( dli.dli_sname && dli.dli_saddr ) ++ { ++ offset = (ptrdiff_t)*pFramePtr - (ptrdiff_t)dli.dli_saddr; ++ fprintf( fp, "(%s+0x%x)", dli.dli_sname, offset ); ++ } ++ } ++ fprintf( fp, "[0x%x]\n", *pFramePtr ); ++ } ++ fflush( fp ); ++ fclose( fp ); ++ } + + } + #endif /* defined FREEBSD */ + +--- sal/osl/unx/backtrace.h Thu Sep 8 23:52:59 2005 ++++ sal/osl/unx/backtrace.h Sun Oct 23 09:19:40 2005 +@@ -46,6 +46,16 @@ + + void backtrace_symbols_fd( void **buffer, int size, int fd ); + ++/* no frame.h on FreeBSD */ ++#if defined FREEBSD ++struct frame { ++ long arg0[8]; ++ long arg1[6]; ++ struct frame *fr_savfp; ++ long fr_savpc; ++}; ++#endif ++ + #ifdef __cplusplus + } /* extern "C" */ + #endif + diff --git a/editors/openoffice-3-devel/files/patch-bridges b/editors/openoffice-3-devel/files/patch-bridges new file mode 100644 index 000000000000..8375332a3e20 --- /dev/null +++ b/editors/openoffice-3-devel/files/patch-bridges @@ -0,0 +1,173 @@ +Issuetracker : #i56947# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : FreeBSD porting : update files at bridges project +catch up version up of bridge project of GNU/Linux + +--- bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx Thu Sep 8 07:20:08 2005 ++++ bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx Wed Oct 26 15:10:05 2005 +@@ -57,7 +57,7 @@ + typelib_TypeDescriptionReference * pReturnTypeRef, // 0 indicates void return + sal_Int32 nParams, typelib_MethodParameter * pParams, + void ** pCallStack, +- sal_Int64 * pRegisterReturn /* space for register return */ ) ++ void * pReturnValue ) + { + // pCallStack: ret, [return ptr], this, params + char * pCppStack = (char *)(pCallStack +1); +@@ -74,7 +74,7 @@ + { + if (bridges::cpp_uno::shared::isSimpleType( pReturnTypeDescr )) + { +- pUnoReturn = pRegisterReturn; // direct way for simple types ++ pUnoReturn = pReturnValue; // direct way for simple types + } + else // complex return via ptr (pCppReturn) + { +@@ -215,7 +215,7 @@ + uno_destructData( pUnoReturn, pReturnTypeDescr, 0 ); + } + // complex return ptr is set to eax +- *(void **)pRegisterReturn = pCppReturn; ++ *static_cast< void ** >(pReturnValue) = pCppReturn; + } + if (pReturnTypeDescr) + { +@@ -228,7 +228,7 @@ + //================================================================================================== + extern "C" void cpp_vtable_call( + int nFunctionIndex, int nVtableOffset, void** pCallStack, +- sal_Int64 nRegReturn ) ++ void * pReturnValue ) + { + OSL_ENSURE( sizeof(sal_Int32)==sizeof(void *), "### unexpected!" ); + +@@ -275,7 +275,7 @@ + pCppI, aMemberDescr.get(), + ((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef, + 0, 0, // no params +- pCallStack, &nRegReturn ); ++ pCallStack, pReturnValue ); + } + else + { +@@ -290,7 +290,7 @@ + pCppI, aMemberDescr.get(), + 0, // indicates void return + 1, &aParam, +- pCallStack, &nRegReturn ); ++ pCallStack, pReturnValue ); + } + break; + } +@@ -324,7 +324,7 @@ + &pInterface, pTD, cpp_acquire ); + pInterface->release(); + TYPELIB_DANGER_RELEASE( pTD ); +- *(void **)&nRegReturn = pCallStack[1]; ++ *static_cast< void ** >(pReturnValue) = pCallStack[1]; + break; + } + TYPELIB_DANGER_RELEASE( pTD ); +@@ -336,7 +336,7 @@ + ((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->pReturnTypeRef, + ((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->nParams, + ((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->pParams, +- pCallStack, &nRegReturn ); ++ pCallStack, pReturnValue ); + } + break; + } +--- bridges/source/cpp_uno/gcc3_freebsd_intel/call.s Wed Jun 1 01:32:41 2005 ++++ bridges/source/cpp_uno/gcc3_freebsd_intel/call.s Wed Oct 26 15:10:04 2005 +@@ -9,12 +9,13 @@ + .LCFIg0: + movl %esp,%ebp + .LCFIg1: +- subl $0x8,%esp # 64bit nRegReturn ++ subl $0x4,%esp # 32bit returnValue ++ pushl %esp # 32bit &returnValue + pushl %ecx # 32bit pCallStack + pushl %edx # 32bit nVtableOffset + pushl %eax # 32bit nFunctionIndex + call cpp_vtable_call +- movl 12(%esp),%eax # 64 bit nRegReturn, lower half ++ movl 16(%esp),%eax # 32bit returnValue + leave + ret + .LFEg: +@@ -29,7 +30,7 @@ + .LCFIv0: + movl %esp,%ebp + .LCFIv1: +- subl $0x8,%esp # 64bit nRegReturn ++ pushl $0 # 32bit null pointer (returnValue not used) + pushl %ecx # 32bit pCallStack + pushl %edx # 32bit nVtableOffset + pushl %eax # 32bit nFunctionIndex +@@ -48,13 +49,14 @@ + .LCFIh0: + movl %esp,%ebp + .LCFIh1: +- subl $0x8,%esp # 64bit nRegReturn ++ subl $0x8,%esp # 64bit returnValue ++ pushl %esp # 32bit &returnValue + pushl %ecx # 32bit pCallStack + pushl %edx # 32bit nVtableOffset + pushl %eax # 32bit nFunctionIndex + call cpp_vtable_call +- movl 12(%esp),%eax # 64 bit nRegReturn, lower half +- movl 16(%esp),%edx # 64 bit nRegReturn, upper half ++ movl 16(%esp),%eax # 64bit returnValue, lower half ++ movl 20(%esp),%edx # 64bit returnValue, upper half + leave + ret + .LFEh: +@@ -69,12 +71,13 @@ + .LCFIf0: + movl %esp,%ebp + .LCFIf1: +- subl $0x8,%esp # 64bit nRegReturn ++ subl $0x4,%esp # 32bit returnValue ++ pushl %esp # 32bit &returnValue + pushl %ecx # 32bit pCallStack + pushl %edx # 32bit nVtableOffset + pushl %eax # 32bit nFunctionIndex + call cpp_vtable_call +- flds 12(%esp) # 64 bit nRegReturn, lower half ++ flds 16(%esp) # 32bit returnValue + leave + ret + .LFEf: +@@ -89,12 +92,13 @@ + .LCFId0: + movl %esp,%ebp + .LCFId1: +- subl $0x8,%esp # 64bit nRegReturn ++ subl $0x8,%esp # 64bit returnValue ++ pushl %esp # 32bit &returnValue + pushl %ecx # 32bit pCallStack + pushl %edx # 32bit nVtableOffset + pushl %eax # 32bit nFunctionIndex + call cpp_vtable_call +- fldl 12(%esp) # 64 bit nRegReturn ++ fldl 16(%esp) # 64bit returnValue + leave + ret + .LFEd: +@@ -109,12 +113,13 @@ + .LCFIc0: + movl %esp,%ebp + .LCFIc1: +- subl $0x8,%esp # 64bit nRegReturn ++ subl $0x4,%esp # 32bit returnValue ++ pushl %esp # 32bit &returnValue + pushl %ecx # 32bit pCallStack + pushl %edx # 32bit nVtableOffset + pushl %eax # 32bit nFunctionIndex + call cpp_vtable_call +- movl 12(%esp),%eax # 64 bit nRegReturn, lower half ++ movl 16(%esp),%eax # 32bit returnValue + leave + ret $4 + .LFEc: diff --git a/editors/openoffice-3-devel/files/patch-config_office+set_soenv.in b/editors/openoffice-3-devel/files/patch-config_office+set_soenv.in index 93e375b46f8e..a06f28849d7a 100644 --- a/editors/openoffice-3-devel/files/patch-config_office+set_soenv.in +++ b/editors/openoffice-3-devel/files/patch-config_office+set_soenv.in @@ -1,4 +1,10 @@ ---- config_office/set_soenv.in~ Thu Sep 22 23:30:56 2005 +Issuetracker : #i56949# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : FreeBSD porting : Add conditional the case of @GCCVER@ >= 30401. +Like GNU/Linux's case, we also need the case for $CVER if @GCCVER@ is equal to or larger than 3.4.1 + +--- config_office/set_soenv.in Thu Sep 22 23:30:56 2005 +++ config_office/set_soenv.in Sat Oct 1 12:59:30 2005 @@ -347,6 +347,9 @@ $JRELIBDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."i386"; diff --git a/editors/openoffice-3-devel/files/patch-epm+epm-3.7.patch b/editors/openoffice-3-devel/files/patch-epm+epm-3.7.patch index 4cc75dc9a25c..2182489d5445 100644 --- a/editors/openoffice-3-devel/files/patch-epm+epm-3.7.patch +++ b/editors/openoffice-3-devel/files/patch-epm+epm-3.7.patch @@ -1,7 +1,7 @@ -Issutracker : #iXXXXX# -CWS : N/A -Author: : <maho@openoffice.org> (JCA) -Description : epm porting for FreeBSD +Issuetracker : #iXXXXX# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : epm porting for FreeBSD o FreeBSD's package manager doesn't allow multiple lines for @exec and @unexec o chown is at /usr/sbin/ diff --git a/editors/openoffice-3-devel/files/patch-icu+icu-2.6.patch b/editors/openoffice-3-devel/files/patch-icu+icu-2.6.patch new file mode 100644 index 000000000000..eb643e9e4a97 --- /dev/null +++ b/editors/openoffice-3-devel/files/patch-icu+icu-2.6.patch @@ -0,0 +1,38 @@ +Issuetracker : #i56952# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : FreeBSD porting : Passing $ORIGIN to linker at icu project +We also want to pass -rpath $ORIGIN to linker as GNU/Linux and/or Solaris's case. + +--- icu/icu-2.6.patch Fri Aug 26 20:43:35 2005 ++++ icu-2.6.patch Mon Oct 24 18:18:45 2005 +@@ -2747,3 +2747,29 @@ + commands = pkg_appendToList(commands, NULL, uprv_strdup(stanza)); + + sprintf(stanza, "@$(RMV) $(TEMP_DIR)/%s", cfile+genFileOffset); ++*** misc/icu/source/config/mh-bsd-gcc Thu May 2 08:48:10 2002 ++--- misc/build/icu/source/config/mh-bsd-gcc Mon Oct 24 18:16:57 2005 ++*************** ++*** 10,21 **** ++--- 10,30 ---- ++ GEN_DEPS.cc= $(CXX) -E -MM $(DEFS) $(CPPFLAGS) ++ ++ ## Flags for position independent code +++ STATICCFLAGS = -fPIC +++ STATICCXXFLAGS = -fPIC +++ STATICCPPFLAGS = -DPIC ++ SHAREDLIBCFLAGS = -fPIC ++ SHAREDLIBCXXFLAGS = -fPIC ++ SHAREDLIBCPPFLAGS = -DPIC ++ ++ ## Compiler switch to embed a runtime search path ++ LD_RPATH= +++ ## Force RPATH=$ORIGIN to locate own dependencies w/o need for LD_LIBRARY_PATH +++ ENABLE_RPATH=YES +++ RPATHLDFLAGS=${LD_RPATH_PRE}'$$ORIGIN' +++ +++ #SH# ENABLE_RPATH=YES +++ #SH# RPATHLDFLAGS="${LD_RPATH_PRE}'$$ORIGIN'" ++ LD_RPATH_PRE= -Wl,-rpath, ++ ++ ## Compiler switch to embed a library name diff --git a/editors/openoffice-3-devel/files/patch-instsetoo b/editors/openoffice-3-devel/files/patch-instsetoo index ccb23c985924..fe7e3b5f3845 100644 --- a/editors/openoffice-3-devel/files/patch-instsetoo +++ b/editors/openoffice-3-devel/files/patch-instsetoo @@ -1,7 +1,7 @@ -Issutracker : #i53288# -CWS : N/A -Author: : <maho@openoffice.org> (JCA) -Description : remove circular dependency +Issuetracker : #i53288# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : remove circular dependency in this case, core01 is depend on core02-core08, and core0[2-9] and core10 diff --git a/editors/openoffice-3-devel/files/patch-jvmfwk+distributions+OpenOfficeorg+makefile.mk b/editors/openoffice-3-devel/files/patch-jvmfwk+distributions+OpenOfficeorg+makefile.mk new file mode 100644 index 000000000000..2c89e95a8cdb --- /dev/null +++ b/editors/openoffice-3-devel/files/patch-jvmfwk+distributions+OpenOfficeorg+makefile.mk @@ -0,0 +1,17 @@ +Issuetracker : #i56951# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : FreeBSD porting : javavendors_linux.xml can be used for FreeBSD as well. +javavendors_linux.xml can be used for FreeBSD as well. + +--- jvmfwk/distributions/OpenOfficeorg/makefile.mk Thu Sep 8 04:26:17 2005 ++++ jvmfwk/distributions/OpenOfficeorg/makefile.mk Sat Oct 22 18:31:16 2005 +@@ -49,7 +49,7 @@ + .IF "$(GUI)"=="UNX" + .IF "$(OS)"=="MACOSX" + +-$(COPY) javavendors_macosx.xml $(BIN)$/javavendors_ooo.xml +-.ELIF "$(OS)"=="LINUX" ++.ELIF "$(OS)"=="LINUX" || "$(OS)"=="FREEBSD" + +-$(COPY) javavendors_linux.xml $(BIN)$/javavendors_ooo.xml + .ELSE + +-$(COPY) javavendors_unx.xml $(BIN)$/javavendors_ooo.xml diff --git a/editors/openoffice-3-devel/files/patch-jvmfwk+plugins+sunmajor+pluginlib+sunversion.cxx b/editors/openoffice-3-devel/files/patch-jvmfwk+plugins+sunmajor+pluginlib+sunversion.cxx new file mode 100644 index 000000000000..c963d013cc07 --- /dev/null +++ b/editors/openoffice-3-devel/files/patch-jvmfwk+plugins+sunmajor+pluginlib+sunversion.cxx @@ -0,0 +1,61 @@ +Issuetracker : #i56953# +CWS : N/A +Author : <maho@openoffice.org> +Description : FreeBSD porting : do not hardcode pXX of Java version and FreeBSD native Java is always superior to Linux's one. + +1. we had been hard coding Java's version by p1, p2 ... etc. but apparently +it is not a good habit. in this patch we eleminate this. + +2. we'd better to use FreeBSD's native Java, and not GNU/Linux's ones if both are exist +in the system. We add 100 as micro version number, so that we treat FreeBSD's version of +java 1.4.1-p10 for example to 1.4.1_110. + +--- jvmfwk/plugins/sunmajor/pluginlib/sunversion.cxx Thu Sep 8 04:31:40 2005 ++++ jvmfwk/plugins/sunmajor/pluginlib/sunversion.cxx Sat Oct 22 18:25:49 2005 +@@ -208,7 +208,16 @@ + return false; + #if defined(FREEBSD) + if (m_preRelease == Rel_FreeBSD) { +- m_nUpdateSpecial = *pCur; ++ pCur++; //elemnate `p' ++ if (pCur < pEnd && isdigit(*pCur)) ++ if (pCur < pEnd) ++ pCur ++; ++ int len = pCur - pLast -1; //elemenate `p' ++ if (len >= 127) ++ return false; ++ strncpy(buf, (pLast+1), len); //elemenate `p' ++ buf[len] = 0; ++ m_nUpdateSpecial = atoi(buf)+100; //hack for FBSD + return true; + } + #endif +@@ -249,27 +258,7 @@ + else if (! strcmp(szRelease, "rc3")) + return Rel_RC3; + #if defined (FREEBSD) +- else if (! strcmp(szRelease, "p1")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p2")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p3")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p4")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p5")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p6")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p7")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p8")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p9")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p10")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p11")) ++ else if (! strncmp(szRelease, "p", 1)) + return Rel_FreeBSD; + #endif + else diff --git a/editors/openoffice-3-devel/files/patch-libxmlsec+makefile.mk b/editors/openoffice-3-devel/files/patch-libxmlsec+makefile.mk new file mode 100644 index 000000000000..5735c62a3298 --- /dev/null +++ b/editors/openoffice-3-devel/files/patch-libxmlsec+makefile.mk @@ -0,0 +1,18 @@ +Issuetracker : #i56954# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : FreeBSD porting : Passing $ORIGIN to linker at libxmlsec project +We also want to pass -rpath $ORIGIN to linker as GNU/Linux and/or Solaris's case. + +--- libxmlsec/makefile.mk.org Tue Oct 25 15:00:10 2005 ++++ libxmlsec/makefile.mk Tue Oct 25 15:00:28 2005 +@@ -89,6 +89,9 @@ + .IF "$(OS)$(COM)"=="SOLARISC52" + LDFLAGS:=-Wl,-R'$$$$ORIGIN' + .ENDIF # "$(OS)$(COM)"=="SOLARISC52" ++.IF "$(OS)$(COM)"=="FREEBSDGCC" ++LDFLAGS:=-Wl,-rpath,'$$$$ORIGIN' ++.ENDIF # "$(OS)$(COM)"=="FREEBSDGCC" + .EXPORT: LDFLAGS + .ENDIF + CONFIGURE_DIR= diff --git a/editors/openoffice-3-devel/files/patch-postprocess+prj+build.lst b/editors/openoffice-3-devel/files/patch-postprocess+prj+build.lst index cc04678794e8..91addd32b2b4 100644 --- a/editors/openoffice-3-devel/files/patch-postprocess+prj+build.lst +++ b/editors/openoffice-3-devel/files/patch-postprocess+prj+build.lst @@ -1,7 +1,7 @@ -Issutracker : #i56070# -CWS : N/A -Author: : <maho@openoffice.org> -Description : some *.desktop files missing on making installsets +Issuetracker : #i56070#, #i56731# +CWS : N/A +Author : <maho@openoffice.org> +Description : some *.desktop files missing on making installsets Index: postprocess/prj/build.lst =================================================================== @@ -12,7 +12,10 @@ diff -u -r1.20 build.lst +++ postprocess/prj/build.lst 16 Oct 2005 08:36:25 -0000 @@ -1,4 +1,4 @@ -po postprocess :: accessibility automation basctl bean BINFILTER:binfilter chart2 configmgr CRASHREP:crashrep dbaccess desktop dtrans embeddedobj embedserv EPM:epm eventattacher extensions extras fileaccess filter forms fpicker helpcontent2 hwpfilter io lingucomponent MATHMLDTD:MathMLDTD MSFONTEXTRACT:msfontextract ODK:odk officecfg package padmin psprint_config remotebridges sc scaddins scp2 scripting sd setup_native slideshow starmath sw testshl testshl2 testtools ucb UnoControls unoxml ure wizards xmlsecurity BITSTREAM_VERA_FONTS:bitstream_vera_fonts DICTIONARIES:dictionaries OOo:pyuno OOo:readlicense_oo SO:top NULL -+po postprocess :: accessibility automation basctl bean BINFILTER:binfilter chart2 configmgr CRASHREP:crashrep dbaccess desktop dtrans embeddedobj embedserv EPM:epm eventattacher extensions extras fileaccess filter forms fpicker helpcontent2 hwpfilter io lingucomponent MATHMLDTD:MathMLDTD MSFONTEXTRACT:msfontextract ODK:odk officecfg package padmin psprint_config remotebridges sc scaddins scp2 scripting sd setup_native slideshow starmath sw sysui testshl testshl2 testtools ucb UnoControls unoxml ure wizards xmlsecurity BITSTREAM_VERA_FONTS:bitstream_vera_fonts DICTIONARIES:dictionaries OOo:pyuno OOo:readlicense_oo SO:top NULL ++po postprocess :: accessibility automation basctl bean BINFILTER:binfilter chart2 configmgr CRASHREP:crashrep dbaccess desktop dtrans embeddedobj embedserv EPM:epm eventattacher extensions extras fileaccess filter forms fpicker helpcontent2 hwpfilter io lingucomponent MATHMLDTD:MathMLDTD MSFONTEXTRACT:msfontextract ODK:odk officecfg package padmin psprint_config remotebridges sc scaddins scp2 scripting sd setup_native slideshow starmath sw sysui testshl testshl2 testtools ucb UnoControls unoxml ure wizards xmlsecurity BITSTREAM_VERA_FONTS:bitstream_vera_fonts xmerge DICTIONARIES:dictionaries OOo:pyuno OOo:readlicense_oo SO:top NULL po postprocess usr1 - all po_mkout NULL po postprocess\checkxml nmake - all po_checkxml NULL po postprocess\packconfig nmake - all po_packconfig po_checkxml NULL + + + diff --git a/editors/openoffice-3-devel/files/patch-pythonlink b/editors/openoffice-3-devel/files/patch-pythonlink new file mode 100644 index 000000000000..779d21c95f44 --- /dev/null +++ b/editors/openoffice-3-devel/files/patch-pythonlink @@ -0,0 +1,312 @@ +Issuetracker : #i56955# +CWS : N/A +Author : <maho@openoffice.org> +Description : Remove instsetoo_native/inc_openoffice/unix/shellscripts_pyuno.txt + +It is desirable to prepare minimal shellscripts as far as possible at +installation part, and possibly, no shellscripts. However, +unfortunately three things had done at shellscripts_pyuno.txt. + +1. symlink to python.sh -> python +2. chmod +x program/python-core-2.3.4/bin/python +3. symlink to python-core-2.3.4 -> python-core + +solution + +0. apply following patch. full build confirmed for SRC680_m134, FreeBSD 5.4-RELEASE. +1. Done in scp2 project: prepare scp2/source/python/shortcut_python.scp and scp2/util/makefile.mk, +and make a symlink to python.sh -> python. +(3. is impossible to solve in this way since we only have python-core-2.3.4.zip in files in scp2.) +2. Do not use program/python-core-2.3.4/bin/python, use program/python.bin instead. python.sh +now executes program/python.bin. this is usual way; see e.g., spadmin etc. +3. change from symlinking python-core-2.3.4->python-core +to adding version number (by replacing by sed) to python.sh which invoke python in OOo, +and we don't have to make a symlink. + +suggestion (and not yet done): + +4. we can also remove symlink from python.sh to python and +rename python.sh to python. apparently intermidiate python.sh is unnecessary. +currently: python -> python.sh -> python.bin +suggested: python -> python.bin +delivering a shell script python can harm since we have python binary from python project +as well. but this is safe since python (shell script) and python.bin are delivered, +at the same time. + +--- scp2/source/python/makefile.mk Fri Sep 9 10:43:01 2005 ++++ scp2/source/python/makefile.mk Wed Oct 26 17:12:52 2005 +@@ -60,7 +60,8 @@ + PARFILES=\ + module_python.par \ + profileitem_python.par \ +- file_python.par ++ file_python.par \ ++ shortcut_python.par + + ULFFILES= \ + module_python.ulf + +--- scp2/util/makefile.mk Fri Sep 9 10:52:09 2005 ++++ scp2/util/makefile.mk Thu Oct 27 07:25:25 2005 +@@ -87,7 +87,8 @@ + file_xsltfilter.par \ + module_python.par \ + file_python.par \ +- profileitem_python.par ++ profileitem_python.par \ ++ shortcut_python.par + + .IF "$(SOLAR_JAVA)"!="" + SCP1FILES += \ + +--- /dev/null Thu Oct 27 09:59:37 2005 ++++ scp2/source/python/shortcut_python.scp Thu Oct 27 09:59:19 2005 +@@ -0,0 +1,49 @@ ++/************************************************************************* ++ * ++ * OpenOffice.org - a multi-platform office productivity suite ++ * ++ * $RCSfile: shortcut_python.scp,v $ ++ * ++ * $Revision: 1.20 $ ++ * ++ * last change: $Author: rt $ $Date: 2005/09/09 01:42:03 $ ++ * ++ * The Contents of this file are made available subject to ++ * the terms of GNU Lesser General Public License Version 2.1. ++ * ++ * ++ * GNU Lesser General Public License Version 2.1 ++ * ============================================= ++ * Copyright 2005 by Sun Microsystems, Inc. ++ * 901 San Antonio Road, Palo Alto, CA 94303, USA ++ * ++ * This library is free software; you can redistribute it and/or ++ * modify it under the terms of the GNU Lesser General Public ++ * License version 2.1, as published by the Free Software Foundation. ++ * ++ * This library is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ * Lesser General Public License for more details. ++ * ++ * You should have received a copy of the GNU Lesser General Public ++ * License along with this library; if not, write to the Free Software ++ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, ++ * MA 02111-1307 USA ++ * ++ ************************************************************************/ ++ ++#include "macros.inc" ++ ++#ifndef SYSTEM_PYTHON ++#ifdef UNX ++ ++Shortcut gid_Shortcut_Python_Sh ++ FileID = gid_File_Python_Sh; ++ Dir = gid_Dir_Program; ++ Name = "python"; ++ Styles = (RELATIVE); ++End ++ ++#endif ++#endif + +--- instsetoo_native/inc_openoffice/unix/shellscripts_pyuno.txt Thu Aug 18 17:11:29 2005 ++++ /dev/null Wed Oct 26 09:51:22 2005 +@@ -1,74 +0,0 @@ +-%preinstall << END +-# echo Command before installing +-exit 0 +-END +- +-%postinstall << END +-# echo Command after installing +-# searching for the PRODUCTINSTALLLOCATION for the different platforms +-platform=`uname -s` +-case $$platform in +-SunOS) +- PRODUCTINSTALLLOCATION="$$BASEDIR" +- ;; +-Linux) +- PRODUCTINSTALLLOCATION="$$RPM_INSTALL_PREFIX" +- ;; +-*) +- PRODUCTINSTALLLOCATION="$$BASEDIR" +- ;; +-esac +- +-if [ -d $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python-core-2.3.4 ] +-then +- ln -s python-core-2.3.4 $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python-core >/dev/null 2>&1 +-fi +- +-if [ -f $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python.sh ] +-then +- ln -s python.sh $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python >/dev/null 2>&1 +-fi +- +-if [ -f $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python-core-2.3.4/bin/python ] +-then +- chmod +x $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python-core-2.3.4/bin/python +-fi +- +-exit 0 +-END +- +-%preremove << END +-# echo Command before removing +-exit 0 +-END +- +-%postremove << END +-# echo Command after removing +- +-# searching for the PRODUCTINSTALLLOCATION for the different platforms +-platform=`uname -s` +-case $$platform in +-SunOS) +- PRODUCTINSTALLLOCATION="$$BASEDIR" +- ;; +-Linux) +- PRODUCTINSTALLLOCATION="$$RPM_INSTALL_PREFIX" +- ;; +-*) +- PRODUCTINSTALLLOCATION="$$BASEDIR" +- ;; +-esac +- +-if [ -h $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python-core ] +-then +- rm -f $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python-core >/dev/null 2>&1 +-fi +- +-if [ -h $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python ] +-then +- rm -f $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python >/dev/null 2>&1 +-fi +- +- +-exit 0 +-END +--- instsetoo_native/inc_openoffice/unix/packagelist.txt Wed Oct 26 17:34:58 2005 ++++ instsetoo_native/inc_openoffice/unix/packagelist.txt Thu Oct 27 06:25:32 2005 +@@ -233,7 +233,6 @@ + + Start + module = "gid_Module_Optional_Pyuno" +-script = "shellscripts_pyuno.txt" + solarispackagename = "openofficeorg-pyuno" + solarisrequires = "openofficeorg-core01" + packagename = "openoffice.org-pyuno" + + +--- pyuno/zipcore/python.sh Fri Sep 9 01:55:24 2005 ++++ pyuno/zipcore/python.sh Thu Oct 27 14:48:08 2005 +@@ -101,14 +101,14 @@ + ;; + esac + +-PYTHONPATH="$sd_prog":"$sd_prog/python-core/lib":"$sd_prog/python-core/lib/lib-dynload":"$sd_prog/python-core/lib/lib-tk":"$PYTHONPATH" ++PYTHONPATH="$sd_prog":"$sd_prog/python-core-%%PYVERSION%%/lib":"$sd_prog/python-core-%%PYVERSION%%/lib/lib-dynload":"$sd_prog/python-core-%%PYVERSION%%/lib/lib-tk":"$PYTHONPATH" + export PYTHONPATH + +-PYTHONHOME="$sd_prog"/python-core ++PYTHONHOME="$sd_prog"/python-core-%%PYVERSION%% + export PYTHONHOME + + # set path so that other apps can be started from soffice just by name + PATH="$sd_prog":$PATH + export PATH +-exec "$sd_prog/python-core/bin/python" "$@" ++exec "$sd_prog/python.bin" "$@" + +--- pyuno/zipcore/makefile.mk Thu Sep 9 01:55:34 2004 ++++ pyuno/zipcore/makefile.mk Thu Oct 27 14:47:34 2005 +@@ -12,7 +12,11 @@ + + PYDIRNAME=python-core-$(PYVERSION) + DESTROOT=$(BIN)$/python-core-$(PYVERSION) ++.IF "$(GUI)" == "UNX" ++PYTHONBINARY=$(BIN)$/python$(EXECPOST).bin ++.ELSE + PYTHONBINARY=$(DESTROOT)$/bin$/python$(EXECPOST) ++.ENDIF + + FINDLIBFILES_TMP:=$(subst,/,$/ \ + $(shell +$(FIND) $(SOLARLIBDIR)$/python -type f| $(GREP) -v .pyc )) +@@ -29,6 +33,8 @@ + $(BIN)$/python.sh : python.sh + -rm -f $@ + cat $? > $@ ++ sed 's/%%PYVERSION%%/$(PYVERSION)/g' < $@ > $@.new ++ mv $@.new $@ + .IF "$(GUI)" == "UNX" + chmod +x $@ + .ENDIF +@@ -47,15 +53,21 @@ + -rm -f $@ + cat $< > $@ + +-$(DESTROOT)$/bin$/python$(EXECPOST) : $(SOLARBINDIR)$/python$(EXECPOST) ++.IF "$(GUI)"== "UNX" ++$(BIN)$/python$(EXECPOST).bin : $(SOLARBINDIR)$/python$(EXECPOST) + -+$(MKDIRHIER) $(@:d) + -rm -f $@ + cat $< > $@ +-.IF "$(GUI)"== "UNX" + .IF "$(OS)" != "MACOSX" + strip $@ + .ENDIF + chmod +x $@ ++.ELSE ++$(DESTROOT)$/bin$/python$(EXECPOST) : $(SOLARBINDIR)$/python$(EXECPOST) ++ -+$(MKDIRHIER) $(@:d) ++ -rm -f $@ ++ cat $< > $@ ++ strip $@ + .ENDIF + + .ENDIF +--- pyuno/prj/d.lst Wed Feb 16 03:46:13 2005 ++++ pyuno/prj/d.lst Thu Oct 27 14:52:10 2005 +@@ -22,4 +22,5 @@ + ..\%__SRC%\misc\pyunorc %_DEST%\lib%_EXT%\pyunorc + ..\%__SRC%\misc\pyuno.ini %_DEST%\bin%_EXT%\pyuno.ini + ..\%__SRC%\bin\python-core-*.zip %_DEST%\bin%_EXT%\python-core-*.zip ++..\%__SRC%\bin\python.bin %_DEST%\bin%_EXT%\python.bin + ..\%__SRC%\bin\python.sh %_DEST%\bin%_EXT%\python.sh + + +--- scp2/source/python/module_python.scp Fri Sep 9 10:43:17 2005 ++++ scp2/source/python/module_python.scp Thu Oct 27 14:54:41 2005 +@@ -38,7 +38,7 @@ + Module gid_Module_Optional_Pyuno + MOD_NAME_DESC ( MODULE_OPTIONAL_PYTHON ); + ParentID = gid_Module_Optional; +- Files = (gid_File_Pyuno,gid_File_Lib_Pyuno,gid_File_Lib_Pythonloader,gid_File_Py_Unohelper,gid_File_Py_Uno,gid_File_Py_Pythonloader,gid_File_Py_Python_Core,gid_File_Python_Sh,gid_File_Lib_Python_So, gid_File_Py_Scriptprovider,gid_File_Py_Pythonscript,gid_File_Scripts_Python,gid_File_Registry_Spool_Oo_Scripting_Python_Xcu,gid_File_Pythonmsi_Dll); ++ Files = (gid_File_Pyuno,gid_File_Lib_Pyuno,gid_File_Lib_Pythonloader,gid_File_Py_Unohelper,gid_File_Py_Uno,gid_File_Py_Pythonloader,gid_File_Py_Python_Core,gid_File_Py_Python_Bin,gid_File_Python_Sh,gid_File_Lib_Python_So, gid_File_Py_Scriptprovider,gid_File_Py_Pythonscript,gid_File_Scripts_Python,gid_File_Registry_Spool_Oo_Scripting_Python_Xcu,gid_File_Pythonmsi_Dll); + Minimal = NO; + Default = YES; + Styles = ( ); + +--- scp2/source/python/file_python.scp Fri Sep 9 10:42:31 2005 ++++ scp2/source/python/file_python.scp Thu Oct 27 16:41:18 2005 +@@ -86,8 +86,17 @@ + Name = STRING(CONCAT3(python-core-,PYVERSION,.zip)); + Styles = (ARCHIVE); + End ++ ++#ifdef UNX ++File gid_File_Py_Python_Bin ++ BIN_FILE_BODY; ++ Dir = gid_Dir_Program; ++ Name = "python.bin"; ++ Styles = (PACKED); ++End + #endif + ++#endif + + // substitute for the python Windows basic scripts + diff --git a/editors/openoffice-3-devel/files/patch-rsc+source+rscpp+makefile.mk b/editors/openoffice-3-devel/files/patch-rsc+source+rscpp+makefile.mk index 713232e42a70..2959319805b5 100644 --- a/editors/openoffice-3-devel/files/patch-rsc+source+rscpp+makefile.mk +++ b/editors/openoffice-3-devel/files/patch-rsc+source+rscpp+makefile.mk @@ -1,4 +1,7 @@ -#i54178# +Issuetracker : #i54178# +CWS : hr17 +Author: : +Description : Index: rsc/source/rscpp/makefile.mk =================================================================== diff --git a/editors/openoffice-3-devel/files/patch-solenv+inc+unxfbsdi.mk b/editors/openoffice-3-devel/files/patch-solenv+inc+unxfbsdi.mk index ff89caae4ff0..02b0c8ad1400 100644 --- a/editors/openoffice-3-devel/files/patch-solenv+inc+unxfbsdi.mk +++ b/editors/openoffice-3-devel/files/patch-solenv+inc+unxfbsdi.mk @@ -1,7 +1,11 @@ -STLPORT_VERSION is 450 for FreeBSD +Issuetracker : #i56956# +CWS : N/A +Author: : <maho@openoffice.org> (JCA) +Description : FreeBSD porting : catch up recent version of solenv/inc/unxlngi6.mk +catch up recent version of solenv/inc/unxlngi6.mk and STLPORT_VERSION is 450 in FreeBSD ---- solenv/inc/unxfbsdi.mk~ Thu Sep 8 18:52:53 2005 -+++ solenv/inc/unxfbsdi.mk Fri Sep 30 14:08:04 2005 +--- solenv/inc/unxfbsdi.mk Wed Oct 5 20:33:12 2005 ++++ solenv/inc/unxfbsdi.mk Mon Oct 24 11:13:39 2005 @@ -45,7 +45,7 @@ #LINKOUTPUT_FILTER=" |& $(SOLARENV)$/bin$/msg_filter" @@ -11,8 +15,6 @@ STLPORT_VERSION is 450 for FreeBSD # enable visibility define in "sal/types.h" .IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE" ---- solenv/inc/unxfbsdi.mk~ Sat Oct 1 08:52:58 2005 -+++ solenv/inc/unxfbsdi.mk Sat Oct 1 12:52:34 2005 @@ -190,8 +190,13 @@ LIBSALCPPRT*=-Wl,--whole-archive -lsalcpprt -Wl,--no-whole-archive diff --git a/editors/openoffice-3-devel/files/pkg-message.in b/editors/openoffice-3-devel/files/pkg-message.in index 016629fb8c3d..197e0ddd1e2b 100644 --- a/editors/openoffice-3-devel/files/pkg-message.in +++ b/editors/openoffice-3-devel/files/pkg-message.in @@ -38,6 +38,5 @@ OO.org does need $LANG to be set to a suitable value. 3. If you run into problems -------------------------------------------------- If you somehow run into problems, please remove the already installed -".openoffice.org2" dir in your homedir. -Redo the user installation and the problems should go away. - +".openoffice.org2" dir in your homedir. Redo the user +installation and the problems should go away. diff --git a/editors/openoffice.org-2-devel/Makefile b/editors/openoffice.org-2-devel/Makefile index fcddd167f4e6..682aa73aac89 100644 --- a/editors/openoffice.org-2-devel/Makefile +++ b/editors/openoffice.org-2-devel/Makefile @@ -13,7 +13,10 @@ MASTER_SITES+= http://openoffice.lunarshells.com/sources/ \ ftp://ftp.cs.man.ac.uk/pub/toby/gpc/:gpc \ ${MASTER_SITE_MOZILLA:S/$/:mozsrc/} MASTER_SITE_SUBDIR= mozilla/releases/mozilla${MOZILLA_VERSION}/source/:mozsrc -DISTFILES+= OOo_${RELEASE_NR}m${MILESTONE}_source.tar.bz2 gpc231.tar.Z:gpc +DISTFILES+= OOo_${RELEASE_NR}m${MILESTONE}_source.tar.bz2 +.if defined(WITH_GPC) +DISTFILES+= gpc231.tar.Z:gpc +.endif EXTRACT_ONLY= OOo_${RELEASE_NR}m${MILESTONE}_source.tar.bz2 MAINTAINER= openoffice@FreeBSD.org @@ -50,17 +53,14 @@ JAVA_VENDOR= bsdjava .include <bsd.port.pre.mk> .include <${FILESDIR}/Makefile.localized> -.if (${OSVERSION} < 503001 && ${OSVERSION} >= 500000) || (${OSVERSION} <= 492000) -BROKEN= "rtld depends on _end symbol. type make -DTRYBROKEN to see how to upgrade your rtld" -.endif .if ${PERL_LEVEL} < 500600 IGNORE= Install lang/perl5.8 then try again .endif CODELINE= 680 -RELEASE_NR= 1.9 -MILESTONE= 134 -SNAPDATE= 20051014 +RELEASE_NR= 2.0 +MILESTONE= 136 +SNAPDATE= 20051026 INSTALLATION_BASEDIR= openoffice.org${RELEASE_NR}m${MILESTONE} EXECBASE= openoffice.org-${RELEASE_NR}m${MILESTONE} DIST_SUBDIR= openoffice.org2.0 @@ -117,7 +117,9 @@ BUILD_DEPENDS+= ${ANT}:${PORTSDIR}/devel/apache-ant LIB_DEPENDS+= xslt.2:${PORTSDIR}/textproc/libxslt LIB_DEPENDS+= xml2.5:${PORTSDIR}/textproc/libxml2 .endif - +.if !defined(WITH_GPC) +LIB_DEPENDS= art_lgpl_2:${PORTSDIR}/graphics/libart_lgpl2 +.endif GNU_CONFIGURE= yes WRKSRC= ${WRKDIR} CONFIGURE_WRKSRC= ${WRKSRC}/config_office @@ -127,7 +129,7 @@ TCSH?= /bin/tcsh PKGMESSAGE= ${WRKDIR}/pkg-message NUMOFPROCESSES?= 1 -CONFIGURE_ARGS+= --with-gnu-cp=${LOCALBASE}/bin/gcp --with-gnu-patch=${LOCALBASE}/bin/gpatch --with-epm=internal --with-system-freetype +CONFIGURE_ARGS+= --with-gnu-cp=${LOCALBASE}/bin/gcp --with-gnu-patch=${LOCALBASE}/bin/gpatch --with-epm=internal --with-system-freetype --enable-crashdump=yes --enable-symbols=SMALL .include <${FILESDIR}/Makefile.knobs> @@ -155,9 +157,11 @@ post-extract: .if (${OSVERSION} <= 492000) @cd ${WRKSRC} ; ${PATCH} < ${FILESDIR}/fbsd4-workaroundpatch .endif +.if defined(WITH_GPC) @cd ${WRKDIR} ; ${CAT} ${DISTDIR}/${DIST_SUBDIR}/gpc231.tar.Z | ${TAR} xfz - @${CP} ${WRKDIR}/gpc231/gpc.c ${WRKSRC}/external/gpc/ @${CP} ${WRKDIR}/gpc231/gpc.h ${WRKSRC}/external/gpc/ +.endif .if !defined(WITHOUT_MOZILLA) @${CP} ${DISTDIR}/${DIST_SUBDIR}/${MOZILLA_SOURCE} ${WRKSRC}/moz/download .endif @@ -201,11 +205,6 @@ post-install: @${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-simpress @${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-spadmin @${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-swriter -# python post-install script start -# consult instsetoo_native/inc_openoffice/unix/shellscripts_pyuno.txt - @cd ${PREFIX}/${INSTALLATION_BASEDIR}/program ; ${LN} -s python-core-2.3.4 ${PREFIX}/${INSTALLATION_BASEDIR}/program/python-core; ${LN} -s python.sh ${PREFIX}/${INSTALLATION_BASEDIR}/program/python - ${CHMOD} +x ${PREFIX}/${INSTALLATION_BASEDIR}/program/python-core-2.3.4/bin/python -# python post-install script end @${PRINTF} "bin/openoffice.org\n" > ${TMPPLIST} @cd ${PREFIX} ; ${FIND} -s bin -type f | ${GREP} ${EXECBASE} >> ${TMPPLIST} @cd ${PREFIX} ; ${FIND} -s bin -type l | ${GREP} ${EXECBASE} >> ${TMPPLIST} diff --git a/editors/openoffice.org-2-devel/distinfo b/editors/openoffice.org-2-devel/distinfo index d197cee91002..58d929a8df0a 100644 --- a/editors/openoffice.org-2-devel/distinfo +++ b/editors/openoffice.org-2-devel/distinfo @@ -1,5 +1,5 @@ -MD5 (openoffice.org2.0/OOo_1.9m134_source.tar.bz2) = ee2bb0be1307e1edea82969dcec794b0 -SIZE (openoffice.org2.0/OOo_1.9m134_source.tar.bz2) = 228972679 +MD5 (openoffice.org2.0/OOo_2.0m136_source.tar.bz2) = 838779d94d677b29060ce58b2da723ac +SIZE (openoffice.org2.0/OOo_2.0m136_source.tar.bz2) = 230644111 MD5 (openoffice.org2.0/gpc231.tar.Z) = fdb06fdb5a4670b172f9fb738b717be9 SIZE (openoffice.org2.0/gpc231.tar.Z) = 27917 MD5 (openoffice.org2.0/mozilla-source-1.7.5.tar.gz) = d3f3528b6c5eade402ed058207cffa14 diff --git a/editors/openoffice.org-2-devel/files/Makefile.knobs b/editors/openoffice.org-2-devel/files/Makefile.knobs index 366ae60ba851..1f3ae9cce1a4 100644 --- a/editors/openoffice.org-2-devel/files/Makefile.knobs +++ b/editors/openoffice.org-2-devel/files/Makefile.knobs @@ -12,6 +12,10 @@ CONFIGURE_ARGS+= --with-java=gij --with-ant-home=${LOCALBASE}/ant CONFIGURE_ARGS+= --without-java .endif +.if !defined(WITH_GPC) +CONFIGURE_ARGS+= --enable-libart +.endif + .if defined(WITH_KDE) CONFIGURE_ARGS+= --enable-kde QTDIR="${QT_PREFIX}" .endif @@ -114,6 +118,11 @@ pre-fetch: @${ECHO} "You can compile OOo to use Qt/KDE vclplug with" @${ECHO} "make -DWITH_KDE" .endif +.if !defined(WITH_GPC) + @${ECHO} + @${ECHO} "You can compile OOo with gpc instead of libart by" + @${ECHO} "make -DWITH_GPC" +.endif @${ECHO} @${ECHO} "NOTICE:" @${ECHO} diff --git a/editors/openoffice.org-2-devel/files/generate.pl b/editors/openoffice.org-2-devel/files/generate.pl index cdb964c51046..3d991e0959c2 100644 --- a/editors/openoffice.org-2-devel/files/generate.pl +++ b/editors/openoffice.org-2-devel/files/generate.pl @@ -1,8 +1,7 @@ #!/usr/bin/perl - # generate full build shell script for OpenOffice.org # Whom: Maho Nakata <maho@FreeBSD.org> -# $FreeBSD: /tmp/pcvs/ports/editors/openoffice.org-2-devel/files/Attic/generate.pl,v 1.6 2005-08-29 01:07:59 maho Exp $ +# $FreeBSD: /tmp/pcvs/ports/editors/openoffice.org-2-devel/files/Attic/generate.pl,v 1.7 2005-10-31 08:01:24 maho Exp $ print "#!/bin/csh\n"; print "make deinstall clean\n"; diff --git a/editors/openoffice.org-2-devel/files/patch-Python-2.3.4.patch b/editors/openoffice.org-2-devel/files/patch-Python-2.3.4.patch index 646b69d1385a..41b3577a44c6 100644 --- a/editors/openoffice.org-2-devel/files/patch-Python-2.3.4.patch +++ b/editors/openoffice.org-2-devel/files/patch-Python-2.3.4.patch @@ -1,7 +1,7 @@ -Issutracker : #i53287# -CWS : N/A -Author: : <maho@openoffice.org> (JCA) -Description : Support for FreeBSD 6 and 7 +Issuetracker : #i53287# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : Support for FreeBSD 6 and 7 Index: python/Python-2.3.4.patch =================================================================== diff --git a/editors/openoffice.org-2-devel/files/patch-backtrace b/editors/openoffice.org-2-devel/files/patch-backtrace new file mode 100644 index 000000000000..523bba02d5e4 --- /dev/null +++ b/editors/openoffice.org-2-devel/files/patch-backtrace @@ -0,0 +1,95 @@ +Issuetracker : #i56946# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : FreeBSD porting : An implementation of backtrace at sal/osl/unx +To pass the compilation, we had been preparing dummy function at sal. +We implemented this. + +--- sal/osl/unx/backtrace.c Thu Sep 8 23:52:44 2005 ++++ sal/osl/unx/backtrace.c Sun Oct 23 09:19:04 2005 +@@ -129,6 +129,7 @@ + #include <pthread.h> + #include <setjmp.h> + #include <stdio.h> ++#include <stddef.h> + #include "backtrace.h" + + #define FRAME_PTR_OFFSET 1 +@@ -136,11 +137,55 @@ + + int backtrace( void **buffer, int max_frames ) + { +- return 1; ++ struct frame *fp; ++ jmp_buf ctx; ++ int i; ++ /* get stack- and framepointer */ ++ setjmp(ctx); ++ fp = (struct frame*)(((size_t*)(ctx))[FRAME_PTR_OFFSET]); ++ for ( i=0; (i<FRAME_OFFSET) && (fp!=0); i++) ++ fp = fp->fr_savfp; ++ /* iterate through backtrace */ ++ for (i=0; fp && fp->fr_savpc && i<max_frames; i++) ++ { ++ /* store frame */ ++ *(buffer++) = (void *)fp->fr_savpc; ++ /* next frame */ ++ fp=fp->fr_savfp; ++ } ++ return i; + } + + void backtrace_symbols_fd( void **buffer, int size, int fd ) + { ++ FILE *fp = fdopen( fd, "w" ); ++ ++ if ( fp ) ++ { ++ void **pFramePtr; ++ for ( pFramePtr = buffer; size > 0 && pFramePtr && *pFramePtr; pFramePtr++, size-- ) ++ { ++ Dl_info dli; ++ ptrdiff_t offset; ++ ++ if ( 0 != dladdr( *pFramePtr, &dli ) ) ++ { ++ if ( dli.dli_fname && dli.dli_fbase ) ++ { ++ offset = (ptrdiff_t)*pFramePtr - (ptrdiff_t)dli.dli_fbase; ++ fprintf( fp, "%s+0x%x", dli.dli_fname, offset ); ++ } ++ if ( dli.dli_sname && dli.dli_saddr ) ++ { ++ offset = (ptrdiff_t)*pFramePtr - (ptrdiff_t)dli.dli_saddr; ++ fprintf( fp, "(%s+0x%x)", dli.dli_sname, offset ); ++ } ++ } ++ fprintf( fp, "[0x%x]\n", *pFramePtr ); ++ } ++ fflush( fp ); ++ fclose( fp ); ++ } + + } + #endif /* defined FREEBSD */ + +--- sal/osl/unx/backtrace.h Thu Sep 8 23:52:59 2005 ++++ sal/osl/unx/backtrace.h Sun Oct 23 09:19:40 2005 +@@ -46,6 +46,16 @@ + + void backtrace_symbols_fd( void **buffer, int size, int fd ); + ++/* no frame.h on FreeBSD */ ++#if defined FREEBSD ++struct frame { ++ long arg0[8]; ++ long arg1[6]; ++ struct frame *fr_savfp; ++ long fr_savpc; ++}; ++#endif ++ + #ifdef __cplusplus + } /* extern "C" */ + #endif + diff --git a/editors/openoffice.org-2-devel/files/patch-bridges b/editors/openoffice.org-2-devel/files/patch-bridges new file mode 100644 index 000000000000..8375332a3e20 --- /dev/null +++ b/editors/openoffice.org-2-devel/files/patch-bridges @@ -0,0 +1,173 @@ +Issuetracker : #i56947# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : FreeBSD porting : update files at bridges project +catch up version up of bridge project of GNU/Linux + +--- bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx Thu Sep 8 07:20:08 2005 ++++ bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx Wed Oct 26 15:10:05 2005 +@@ -57,7 +57,7 @@ + typelib_TypeDescriptionReference * pReturnTypeRef, // 0 indicates void return + sal_Int32 nParams, typelib_MethodParameter * pParams, + void ** pCallStack, +- sal_Int64 * pRegisterReturn /* space for register return */ ) ++ void * pReturnValue ) + { + // pCallStack: ret, [return ptr], this, params + char * pCppStack = (char *)(pCallStack +1); +@@ -74,7 +74,7 @@ + { + if (bridges::cpp_uno::shared::isSimpleType( pReturnTypeDescr )) + { +- pUnoReturn = pRegisterReturn; // direct way for simple types ++ pUnoReturn = pReturnValue; // direct way for simple types + } + else // complex return via ptr (pCppReturn) + { +@@ -215,7 +215,7 @@ + uno_destructData( pUnoReturn, pReturnTypeDescr, 0 ); + } + // complex return ptr is set to eax +- *(void **)pRegisterReturn = pCppReturn; ++ *static_cast< void ** >(pReturnValue) = pCppReturn; + } + if (pReturnTypeDescr) + { +@@ -228,7 +228,7 @@ + //================================================================================================== + extern "C" void cpp_vtable_call( + int nFunctionIndex, int nVtableOffset, void** pCallStack, +- sal_Int64 nRegReturn ) ++ void * pReturnValue ) + { + OSL_ENSURE( sizeof(sal_Int32)==sizeof(void *), "### unexpected!" ); + +@@ -275,7 +275,7 @@ + pCppI, aMemberDescr.get(), + ((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef, + 0, 0, // no params +- pCallStack, &nRegReturn ); ++ pCallStack, pReturnValue ); + } + else + { +@@ -290,7 +290,7 @@ + pCppI, aMemberDescr.get(), + 0, // indicates void return + 1, &aParam, +- pCallStack, &nRegReturn ); ++ pCallStack, pReturnValue ); + } + break; + } +@@ -324,7 +324,7 @@ + &pInterface, pTD, cpp_acquire ); + pInterface->release(); + TYPELIB_DANGER_RELEASE( pTD ); +- *(void **)&nRegReturn = pCallStack[1]; ++ *static_cast< void ** >(pReturnValue) = pCallStack[1]; + break; + } + TYPELIB_DANGER_RELEASE( pTD ); +@@ -336,7 +336,7 @@ + ((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->pReturnTypeRef, + ((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->nParams, + ((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->pParams, +- pCallStack, &nRegReturn ); ++ pCallStack, pReturnValue ); + } + break; + } +--- bridges/source/cpp_uno/gcc3_freebsd_intel/call.s Wed Jun 1 01:32:41 2005 ++++ bridges/source/cpp_uno/gcc3_freebsd_intel/call.s Wed Oct 26 15:10:04 2005 +@@ -9,12 +9,13 @@ + .LCFIg0: + movl %esp,%ebp + .LCFIg1: +- subl $0x8,%esp # 64bit nRegReturn ++ subl $0x4,%esp # 32bit returnValue ++ pushl %esp # 32bit &returnValue + pushl %ecx # 32bit pCallStack + pushl %edx # 32bit nVtableOffset + pushl %eax # 32bit nFunctionIndex + call cpp_vtable_call +- movl 12(%esp),%eax # 64 bit nRegReturn, lower half ++ movl 16(%esp),%eax # 32bit returnValue + leave + ret + .LFEg: +@@ -29,7 +30,7 @@ + .LCFIv0: + movl %esp,%ebp + .LCFIv1: +- subl $0x8,%esp # 64bit nRegReturn ++ pushl $0 # 32bit null pointer (returnValue not used) + pushl %ecx # 32bit pCallStack + pushl %edx # 32bit nVtableOffset + pushl %eax # 32bit nFunctionIndex +@@ -48,13 +49,14 @@ + .LCFIh0: + movl %esp,%ebp + .LCFIh1: +- subl $0x8,%esp # 64bit nRegReturn ++ subl $0x8,%esp # 64bit returnValue ++ pushl %esp # 32bit &returnValue + pushl %ecx # 32bit pCallStack + pushl %edx # 32bit nVtableOffset + pushl %eax # 32bit nFunctionIndex + call cpp_vtable_call +- movl 12(%esp),%eax # 64 bit nRegReturn, lower half +- movl 16(%esp),%edx # 64 bit nRegReturn, upper half ++ movl 16(%esp),%eax # 64bit returnValue, lower half ++ movl 20(%esp),%edx # 64bit returnValue, upper half + leave + ret + .LFEh: +@@ -69,12 +71,13 @@ + .LCFIf0: + movl %esp,%ebp + .LCFIf1: +- subl $0x8,%esp # 64bit nRegReturn ++ subl $0x4,%esp # 32bit returnValue ++ pushl %esp # 32bit &returnValue + pushl %ecx # 32bit pCallStack + pushl %edx # 32bit nVtableOffset + pushl %eax # 32bit nFunctionIndex + call cpp_vtable_call +- flds 12(%esp) # 64 bit nRegReturn, lower half ++ flds 16(%esp) # 32bit returnValue + leave + ret + .LFEf: +@@ -89,12 +92,13 @@ + .LCFId0: + movl %esp,%ebp + .LCFId1: +- subl $0x8,%esp # 64bit nRegReturn ++ subl $0x8,%esp # 64bit returnValue ++ pushl %esp # 32bit &returnValue + pushl %ecx # 32bit pCallStack + pushl %edx # 32bit nVtableOffset + pushl %eax # 32bit nFunctionIndex + call cpp_vtable_call +- fldl 12(%esp) # 64 bit nRegReturn ++ fldl 16(%esp) # 64bit returnValue + leave + ret + .LFEd: +@@ -109,12 +113,13 @@ + .LCFIc0: + movl %esp,%ebp + .LCFIc1: +- subl $0x8,%esp # 64bit nRegReturn ++ subl $0x4,%esp # 32bit returnValue ++ pushl %esp # 32bit &returnValue + pushl %ecx # 32bit pCallStack + pushl %edx # 32bit nVtableOffset + pushl %eax # 32bit nFunctionIndex + call cpp_vtable_call +- movl 12(%esp),%eax # 64 bit nRegReturn, lower half ++ movl 16(%esp),%eax # 32bit returnValue + leave + ret $4 + .LFEc: diff --git a/editors/openoffice.org-2-devel/files/patch-config_office+set_soenv.in b/editors/openoffice.org-2-devel/files/patch-config_office+set_soenv.in index 93e375b46f8e..a06f28849d7a 100644 --- a/editors/openoffice.org-2-devel/files/patch-config_office+set_soenv.in +++ b/editors/openoffice.org-2-devel/files/patch-config_office+set_soenv.in @@ -1,4 +1,10 @@ ---- config_office/set_soenv.in~ Thu Sep 22 23:30:56 2005 +Issuetracker : #i56949# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : FreeBSD porting : Add conditional the case of @GCCVER@ >= 30401. +Like GNU/Linux's case, we also need the case for $CVER if @GCCVER@ is equal to or larger than 3.4.1 + +--- config_office/set_soenv.in Thu Sep 22 23:30:56 2005 +++ config_office/set_soenv.in Sat Oct 1 12:59:30 2005 @@ -347,6 +347,9 @@ $JRELIBDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."i386"; diff --git a/editors/openoffice.org-2-devel/files/patch-epm+epm-3.7.patch b/editors/openoffice.org-2-devel/files/patch-epm+epm-3.7.patch index 4cc75dc9a25c..2182489d5445 100644 --- a/editors/openoffice.org-2-devel/files/patch-epm+epm-3.7.patch +++ b/editors/openoffice.org-2-devel/files/patch-epm+epm-3.7.patch @@ -1,7 +1,7 @@ -Issutracker : #iXXXXX# -CWS : N/A -Author: : <maho@openoffice.org> (JCA) -Description : epm porting for FreeBSD +Issuetracker : #iXXXXX# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : epm porting for FreeBSD o FreeBSD's package manager doesn't allow multiple lines for @exec and @unexec o chown is at /usr/sbin/ diff --git a/editors/openoffice.org-2-devel/files/patch-icu+icu-2.6.patch b/editors/openoffice.org-2-devel/files/patch-icu+icu-2.6.patch new file mode 100644 index 000000000000..eb643e9e4a97 --- /dev/null +++ b/editors/openoffice.org-2-devel/files/patch-icu+icu-2.6.patch @@ -0,0 +1,38 @@ +Issuetracker : #i56952# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : FreeBSD porting : Passing $ORIGIN to linker at icu project +We also want to pass -rpath $ORIGIN to linker as GNU/Linux and/or Solaris's case. + +--- icu/icu-2.6.patch Fri Aug 26 20:43:35 2005 ++++ icu-2.6.patch Mon Oct 24 18:18:45 2005 +@@ -2747,3 +2747,29 @@ + commands = pkg_appendToList(commands, NULL, uprv_strdup(stanza)); + + sprintf(stanza, "@$(RMV) $(TEMP_DIR)/%s", cfile+genFileOffset); ++*** misc/icu/source/config/mh-bsd-gcc Thu May 2 08:48:10 2002 ++--- misc/build/icu/source/config/mh-bsd-gcc Mon Oct 24 18:16:57 2005 ++*************** ++*** 10,21 **** ++--- 10,30 ---- ++ GEN_DEPS.cc= $(CXX) -E -MM $(DEFS) $(CPPFLAGS) ++ ++ ## Flags for position independent code +++ STATICCFLAGS = -fPIC +++ STATICCXXFLAGS = -fPIC +++ STATICCPPFLAGS = -DPIC ++ SHAREDLIBCFLAGS = -fPIC ++ SHAREDLIBCXXFLAGS = -fPIC ++ SHAREDLIBCPPFLAGS = -DPIC ++ ++ ## Compiler switch to embed a runtime search path ++ LD_RPATH= +++ ## Force RPATH=$ORIGIN to locate own dependencies w/o need for LD_LIBRARY_PATH +++ ENABLE_RPATH=YES +++ RPATHLDFLAGS=${LD_RPATH_PRE}'$$ORIGIN' +++ +++ #SH# ENABLE_RPATH=YES +++ #SH# RPATHLDFLAGS="${LD_RPATH_PRE}'$$ORIGIN'" ++ LD_RPATH_PRE= -Wl,-rpath, ++ ++ ## Compiler switch to embed a library name diff --git a/editors/openoffice.org-2-devel/files/patch-instsetoo b/editors/openoffice.org-2-devel/files/patch-instsetoo index ccb23c985924..fe7e3b5f3845 100644 --- a/editors/openoffice.org-2-devel/files/patch-instsetoo +++ b/editors/openoffice.org-2-devel/files/patch-instsetoo @@ -1,7 +1,7 @@ -Issutracker : #i53288# -CWS : N/A -Author: : <maho@openoffice.org> (JCA) -Description : remove circular dependency +Issuetracker : #i53288# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : remove circular dependency in this case, core01 is depend on core02-core08, and core0[2-9] and core10 diff --git a/editors/openoffice.org-2-devel/files/patch-jvmfwk+distributions+OpenOfficeorg+makefile.mk b/editors/openoffice.org-2-devel/files/patch-jvmfwk+distributions+OpenOfficeorg+makefile.mk new file mode 100644 index 000000000000..2c89e95a8cdb --- /dev/null +++ b/editors/openoffice.org-2-devel/files/patch-jvmfwk+distributions+OpenOfficeorg+makefile.mk @@ -0,0 +1,17 @@ +Issuetracker : #i56951# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : FreeBSD porting : javavendors_linux.xml can be used for FreeBSD as well. +javavendors_linux.xml can be used for FreeBSD as well. + +--- jvmfwk/distributions/OpenOfficeorg/makefile.mk Thu Sep 8 04:26:17 2005 ++++ jvmfwk/distributions/OpenOfficeorg/makefile.mk Sat Oct 22 18:31:16 2005 +@@ -49,7 +49,7 @@ + .IF "$(GUI)"=="UNX" + .IF "$(OS)"=="MACOSX" + +-$(COPY) javavendors_macosx.xml $(BIN)$/javavendors_ooo.xml +-.ELIF "$(OS)"=="LINUX" ++.ELIF "$(OS)"=="LINUX" || "$(OS)"=="FREEBSD" + +-$(COPY) javavendors_linux.xml $(BIN)$/javavendors_ooo.xml + .ELSE + +-$(COPY) javavendors_unx.xml $(BIN)$/javavendors_ooo.xml diff --git a/editors/openoffice.org-2-devel/files/patch-jvmfwk+plugins+sunmajor+pluginlib+sunversion.cxx b/editors/openoffice.org-2-devel/files/patch-jvmfwk+plugins+sunmajor+pluginlib+sunversion.cxx new file mode 100644 index 000000000000..c963d013cc07 --- /dev/null +++ b/editors/openoffice.org-2-devel/files/patch-jvmfwk+plugins+sunmajor+pluginlib+sunversion.cxx @@ -0,0 +1,61 @@ +Issuetracker : #i56953# +CWS : N/A +Author : <maho@openoffice.org> +Description : FreeBSD porting : do not hardcode pXX of Java version and FreeBSD native Java is always superior to Linux's one. + +1. we had been hard coding Java's version by p1, p2 ... etc. but apparently +it is not a good habit. in this patch we eleminate this. + +2. we'd better to use FreeBSD's native Java, and not GNU/Linux's ones if both are exist +in the system. We add 100 as micro version number, so that we treat FreeBSD's version of +java 1.4.1-p10 for example to 1.4.1_110. + +--- jvmfwk/plugins/sunmajor/pluginlib/sunversion.cxx Thu Sep 8 04:31:40 2005 ++++ jvmfwk/plugins/sunmajor/pluginlib/sunversion.cxx Sat Oct 22 18:25:49 2005 +@@ -208,7 +208,16 @@ + return false; + #if defined(FREEBSD) + if (m_preRelease == Rel_FreeBSD) { +- m_nUpdateSpecial = *pCur; ++ pCur++; //elemnate `p' ++ if (pCur < pEnd && isdigit(*pCur)) ++ if (pCur < pEnd) ++ pCur ++; ++ int len = pCur - pLast -1; //elemenate `p' ++ if (len >= 127) ++ return false; ++ strncpy(buf, (pLast+1), len); //elemenate `p' ++ buf[len] = 0; ++ m_nUpdateSpecial = atoi(buf)+100; //hack for FBSD + return true; + } + #endif +@@ -249,27 +258,7 @@ + else if (! strcmp(szRelease, "rc3")) + return Rel_RC3; + #if defined (FREEBSD) +- else if (! strcmp(szRelease, "p1")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p2")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p3")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p4")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p5")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p6")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p7")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p8")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p9")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p10")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p11")) ++ else if (! strncmp(szRelease, "p", 1)) + return Rel_FreeBSD; + #endif + else diff --git a/editors/openoffice.org-2-devel/files/patch-libxmlsec+makefile.mk b/editors/openoffice.org-2-devel/files/patch-libxmlsec+makefile.mk new file mode 100644 index 000000000000..5735c62a3298 --- /dev/null +++ b/editors/openoffice.org-2-devel/files/patch-libxmlsec+makefile.mk @@ -0,0 +1,18 @@ +Issuetracker : #i56954# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : FreeBSD porting : Passing $ORIGIN to linker at libxmlsec project +We also want to pass -rpath $ORIGIN to linker as GNU/Linux and/or Solaris's case. + +--- libxmlsec/makefile.mk.org Tue Oct 25 15:00:10 2005 ++++ libxmlsec/makefile.mk Tue Oct 25 15:00:28 2005 +@@ -89,6 +89,9 @@ + .IF "$(OS)$(COM)"=="SOLARISC52" + LDFLAGS:=-Wl,-R'$$$$ORIGIN' + .ENDIF # "$(OS)$(COM)"=="SOLARISC52" ++.IF "$(OS)$(COM)"=="FREEBSDGCC" ++LDFLAGS:=-Wl,-rpath,'$$$$ORIGIN' ++.ENDIF # "$(OS)$(COM)"=="FREEBSDGCC" + .EXPORT: LDFLAGS + .ENDIF + CONFIGURE_DIR= diff --git a/editors/openoffice.org-2-devel/files/patch-postprocess+prj+build.lst b/editors/openoffice.org-2-devel/files/patch-postprocess+prj+build.lst index cc04678794e8..91addd32b2b4 100644 --- a/editors/openoffice.org-2-devel/files/patch-postprocess+prj+build.lst +++ b/editors/openoffice.org-2-devel/files/patch-postprocess+prj+build.lst @@ -1,7 +1,7 @@ -Issutracker : #i56070# -CWS : N/A -Author: : <maho@openoffice.org> -Description : some *.desktop files missing on making installsets +Issuetracker : #i56070#, #i56731# +CWS : N/A +Author : <maho@openoffice.org> +Description : some *.desktop files missing on making installsets Index: postprocess/prj/build.lst =================================================================== @@ -12,7 +12,10 @@ diff -u -r1.20 build.lst +++ postprocess/prj/build.lst 16 Oct 2005 08:36:25 -0000 @@ -1,4 +1,4 @@ -po postprocess :: accessibility automation basctl bean BINFILTER:binfilter chart2 configmgr CRASHREP:crashrep dbaccess desktop dtrans embeddedobj embedserv EPM:epm eventattacher extensions extras fileaccess filter forms fpicker helpcontent2 hwpfilter io lingucomponent MATHMLDTD:MathMLDTD MSFONTEXTRACT:msfontextract ODK:odk officecfg package padmin psprint_config remotebridges sc scaddins scp2 scripting sd setup_native slideshow starmath sw testshl testshl2 testtools ucb UnoControls unoxml ure wizards xmlsecurity BITSTREAM_VERA_FONTS:bitstream_vera_fonts DICTIONARIES:dictionaries OOo:pyuno OOo:readlicense_oo SO:top NULL -+po postprocess :: accessibility automation basctl bean BINFILTER:binfilter chart2 configmgr CRASHREP:crashrep dbaccess desktop dtrans embeddedobj embedserv EPM:epm eventattacher extensions extras fileaccess filter forms fpicker helpcontent2 hwpfilter io lingucomponent MATHMLDTD:MathMLDTD MSFONTEXTRACT:msfontextract ODK:odk officecfg package padmin psprint_config remotebridges sc scaddins scp2 scripting sd setup_native slideshow starmath sw sysui testshl testshl2 testtools ucb UnoControls unoxml ure wizards xmlsecurity BITSTREAM_VERA_FONTS:bitstream_vera_fonts DICTIONARIES:dictionaries OOo:pyuno OOo:readlicense_oo SO:top NULL ++po postprocess :: accessibility automation basctl bean BINFILTER:binfilter chart2 configmgr CRASHREP:crashrep dbaccess desktop dtrans embeddedobj embedserv EPM:epm eventattacher extensions extras fileaccess filter forms fpicker helpcontent2 hwpfilter io lingucomponent MATHMLDTD:MathMLDTD MSFONTEXTRACT:msfontextract ODK:odk officecfg package padmin psprint_config remotebridges sc scaddins scp2 scripting sd setup_native slideshow starmath sw sysui testshl testshl2 testtools ucb UnoControls unoxml ure wizards xmlsecurity BITSTREAM_VERA_FONTS:bitstream_vera_fonts xmerge DICTIONARIES:dictionaries OOo:pyuno OOo:readlicense_oo SO:top NULL po postprocess usr1 - all po_mkout NULL po postprocess\checkxml nmake - all po_checkxml NULL po postprocess\packconfig nmake - all po_packconfig po_checkxml NULL + + + diff --git a/editors/openoffice.org-2-devel/files/patch-pythonlink b/editors/openoffice.org-2-devel/files/patch-pythonlink new file mode 100644 index 000000000000..779d21c95f44 --- /dev/null +++ b/editors/openoffice.org-2-devel/files/patch-pythonlink @@ -0,0 +1,312 @@ +Issuetracker : #i56955# +CWS : N/A +Author : <maho@openoffice.org> +Description : Remove instsetoo_native/inc_openoffice/unix/shellscripts_pyuno.txt + +It is desirable to prepare minimal shellscripts as far as possible at +installation part, and possibly, no shellscripts. However, +unfortunately three things had done at shellscripts_pyuno.txt. + +1. symlink to python.sh -> python +2. chmod +x program/python-core-2.3.4/bin/python +3. symlink to python-core-2.3.4 -> python-core + +solution + +0. apply following patch. full build confirmed for SRC680_m134, FreeBSD 5.4-RELEASE. +1. Done in scp2 project: prepare scp2/source/python/shortcut_python.scp and scp2/util/makefile.mk, +and make a symlink to python.sh -> python. +(3. is impossible to solve in this way since we only have python-core-2.3.4.zip in files in scp2.) +2. Do not use program/python-core-2.3.4/bin/python, use program/python.bin instead. python.sh +now executes program/python.bin. this is usual way; see e.g., spadmin etc. +3. change from symlinking python-core-2.3.4->python-core +to adding version number (by replacing by sed) to python.sh which invoke python in OOo, +and we don't have to make a symlink. + +suggestion (and not yet done): + +4. we can also remove symlink from python.sh to python and +rename python.sh to python. apparently intermidiate python.sh is unnecessary. +currently: python -> python.sh -> python.bin +suggested: python -> python.bin +delivering a shell script python can harm since we have python binary from python project +as well. but this is safe since python (shell script) and python.bin are delivered, +at the same time. + +--- scp2/source/python/makefile.mk Fri Sep 9 10:43:01 2005 ++++ scp2/source/python/makefile.mk Wed Oct 26 17:12:52 2005 +@@ -60,7 +60,8 @@ + PARFILES=\ + module_python.par \ + profileitem_python.par \ +- file_python.par ++ file_python.par \ ++ shortcut_python.par + + ULFFILES= \ + module_python.ulf + +--- scp2/util/makefile.mk Fri Sep 9 10:52:09 2005 ++++ scp2/util/makefile.mk Thu Oct 27 07:25:25 2005 +@@ -87,7 +87,8 @@ + file_xsltfilter.par \ + module_python.par \ + file_python.par \ +- profileitem_python.par ++ profileitem_python.par \ ++ shortcut_python.par + + .IF "$(SOLAR_JAVA)"!="" + SCP1FILES += \ + +--- /dev/null Thu Oct 27 09:59:37 2005 ++++ scp2/source/python/shortcut_python.scp Thu Oct 27 09:59:19 2005 +@@ -0,0 +1,49 @@ ++/************************************************************************* ++ * ++ * OpenOffice.org - a multi-platform office productivity suite ++ * ++ * $RCSfile: shortcut_python.scp,v $ ++ * ++ * $Revision: 1.20 $ ++ * ++ * last change: $Author: rt $ $Date: 2005/09/09 01:42:03 $ ++ * ++ * The Contents of this file are made available subject to ++ * the terms of GNU Lesser General Public License Version 2.1. ++ * ++ * ++ * GNU Lesser General Public License Version 2.1 ++ * ============================================= ++ * Copyright 2005 by Sun Microsystems, Inc. ++ * 901 San Antonio Road, Palo Alto, CA 94303, USA ++ * ++ * This library is free software; you can redistribute it and/or ++ * modify it under the terms of the GNU Lesser General Public ++ * License version 2.1, as published by the Free Software Foundation. ++ * ++ * This library is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ * Lesser General Public License for more details. ++ * ++ * You should have received a copy of the GNU Lesser General Public ++ * License along with this library; if not, write to the Free Software ++ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, ++ * MA 02111-1307 USA ++ * ++ ************************************************************************/ ++ ++#include "macros.inc" ++ ++#ifndef SYSTEM_PYTHON ++#ifdef UNX ++ ++Shortcut gid_Shortcut_Python_Sh ++ FileID = gid_File_Python_Sh; ++ Dir = gid_Dir_Program; ++ Name = "python"; ++ Styles = (RELATIVE); ++End ++ ++#endif ++#endif + +--- instsetoo_native/inc_openoffice/unix/shellscripts_pyuno.txt Thu Aug 18 17:11:29 2005 ++++ /dev/null Wed Oct 26 09:51:22 2005 +@@ -1,74 +0,0 @@ +-%preinstall << END +-# echo Command before installing +-exit 0 +-END +- +-%postinstall << END +-# echo Command after installing +-# searching for the PRODUCTINSTALLLOCATION for the different platforms +-platform=`uname -s` +-case $$platform in +-SunOS) +- PRODUCTINSTALLLOCATION="$$BASEDIR" +- ;; +-Linux) +- PRODUCTINSTALLLOCATION="$$RPM_INSTALL_PREFIX" +- ;; +-*) +- PRODUCTINSTALLLOCATION="$$BASEDIR" +- ;; +-esac +- +-if [ -d $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python-core-2.3.4 ] +-then +- ln -s python-core-2.3.4 $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python-core >/dev/null 2>&1 +-fi +- +-if [ -f $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python.sh ] +-then +- ln -s python.sh $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python >/dev/null 2>&1 +-fi +- +-if [ -f $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python-core-2.3.4/bin/python ] +-then +- chmod +x $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python-core-2.3.4/bin/python +-fi +- +-exit 0 +-END +- +-%preremove << END +-# echo Command before removing +-exit 0 +-END +- +-%postremove << END +-# echo Command after removing +- +-# searching for the PRODUCTINSTALLLOCATION for the different platforms +-platform=`uname -s` +-case $$platform in +-SunOS) +- PRODUCTINSTALLLOCATION="$$BASEDIR" +- ;; +-Linux) +- PRODUCTINSTALLLOCATION="$$RPM_INSTALL_PREFIX" +- ;; +-*) +- PRODUCTINSTALLLOCATION="$$BASEDIR" +- ;; +-esac +- +-if [ -h $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python-core ] +-then +- rm -f $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python-core >/dev/null 2>&1 +-fi +- +-if [ -h $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python ] +-then +- rm -f $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python >/dev/null 2>&1 +-fi +- +- +-exit 0 +-END +--- instsetoo_native/inc_openoffice/unix/packagelist.txt Wed Oct 26 17:34:58 2005 ++++ instsetoo_native/inc_openoffice/unix/packagelist.txt Thu Oct 27 06:25:32 2005 +@@ -233,7 +233,6 @@ + + Start + module = "gid_Module_Optional_Pyuno" +-script = "shellscripts_pyuno.txt" + solarispackagename = "openofficeorg-pyuno" + solarisrequires = "openofficeorg-core01" + packagename = "openoffice.org-pyuno" + + +--- pyuno/zipcore/python.sh Fri Sep 9 01:55:24 2005 ++++ pyuno/zipcore/python.sh Thu Oct 27 14:48:08 2005 +@@ -101,14 +101,14 @@ + ;; + esac + +-PYTHONPATH="$sd_prog":"$sd_prog/python-core/lib":"$sd_prog/python-core/lib/lib-dynload":"$sd_prog/python-core/lib/lib-tk":"$PYTHONPATH" ++PYTHONPATH="$sd_prog":"$sd_prog/python-core-%%PYVERSION%%/lib":"$sd_prog/python-core-%%PYVERSION%%/lib/lib-dynload":"$sd_prog/python-core-%%PYVERSION%%/lib/lib-tk":"$PYTHONPATH" + export PYTHONPATH + +-PYTHONHOME="$sd_prog"/python-core ++PYTHONHOME="$sd_prog"/python-core-%%PYVERSION%% + export PYTHONHOME + + # set path so that other apps can be started from soffice just by name + PATH="$sd_prog":$PATH + export PATH +-exec "$sd_prog/python-core/bin/python" "$@" ++exec "$sd_prog/python.bin" "$@" + +--- pyuno/zipcore/makefile.mk Thu Sep 9 01:55:34 2004 ++++ pyuno/zipcore/makefile.mk Thu Oct 27 14:47:34 2005 +@@ -12,7 +12,11 @@ + + PYDIRNAME=python-core-$(PYVERSION) + DESTROOT=$(BIN)$/python-core-$(PYVERSION) ++.IF "$(GUI)" == "UNX" ++PYTHONBINARY=$(BIN)$/python$(EXECPOST).bin ++.ELSE + PYTHONBINARY=$(DESTROOT)$/bin$/python$(EXECPOST) ++.ENDIF + + FINDLIBFILES_TMP:=$(subst,/,$/ \ + $(shell +$(FIND) $(SOLARLIBDIR)$/python -type f| $(GREP) -v .pyc )) +@@ -29,6 +33,8 @@ + $(BIN)$/python.sh : python.sh + -rm -f $@ + cat $? > $@ ++ sed 's/%%PYVERSION%%/$(PYVERSION)/g' < $@ > $@.new ++ mv $@.new $@ + .IF "$(GUI)" == "UNX" + chmod +x $@ + .ENDIF +@@ -47,15 +53,21 @@ + -rm -f $@ + cat $< > $@ + +-$(DESTROOT)$/bin$/python$(EXECPOST) : $(SOLARBINDIR)$/python$(EXECPOST) ++.IF "$(GUI)"== "UNX" ++$(BIN)$/python$(EXECPOST).bin : $(SOLARBINDIR)$/python$(EXECPOST) + -+$(MKDIRHIER) $(@:d) + -rm -f $@ + cat $< > $@ +-.IF "$(GUI)"== "UNX" + .IF "$(OS)" != "MACOSX" + strip $@ + .ENDIF + chmod +x $@ ++.ELSE ++$(DESTROOT)$/bin$/python$(EXECPOST) : $(SOLARBINDIR)$/python$(EXECPOST) ++ -+$(MKDIRHIER) $(@:d) ++ -rm -f $@ ++ cat $< > $@ ++ strip $@ + .ENDIF + + .ENDIF +--- pyuno/prj/d.lst Wed Feb 16 03:46:13 2005 ++++ pyuno/prj/d.lst Thu Oct 27 14:52:10 2005 +@@ -22,4 +22,5 @@ + ..\%__SRC%\misc\pyunorc %_DEST%\lib%_EXT%\pyunorc + ..\%__SRC%\misc\pyuno.ini %_DEST%\bin%_EXT%\pyuno.ini + ..\%__SRC%\bin\python-core-*.zip %_DEST%\bin%_EXT%\python-core-*.zip ++..\%__SRC%\bin\python.bin %_DEST%\bin%_EXT%\python.bin + ..\%__SRC%\bin\python.sh %_DEST%\bin%_EXT%\python.sh + + +--- scp2/source/python/module_python.scp Fri Sep 9 10:43:17 2005 ++++ scp2/source/python/module_python.scp Thu Oct 27 14:54:41 2005 +@@ -38,7 +38,7 @@ + Module gid_Module_Optional_Pyuno + MOD_NAME_DESC ( MODULE_OPTIONAL_PYTHON ); + ParentID = gid_Module_Optional; +- Files = (gid_File_Pyuno,gid_File_Lib_Pyuno,gid_File_Lib_Pythonloader,gid_File_Py_Unohelper,gid_File_Py_Uno,gid_File_Py_Pythonloader,gid_File_Py_Python_Core,gid_File_Python_Sh,gid_File_Lib_Python_So, gid_File_Py_Scriptprovider,gid_File_Py_Pythonscript,gid_File_Scripts_Python,gid_File_Registry_Spool_Oo_Scripting_Python_Xcu,gid_File_Pythonmsi_Dll); ++ Files = (gid_File_Pyuno,gid_File_Lib_Pyuno,gid_File_Lib_Pythonloader,gid_File_Py_Unohelper,gid_File_Py_Uno,gid_File_Py_Pythonloader,gid_File_Py_Python_Core,gid_File_Py_Python_Bin,gid_File_Python_Sh,gid_File_Lib_Python_So, gid_File_Py_Scriptprovider,gid_File_Py_Pythonscript,gid_File_Scripts_Python,gid_File_Registry_Spool_Oo_Scripting_Python_Xcu,gid_File_Pythonmsi_Dll); + Minimal = NO; + Default = YES; + Styles = ( ); + +--- scp2/source/python/file_python.scp Fri Sep 9 10:42:31 2005 ++++ scp2/source/python/file_python.scp Thu Oct 27 16:41:18 2005 +@@ -86,8 +86,17 @@ + Name = STRING(CONCAT3(python-core-,PYVERSION,.zip)); + Styles = (ARCHIVE); + End ++ ++#ifdef UNX ++File gid_File_Py_Python_Bin ++ BIN_FILE_BODY; ++ Dir = gid_Dir_Program; ++ Name = "python.bin"; ++ Styles = (PACKED); ++End + #endif + ++#endif + + // substitute for the python Windows basic scripts + diff --git a/editors/openoffice.org-2-devel/files/patch-rsc+source+rscpp+makefile.mk b/editors/openoffice.org-2-devel/files/patch-rsc+source+rscpp+makefile.mk index 713232e42a70..2959319805b5 100644 --- a/editors/openoffice.org-2-devel/files/patch-rsc+source+rscpp+makefile.mk +++ b/editors/openoffice.org-2-devel/files/patch-rsc+source+rscpp+makefile.mk @@ -1,4 +1,7 @@ -#i54178# +Issuetracker : #i54178# +CWS : hr17 +Author: : +Description : Index: rsc/source/rscpp/makefile.mk =================================================================== diff --git a/editors/openoffice.org-2-devel/files/patch-solenv+inc+unxfbsdi.mk b/editors/openoffice.org-2-devel/files/patch-solenv+inc+unxfbsdi.mk index ff89caae4ff0..02b0c8ad1400 100644 --- a/editors/openoffice.org-2-devel/files/patch-solenv+inc+unxfbsdi.mk +++ b/editors/openoffice.org-2-devel/files/patch-solenv+inc+unxfbsdi.mk @@ -1,7 +1,11 @@ -STLPORT_VERSION is 450 for FreeBSD +Issuetracker : #i56956# +CWS : N/A +Author: : <maho@openoffice.org> (JCA) +Description : FreeBSD porting : catch up recent version of solenv/inc/unxlngi6.mk +catch up recent version of solenv/inc/unxlngi6.mk and STLPORT_VERSION is 450 in FreeBSD ---- solenv/inc/unxfbsdi.mk~ Thu Sep 8 18:52:53 2005 -+++ solenv/inc/unxfbsdi.mk Fri Sep 30 14:08:04 2005 +--- solenv/inc/unxfbsdi.mk Wed Oct 5 20:33:12 2005 ++++ solenv/inc/unxfbsdi.mk Mon Oct 24 11:13:39 2005 @@ -45,7 +45,7 @@ #LINKOUTPUT_FILTER=" |& $(SOLARENV)$/bin$/msg_filter" @@ -11,8 +15,6 @@ STLPORT_VERSION is 450 for FreeBSD # enable visibility define in "sal/types.h" .IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE" ---- solenv/inc/unxfbsdi.mk~ Sat Oct 1 08:52:58 2005 -+++ solenv/inc/unxfbsdi.mk Sat Oct 1 12:52:34 2005 @@ -190,8 +190,13 @@ LIBSALCPPRT*=-Wl,--whole-archive -lsalcpprt -Wl,--no-whole-archive diff --git a/editors/openoffice.org-2-devel/files/pkg-message.in b/editors/openoffice.org-2-devel/files/pkg-message.in index 016629fb8c3d..197e0ddd1e2b 100644 --- a/editors/openoffice.org-2-devel/files/pkg-message.in +++ b/editors/openoffice.org-2-devel/files/pkg-message.in @@ -38,6 +38,5 @@ OO.org does need $LANG to be set to a suitable value. 3. If you run into problems -------------------------------------------------- If you somehow run into problems, please remove the already installed -".openoffice.org2" dir in your homedir. -Redo the user installation and the problems should go away. - +".openoffice.org2" dir in your homedir. Redo the user +installation and the problems should go away. diff --git a/editors/openoffice.org-2.0-devel/Makefile b/editors/openoffice.org-2.0-devel/Makefile index fcddd167f4e6..682aa73aac89 100644 --- a/editors/openoffice.org-2.0-devel/Makefile +++ b/editors/openoffice.org-2.0-devel/Makefile @@ -13,7 +13,10 @@ MASTER_SITES+= http://openoffice.lunarshells.com/sources/ \ ftp://ftp.cs.man.ac.uk/pub/toby/gpc/:gpc \ ${MASTER_SITE_MOZILLA:S/$/:mozsrc/} MASTER_SITE_SUBDIR= mozilla/releases/mozilla${MOZILLA_VERSION}/source/:mozsrc -DISTFILES+= OOo_${RELEASE_NR}m${MILESTONE}_source.tar.bz2 gpc231.tar.Z:gpc +DISTFILES+= OOo_${RELEASE_NR}m${MILESTONE}_source.tar.bz2 +.if defined(WITH_GPC) +DISTFILES+= gpc231.tar.Z:gpc +.endif EXTRACT_ONLY= OOo_${RELEASE_NR}m${MILESTONE}_source.tar.bz2 MAINTAINER= openoffice@FreeBSD.org @@ -50,17 +53,14 @@ JAVA_VENDOR= bsdjava .include <bsd.port.pre.mk> .include <${FILESDIR}/Makefile.localized> -.if (${OSVERSION} < 503001 && ${OSVERSION} >= 500000) || (${OSVERSION} <= 492000) -BROKEN= "rtld depends on _end symbol. type make -DTRYBROKEN to see how to upgrade your rtld" -.endif .if ${PERL_LEVEL} < 500600 IGNORE= Install lang/perl5.8 then try again .endif CODELINE= 680 -RELEASE_NR= 1.9 -MILESTONE= 134 -SNAPDATE= 20051014 +RELEASE_NR= 2.0 +MILESTONE= 136 +SNAPDATE= 20051026 INSTALLATION_BASEDIR= openoffice.org${RELEASE_NR}m${MILESTONE} EXECBASE= openoffice.org-${RELEASE_NR}m${MILESTONE} DIST_SUBDIR= openoffice.org2.0 @@ -117,7 +117,9 @@ BUILD_DEPENDS+= ${ANT}:${PORTSDIR}/devel/apache-ant LIB_DEPENDS+= xslt.2:${PORTSDIR}/textproc/libxslt LIB_DEPENDS+= xml2.5:${PORTSDIR}/textproc/libxml2 .endif - +.if !defined(WITH_GPC) +LIB_DEPENDS= art_lgpl_2:${PORTSDIR}/graphics/libart_lgpl2 +.endif GNU_CONFIGURE= yes WRKSRC= ${WRKDIR} CONFIGURE_WRKSRC= ${WRKSRC}/config_office @@ -127,7 +129,7 @@ TCSH?= /bin/tcsh PKGMESSAGE= ${WRKDIR}/pkg-message NUMOFPROCESSES?= 1 -CONFIGURE_ARGS+= --with-gnu-cp=${LOCALBASE}/bin/gcp --with-gnu-patch=${LOCALBASE}/bin/gpatch --with-epm=internal --with-system-freetype +CONFIGURE_ARGS+= --with-gnu-cp=${LOCALBASE}/bin/gcp --with-gnu-patch=${LOCALBASE}/bin/gpatch --with-epm=internal --with-system-freetype --enable-crashdump=yes --enable-symbols=SMALL .include <${FILESDIR}/Makefile.knobs> @@ -155,9 +157,11 @@ post-extract: .if (${OSVERSION} <= 492000) @cd ${WRKSRC} ; ${PATCH} < ${FILESDIR}/fbsd4-workaroundpatch .endif +.if defined(WITH_GPC) @cd ${WRKDIR} ; ${CAT} ${DISTDIR}/${DIST_SUBDIR}/gpc231.tar.Z | ${TAR} xfz - @${CP} ${WRKDIR}/gpc231/gpc.c ${WRKSRC}/external/gpc/ @${CP} ${WRKDIR}/gpc231/gpc.h ${WRKSRC}/external/gpc/ +.endif .if !defined(WITHOUT_MOZILLA) @${CP} ${DISTDIR}/${DIST_SUBDIR}/${MOZILLA_SOURCE} ${WRKSRC}/moz/download .endif @@ -201,11 +205,6 @@ post-install: @${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-simpress @${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-spadmin @${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-swriter -# python post-install script start -# consult instsetoo_native/inc_openoffice/unix/shellscripts_pyuno.txt - @cd ${PREFIX}/${INSTALLATION_BASEDIR}/program ; ${LN} -s python-core-2.3.4 ${PREFIX}/${INSTALLATION_BASEDIR}/program/python-core; ${LN} -s python.sh ${PREFIX}/${INSTALLATION_BASEDIR}/program/python - ${CHMOD} +x ${PREFIX}/${INSTALLATION_BASEDIR}/program/python-core-2.3.4/bin/python -# python post-install script end @${PRINTF} "bin/openoffice.org\n" > ${TMPPLIST} @cd ${PREFIX} ; ${FIND} -s bin -type f | ${GREP} ${EXECBASE} >> ${TMPPLIST} @cd ${PREFIX} ; ${FIND} -s bin -type l | ${GREP} ${EXECBASE} >> ${TMPPLIST} diff --git a/editors/openoffice.org-2.0-devel/distinfo b/editors/openoffice.org-2.0-devel/distinfo index d197cee91002..58d929a8df0a 100644 --- a/editors/openoffice.org-2.0-devel/distinfo +++ b/editors/openoffice.org-2.0-devel/distinfo @@ -1,5 +1,5 @@ -MD5 (openoffice.org2.0/OOo_1.9m134_source.tar.bz2) = ee2bb0be1307e1edea82969dcec794b0 -SIZE (openoffice.org2.0/OOo_1.9m134_source.tar.bz2) = 228972679 +MD5 (openoffice.org2.0/OOo_2.0m136_source.tar.bz2) = 838779d94d677b29060ce58b2da723ac +SIZE (openoffice.org2.0/OOo_2.0m136_source.tar.bz2) = 230644111 MD5 (openoffice.org2.0/gpc231.tar.Z) = fdb06fdb5a4670b172f9fb738b717be9 SIZE (openoffice.org2.0/gpc231.tar.Z) = 27917 MD5 (openoffice.org2.0/mozilla-source-1.7.5.tar.gz) = d3f3528b6c5eade402ed058207cffa14 diff --git a/editors/openoffice.org-2.0-devel/files/Makefile.knobs b/editors/openoffice.org-2.0-devel/files/Makefile.knobs index 366ae60ba851..1f3ae9cce1a4 100644 --- a/editors/openoffice.org-2.0-devel/files/Makefile.knobs +++ b/editors/openoffice.org-2.0-devel/files/Makefile.knobs @@ -12,6 +12,10 @@ CONFIGURE_ARGS+= --with-java=gij --with-ant-home=${LOCALBASE}/ant CONFIGURE_ARGS+= --without-java .endif +.if !defined(WITH_GPC) +CONFIGURE_ARGS+= --enable-libart +.endif + .if defined(WITH_KDE) CONFIGURE_ARGS+= --enable-kde QTDIR="${QT_PREFIX}" .endif @@ -114,6 +118,11 @@ pre-fetch: @${ECHO} "You can compile OOo to use Qt/KDE vclplug with" @${ECHO} "make -DWITH_KDE" .endif +.if !defined(WITH_GPC) + @${ECHO} + @${ECHO} "You can compile OOo with gpc instead of libart by" + @${ECHO} "make -DWITH_GPC" +.endif @${ECHO} @${ECHO} "NOTICE:" @${ECHO} diff --git a/editors/openoffice.org-2.0-devel/files/generate.pl b/editors/openoffice.org-2.0-devel/files/generate.pl index 95dcec1a3d10..5f8195bdff81 100644 --- a/editors/openoffice.org-2.0-devel/files/generate.pl +++ b/editors/openoffice.org-2.0-devel/files/generate.pl @@ -1,8 +1,7 @@ #!/usr/bin/perl - # generate full build shell script for OpenOffice.org # Whom: Maho Nakata <maho@FreeBSD.org> -# $FreeBSD: /tmp/pcvs/ports/editors/openoffice.org-2.0-devel/files/Attic/generate.pl,v 1.6 2005-08-29 01:07:59 maho Exp $ +# $FreeBSD: /tmp/pcvs/ports/editors/openoffice.org-2.0-devel/files/Attic/generate.pl,v 1.7 2005-10-31 08:01:24 maho Exp $ print "#!/bin/csh\n"; print "make deinstall clean\n"; diff --git a/editors/openoffice.org-2.0-devel/files/patch-Python-2.3.4.patch b/editors/openoffice.org-2.0-devel/files/patch-Python-2.3.4.patch index 646b69d1385a..41b3577a44c6 100644 --- a/editors/openoffice.org-2.0-devel/files/patch-Python-2.3.4.patch +++ b/editors/openoffice.org-2.0-devel/files/patch-Python-2.3.4.patch @@ -1,7 +1,7 @@ -Issutracker : #i53287# -CWS : N/A -Author: : <maho@openoffice.org> (JCA) -Description : Support for FreeBSD 6 and 7 +Issuetracker : #i53287# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : Support for FreeBSD 6 and 7 Index: python/Python-2.3.4.patch =================================================================== diff --git a/editors/openoffice.org-2.0-devel/files/patch-backtrace b/editors/openoffice.org-2.0-devel/files/patch-backtrace new file mode 100644 index 000000000000..523bba02d5e4 --- /dev/null +++ b/editors/openoffice.org-2.0-devel/files/patch-backtrace @@ -0,0 +1,95 @@ +Issuetracker : #i56946# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : FreeBSD porting : An implementation of backtrace at sal/osl/unx +To pass the compilation, we had been preparing dummy function at sal. +We implemented this. + +--- sal/osl/unx/backtrace.c Thu Sep 8 23:52:44 2005 ++++ sal/osl/unx/backtrace.c Sun Oct 23 09:19:04 2005 +@@ -129,6 +129,7 @@ + #include <pthread.h> + #include <setjmp.h> + #include <stdio.h> ++#include <stddef.h> + #include "backtrace.h" + + #define FRAME_PTR_OFFSET 1 +@@ -136,11 +137,55 @@ + + int backtrace( void **buffer, int max_frames ) + { +- return 1; ++ struct frame *fp; ++ jmp_buf ctx; ++ int i; ++ /* get stack- and framepointer */ ++ setjmp(ctx); ++ fp = (struct frame*)(((size_t*)(ctx))[FRAME_PTR_OFFSET]); ++ for ( i=0; (i<FRAME_OFFSET) && (fp!=0); i++) ++ fp = fp->fr_savfp; ++ /* iterate through backtrace */ ++ for (i=0; fp && fp->fr_savpc && i<max_frames; i++) ++ { ++ /* store frame */ ++ *(buffer++) = (void *)fp->fr_savpc; ++ /* next frame */ ++ fp=fp->fr_savfp; ++ } ++ return i; + } + + void backtrace_symbols_fd( void **buffer, int size, int fd ) + { ++ FILE *fp = fdopen( fd, "w" ); ++ ++ if ( fp ) ++ { ++ void **pFramePtr; ++ for ( pFramePtr = buffer; size > 0 && pFramePtr && *pFramePtr; pFramePtr++, size-- ) ++ { ++ Dl_info dli; ++ ptrdiff_t offset; ++ ++ if ( 0 != dladdr( *pFramePtr, &dli ) ) ++ { ++ if ( dli.dli_fname && dli.dli_fbase ) ++ { ++ offset = (ptrdiff_t)*pFramePtr - (ptrdiff_t)dli.dli_fbase; ++ fprintf( fp, "%s+0x%x", dli.dli_fname, offset ); ++ } ++ if ( dli.dli_sname && dli.dli_saddr ) ++ { ++ offset = (ptrdiff_t)*pFramePtr - (ptrdiff_t)dli.dli_saddr; ++ fprintf( fp, "(%s+0x%x)", dli.dli_sname, offset ); ++ } ++ } ++ fprintf( fp, "[0x%x]\n", *pFramePtr ); ++ } ++ fflush( fp ); ++ fclose( fp ); ++ } + + } + #endif /* defined FREEBSD */ + +--- sal/osl/unx/backtrace.h Thu Sep 8 23:52:59 2005 ++++ sal/osl/unx/backtrace.h Sun Oct 23 09:19:40 2005 +@@ -46,6 +46,16 @@ + + void backtrace_symbols_fd( void **buffer, int size, int fd ); + ++/* no frame.h on FreeBSD */ ++#if defined FREEBSD ++struct frame { ++ long arg0[8]; ++ long arg1[6]; ++ struct frame *fr_savfp; ++ long fr_savpc; ++}; ++#endif ++ + #ifdef __cplusplus + } /* extern "C" */ + #endif + diff --git a/editors/openoffice.org-2.0-devel/files/patch-bridges b/editors/openoffice.org-2.0-devel/files/patch-bridges new file mode 100644 index 000000000000..8375332a3e20 --- /dev/null +++ b/editors/openoffice.org-2.0-devel/files/patch-bridges @@ -0,0 +1,173 @@ +Issuetracker : #i56947# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : FreeBSD porting : update files at bridges project +catch up version up of bridge project of GNU/Linux + +--- bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx Thu Sep 8 07:20:08 2005 ++++ bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx Wed Oct 26 15:10:05 2005 +@@ -57,7 +57,7 @@ + typelib_TypeDescriptionReference * pReturnTypeRef, // 0 indicates void return + sal_Int32 nParams, typelib_MethodParameter * pParams, + void ** pCallStack, +- sal_Int64 * pRegisterReturn /* space for register return */ ) ++ void * pReturnValue ) + { + // pCallStack: ret, [return ptr], this, params + char * pCppStack = (char *)(pCallStack +1); +@@ -74,7 +74,7 @@ + { + if (bridges::cpp_uno::shared::isSimpleType( pReturnTypeDescr )) + { +- pUnoReturn = pRegisterReturn; // direct way for simple types ++ pUnoReturn = pReturnValue; // direct way for simple types + } + else // complex return via ptr (pCppReturn) + { +@@ -215,7 +215,7 @@ + uno_destructData( pUnoReturn, pReturnTypeDescr, 0 ); + } + // complex return ptr is set to eax +- *(void **)pRegisterReturn = pCppReturn; ++ *static_cast< void ** >(pReturnValue) = pCppReturn; + } + if (pReturnTypeDescr) + { +@@ -228,7 +228,7 @@ + //================================================================================================== + extern "C" void cpp_vtable_call( + int nFunctionIndex, int nVtableOffset, void** pCallStack, +- sal_Int64 nRegReturn ) ++ void * pReturnValue ) + { + OSL_ENSURE( sizeof(sal_Int32)==sizeof(void *), "### unexpected!" ); + +@@ -275,7 +275,7 @@ + pCppI, aMemberDescr.get(), + ((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef, + 0, 0, // no params +- pCallStack, &nRegReturn ); ++ pCallStack, pReturnValue ); + } + else + { +@@ -290,7 +290,7 @@ + pCppI, aMemberDescr.get(), + 0, // indicates void return + 1, &aParam, +- pCallStack, &nRegReturn ); ++ pCallStack, pReturnValue ); + } + break; + } +@@ -324,7 +324,7 @@ + &pInterface, pTD, cpp_acquire ); + pInterface->release(); + TYPELIB_DANGER_RELEASE( pTD ); +- *(void **)&nRegReturn = pCallStack[1]; ++ *static_cast< void ** >(pReturnValue) = pCallStack[1]; + break; + } + TYPELIB_DANGER_RELEASE( pTD ); +@@ -336,7 +336,7 @@ + ((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->pReturnTypeRef, + ((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->nParams, + ((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->pParams, +- pCallStack, &nRegReturn ); ++ pCallStack, pReturnValue ); + } + break; + } +--- bridges/source/cpp_uno/gcc3_freebsd_intel/call.s Wed Jun 1 01:32:41 2005 ++++ bridges/source/cpp_uno/gcc3_freebsd_intel/call.s Wed Oct 26 15:10:04 2005 +@@ -9,12 +9,13 @@ + .LCFIg0: + movl %esp,%ebp + .LCFIg1: +- subl $0x8,%esp # 64bit nRegReturn ++ subl $0x4,%esp # 32bit returnValue ++ pushl %esp # 32bit &returnValue + pushl %ecx # 32bit pCallStack + pushl %edx # 32bit nVtableOffset + pushl %eax # 32bit nFunctionIndex + call cpp_vtable_call +- movl 12(%esp),%eax # 64 bit nRegReturn, lower half ++ movl 16(%esp),%eax # 32bit returnValue + leave + ret + .LFEg: +@@ -29,7 +30,7 @@ + .LCFIv0: + movl %esp,%ebp + .LCFIv1: +- subl $0x8,%esp # 64bit nRegReturn ++ pushl $0 # 32bit null pointer (returnValue not used) + pushl %ecx # 32bit pCallStack + pushl %edx # 32bit nVtableOffset + pushl %eax # 32bit nFunctionIndex +@@ -48,13 +49,14 @@ + .LCFIh0: + movl %esp,%ebp + .LCFIh1: +- subl $0x8,%esp # 64bit nRegReturn ++ subl $0x8,%esp # 64bit returnValue ++ pushl %esp # 32bit &returnValue + pushl %ecx # 32bit pCallStack + pushl %edx # 32bit nVtableOffset + pushl %eax # 32bit nFunctionIndex + call cpp_vtable_call +- movl 12(%esp),%eax # 64 bit nRegReturn, lower half +- movl 16(%esp),%edx # 64 bit nRegReturn, upper half ++ movl 16(%esp),%eax # 64bit returnValue, lower half ++ movl 20(%esp),%edx # 64bit returnValue, upper half + leave + ret + .LFEh: +@@ -69,12 +71,13 @@ + .LCFIf0: + movl %esp,%ebp + .LCFIf1: +- subl $0x8,%esp # 64bit nRegReturn ++ subl $0x4,%esp # 32bit returnValue ++ pushl %esp # 32bit &returnValue + pushl %ecx # 32bit pCallStack + pushl %edx # 32bit nVtableOffset + pushl %eax # 32bit nFunctionIndex + call cpp_vtable_call +- flds 12(%esp) # 64 bit nRegReturn, lower half ++ flds 16(%esp) # 32bit returnValue + leave + ret + .LFEf: +@@ -89,12 +92,13 @@ + .LCFId0: + movl %esp,%ebp + .LCFId1: +- subl $0x8,%esp # 64bit nRegReturn ++ subl $0x8,%esp # 64bit returnValue ++ pushl %esp # 32bit &returnValue + pushl %ecx # 32bit pCallStack + pushl %edx # 32bit nVtableOffset + pushl %eax # 32bit nFunctionIndex + call cpp_vtable_call +- fldl 12(%esp) # 64 bit nRegReturn ++ fldl 16(%esp) # 64bit returnValue + leave + ret + .LFEd: +@@ -109,12 +113,13 @@ + .LCFIc0: + movl %esp,%ebp + .LCFIc1: +- subl $0x8,%esp # 64bit nRegReturn ++ subl $0x4,%esp # 32bit returnValue ++ pushl %esp # 32bit &returnValue + pushl %ecx # 32bit pCallStack + pushl %edx # 32bit nVtableOffset + pushl %eax # 32bit nFunctionIndex + call cpp_vtable_call +- movl 12(%esp),%eax # 64 bit nRegReturn, lower half ++ movl 16(%esp),%eax # 32bit returnValue + leave + ret $4 + .LFEc: diff --git a/editors/openoffice.org-2.0-devel/files/patch-config_office+set_soenv.in b/editors/openoffice.org-2.0-devel/files/patch-config_office+set_soenv.in index 93e375b46f8e..a06f28849d7a 100644 --- a/editors/openoffice.org-2.0-devel/files/patch-config_office+set_soenv.in +++ b/editors/openoffice.org-2.0-devel/files/patch-config_office+set_soenv.in @@ -1,4 +1,10 @@ ---- config_office/set_soenv.in~ Thu Sep 22 23:30:56 2005 +Issuetracker : #i56949# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : FreeBSD porting : Add conditional the case of @GCCVER@ >= 30401. +Like GNU/Linux's case, we also need the case for $CVER if @GCCVER@ is equal to or larger than 3.4.1 + +--- config_office/set_soenv.in Thu Sep 22 23:30:56 2005 +++ config_office/set_soenv.in Sat Oct 1 12:59:30 2005 @@ -347,6 +347,9 @@ $JRELIBDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."i386"; diff --git a/editors/openoffice.org-2.0-devel/files/patch-epm+epm-3.7.patch b/editors/openoffice.org-2.0-devel/files/patch-epm+epm-3.7.patch index 4cc75dc9a25c..2182489d5445 100644 --- a/editors/openoffice.org-2.0-devel/files/patch-epm+epm-3.7.patch +++ b/editors/openoffice.org-2.0-devel/files/patch-epm+epm-3.7.patch @@ -1,7 +1,7 @@ -Issutracker : #iXXXXX# -CWS : N/A -Author: : <maho@openoffice.org> (JCA) -Description : epm porting for FreeBSD +Issuetracker : #iXXXXX# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : epm porting for FreeBSD o FreeBSD's package manager doesn't allow multiple lines for @exec and @unexec o chown is at /usr/sbin/ diff --git a/editors/openoffice.org-2.0-devel/files/patch-icu+icu-2.6.patch b/editors/openoffice.org-2.0-devel/files/patch-icu+icu-2.6.patch new file mode 100644 index 000000000000..eb643e9e4a97 --- /dev/null +++ b/editors/openoffice.org-2.0-devel/files/patch-icu+icu-2.6.patch @@ -0,0 +1,38 @@ +Issuetracker : #i56952# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : FreeBSD porting : Passing $ORIGIN to linker at icu project +We also want to pass -rpath $ORIGIN to linker as GNU/Linux and/or Solaris's case. + +--- icu/icu-2.6.patch Fri Aug 26 20:43:35 2005 ++++ icu-2.6.patch Mon Oct 24 18:18:45 2005 +@@ -2747,3 +2747,29 @@ + commands = pkg_appendToList(commands, NULL, uprv_strdup(stanza)); + + sprintf(stanza, "@$(RMV) $(TEMP_DIR)/%s", cfile+genFileOffset); ++*** misc/icu/source/config/mh-bsd-gcc Thu May 2 08:48:10 2002 ++--- misc/build/icu/source/config/mh-bsd-gcc Mon Oct 24 18:16:57 2005 ++*************** ++*** 10,21 **** ++--- 10,30 ---- ++ GEN_DEPS.cc= $(CXX) -E -MM $(DEFS) $(CPPFLAGS) ++ ++ ## Flags for position independent code +++ STATICCFLAGS = -fPIC +++ STATICCXXFLAGS = -fPIC +++ STATICCPPFLAGS = -DPIC ++ SHAREDLIBCFLAGS = -fPIC ++ SHAREDLIBCXXFLAGS = -fPIC ++ SHAREDLIBCPPFLAGS = -DPIC ++ ++ ## Compiler switch to embed a runtime search path ++ LD_RPATH= +++ ## Force RPATH=$ORIGIN to locate own dependencies w/o need for LD_LIBRARY_PATH +++ ENABLE_RPATH=YES +++ RPATHLDFLAGS=${LD_RPATH_PRE}'$$ORIGIN' +++ +++ #SH# ENABLE_RPATH=YES +++ #SH# RPATHLDFLAGS="${LD_RPATH_PRE}'$$ORIGIN'" ++ LD_RPATH_PRE= -Wl,-rpath, ++ ++ ## Compiler switch to embed a library name diff --git a/editors/openoffice.org-2.0-devel/files/patch-instsetoo b/editors/openoffice.org-2.0-devel/files/patch-instsetoo index ccb23c985924..fe7e3b5f3845 100644 --- a/editors/openoffice.org-2.0-devel/files/patch-instsetoo +++ b/editors/openoffice.org-2.0-devel/files/patch-instsetoo @@ -1,7 +1,7 @@ -Issutracker : #i53288# -CWS : N/A -Author: : <maho@openoffice.org> (JCA) -Description : remove circular dependency +Issuetracker : #i53288# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : remove circular dependency in this case, core01 is depend on core02-core08, and core0[2-9] and core10 diff --git a/editors/openoffice.org-2.0-devel/files/patch-jvmfwk+distributions+OpenOfficeorg+makefile.mk b/editors/openoffice.org-2.0-devel/files/patch-jvmfwk+distributions+OpenOfficeorg+makefile.mk new file mode 100644 index 000000000000..2c89e95a8cdb --- /dev/null +++ b/editors/openoffice.org-2.0-devel/files/patch-jvmfwk+distributions+OpenOfficeorg+makefile.mk @@ -0,0 +1,17 @@ +Issuetracker : #i56951# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : FreeBSD porting : javavendors_linux.xml can be used for FreeBSD as well. +javavendors_linux.xml can be used for FreeBSD as well. + +--- jvmfwk/distributions/OpenOfficeorg/makefile.mk Thu Sep 8 04:26:17 2005 ++++ jvmfwk/distributions/OpenOfficeorg/makefile.mk Sat Oct 22 18:31:16 2005 +@@ -49,7 +49,7 @@ + .IF "$(GUI)"=="UNX" + .IF "$(OS)"=="MACOSX" + +-$(COPY) javavendors_macosx.xml $(BIN)$/javavendors_ooo.xml +-.ELIF "$(OS)"=="LINUX" ++.ELIF "$(OS)"=="LINUX" || "$(OS)"=="FREEBSD" + +-$(COPY) javavendors_linux.xml $(BIN)$/javavendors_ooo.xml + .ELSE + +-$(COPY) javavendors_unx.xml $(BIN)$/javavendors_ooo.xml diff --git a/editors/openoffice.org-2.0-devel/files/patch-jvmfwk+plugins+sunmajor+pluginlib+sunversion.cxx b/editors/openoffice.org-2.0-devel/files/patch-jvmfwk+plugins+sunmajor+pluginlib+sunversion.cxx new file mode 100644 index 000000000000..c963d013cc07 --- /dev/null +++ b/editors/openoffice.org-2.0-devel/files/patch-jvmfwk+plugins+sunmajor+pluginlib+sunversion.cxx @@ -0,0 +1,61 @@ +Issuetracker : #i56953# +CWS : N/A +Author : <maho@openoffice.org> +Description : FreeBSD porting : do not hardcode pXX of Java version and FreeBSD native Java is always superior to Linux's one. + +1. we had been hard coding Java's version by p1, p2 ... etc. but apparently +it is not a good habit. in this patch we eleminate this. + +2. we'd better to use FreeBSD's native Java, and not GNU/Linux's ones if both are exist +in the system. We add 100 as micro version number, so that we treat FreeBSD's version of +java 1.4.1-p10 for example to 1.4.1_110. + +--- jvmfwk/plugins/sunmajor/pluginlib/sunversion.cxx Thu Sep 8 04:31:40 2005 ++++ jvmfwk/plugins/sunmajor/pluginlib/sunversion.cxx Sat Oct 22 18:25:49 2005 +@@ -208,7 +208,16 @@ + return false; + #if defined(FREEBSD) + if (m_preRelease == Rel_FreeBSD) { +- m_nUpdateSpecial = *pCur; ++ pCur++; //elemnate `p' ++ if (pCur < pEnd && isdigit(*pCur)) ++ if (pCur < pEnd) ++ pCur ++; ++ int len = pCur - pLast -1; //elemenate `p' ++ if (len >= 127) ++ return false; ++ strncpy(buf, (pLast+1), len); //elemenate `p' ++ buf[len] = 0; ++ m_nUpdateSpecial = atoi(buf)+100; //hack for FBSD + return true; + } + #endif +@@ -249,27 +258,7 @@ + else if (! strcmp(szRelease, "rc3")) + return Rel_RC3; + #if defined (FREEBSD) +- else if (! strcmp(szRelease, "p1")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p2")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p3")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p4")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p5")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p6")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p7")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p8")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p9")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p10")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p11")) ++ else if (! strncmp(szRelease, "p", 1)) + return Rel_FreeBSD; + #endif + else diff --git a/editors/openoffice.org-2.0-devel/files/patch-libxmlsec+makefile.mk b/editors/openoffice.org-2.0-devel/files/patch-libxmlsec+makefile.mk new file mode 100644 index 000000000000..5735c62a3298 --- /dev/null +++ b/editors/openoffice.org-2.0-devel/files/patch-libxmlsec+makefile.mk @@ -0,0 +1,18 @@ +Issuetracker : #i56954# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : FreeBSD porting : Passing $ORIGIN to linker at libxmlsec project +We also want to pass -rpath $ORIGIN to linker as GNU/Linux and/or Solaris's case. + +--- libxmlsec/makefile.mk.org Tue Oct 25 15:00:10 2005 ++++ libxmlsec/makefile.mk Tue Oct 25 15:00:28 2005 +@@ -89,6 +89,9 @@ + .IF "$(OS)$(COM)"=="SOLARISC52" + LDFLAGS:=-Wl,-R'$$$$ORIGIN' + .ENDIF # "$(OS)$(COM)"=="SOLARISC52" ++.IF "$(OS)$(COM)"=="FREEBSDGCC" ++LDFLAGS:=-Wl,-rpath,'$$$$ORIGIN' ++.ENDIF # "$(OS)$(COM)"=="FREEBSDGCC" + .EXPORT: LDFLAGS + .ENDIF + CONFIGURE_DIR= diff --git a/editors/openoffice.org-2.0-devel/files/patch-postprocess+prj+build.lst b/editors/openoffice.org-2.0-devel/files/patch-postprocess+prj+build.lst index cc04678794e8..91addd32b2b4 100644 --- a/editors/openoffice.org-2.0-devel/files/patch-postprocess+prj+build.lst +++ b/editors/openoffice.org-2.0-devel/files/patch-postprocess+prj+build.lst @@ -1,7 +1,7 @@ -Issutracker : #i56070# -CWS : N/A -Author: : <maho@openoffice.org> -Description : some *.desktop files missing on making installsets +Issuetracker : #i56070#, #i56731# +CWS : N/A +Author : <maho@openoffice.org> +Description : some *.desktop files missing on making installsets Index: postprocess/prj/build.lst =================================================================== @@ -12,7 +12,10 @@ diff -u -r1.20 build.lst +++ postprocess/prj/build.lst 16 Oct 2005 08:36:25 -0000 @@ -1,4 +1,4 @@ -po postprocess :: accessibility automation basctl bean BINFILTER:binfilter chart2 configmgr CRASHREP:crashrep dbaccess desktop dtrans embeddedobj embedserv EPM:epm eventattacher extensions extras fileaccess filter forms fpicker helpcontent2 hwpfilter io lingucomponent MATHMLDTD:MathMLDTD MSFONTEXTRACT:msfontextract ODK:odk officecfg package padmin psprint_config remotebridges sc scaddins scp2 scripting sd setup_native slideshow starmath sw testshl testshl2 testtools ucb UnoControls unoxml ure wizards xmlsecurity BITSTREAM_VERA_FONTS:bitstream_vera_fonts DICTIONARIES:dictionaries OOo:pyuno OOo:readlicense_oo SO:top NULL -+po postprocess :: accessibility automation basctl bean BINFILTER:binfilter chart2 configmgr CRASHREP:crashrep dbaccess desktop dtrans embeddedobj embedserv EPM:epm eventattacher extensions extras fileaccess filter forms fpicker helpcontent2 hwpfilter io lingucomponent MATHMLDTD:MathMLDTD MSFONTEXTRACT:msfontextract ODK:odk officecfg package padmin psprint_config remotebridges sc scaddins scp2 scripting sd setup_native slideshow starmath sw sysui testshl testshl2 testtools ucb UnoControls unoxml ure wizards xmlsecurity BITSTREAM_VERA_FONTS:bitstream_vera_fonts DICTIONARIES:dictionaries OOo:pyuno OOo:readlicense_oo SO:top NULL ++po postprocess :: accessibility automation basctl bean BINFILTER:binfilter chart2 configmgr CRASHREP:crashrep dbaccess desktop dtrans embeddedobj embedserv EPM:epm eventattacher extensions extras fileaccess filter forms fpicker helpcontent2 hwpfilter io lingucomponent MATHMLDTD:MathMLDTD MSFONTEXTRACT:msfontextract ODK:odk officecfg package padmin psprint_config remotebridges sc scaddins scp2 scripting sd setup_native slideshow starmath sw sysui testshl testshl2 testtools ucb UnoControls unoxml ure wizards xmlsecurity BITSTREAM_VERA_FONTS:bitstream_vera_fonts xmerge DICTIONARIES:dictionaries OOo:pyuno OOo:readlicense_oo SO:top NULL po postprocess usr1 - all po_mkout NULL po postprocess\checkxml nmake - all po_checkxml NULL po postprocess\packconfig nmake - all po_packconfig po_checkxml NULL + + + diff --git a/editors/openoffice.org-2.0-devel/files/patch-pythonlink b/editors/openoffice.org-2.0-devel/files/patch-pythonlink new file mode 100644 index 000000000000..779d21c95f44 --- /dev/null +++ b/editors/openoffice.org-2.0-devel/files/patch-pythonlink @@ -0,0 +1,312 @@ +Issuetracker : #i56955# +CWS : N/A +Author : <maho@openoffice.org> +Description : Remove instsetoo_native/inc_openoffice/unix/shellscripts_pyuno.txt + +It is desirable to prepare minimal shellscripts as far as possible at +installation part, and possibly, no shellscripts. However, +unfortunately three things had done at shellscripts_pyuno.txt. + +1. symlink to python.sh -> python +2. chmod +x program/python-core-2.3.4/bin/python +3. symlink to python-core-2.3.4 -> python-core + +solution + +0. apply following patch. full build confirmed for SRC680_m134, FreeBSD 5.4-RELEASE. +1. Done in scp2 project: prepare scp2/source/python/shortcut_python.scp and scp2/util/makefile.mk, +and make a symlink to python.sh -> python. +(3. is impossible to solve in this way since we only have python-core-2.3.4.zip in files in scp2.) +2. Do not use program/python-core-2.3.4/bin/python, use program/python.bin instead. python.sh +now executes program/python.bin. this is usual way; see e.g., spadmin etc. +3. change from symlinking python-core-2.3.4->python-core +to adding version number (by replacing by sed) to python.sh which invoke python in OOo, +and we don't have to make a symlink. + +suggestion (and not yet done): + +4. we can also remove symlink from python.sh to python and +rename python.sh to python. apparently intermidiate python.sh is unnecessary. +currently: python -> python.sh -> python.bin +suggested: python -> python.bin +delivering a shell script python can harm since we have python binary from python project +as well. but this is safe since python (shell script) and python.bin are delivered, +at the same time. + +--- scp2/source/python/makefile.mk Fri Sep 9 10:43:01 2005 ++++ scp2/source/python/makefile.mk Wed Oct 26 17:12:52 2005 +@@ -60,7 +60,8 @@ + PARFILES=\ + module_python.par \ + profileitem_python.par \ +- file_python.par ++ file_python.par \ ++ shortcut_python.par + + ULFFILES= \ + module_python.ulf + +--- scp2/util/makefile.mk Fri Sep 9 10:52:09 2005 ++++ scp2/util/makefile.mk Thu Oct 27 07:25:25 2005 +@@ -87,7 +87,8 @@ + file_xsltfilter.par \ + module_python.par \ + file_python.par \ +- profileitem_python.par ++ profileitem_python.par \ ++ shortcut_python.par + + .IF "$(SOLAR_JAVA)"!="" + SCP1FILES += \ + +--- /dev/null Thu Oct 27 09:59:37 2005 ++++ scp2/source/python/shortcut_python.scp Thu Oct 27 09:59:19 2005 +@@ -0,0 +1,49 @@ ++/************************************************************************* ++ * ++ * OpenOffice.org - a multi-platform office productivity suite ++ * ++ * $RCSfile: shortcut_python.scp,v $ ++ * ++ * $Revision: 1.20 $ ++ * ++ * last change: $Author: rt $ $Date: 2005/09/09 01:42:03 $ ++ * ++ * The Contents of this file are made available subject to ++ * the terms of GNU Lesser General Public License Version 2.1. ++ * ++ * ++ * GNU Lesser General Public License Version 2.1 ++ * ============================================= ++ * Copyright 2005 by Sun Microsystems, Inc. ++ * 901 San Antonio Road, Palo Alto, CA 94303, USA ++ * ++ * This library is free software; you can redistribute it and/or ++ * modify it under the terms of the GNU Lesser General Public ++ * License version 2.1, as published by the Free Software Foundation. ++ * ++ * This library is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ * Lesser General Public License for more details. ++ * ++ * You should have received a copy of the GNU Lesser General Public ++ * License along with this library; if not, write to the Free Software ++ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, ++ * MA 02111-1307 USA ++ * ++ ************************************************************************/ ++ ++#include "macros.inc" ++ ++#ifndef SYSTEM_PYTHON ++#ifdef UNX ++ ++Shortcut gid_Shortcut_Python_Sh ++ FileID = gid_File_Python_Sh; ++ Dir = gid_Dir_Program; ++ Name = "python"; ++ Styles = (RELATIVE); ++End ++ ++#endif ++#endif + +--- instsetoo_native/inc_openoffice/unix/shellscripts_pyuno.txt Thu Aug 18 17:11:29 2005 ++++ /dev/null Wed Oct 26 09:51:22 2005 +@@ -1,74 +0,0 @@ +-%preinstall << END +-# echo Command before installing +-exit 0 +-END +- +-%postinstall << END +-# echo Command after installing +-# searching for the PRODUCTINSTALLLOCATION for the different platforms +-platform=`uname -s` +-case $$platform in +-SunOS) +- PRODUCTINSTALLLOCATION="$$BASEDIR" +- ;; +-Linux) +- PRODUCTINSTALLLOCATION="$$RPM_INSTALL_PREFIX" +- ;; +-*) +- PRODUCTINSTALLLOCATION="$$BASEDIR" +- ;; +-esac +- +-if [ -d $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python-core-2.3.4 ] +-then +- ln -s python-core-2.3.4 $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python-core >/dev/null 2>&1 +-fi +- +-if [ -f $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python.sh ] +-then +- ln -s python.sh $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python >/dev/null 2>&1 +-fi +- +-if [ -f $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python-core-2.3.4/bin/python ] +-then +- chmod +x $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python-core-2.3.4/bin/python +-fi +- +-exit 0 +-END +- +-%preremove << END +-# echo Command before removing +-exit 0 +-END +- +-%postremove << END +-# echo Command after removing +- +-# searching for the PRODUCTINSTALLLOCATION for the different platforms +-platform=`uname -s` +-case $$platform in +-SunOS) +- PRODUCTINSTALLLOCATION="$$BASEDIR" +- ;; +-Linux) +- PRODUCTINSTALLLOCATION="$$RPM_INSTALL_PREFIX" +- ;; +-*) +- PRODUCTINSTALLLOCATION="$$BASEDIR" +- ;; +-esac +- +-if [ -h $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python-core ] +-then +- rm -f $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python-core >/dev/null 2>&1 +-fi +- +-if [ -h $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python ] +-then +- rm -f $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python >/dev/null 2>&1 +-fi +- +- +-exit 0 +-END +--- instsetoo_native/inc_openoffice/unix/packagelist.txt Wed Oct 26 17:34:58 2005 ++++ instsetoo_native/inc_openoffice/unix/packagelist.txt Thu Oct 27 06:25:32 2005 +@@ -233,7 +233,6 @@ + + Start + module = "gid_Module_Optional_Pyuno" +-script = "shellscripts_pyuno.txt" + solarispackagename = "openofficeorg-pyuno" + solarisrequires = "openofficeorg-core01" + packagename = "openoffice.org-pyuno" + + +--- pyuno/zipcore/python.sh Fri Sep 9 01:55:24 2005 ++++ pyuno/zipcore/python.sh Thu Oct 27 14:48:08 2005 +@@ -101,14 +101,14 @@ + ;; + esac + +-PYTHONPATH="$sd_prog":"$sd_prog/python-core/lib":"$sd_prog/python-core/lib/lib-dynload":"$sd_prog/python-core/lib/lib-tk":"$PYTHONPATH" ++PYTHONPATH="$sd_prog":"$sd_prog/python-core-%%PYVERSION%%/lib":"$sd_prog/python-core-%%PYVERSION%%/lib/lib-dynload":"$sd_prog/python-core-%%PYVERSION%%/lib/lib-tk":"$PYTHONPATH" + export PYTHONPATH + +-PYTHONHOME="$sd_prog"/python-core ++PYTHONHOME="$sd_prog"/python-core-%%PYVERSION%% + export PYTHONHOME + + # set path so that other apps can be started from soffice just by name + PATH="$sd_prog":$PATH + export PATH +-exec "$sd_prog/python-core/bin/python" "$@" ++exec "$sd_prog/python.bin" "$@" + +--- pyuno/zipcore/makefile.mk Thu Sep 9 01:55:34 2004 ++++ pyuno/zipcore/makefile.mk Thu Oct 27 14:47:34 2005 +@@ -12,7 +12,11 @@ + + PYDIRNAME=python-core-$(PYVERSION) + DESTROOT=$(BIN)$/python-core-$(PYVERSION) ++.IF "$(GUI)" == "UNX" ++PYTHONBINARY=$(BIN)$/python$(EXECPOST).bin ++.ELSE + PYTHONBINARY=$(DESTROOT)$/bin$/python$(EXECPOST) ++.ENDIF + + FINDLIBFILES_TMP:=$(subst,/,$/ \ + $(shell +$(FIND) $(SOLARLIBDIR)$/python -type f| $(GREP) -v .pyc )) +@@ -29,6 +33,8 @@ + $(BIN)$/python.sh : python.sh + -rm -f $@ + cat $? > $@ ++ sed 's/%%PYVERSION%%/$(PYVERSION)/g' < $@ > $@.new ++ mv $@.new $@ + .IF "$(GUI)" == "UNX" + chmod +x $@ + .ENDIF +@@ -47,15 +53,21 @@ + -rm -f $@ + cat $< > $@ + +-$(DESTROOT)$/bin$/python$(EXECPOST) : $(SOLARBINDIR)$/python$(EXECPOST) ++.IF "$(GUI)"== "UNX" ++$(BIN)$/python$(EXECPOST).bin : $(SOLARBINDIR)$/python$(EXECPOST) + -+$(MKDIRHIER) $(@:d) + -rm -f $@ + cat $< > $@ +-.IF "$(GUI)"== "UNX" + .IF "$(OS)" != "MACOSX" + strip $@ + .ENDIF + chmod +x $@ ++.ELSE ++$(DESTROOT)$/bin$/python$(EXECPOST) : $(SOLARBINDIR)$/python$(EXECPOST) ++ -+$(MKDIRHIER) $(@:d) ++ -rm -f $@ ++ cat $< > $@ ++ strip $@ + .ENDIF + + .ENDIF +--- pyuno/prj/d.lst Wed Feb 16 03:46:13 2005 ++++ pyuno/prj/d.lst Thu Oct 27 14:52:10 2005 +@@ -22,4 +22,5 @@ + ..\%__SRC%\misc\pyunorc %_DEST%\lib%_EXT%\pyunorc + ..\%__SRC%\misc\pyuno.ini %_DEST%\bin%_EXT%\pyuno.ini + ..\%__SRC%\bin\python-core-*.zip %_DEST%\bin%_EXT%\python-core-*.zip ++..\%__SRC%\bin\python.bin %_DEST%\bin%_EXT%\python.bin + ..\%__SRC%\bin\python.sh %_DEST%\bin%_EXT%\python.sh + + +--- scp2/source/python/module_python.scp Fri Sep 9 10:43:17 2005 ++++ scp2/source/python/module_python.scp Thu Oct 27 14:54:41 2005 +@@ -38,7 +38,7 @@ + Module gid_Module_Optional_Pyuno + MOD_NAME_DESC ( MODULE_OPTIONAL_PYTHON ); + ParentID = gid_Module_Optional; +- Files = (gid_File_Pyuno,gid_File_Lib_Pyuno,gid_File_Lib_Pythonloader,gid_File_Py_Unohelper,gid_File_Py_Uno,gid_File_Py_Pythonloader,gid_File_Py_Python_Core,gid_File_Python_Sh,gid_File_Lib_Python_So, gid_File_Py_Scriptprovider,gid_File_Py_Pythonscript,gid_File_Scripts_Python,gid_File_Registry_Spool_Oo_Scripting_Python_Xcu,gid_File_Pythonmsi_Dll); ++ Files = (gid_File_Pyuno,gid_File_Lib_Pyuno,gid_File_Lib_Pythonloader,gid_File_Py_Unohelper,gid_File_Py_Uno,gid_File_Py_Pythonloader,gid_File_Py_Python_Core,gid_File_Py_Python_Bin,gid_File_Python_Sh,gid_File_Lib_Python_So, gid_File_Py_Scriptprovider,gid_File_Py_Pythonscript,gid_File_Scripts_Python,gid_File_Registry_Spool_Oo_Scripting_Python_Xcu,gid_File_Pythonmsi_Dll); + Minimal = NO; + Default = YES; + Styles = ( ); + +--- scp2/source/python/file_python.scp Fri Sep 9 10:42:31 2005 ++++ scp2/source/python/file_python.scp Thu Oct 27 16:41:18 2005 +@@ -86,8 +86,17 @@ + Name = STRING(CONCAT3(python-core-,PYVERSION,.zip)); + Styles = (ARCHIVE); + End ++ ++#ifdef UNX ++File gid_File_Py_Python_Bin ++ BIN_FILE_BODY; ++ Dir = gid_Dir_Program; ++ Name = "python.bin"; ++ Styles = (PACKED); ++End + #endif + ++#endif + + // substitute for the python Windows basic scripts + diff --git a/editors/openoffice.org-2.0-devel/files/patch-rsc+source+rscpp+makefile.mk b/editors/openoffice.org-2.0-devel/files/patch-rsc+source+rscpp+makefile.mk index 713232e42a70..2959319805b5 100644 --- a/editors/openoffice.org-2.0-devel/files/patch-rsc+source+rscpp+makefile.mk +++ b/editors/openoffice.org-2.0-devel/files/patch-rsc+source+rscpp+makefile.mk @@ -1,4 +1,7 @@ -#i54178# +Issuetracker : #i54178# +CWS : hr17 +Author: : +Description : Index: rsc/source/rscpp/makefile.mk =================================================================== diff --git a/editors/openoffice.org-2.0-devel/files/patch-solenv+inc+unxfbsdi.mk b/editors/openoffice.org-2.0-devel/files/patch-solenv+inc+unxfbsdi.mk index ff89caae4ff0..02b0c8ad1400 100644 --- a/editors/openoffice.org-2.0-devel/files/patch-solenv+inc+unxfbsdi.mk +++ b/editors/openoffice.org-2.0-devel/files/patch-solenv+inc+unxfbsdi.mk @@ -1,7 +1,11 @@ -STLPORT_VERSION is 450 for FreeBSD +Issuetracker : #i56956# +CWS : N/A +Author: : <maho@openoffice.org> (JCA) +Description : FreeBSD porting : catch up recent version of solenv/inc/unxlngi6.mk +catch up recent version of solenv/inc/unxlngi6.mk and STLPORT_VERSION is 450 in FreeBSD ---- solenv/inc/unxfbsdi.mk~ Thu Sep 8 18:52:53 2005 -+++ solenv/inc/unxfbsdi.mk Fri Sep 30 14:08:04 2005 +--- solenv/inc/unxfbsdi.mk Wed Oct 5 20:33:12 2005 ++++ solenv/inc/unxfbsdi.mk Mon Oct 24 11:13:39 2005 @@ -45,7 +45,7 @@ #LINKOUTPUT_FILTER=" |& $(SOLARENV)$/bin$/msg_filter" @@ -11,8 +15,6 @@ STLPORT_VERSION is 450 for FreeBSD # enable visibility define in "sal/types.h" .IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE" ---- solenv/inc/unxfbsdi.mk~ Sat Oct 1 08:52:58 2005 -+++ solenv/inc/unxfbsdi.mk Sat Oct 1 12:52:34 2005 @@ -190,8 +190,13 @@ LIBSALCPPRT*=-Wl,--whole-archive -lsalcpprt -Wl,--no-whole-archive diff --git a/editors/openoffice.org-2.0-devel/files/pkg-message.in b/editors/openoffice.org-2.0-devel/files/pkg-message.in index 016629fb8c3d..197e0ddd1e2b 100644 --- a/editors/openoffice.org-2.0-devel/files/pkg-message.in +++ b/editors/openoffice.org-2.0-devel/files/pkg-message.in @@ -38,6 +38,5 @@ OO.org does need $LANG to be set to a suitable value. 3. If you run into problems -------------------------------------------------- If you somehow run into problems, please remove the already installed -".openoffice.org2" dir in your homedir. -Redo the user installation and the problems should go away. - +".openoffice.org2" dir in your homedir. Redo the user +installation and the problems should go away. diff --git a/editors/openoffice.org-3-devel/Makefile b/editors/openoffice.org-3-devel/Makefile index fcddd167f4e6..682aa73aac89 100644 --- a/editors/openoffice.org-3-devel/Makefile +++ b/editors/openoffice.org-3-devel/Makefile @@ -13,7 +13,10 @@ MASTER_SITES+= http://openoffice.lunarshells.com/sources/ \ ftp://ftp.cs.man.ac.uk/pub/toby/gpc/:gpc \ ${MASTER_SITE_MOZILLA:S/$/:mozsrc/} MASTER_SITE_SUBDIR= mozilla/releases/mozilla${MOZILLA_VERSION}/source/:mozsrc -DISTFILES+= OOo_${RELEASE_NR}m${MILESTONE}_source.tar.bz2 gpc231.tar.Z:gpc +DISTFILES+= OOo_${RELEASE_NR}m${MILESTONE}_source.tar.bz2 +.if defined(WITH_GPC) +DISTFILES+= gpc231.tar.Z:gpc +.endif EXTRACT_ONLY= OOo_${RELEASE_NR}m${MILESTONE}_source.tar.bz2 MAINTAINER= openoffice@FreeBSD.org @@ -50,17 +53,14 @@ JAVA_VENDOR= bsdjava .include <bsd.port.pre.mk> .include <${FILESDIR}/Makefile.localized> -.if (${OSVERSION} < 503001 && ${OSVERSION} >= 500000) || (${OSVERSION} <= 492000) -BROKEN= "rtld depends on _end symbol. type make -DTRYBROKEN to see how to upgrade your rtld" -.endif .if ${PERL_LEVEL} < 500600 IGNORE= Install lang/perl5.8 then try again .endif CODELINE= 680 -RELEASE_NR= 1.9 -MILESTONE= 134 -SNAPDATE= 20051014 +RELEASE_NR= 2.0 +MILESTONE= 136 +SNAPDATE= 20051026 INSTALLATION_BASEDIR= openoffice.org${RELEASE_NR}m${MILESTONE} EXECBASE= openoffice.org-${RELEASE_NR}m${MILESTONE} DIST_SUBDIR= openoffice.org2.0 @@ -117,7 +117,9 @@ BUILD_DEPENDS+= ${ANT}:${PORTSDIR}/devel/apache-ant LIB_DEPENDS+= xslt.2:${PORTSDIR}/textproc/libxslt LIB_DEPENDS+= xml2.5:${PORTSDIR}/textproc/libxml2 .endif - +.if !defined(WITH_GPC) +LIB_DEPENDS= art_lgpl_2:${PORTSDIR}/graphics/libart_lgpl2 +.endif GNU_CONFIGURE= yes WRKSRC= ${WRKDIR} CONFIGURE_WRKSRC= ${WRKSRC}/config_office @@ -127,7 +129,7 @@ TCSH?= /bin/tcsh PKGMESSAGE= ${WRKDIR}/pkg-message NUMOFPROCESSES?= 1 -CONFIGURE_ARGS+= --with-gnu-cp=${LOCALBASE}/bin/gcp --with-gnu-patch=${LOCALBASE}/bin/gpatch --with-epm=internal --with-system-freetype +CONFIGURE_ARGS+= --with-gnu-cp=${LOCALBASE}/bin/gcp --with-gnu-patch=${LOCALBASE}/bin/gpatch --with-epm=internal --with-system-freetype --enable-crashdump=yes --enable-symbols=SMALL .include <${FILESDIR}/Makefile.knobs> @@ -155,9 +157,11 @@ post-extract: .if (${OSVERSION} <= 492000) @cd ${WRKSRC} ; ${PATCH} < ${FILESDIR}/fbsd4-workaroundpatch .endif +.if defined(WITH_GPC) @cd ${WRKDIR} ; ${CAT} ${DISTDIR}/${DIST_SUBDIR}/gpc231.tar.Z | ${TAR} xfz - @${CP} ${WRKDIR}/gpc231/gpc.c ${WRKSRC}/external/gpc/ @${CP} ${WRKDIR}/gpc231/gpc.h ${WRKSRC}/external/gpc/ +.endif .if !defined(WITHOUT_MOZILLA) @${CP} ${DISTDIR}/${DIST_SUBDIR}/${MOZILLA_SOURCE} ${WRKSRC}/moz/download .endif @@ -201,11 +205,6 @@ post-install: @${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-simpress @${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-spadmin @${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-swriter -# python post-install script start -# consult instsetoo_native/inc_openoffice/unix/shellscripts_pyuno.txt - @cd ${PREFIX}/${INSTALLATION_BASEDIR}/program ; ${LN} -s python-core-2.3.4 ${PREFIX}/${INSTALLATION_BASEDIR}/program/python-core; ${LN} -s python.sh ${PREFIX}/${INSTALLATION_BASEDIR}/program/python - ${CHMOD} +x ${PREFIX}/${INSTALLATION_BASEDIR}/program/python-core-2.3.4/bin/python -# python post-install script end @${PRINTF} "bin/openoffice.org\n" > ${TMPPLIST} @cd ${PREFIX} ; ${FIND} -s bin -type f | ${GREP} ${EXECBASE} >> ${TMPPLIST} @cd ${PREFIX} ; ${FIND} -s bin -type l | ${GREP} ${EXECBASE} >> ${TMPPLIST} diff --git a/editors/openoffice.org-3-devel/distinfo b/editors/openoffice.org-3-devel/distinfo index d197cee91002..58d929a8df0a 100644 --- a/editors/openoffice.org-3-devel/distinfo +++ b/editors/openoffice.org-3-devel/distinfo @@ -1,5 +1,5 @@ -MD5 (openoffice.org2.0/OOo_1.9m134_source.tar.bz2) = ee2bb0be1307e1edea82969dcec794b0 -SIZE (openoffice.org2.0/OOo_1.9m134_source.tar.bz2) = 228972679 +MD5 (openoffice.org2.0/OOo_2.0m136_source.tar.bz2) = 838779d94d677b29060ce58b2da723ac +SIZE (openoffice.org2.0/OOo_2.0m136_source.tar.bz2) = 230644111 MD5 (openoffice.org2.0/gpc231.tar.Z) = fdb06fdb5a4670b172f9fb738b717be9 SIZE (openoffice.org2.0/gpc231.tar.Z) = 27917 MD5 (openoffice.org2.0/mozilla-source-1.7.5.tar.gz) = d3f3528b6c5eade402ed058207cffa14 diff --git a/editors/openoffice.org-3-devel/files/Makefile.knobs b/editors/openoffice.org-3-devel/files/Makefile.knobs index 366ae60ba851..1f3ae9cce1a4 100644 --- a/editors/openoffice.org-3-devel/files/Makefile.knobs +++ b/editors/openoffice.org-3-devel/files/Makefile.knobs @@ -12,6 +12,10 @@ CONFIGURE_ARGS+= --with-java=gij --with-ant-home=${LOCALBASE}/ant CONFIGURE_ARGS+= --without-java .endif +.if !defined(WITH_GPC) +CONFIGURE_ARGS+= --enable-libart +.endif + .if defined(WITH_KDE) CONFIGURE_ARGS+= --enable-kde QTDIR="${QT_PREFIX}" .endif @@ -114,6 +118,11 @@ pre-fetch: @${ECHO} "You can compile OOo to use Qt/KDE vclplug with" @${ECHO} "make -DWITH_KDE" .endif +.if !defined(WITH_GPC) + @${ECHO} + @${ECHO} "You can compile OOo with gpc instead of libart by" + @${ECHO} "make -DWITH_GPC" +.endif @${ECHO} @${ECHO} "NOTICE:" @${ECHO} diff --git a/editors/openoffice.org-3-devel/files/generate.pl b/editors/openoffice.org-3-devel/files/generate.pl index 4957964a923b..4583608b59fa 100644 --- a/editors/openoffice.org-3-devel/files/generate.pl +++ b/editors/openoffice.org-3-devel/files/generate.pl @@ -1,8 +1,7 @@ #!/usr/bin/perl - # generate full build shell script for OpenOffice.org # Whom: Maho Nakata <maho@FreeBSD.org> -# $FreeBSD: /tmp/pcvs/ports/editors/openoffice.org-3-devel/files/Attic/generate.pl,v 1.6 2005-08-29 01:07:59 maho Exp $ +# $FreeBSD: /tmp/pcvs/ports/editors/openoffice.org-3-devel/files/Attic/generate.pl,v 1.7 2005-10-31 08:01:24 maho Exp $ print "#!/bin/csh\n"; print "make deinstall clean\n"; diff --git a/editors/openoffice.org-3-devel/files/patch-Python-2.3.4.patch b/editors/openoffice.org-3-devel/files/patch-Python-2.3.4.patch index 646b69d1385a..41b3577a44c6 100644 --- a/editors/openoffice.org-3-devel/files/patch-Python-2.3.4.patch +++ b/editors/openoffice.org-3-devel/files/patch-Python-2.3.4.patch @@ -1,7 +1,7 @@ -Issutracker : #i53287# -CWS : N/A -Author: : <maho@openoffice.org> (JCA) -Description : Support for FreeBSD 6 and 7 +Issuetracker : #i53287# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : Support for FreeBSD 6 and 7 Index: python/Python-2.3.4.patch =================================================================== diff --git a/editors/openoffice.org-3-devel/files/patch-backtrace b/editors/openoffice.org-3-devel/files/patch-backtrace new file mode 100644 index 000000000000..523bba02d5e4 --- /dev/null +++ b/editors/openoffice.org-3-devel/files/patch-backtrace @@ -0,0 +1,95 @@ +Issuetracker : #i56946# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : FreeBSD porting : An implementation of backtrace at sal/osl/unx +To pass the compilation, we had been preparing dummy function at sal. +We implemented this. + +--- sal/osl/unx/backtrace.c Thu Sep 8 23:52:44 2005 ++++ sal/osl/unx/backtrace.c Sun Oct 23 09:19:04 2005 +@@ -129,6 +129,7 @@ + #include <pthread.h> + #include <setjmp.h> + #include <stdio.h> ++#include <stddef.h> + #include "backtrace.h" + + #define FRAME_PTR_OFFSET 1 +@@ -136,11 +137,55 @@ + + int backtrace( void **buffer, int max_frames ) + { +- return 1; ++ struct frame *fp; ++ jmp_buf ctx; ++ int i; ++ /* get stack- and framepointer */ ++ setjmp(ctx); ++ fp = (struct frame*)(((size_t*)(ctx))[FRAME_PTR_OFFSET]); ++ for ( i=0; (i<FRAME_OFFSET) && (fp!=0); i++) ++ fp = fp->fr_savfp; ++ /* iterate through backtrace */ ++ for (i=0; fp && fp->fr_savpc && i<max_frames; i++) ++ { ++ /* store frame */ ++ *(buffer++) = (void *)fp->fr_savpc; ++ /* next frame */ ++ fp=fp->fr_savfp; ++ } ++ return i; + } + + void backtrace_symbols_fd( void **buffer, int size, int fd ) + { ++ FILE *fp = fdopen( fd, "w" ); ++ ++ if ( fp ) ++ { ++ void **pFramePtr; ++ for ( pFramePtr = buffer; size > 0 && pFramePtr && *pFramePtr; pFramePtr++, size-- ) ++ { ++ Dl_info dli; ++ ptrdiff_t offset; ++ ++ if ( 0 != dladdr( *pFramePtr, &dli ) ) ++ { ++ if ( dli.dli_fname && dli.dli_fbase ) ++ { ++ offset = (ptrdiff_t)*pFramePtr - (ptrdiff_t)dli.dli_fbase; ++ fprintf( fp, "%s+0x%x", dli.dli_fname, offset ); ++ } ++ if ( dli.dli_sname && dli.dli_saddr ) ++ { ++ offset = (ptrdiff_t)*pFramePtr - (ptrdiff_t)dli.dli_saddr; ++ fprintf( fp, "(%s+0x%x)", dli.dli_sname, offset ); ++ } ++ } ++ fprintf( fp, "[0x%x]\n", *pFramePtr ); ++ } ++ fflush( fp ); ++ fclose( fp ); ++ } + + } + #endif /* defined FREEBSD */ + +--- sal/osl/unx/backtrace.h Thu Sep 8 23:52:59 2005 ++++ sal/osl/unx/backtrace.h Sun Oct 23 09:19:40 2005 +@@ -46,6 +46,16 @@ + + void backtrace_symbols_fd( void **buffer, int size, int fd ); + ++/* no frame.h on FreeBSD */ ++#if defined FREEBSD ++struct frame { ++ long arg0[8]; ++ long arg1[6]; ++ struct frame *fr_savfp; ++ long fr_savpc; ++}; ++#endif ++ + #ifdef __cplusplus + } /* extern "C" */ + #endif + diff --git a/editors/openoffice.org-3-devel/files/patch-bridges b/editors/openoffice.org-3-devel/files/patch-bridges new file mode 100644 index 000000000000..8375332a3e20 --- /dev/null +++ b/editors/openoffice.org-3-devel/files/patch-bridges @@ -0,0 +1,173 @@ +Issuetracker : #i56947# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : FreeBSD porting : update files at bridges project +catch up version up of bridge project of GNU/Linux + +--- bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx Thu Sep 8 07:20:08 2005 ++++ bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx Wed Oct 26 15:10:05 2005 +@@ -57,7 +57,7 @@ + typelib_TypeDescriptionReference * pReturnTypeRef, // 0 indicates void return + sal_Int32 nParams, typelib_MethodParameter * pParams, + void ** pCallStack, +- sal_Int64 * pRegisterReturn /* space for register return */ ) ++ void * pReturnValue ) + { + // pCallStack: ret, [return ptr], this, params + char * pCppStack = (char *)(pCallStack +1); +@@ -74,7 +74,7 @@ + { + if (bridges::cpp_uno::shared::isSimpleType( pReturnTypeDescr )) + { +- pUnoReturn = pRegisterReturn; // direct way for simple types ++ pUnoReturn = pReturnValue; // direct way for simple types + } + else // complex return via ptr (pCppReturn) + { +@@ -215,7 +215,7 @@ + uno_destructData( pUnoReturn, pReturnTypeDescr, 0 ); + } + // complex return ptr is set to eax +- *(void **)pRegisterReturn = pCppReturn; ++ *static_cast< void ** >(pReturnValue) = pCppReturn; + } + if (pReturnTypeDescr) + { +@@ -228,7 +228,7 @@ + //================================================================================================== + extern "C" void cpp_vtable_call( + int nFunctionIndex, int nVtableOffset, void** pCallStack, +- sal_Int64 nRegReturn ) ++ void * pReturnValue ) + { + OSL_ENSURE( sizeof(sal_Int32)==sizeof(void *), "### unexpected!" ); + +@@ -275,7 +275,7 @@ + pCppI, aMemberDescr.get(), + ((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef, + 0, 0, // no params +- pCallStack, &nRegReturn ); ++ pCallStack, pReturnValue ); + } + else + { +@@ -290,7 +290,7 @@ + pCppI, aMemberDescr.get(), + 0, // indicates void return + 1, &aParam, +- pCallStack, &nRegReturn ); ++ pCallStack, pReturnValue ); + } + break; + } +@@ -324,7 +324,7 @@ + &pInterface, pTD, cpp_acquire ); + pInterface->release(); + TYPELIB_DANGER_RELEASE( pTD ); +- *(void **)&nRegReturn = pCallStack[1]; ++ *static_cast< void ** >(pReturnValue) = pCallStack[1]; + break; + } + TYPELIB_DANGER_RELEASE( pTD ); +@@ -336,7 +336,7 @@ + ((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->pReturnTypeRef, + ((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->nParams, + ((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->pParams, +- pCallStack, &nRegReturn ); ++ pCallStack, pReturnValue ); + } + break; + } +--- bridges/source/cpp_uno/gcc3_freebsd_intel/call.s Wed Jun 1 01:32:41 2005 ++++ bridges/source/cpp_uno/gcc3_freebsd_intel/call.s Wed Oct 26 15:10:04 2005 +@@ -9,12 +9,13 @@ + .LCFIg0: + movl %esp,%ebp + .LCFIg1: +- subl $0x8,%esp # 64bit nRegReturn ++ subl $0x4,%esp # 32bit returnValue ++ pushl %esp # 32bit &returnValue + pushl %ecx # 32bit pCallStack + pushl %edx # 32bit nVtableOffset + pushl %eax # 32bit nFunctionIndex + call cpp_vtable_call +- movl 12(%esp),%eax # 64 bit nRegReturn, lower half ++ movl 16(%esp),%eax # 32bit returnValue + leave + ret + .LFEg: +@@ -29,7 +30,7 @@ + .LCFIv0: + movl %esp,%ebp + .LCFIv1: +- subl $0x8,%esp # 64bit nRegReturn ++ pushl $0 # 32bit null pointer (returnValue not used) + pushl %ecx # 32bit pCallStack + pushl %edx # 32bit nVtableOffset + pushl %eax # 32bit nFunctionIndex +@@ -48,13 +49,14 @@ + .LCFIh0: + movl %esp,%ebp + .LCFIh1: +- subl $0x8,%esp # 64bit nRegReturn ++ subl $0x8,%esp # 64bit returnValue ++ pushl %esp # 32bit &returnValue + pushl %ecx # 32bit pCallStack + pushl %edx # 32bit nVtableOffset + pushl %eax # 32bit nFunctionIndex + call cpp_vtable_call +- movl 12(%esp),%eax # 64 bit nRegReturn, lower half +- movl 16(%esp),%edx # 64 bit nRegReturn, upper half ++ movl 16(%esp),%eax # 64bit returnValue, lower half ++ movl 20(%esp),%edx # 64bit returnValue, upper half + leave + ret + .LFEh: +@@ -69,12 +71,13 @@ + .LCFIf0: + movl %esp,%ebp + .LCFIf1: +- subl $0x8,%esp # 64bit nRegReturn ++ subl $0x4,%esp # 32bit returnValue ++ pushl %esp # 32bit &returnValue + pushl %ecx # 32bit pCallStack + pushl %edx # 32bit nVtableOffset + pushl %eax # 32bit nFunctionIndex + call cpp_vtable_call +- flds 12(%esp) # 64 bit nRegReturn, lower half ++ flds 16(%esp) # 32bit returnValue + leave + ret + .LFEf: +@@ -89,12 +92,13 @@ + .LCFId0: + movl %esp,%ebp + .LCFId1: +- subl $0x8,%esp # 64bit nRegReturn ++ subl $0x8,%esp # 64bit returnValue ++ pushl %esp # 32bit &returnValue + pushl %ecx # 32bit pCallStack + pushl %edx # 32bit nVtableOffset + pushl %eax # 32bit nFunctionIndex + call cpp_vtable_call +- fldl 12(%esp) # 64 bit nRegReturn ++ fldl 16(%esp) # 64bit returnValue + leave + ret + .LFEd: +@@ -109,12 +113,13 @@ + .LCFIc0: + movl %esp,%ebp + .LCFIc1: +- subl $0x8,%esp # 64bit nRegReturn ++ subl $0x4,%esp # 32bit returnValue ++ pushl %esp # 32bit &returnValue + pushl %ecx # 32bit pCallStack + pushl %edx # 32bit nVtableOffset + pushl %eax # 32bit nFunctionIndex + call cpp_vtable_call +- movl 12(%esp),%eax # 64 bit nRegReturn, lower half ++ movl 16(%esp),%eax # 32bit returnValue + leave + ret $4 + .LFEc: diff --git a/editors/openoffice.org-3-devel/files/patch-config_office+set_soenv.in b/editors/openoffice.org-3-devel/files/patch-config_office+set_soenv.in index 93e375b46f8e..a06f28849d7a 100644 --- a/editors/openoffice.org-3-devel/files/patch-config_office+set_soenv.in +++ b/editors/openoffice.org-3-devel/files/patch-config_office+set_soenv.in @@ -1,4 +1,10 @@ ---- config_office/set_soenv.in~ Thu Sep 22 23:30:56 2005 +Issuetracker : #i56949# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : FreeBSD porting : Add conditional the case of @GCCVER@ >= 30401. +Like GNU/Linux's case, we also need the case for $CVER if @GCCVER@ is equal to or larger than 3.4.1 + +--- config_office/set_soenv.in Thu Sep 22 23:30:56 2005 +++ config_office/set_soenv.in Sat Oct 1 12:59:30 2005 @@ -347,6 +347,9 @@ $JRELIBDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."i386"; diff --git a/editors/openoffice.org-3-devel/files/patch-epm+epm-3.7.patch b/editors/openoffice.org-3-devel/files/patch-epm+epm-3.7.patch index 4cc75dc9a25c..2182489d5445 100644 --- a/editors/openoffice.org-3-devel/files/patch-epm+epm-3.7.patch +++ b/editors/openoffice.org-3-devel/files/patch-epm+epm-3.7.patch @@ -1,7 +1,7 @@ -Issutracker : #iXXXXX# -CWS : N/A -Author: : <maho@openoffice.org> (JCA) -Description : epm porting for FreeBSD +Issuetracker : #iXXXXX# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : epm porting for FreeBSD o FreeBSD's package manager doesn't allow multiple lines for @exec and @unexec o chown is at /usr/sbin/ diff --git a/editors/openoffice.org-3-devel/files/patch-icu+icu-2.6.patch b/editors/openoffice.org-3-devel/files/patch-icu+icu-2.6.patch new file mode 100644 index 000000000000..eb643e9e4a97 --- /dev/null +++ b/editors/openoffice.org-3-devel/files/patch-icu+icu-2.6.patch @@ -0,0 +1,38 @@ +Issuetracker : #i56952# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : FreeBSD porting : Passing $ORIGIN to linker at icu project +We also want to pass -rpath $ORIGIN to linker as GNU/Linux and/or Solaris's case. + +--- icu/icu-2.6.patch Fri Aug 26 20:43:35 2005 ++++ icu-2.6.patch Mon Oct 24 18:18:45 2005 +@@ -2747,3 +2747,29 @@ + commands = pkg_appendToList(commands, NULL, uprv_strdup(stanza)); + + sprintf(stanza, "@$(RMV) $(TEMP_DIR)/%s", cfile+genFileOffset); ++*** misc/icu/source/config/mh-bsd-gcc Thu May 2 08:48:10 2002 ++--- misc/build/icu/source/config/mh-bsd-gcc Mon Oct 24 18:16:57 2005 ++*************** ++*** 10,21 **** ++--- 10,30 ---- ++ GEN_DEPS.cc= $(CXX) -E -MM $(DEFS) $(CPPFLAGS) ++ ++ ## Flags for position independent code +++ STATICCFLAGS = -fPIC +++ STATICCXXFLAGS = -fPIC +++ STATICCPPFLAGS = -DPIC ++ SHAREDLIBCFLAGS = -fPIC ++ SHAREDLIBCXXFLAGS = -fPIC ++ SHAREDLIBCPPFLAGS = -DPIC ++ ++ ## Compiler switch to embed a runtime search path ++ LD_RPATH= +++ ## Force RPATH=$ORIGIN to locate own dependencies w/o need for LD_LIBRARY_PATH +++ ENABLE_RPATH=YES +++ RPATHLDFLAGS=${LD_RPATH_PRE}'$$ORIGIN' +++ +++ #SH# ENABLE_RPATH=YES +++ #SH# RPATHLDFLAGS="${LD_RPATH_PRE}'$$ORIGIN'" ++ LD_RPATH_PRE= -Wl,-rpath, ++ ++ ## Compiler switch to embed a library name diff --git a/editors/openoffice.org-3-devel/files/patch-instsetoo b/editors/openoffice.org-3-devel/files/patch-instsetoo index ccb23c985924..fe7e3b5f3845 100644 --- a/editors/openoffice.org-3-devel/files/patch-instsetoo +++ b/editors/openoffice.org-3-devel/files/patch-instsetoo @@ -1,7 +1,7 @@ -Issutracker : #i53288# -CWS : N/A -Author: : <maho@openoffice.org> (JCA) -Description : remove circular dependency +Issuetracker : #i53288# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : remove circular dependency in this case, core01 is depend on core02-core08, and core0[2-9] and core10 diff --git a/editors/openoffice.org-3-devel/files/patch-jvmfwk+distributions+OpenOfficeorg+makefile.mk b/editors/openoffice.org-3-devel/files/patch-jvmfwk+distributions+OpenOfficeorg+makefile.mk new file mode 100644 index 000000000000..2c89e95a8cdb --- /dev/null +++ b/editors/openoffice.org-3-devel/files/patch-jvmfwk+distributions+OpenOfficeorg+makefile.mk @@ -0,0 +1,17 @@ +Issuetracker : #i56951# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : FreeBSD porting : javavendors_linux.xml can be used for FreeBSD as well. +javavendors_linux.xml can be used for FreeBSD as well. + +--- jvmfwk/distributions/OpenOfficeorg/makefile.mk Thu Sep 8 04:26:17 2005 ++++ jvmfwk/distributions/OpenOfficeorg/makefile.mk Sat Oct 22 18:31:16 2005 +@@ -49,7 +49,7 @@ + .IF "$(GUI)"=="UNX" + .IF "$(OS)"=="MACOSX" + +-$(COPY) javavendors_macosx.xml $(BIN)$/javavendors_ooo.xml +-.ELIF "$(OS)"=="LINUX" ++.ELIF "$(OS)"=="LINUX" || "$(OS)"=="FREEBSD" + +-$(COPY) javavendors_linux.xml $(BIN)$/javavendors_ooo.xml + .ELSE + +-$(COPY) javavendors_unx.xml $(BIN)$/javavendors_ooo.xml diff --git a/editors/openoffice.org-3-devel/files/patch-jvmfwk+plugins+sunmajor+pluginlib+sunversion.cxx b/editors/openoffice.org-3-devel/files/patch-jvmfwk+plugins+sunmajor+pluginlib+sunversion.cxx new file mode 100644 index 000000000000..c963d013cc07 --- /dev/null +++ b/editors/openoffice.org-3-devel/files/patch-jvmfwk+plugins+sunmajor+pluginlib+sunversion.cxx @@ -0,0 +1,61 @@ +Issuetracker : #i56953# +CWS : N/A +Author : <maho@openoffice.org> +Description : FreeBSD porting : do not hardcode pXX of Java version and FreeBSD native Java is always superior to Linux's one. + +1. we had been hard coding Java's version by p1, p2 ... etc. but apparently +it is not a good habit. in this patch we eleminate this. + +2. we'd better to use FreeBSD's native Java, and not GNU/Linux's ones if both are exist +in the system. We add 100 as micro version number, so that we treat FreeBSD's version of +java 1.4.1-p10 for example to 1.4.1_110. + +--- jvmfwk/plugins/sunmajor/pluginlib/sunversion.cxx Thu Sep 8 04:31:40 2005 ++++ jvmfwk/plugins/sunmajor/pluginlib/sunversion.cxx Sat Oct 22 18:25:49 2005 +@@ -208,7 +208,16 @@ + return false; + #if defined(FREEBSD) + if (m_preRelease == Rel_FreeBSD) { +- m_nUpdateSpecial = *pCur; ++ pCur++; //elemnate `p' ++ if (pCur < pEnd && isdigit(*pCur)) ++ if (pCur < pEnd) ++ pCur ++; ++ int len = pCur - pLast -1; //elemenate `p' ++ if (len >= 127) ++ return false; ++ strncpy(buf, (pLast+1), len); //elemenate `p' ++ buf[len] = 0; ++ m_nUpdateSpecial = atoi(buf)+100; //hack for FBSD + return true; + } + #endif +@@ -249,27 +258,7 @@ + else if (! strcmp(szRelease, "rc3")) + return Rel_RC3; + #if defined (FREEBSD) +- else if (! strcmp(szRelease, "p1")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p2")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p3")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p4")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p5")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p6")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p7")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p8")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p9")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p10")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p11")) ++ else if (! strncmp(szRelease, "p", 1)) + return Rel_FreeBSD; + #endif + else diff --git a/editors/openoffice.org-3-devel/files/patch-libxmlsec+makefile.mk b/editors/openoffice.org-3-devel/files/patch-libxmlsec+makefile.mk new file mode 100644 index 000000000000..5735c62a3298 --- /dev/null +++ b/editors/openoffice.org-3-devel/files/patch-libxmlsec+makefile.mk @@ -0,0 +1,18 @@ +Issuetracker : #i56954# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : FreeBSD porting : Passing $ORIGIN to linker at libxmlsec project +We also want to pass -rpath $ORIGIN to linker as GNU/Linux and/or Solaris's case. + +--- libxmlsec/makefile.mk.org Tue Oct 25 15:00:10 2005 ++++ libxmlsec/makefile.mk Tue Oct 25 15:00:28 2005 +@@ -89,6 +89,9 @@ + .IF "$(OS)$(COM)"=="SOLARISC52" + LDFLAGS:=-Wl,-R'$$$$ORIGIN' + .ENDIF # "$(OS)$(COM)"=="SOLARISC52" ++.IF "$(OS)$(COM)"=="FREEBSDGCC" ++LDFLAGS:=-Wl,-rpath,'$$$$ORIGIN' ++.ENDIF # "$(OS)$(COM)"=="FREEBSDGCC" + .EXPORT: LDFLAGS + .ENDIF + CONFIGURE_DIR= diff --git a/editors/openoffice.org-3-devel/files/patch-postprocess+prj+build.lst b/editors/openoffice.org-3-devel/files/patch-postprocess+prj+build.lst index cc04678794e8..91addd32b2b4 100644 --- a/editors/openoffice.org-3-devel/files/patch-postprocess+prj+build.lst +++ b/editors/openoffice.org-3-devel/files/patch-postprocess+prj+build.lst @@ -1,7 +1,7 @@ -Issutracker : #i56070# -CWS : N/A -Author: : <maho@openoffice.org> -Description : some *.desktop files missing on making installsets +Issuetracker : #i56070#, #i56731# +CWS : N/A +Author : <maho@openoffice.org> +Description : some *.desktop files missing on making installsets Index: postprocess/prj/build.lst =================================================================== @@ -12,7 +12,10 @@ diff -u -r1.20 build.lst +++ postprocess/prj/build.lst 16 Oct 2005 08:36:25 -0000 @@ -1,4 +1,4 @@ -po postprocess :: accessibility automation basctl bean BINFILTER:binfilter chart2 configmgr CRASHREP:crashrep dbaccess desktop dtrans embeddedobj embedserv EPM:epm eventattacher extensions extras fileaccess filter forms fpicker helpcontent2 hwpfilter io lingucomponent MATHMLDTD:MathMLDTD MSFONTEXTRACT:msfontextract ODK:odk officecfg package padmin psprint_config remotebridges sc scaddins scp2 scripting sd setup_native slideshow starmath sw testshl testshl2 testtools ucb UnoControls unoxml ure wizards xmlsecurity BITSTREAM_VERA_FONTS:bitstream_vera_fonts DICTIONARIES:dictionaries OOo:pyuno OOo:readlicense_oo SO:top NULL -+po postprocess :: accessibility automation basctl bean BINFILTER:binfilter chart2 configmgr CRASHREP:crashrep dbaccess desktop dtrans embeddedobj embedserv EPM:epm eventattacher extensions extras fileaccess filter forms fpicker helpcontent2 hwpfilter io lingucomponent MATHMLDTD:MathMLDTD MSFONTEXTRACT:msfontextract ODK:odk officecfg package padmin psprint_config remotebridges sc scaddins scp2 scripting sd setup_native slideshow starmath sw sysui testshl testshl2 testtools ucb UnoControls unoxml ure wizards xmlsecurity BITSTREAM_VERA_FONTS:bitstream_vera_fonts DICTIONARIES:dictionaries OOo:pyuno OOo:readlicense_oo SO:top NULL ++po postprocess :: accessibility automation basctl bean BINFILTER:binfilter chart2 configmgr CRASHREP:crashrep dbaccess desktop dtrans embeddedobj embedserv EPM:epm eventattacher extensions extras fileaccess filter forms fpicker helpcontent2 hwpfilter io lingucomponent MATHMLDTD:MathMLDTD MSFONTEXTRACT:msfontextract ODK:odk officecfg package padmin psprint_config remotebridges sc scaddins scp2 scripting sd setup_native slideshow starmath sw sysui testshl testshl2 testtools ucb UnoControls unoxml ure wizards xmlsecurity BITSTREAM_VERA_FONTS:bitstream_vera_fonts xmerge DICTIONARIES:dictionaries OOo:pyuno OOo:readlicense_oo SO:top NULL po postprocess usr1 - all po_mkout NULL po postprocess\checkxml nmake - all po_checkxml NULL po postprocess\packconfig nmake - all po_packconfig po_checkxml NULL + + + diff --git a/editors/openoffice.org-3-devel/files/patch-pythonlink b/editors/openoffice.org-3-devel/files/patch-pythonlink new file mode 100644 index 000000000000..779d21c95f44 --- /dev/null +++ b/editors/openoffice.org-3-devel/files/patch-pythonlink @@ -0,0 +1,312 @@ +Issuetracker : #i56955# +CWS : N/A +Author : <maho@openoffice.org> +Description : Remove instsetoo_native/inc_openoffice/unix/shellscripts_pyuno.txt + +It is desirable to prepare minimal shellscripts as far as possible at +installation part, and possibly, no shellscripts. However, +unfortunately three things had done at shellscripts_pyuno.txt. + +1. symlink to python.sh -> python +2. chmod +x program/python-core-2.3.4/bin/python +3. symlink to python-core-2.3.4 -> python-core + +solution + +0. apply following patch. full build confirmed for SRC680_m134, FreeBSD 5.4-RELEASE. +1. Done in scp2 project: prepare scp2/source/python/shortcut_python.scp and scp2/util/makefile.mk, +and make a symlink to python.sh -> python. +(3. is impossible to solve in this way since we only have python-core-2.3.4.zip in files in scp2.) +2. Do not use program/python-core-2.3.4/bin/python, use program/python.bin instead. python.sh +now executes program/python.bin. this is usual way; see e.g., spadmin etc. +3. change from symlinking python-core-2.3.4->python-core +to adding version number (by replacing by sed) to python.sh which invoke python in OOo, +and we don't have to make a symlink. + +suggestion (and not yet done): + +4. we can also remove symlink from python.sh to python and +rename python.sh to python. apparently intermidiate python.sh is unnecessary. +currently: python -> python.sh -> python.bin +suggested: python -> python.bin +delivering a shell script python can harm since we have python binary from python project +as well. but this is safe since python (shell script) and python.bin are delivered, +at the same time. + +--- scp2/source/python/makefile.mk Fri Sep 9 10:43:01 2005 ++++ scp2/source/python/makefile.mk Wed Oct 26 17:12:52 2005 +@@ -60,7 +60,8 @@ + PARFILES=\ + module_python.par \ + profileitem_python.par \ +- file_python.par ++ file_python.par \ ++ shortcut_python.par + + ULFFILES= \ + module_python.ulf + +--- scp2/util/makefile.mk Fri Sep 9 10:52:09 2005 ++++ scp2/util/makefile.mk Thu Oct 27 07:25:25 2005 +@@ -87,7 +87,8 @@ + file_xsltfilter.par \ + module_python.par \ + file_python.par \ +- profileitem_python.par ++ profileitem_python.par \ ++ shortcut_python.par + + .IF "$(SOLAR_JAVA)"!="" + SCP1FILES += \ + +--- /dev/null Thu Oct 27 09:59:37 2005 ++++ scp2/source/python/shortcut_python.scp Thu Oct 27 09:59:19 2005 +@@ -0,0 +1,49 @@ ++/************************************************************************* ++ * ++ * OpenOffice.org - a multi-platform office productivity suite ++ * ++ * $RCSfile: shortcut_python.scp,v $ ++ * ++ * $Revision: 1.20 $ ++ * ++ * last change: $Author: rt $ $Date: 2005/09/09 01:42:03 $ ++ * ++ * The Contents of this file are made available subject to ++ * the terms of GNU Lesser General Public License Version 2.1. ++ * ++ * ++ * GNU Lesser General Public License Version 2.1 ++ * ============================================= ++ * Copyright 2005 by Sun Microsystems, Inc. ++ * 901 San Antonio Road, Palo Alto, CA 94303, USA ++ * ++ * This library is free software; you can redistribute it and/or ++ * modify it under the terms of the GNU Lesser General Public ++ * License version 2.1, as published by the Free Software Foundation. ++ * ++ * This library is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ * Lesser General Public License for more details. ++ * ++ * You should have received a copy of the GNU Lesser General Public ++ * License along with this library; if not, write to the Free Software ++ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, ++ * MA 02111-1307 USA ++ * ++ ************************************************************************/ ++ ++#include "macros.inc" ++ ++#ifndef SYSTEM_PYTHON ++#ifdef UNX ++ ++Shortcut gid_Shortcut_Python_Sh ++ FileID = gid_File_Python_Sh; ++ Dir = gid_Dir_Program; ++ Name = "python"; ++ Styles = (RELATIVE); ++End ++ ++#endif ++#endif + +--- instsetoo_native/inc_openoffice/unix/shellscripts_pyuno.txt Thu Aug 18 17:11:29 2005 ++++ /dev/null Wed Oct 26 09:51:22 2005 +@@ -1,74 +0,0 @@ +-%preinstall << END +-# echo Command before installing +-exit 0 +-END +- +-%postinstall << END +-# echo Command after installing +-# searching for the PRODUCTINSTALLLOCATION for the different platforms +-platform=`uname -s` +-case $$platform in +-SunOS) +- PRODUCTINSTALLLOCATION="$$BASEDIR" +- ;; +-Linux) +- PRODUCTINSTALLLOCATION="$$RPM_INSTALL_PREFIX" +- ;; +-*) +- PRODUCTINSTALLLOCATION="$$BASEDIR" +- ;; +-esac +- +-if [ -d $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python-core-2.3.4 ] +-then +- ln -s python-core-2.3.4 $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python-core >/dev/null 2>&1 +-fi +- +-if [ -f $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python.sh ] +-then +- ln -s python.sh $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python >/dev/null 2>&1 +-fi +- +-if [ -f $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python-core-2.3.4/bin/python ] +-then +- chmod +x $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python-core-2.3.4/bin/python +-fi +- +-exit 0 +-END +- +-%preremove << END +-# echo Command before removing +-exit 0 +-END +- +-%postremove << END +-# echo Command after removing +- +-# searching for the PRODUCTINSTALLLOCATION for the different platforms +-platform=`uname -s` +-case $$platform in +-SunOS) +- PRODUCTINSTALLLOCATION="$$BASEDIR" +- ;; +-Linux) +- PRODUCTINSTALLLOCATION="$$RPM_INSTALL_PREFIX" +- ;; +-*) +- PRODUCTINSTALLLOCATION="$$BASEDIR" +- ;; +-esac +- +-if [ -h $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python-core ] +-then +- rm -f $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python-core >/dev/null 2>&1 +-fi +- +-if [ -h $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python ] +-then +- rm -f $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python >/dev/null 2>&1 +-fi +- +- +-exit 0 +-END +--- instsetoo_native/inc_openoffice/unix/packagelist.txt Wed Oct 26 17:34:58 2005 ++++ instsetoo_native/inc_openoffice/unix/packagelist.txt Thu Oct 27 06:25:32 2005 +@@ -233,7 +233,6 @@ + + Start + module = "gid_Module_Optional_Pyuno" +-script = "shellscripts_pyuno.txt" + solarispackagename = "openofficeorg-pyuno" + solarisrequires = "openofficeorg-core01" + packagename = "openoffice.org-pyuno" + + +--- pyuno/zipcore/python.sh Fri Sep 9 01:55:24 2005 ++++ pyuno/zipcore/python.sh Thu Oct 27 14:48:08 2005 +@@ -101,14 +101,14 @@ + ;; + esac + +-PYTHONPATH="$sd_prog":"$sd_prog/python-core/lib":"$sd_prog/python-core/lib/lib-dynload":"$sd_prog/python-core/lib/lib-tk":"$PYTHONPATH" ++PYTHONPATH="$sd_prog":"$sd_prog/python-core-%%PYVERSION%%/lib":"$sd_prog/python-core-%%PYVERSION%%/lib/lib-dynload":"$sd_prog/python-core-%%PYVERSION%%/lib/lib-tk":"$PYTHONPATH" + export PYTHONPATH + +-PYTHONHOME="$sd_prog"/python-core ++PYTHONHOME="$sd_prog"/python-core-%%PYVERSION%% + export PYTHONHOME + + # set path so that other apps can be started from soffice just by name + PATH="$sd_prog":$PATH + export PATH +-exec "$sd_prog/python-core/bin/python" "$@" ++exec "$sd_prog/python.bin" "$@" + +--- pyuno/zipcore/makefile.mk Thu Sep 9 01:55:34 2004 ++++ pyuno/zipcore/makefile.mk Thu Oct 27 14:47:34 2005 +@@ -12,7 +12,11 @@ + + PYDIRNAME=python-core-$(PYVERSION) + DESTROOT=$(BIN)$/python-core-$(PYVERSION) ++.IF "$(GUI)" == "UNX" ++PYTHONBINARY=$(BIN)$/python$(EXECPOST).bin ++.ELSE + PYTHONBINARY=$(DESTROOT)$/bin$/python$(EXECPOST) ++.ENDIF + + FINDLIBFILES_TMP:=$(subst,/,$/ \ + $(shell +$(FIND) $(SOLARLIBDIR)$/python -type f| $(GREP) -v .pyc )) +@@ -29,6 +33,8 @@ + $(BIN)$/python.sh : python.sh + -rm -f $@ + cat $? > $@ ++ sed 's/%%PYVERSION%%/$(PYVERSION)/g' < $@ > $@.new ++ mv $@.new $@ + .IF "$(GUI)" == "UNX" + chmod +x $@ + .ENDIF +@@ -47,15 +53,21 @@ + -rm -f $@ + cat $< > $@ + +-$(DESTROOT)$/bin$/python$(EXECPOST) : $(SOLARBINDIR)$/python$(EXECPOST) ++.IF "$(GUI)"== "UNX" ++$(BIN)$/python$(EXECPOST).bin : $(SOLARBINDIR)$/python$(EXECPOST) + -+$(MKDIRHIER) $(@:d) + -rm -f $@ + cat $< > $@ +-.IF "$(GUI)"== "UNX" + .IF "$(OS)" != "MACOSX" + strip $@ + .ENDIF + chmod +x $@ ++.ELSE ++$(DESTROOT)$/bin$/python$(EXECPOST) : $(SOLARBINDIR)$/python$(EXECPOST) ++ -+$(MKDIRHIER) $(@:d) ++ -rm -f $@ ++ cat $< > $@ ++ strip $@ + .ENDIF + + .ENDIF +--- pyuno/prj/d.lst Wed Feb 16 03:46:13 2005 ++++ pyuno/prj/d.lst Thu Oct 27 14:52:10 2005 +@@ -22,4 +22,5 @@ + ..\%__SRC%\misc\pyunorc %_DEST%\lib%_EXT%\pyunorc + ..\%__SRC%\misc\pyuno.ini %_DEST%\bin%_EXT%\pyuno.ini + ..\%__SRC%\bin\python-core-*.zip %_DEST%\bin%_EXT%\python-core-*.zip ++..\%__SRC%\bin\python.bin %_DEST%\bin%_EXT%\python.bin + ..\%__SRC%\bin\python.sh %_DEST%\bin%_EXT%\python.sh + + +--- scp2/source/python/module_python.scp Fri Sep 9 10:43:17 2005 ++++ scp2/source/python/module_python.scp Thu Oct 27 14:54:41 2005 +@@ -38,7 +38,7 @@ + Module gid_Module_Optional_Pyuno + MOD_NAME_DESC ( MODULE_OPTIONAL_PYTHON ); + ParentID = gid_Module_Optional; +- Files = (gid_File_Pyuno,gid_File_Lib_Pyuno,gid_File_Lib_Pythonloader,gid_File_Py_Unohelper,gid_File_Py_Uno,gid_File_Py_Pythonloader,gid_File_Py_Python_Core,gid_File_Python_Sh,gid_File_Lib_Python_So, gid_File_Py_Scriptprovider,gid_File_Py_Pythonscript,gid_File_Scripts_Python,gid_File_Registry_Spool_Oo_Scripting_Python_Xcu,gid_File_Pythonmsi_Dll); ++ Files = (gid_File_Pyuno,gid_File_Lib_Pyuno,gid_File_Lib_Pythonloader,gid_File_Py_Unohelper,gid_File_Py_Uno,gid_File_Py_Pythonloader,gid_File_Py_Python_Core,gid_File_Py_Python_Bin,gid_File_Python_Sh,gid_File_Lib_Python_So, gid_File_Py_Scriptprovider,gid_File_Py_Pythonscript,gid_File_Scripts_Python,gid_File_Registry_Spool_Oo_Scripting_Python_Xcu,gid_File_Pythonmsi_Dll); + Minimal = NO; + Default = YES; + Styles = ( ); + +--- scp2/source/python/file_python.scp Fri Sep 9 10:42:31 2005 ++++ scp2/source/python/file_python.scp Thu Oct 27 16:41:18 2005 +@@ -86,8 +86,17 @@ + Name = STRING(CONCAT3(python-core-,PYVERSION,.zip)); + Styles = (ARCHIVE); + End ++ ++#ifdef UNX ++File gid_File_Py_Python_Bin ++ BIN_FILE_BODY; ++ Dir = gid_Dir_Program; ++ Name = "python.bin"; ++ Styles = (PACKED); ++End + #endif + ++#endif + + // substitute for the python Windows basic scripts + diff --git a/editors/openoffice.org-3-devel/files/patch-rsc+source+rscpp+makefile.mk b/editors/openoffice.org-3-devel/files/patch-rsc+source+rscpp+makefile.mk index 713232e42a70..2959319805b5 100644 --- a/editors/openoffice.org-3-devel/files/patch-rsc+source+rscpp+makefile.mk +++ b/editors/openoffice.org-3-devel/files/patch-rsc+source+rscpp+makefile.mk @@ -1,4 +1,7 @@ -#i54178# +Issuetracker : #i54178# +CWS : hr17 +Author: : +Description : Index: rsc/source/rscpp/makefile.mk =================================================================== diff --git a/editors/openoffice.org-3-devel/files/patch-solenv+inc+unxfbsdi.mk b/editors/openoffice.org-3-devel/files/patch-solenv+inc+unxfbsdi.mk index ff89caae4ff0..02b0c8ad1400 100644 --- a/editors/openoffice.org-3-devel/files/patch-solenv+inc+unxfbsdi.mk +++ b/editors/openoffice.org-3-devel/files/patch-solenv+inc+unxfbsdi.mk @@ -1,7 +1,11 @@ -STLPORT_VERSION is 450 for FreeBSD +Issuetracker : #i56956# +CWS : N/A +Author: : <maho@openoffice.org> (JCA) +Description : FreeBSD porting : catch up recent version of solenv/inc/unxlngi6.mk +catch up recent version of solenv/inc/unxlngi6.mk and STLPORT_VERSION is 450 in FreeBSD ---- solenv/inc/unxfbsdi.mk~ Thu Sep 8 18:52:53 2005 -+++ solenv/inc/unxfbsdi.mk Fri Sep 30 14:08:04 2005 +--- solenv/inc/unxfbsdi.mk Wed Oct 5 20:33:12 2005 ++++ solenv/inc/unxfbsdi.mk Mon Oct 24 11:13:39 2005 @@ -45,7 +45,7 @@ #LINKOUTPUT_FILTER=" |& $(SOLARENV)$/bin$/msg_filter" @@ -11,8 +15,6 @@ STLPORT_VERSION is 450 for FreeBSD # enable visibility define in "sal/types.h" .IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE" ---- solenv/inc/unxfbsdi.mk~ Sat Oct 1 08:52:58 2005 -+++ solenv/inc/unxfbsdi.mk Sat Oct 1 12:52:34 2005 @@ -190,8 +190,13 @@ LIBSALCPPRT*=-Wl,--whole-archive -lsalcpprt -Wl,--no-whole-archive diff --git a/editors/openoffice.org-3-devel/files/pkg-message.in b/editors/openoffice.org-3-devel/files/pkg-message.in index 016629fb8c3d..197e0ddd1e2b 100644 --- a/editors/openoffice.org-3-devel/files/pkg-message.in +++ b/editors/openoffice.org-3-devel/files/pkg-message.in @@ -38,6 +38,5 @@ OO.org does need $LANG to be set to a suitable value. 3. If you run into problems -------------------------------------------------- If you somehow run into problems, please remove the already installed -".openoffice.org2" dir in your homedir. -Redo the user installation and the problems should go away. - +".openoffice.org2" dir in your homedir. Redo the user +installation and the problems should go away. diff --git a/editors/openoffice.org-vcltesttool/Makefile b/editors/openoffice.org-vcltesttool/Makefile index fcddd167f4e6..682aa73aac89 100644 --- a/editors/openoffice.org-vcltesttool/Makefile +++ b/editors/openoffice.org-vcltesttool/Makefile @@ -13,7 +13,10 @@ MASTER_SITES+= http://openoffice.lunarshells.com/sources/ \ ftp://ftp.cs.man.ac.uk/pub/toby/gpc/:gpc \ ${MASTER_SITE_MOZILLA:S/$/:mozsrc/} MASTER_SITE_SUBDIR= mozilla/releases/mozilla${MOZILLA_VERSION}/source/:mozsrc -DISTFILES+= OOo_${RELEASE_NR}m${MILESTONE}_source.tar.bz2 gpc231.tar.Z:gpc +DISTFILES+= OOo_${RELEASE_NR}m${MILESTONE}_source.tar.bz2 +.if defined(WITH_GPC) +DISTFILES+= gpc231.tar.Z:gpc +.endif EXTRACT_ONLY= OOo_${RELEASE_NR}m${MILESTONE}_source.tar.bz2 MAINTAINER= openoffice@FreeBSD.org @@ -50,17 +53,14 @@ JAVA_VENDOR= bsdjava .include <bsd.port.pre.mk> .include <${FILESDIR}/Makefile.localized> -.if (${OSVERSION} < 503001 && ${OSVERSION} >= 500000) || (${OSVERSION} <= 492000) -BROKEN= "rtld depends on _end symbol. type make -DTRYBROKEN to see how to upgrade your rtld" -.endif .if ${PERL_LEVEL} < 500600 IGNORE= Install lang/perl5.8 then try again .endif CODELINE= 680 -RELEASE_NR= 1.9 -MILESTONE= 134 -SNAPDATE= 20051014 +RELEASE_NR= 2.0 +MILESTONE= 136 +SNAPDATE= 20051026 INSTALLATION_BASEDIR= openoffice.org${RELEASE_NR}m${MILESTONE} EXECBASE= openoffice.org-${RELEASE_NR}m${MILESTONE} DIST_SUBDIR= openoffice.org2.0 @@ -117,7 +117,9 @@ BUILD_DEPENDS+= ${ANT}:${PORTSDIR}/devel/apache-ant LIB_DEPENDS+= xslt.2:${PORTSDIR}/textproc/libxslt LIB_DEPENDS+= xml2.5:${PORTSDIR}/textproc/libxml2 .endif - +.if !defined(WITH_GPC) +LIB_DEPENDS= art_lgpl_2:${PORTSDIR}/graphics/libart_lgpl2 +.endif GNU_CONFIGURE= yes WRKSRC= ${WRKDIR} CONFIGURE_WRKSRC= ${WRKSRC}/config_office @@ -127,7 +129,7 @@ TCSH?= /bin/tcsh PKGMESSAGE= ${WRKDIR}/pkg-message NUMOFPROCESSES?= 1 -CONFIGURE_ARGS+= --with-gnu-cp=${LOCALBASE}/bin/gcp --with-gnu-patch=${LOCALBASE}/bin/gpatch --with-epm=internal --with-system-freetype +CONFIGURE_ARGS+= --with-gnu-cp=${LOCALBASE}/bin/gcp --with-gnu-patch=${LOCALBASE}/bin/gpatch --with-epm=internal --with-system-freetype --enable-crashdump=yes --enable-symbols=SMALL .include <${FILESDIR}/Makefile.knobs> @@ -155,9 +157,11 @@ post-extract: .if (${OSVERSION} <= 492000) @cd ${WRKSRC} ; ${PATCH} < ${FILESDIR}/fbsd4-workaroundpatch .endif +.if defined(WITH_GPC) @cd ${WRKDIR} ; ${CAT} ${DISTDIR}/${DIST_SUBDIR}/gpc231.tar.Z | ${TAR} xfz - @${CP} ${WRKDIR}/gpc231/gpc.c ${WRKSRC}/external/gpc/ @${CP} ${WRKDIR}/gpc231/gpc.h ${WRKSRC}/external/gpc/ +.endif .if !defined(WITHOUT_MOZILLA) @${CP} ${DISTDIR}/${DIST_SUBDIR}/${MOZILLA_SOURCE} ${WRKSRC}/moz/download .endif @@ -201,11 +205,6 @@ post-install: @${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-simpress @${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-spadmin @${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-swriter -# python post-install script start -# consult instsetoo_native/inc_openoffice/unix/shellscripts_pyuno.txt - @cd ${PREFIX}/${INSTALLATION_BASEDIR}/program ; ${LN} -s python-core-2.3.4 ${PREFIX}/${INSTALLATION_BASEDIR}/program/python-core; ${LN} -s python.sh ${PREFIX}/${INSTALLATION_BASEDIR}/program/python - ${CHMOD} +x ${PREFIX}/${INSTALLATION_BASEDIR}/program/python-core-2.3.4/bin/python -# python post-install script end @${PRINTF} "bin/openoffice.org\n" > ${TMPPLIST} @cd ${PREFIX} ; ${FIND} -s bin -type f | ${GREP} ${EXECBASE} >> ${TMPPLIST} @cd ${PREFIX} ; ${FIND} -s bin -type l | ${GREP} ${EXECBASE} >> ${TMPPLIST} diff --git a/editors/openoffice.org-vcltesttool/distinfo b/editors/openoffice.org-vcltesttool/distinfo index d197cee91002..58d929a8df0a 100644 --- a/editors/openoffice.org-vcltesttool/distinfo +++ b/editors/openoffice.org-vcltesttool/distinfo @@ -1,5 +1,5 @@ -MD5 (openoffice.org2.0/OOo_1.9m134_source.tar.bz2) = ee2bb0be1307e1edea82969dcec794b0 -SIZE (openoffice.org2.0/OOo_1.9m134_source.tar.bz2) = 228972679 +MD5 (openoffice.org2.0/OOo_2.0m136_source.tar.bz2) = 838779d94d677b29060ce58b2da723ac +SIZE (openoffice.org2.0/OOo_2.0m136_source.tar.bz2) = 230644111 MD5 (openoffice.org2.0/gpc231.tar.Z) = fdb06fdb5a4670b172f9fb738b717be9 SIZE (openoffice.org2.0/gpc231.tar.Z) = 27917 MD5 (openoffice.org2.0/mozilla-source-1.7.5.tar.gz) = d3f3528b6c5eade402ed058207cffa14 diff --git a/editors/openoffice.org-vcltesttool/files/Makefile.knobs b/editors/openoffice.org-vcltesttool/files/Makefile.knobs index 366ae60ba851..1f3ae9cce1a4 100644 --- a/editors/openoffice.org-vcltesttool/files/Makefile.knobs +++ b/editors/openoffice.org-vcltesttool/files/Makefile.knobs @@ -12,6 +12,10 @@ CONFIGURE_ARGS+= --with-java=gij --with-ant-home=${LOCALBASE}/ant CONFIGURE_ARGS+= --without-java .endif +.if !defined(WITH_GPC) +CONFIGURE_ARGS+= --enable-libart +.endif + .if defined(WITH_KDE) CONFIGURE_ARGS+= --enable-kde QTDIR="${QT_PREFIX}" .endif @@ -114,6 +118,11 @@ pre-fetch: @${ECHO} "You can compile OOo to use Qt/KDE vclplug with" @${ECHO} "make -DWITH_KDE" .endif +.if !defined(WITH_GPC) + @${ECHO} + @${ECHO} "You can compile OOo with gpc instead of libart by" + @${ECHO} "make -DWITH_GPC" +.endif @${ECHO} @${ECHO} "NOTICE:" @${ECHO} diff --git a/editors/openoffice.org-vcltesttool/files/generate.pl b/editors/openoffice.org-vcltesttool/files/generate.pl index ddd2818fdfe0..a30d51af5934 100644 --- a/editors/openoffice.org-vcltesttool/files/generate.pl +++ b/editors/openoffice.org-vcltesttool/files/generate.pl @@ -1,8 +1,7 @@ #!/usr/bin/perl - # generate full build shell script for OpenOffice.org # Whom: Maho Nakata <maho@FreeBSD.org> -# $FreeBSD: /tmp/pcvs/ports/editors/openoffice.org-vcltesttool/files/Attic/generate.pl,v 1.6 2005-08-29 01:07:59 maho Exp $ +# $FreeBSD: /tmp/pcvs/ports/editors/openoffice.org-vcltesttool/files/Attic/generate.pl,v 1.7 2005-10-31 08:01:24 maho Exp $ print "#!/bin/csh\n"; print "make deinstall clean\n"; diff --git a/editors/openoffice.org-vcltesttool/files/patch-Python-2.3.4.patch b/editors/openoffice.org-vcltesttool/files/patch-Python-2.3.4.patch index 646b69d1385a..41b3577a44c6 100644 --- a/editors/openoffice.org-vcltesttool/files/patch-Python-2.3.4.patch +++ b/editors/openoffice.org-vcltesttool/files/patch-Python-2.3.4.patch @@ -1,7 +1,7 @@ -Issutracker : #i53287# -CWS : N/A -Author: : <maho@openoffice.org> (JCA) -Description : Support for FreeBSD 6 and 7 +Issuetracker : #i53287# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : Support for FreeBSD 6 and 7 Index: python/Python-2.3.4.patch =================================================================== diff --git a/editors/openoffice.org-vcltesttool/files/patch-backtrace b/editors/openoffice.org-vcltesttool/files/patch-backtrace new file mode 100644 index 000000000000..523bba02d5e4 --- /dev/null +++ b/editors/openoffice.org-vcltesttool/files/patch-backtrace @@ -0,0 +1,95 @@ +Issuetracker : #i56946# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : FreeBSD porting : An implementation of backtrace at sal/osl/unx +To pass the compilation, we had been preparing dummy function at sal. +We implemented this. + +--- sal/osl/unx/backtrace.c Thu Sep 8 23:52:44 2005 ++++ sal/osl/unx/backtrace.c Sun Oct 23 09:19:04 2005 +@@ -129,6 +129,7 @@ + #include <pthread.h> + #include <setjmp.h> + #include <stdio.h> ++#include <stddef.h> + #include "backtrace.h" + + #define FRAME_PTR_OFFSET 1 +@@ -136,11 +137,55 @@ + + int backtrace( void **buffer, int max_frames ) + { +- return 1; ++ struct frame *fp; ++ jmp_buf ctx; ++ int i; ++ /* get stack- and framepointer */ ++ setjmp(ctx); ++ fp = (struct frame*)(((size_t*)(ctx))[FRAME_PTR_OFFSET]); ++ for ( i=0; (i<FRAME_OFFSET) && (fp!=0); i++) ++ fp = fp->fr_savfp; ++ /* iterate through backtrace */ ++ for (i=0; fp && fp->fr_savpc && i<max_frames; i++) ++ { ++ /* store frame */ ++ *(buffer++) = (void *)fp->fr_savpc; ++ /* next frame */ ++ fp=fp->fr_savfp; ++ } ++ return i; + } + + void backtrace_symbols_fd( void **buffer, int size, int fd ) + { ++ FILE *fp = fdopen( fd, "w" ); ++ ++ if ( fp ) ++ { ++ void **pFramePtr; ++ for ( pFramePtr = buffer; size > 0 && pFramePtr && *pFramePtr; pFramePtr++, size-- ) ++ { ++ Dl_info dli; ++ ptrdiff_t offset; ++ ++ if ( 0 != dladdr( *pFramePtr, &dli ) ) ++ { ++ if ( dli.dli_fname && dli.dli_fbase ) ++ { ++ offset = (ptrdiff_t)*pFramePtr - (ptrdiff_t)dli.dli_fbase; ++ fprintf( fp, "%s+0x%x", dli.dli_fname, offset ); ++ } ++ if ( dli.dli_sname && dli.dli_saddr ) ++ { ++ offset = (ptrdiff_t)*pFramePtr - (ptrdiff_t)dli.dli_saddr; ++ fprintf( fp, "(%s+0x%x)", dli.dli_sname, offset ); ++ } ++ } ++ fprintf( fp, "[0x%x]\n", *pFramePtr ); ++ } ++ fflush( fp ); ++ fclose( fp ); ++ } + + } + #endif /* defined FREEBSD */ + +--- sal/osl/unx/backtrace.h Thu Sep 8 23:52:59 2005 ++++ sal/osl/unx/backtrace.h Sun Oct 23 09:19:40 2005 +@@ -46,6 +46,16 @@ + + void backtrace_symbols_fd( void **buffer, int size, int fd ); + ++/* no frame.h on FreeBSD */ ++#if defined FREEBSD ++struct frame { ++ long arg0[8]; ++ long arg1[6]; ++ struct frame *fr_savfp; ++ long fr_savpc; ++}; ++#endif ++ + #ifdef __cplusplus + } /* extern "C" */ + #endif + diff --git a/editors/openoffice.org-vcltesttool/files/patch-bridges b/editors/openoffice.org-vcltesttool/files/patch-bridges new file mode 100644 index 000000000000..8375332a3e20 --- /dev/null +++ b/editors/openoffice.org-vcltesttool/files/patch-bridges @@ -0,0 +1,173 @@ +Issuetracker : #i56947# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : FreeBSD porting : update files at bridges project +catch up version up of bridge project of GNU/Linux + +--- bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx Thu Sep 8 07:20:08 2005 ++++ bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx Wed Oct 26 15:10:05 2005 +@@ -57,7 +57,7 @@ + typelib_TypeDescriptionReference * pReturnTypeRef, // 0 indicates void return + sal_Int32 nParams, typelib_MethodParameter * pParams, + void ** pCallStack, +- sal_Int64 * pRegisterReturn /* space for register return */ ) ++ void * pReturnValue ) + { + // pCallStack: ret, [return ptr], this, params + char * pCppStack = (char *)(pCallStack +1); +@@ -74,7 +74,7 @@ + { + if (bridges::cpp_uno::shared::isSimpleType( pReturnTypeDescr )) + { +- pUnoReturn = pRegisterReturn; // direct way for simple types ++ pUnoReturn = pReturnValue; // direct way for simple types + } + else // complex return via ptr (pCppReturn) + { +@@ -215,7 +215,7 @@ + uno_destructData( pUnoReturn, pReturnTypeDescr, 0 ); + } + // complex return ptr is set to eax +- *(void **)pRegisterReturn = pCppReturn; ++ *static_cast< void ** >(pReturnValue) = pCppReturn; + } + if (pReturnTypeDescr) + { +@@ -228,7 +228,7 @@ + //================================================================================================== + extern "C" void cpp_vtable_call( + int nFunctionIndex, int nVtableOffset, void** pCallStack, +- sal_Int64 nRegReturn ) ++ void * pReturnValue ) + { + OSL_ENSURE( sizeof(sal_Int32)==sizeof(void *), "### unexpected!" ); + +@@ -275,7 +275,7 @@ + pCppI, aMemberDescr.get(), + ((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef, + 0, 0, // no params +- pCallStack, &nRegReturn ); ++ pCallStack, pReturnValue ); + } + else + { +@@ -290,7 +290,7 @@ + pCppI, aMemberDescr.get(), + 0, // indicates void return + 1, &aParam, +- pCallStack, &nRegReturn ); ++ pCallStack, pReturnValue ); + } + break; + } +@@ -324,7 +324,7 @@ + &pInterface, pTD, cpp_acquire ); + pInterface->release(); + TYPELIB_DANGER_RELEASE( pTD ); +- *(void **)&nRegReturn = pCallStack[1]; ++ *static_cast< void ** >(pReturnValue) = pCallStack[1]; + break; + } + TYPELIB_DANGER_RELEASE( pTD ); +@@ -336,7 +336,7 @@ + ((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->pReturnTypeRef, + ((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->nParams, + ((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->pParams, +- pCallStack, &nRegReturn ); ++ pCallStack, pReturnValue ); + } + break; + } +--- bridges/source/cpp_uno/gcc3_freebsd_intel/call.s Wed Jun 1 01:32:41 2005 ++++ bridges/source/cpp_uno/gcc3_freebsd_intel/call.s Wed Oct 26 15:10:04 2005 +@@ -9,12 +9,13 @@ + .LCFIg0: + movl %esp,%ebp + .LCFIg1: +- subl $0x8,%esp # 64bit nRegReturn ++ subl $0x4,%esp # 32bit returnValue ++ pushl %esp # 32bit &returnValue + pushl %ecx # 32bit pCallStack + pushl %edx # 32bit nVtableOffset + pushl %eax # 32bit nFunctionIndex + call cpp_vtable_call +- movl 12(%esp),%eax # 64 bit nRegReturn, lower half ++ movl 16(%esp),%eax # 32bit returnValue + leave + ret + .LFEg: +@@ -29,7 +30,7 @@ + .LCFIv0: + movl %esp,%ebp + .LCFIv1: +- subl $0x8,%esp # 64bit nRegReturn ++ pushl $0 # 32bit null pointer (returnValue not used) + pushl %ecx # 32bit pCallStack + pushl %edx # 32bit nVtableOffset + pushl %eax # 32bit nFunctionIndex +@@ -48,13 +49,14 @@ + .LCFIh0: + movl %esp,%ebp + .LCFIh1: +- subl $0x8,%esp # 64bit nRegReturn ++ subl $0x8,%esp # 64bit returnValue ++ pushl %esp # 32bit &returnValue + pushl %ecx # 32bit pCallStack + pushl %edx # 32bit nVtableOffset + pushl %eax # 32bit nFunctionIndex + call cpp_vtable_call +- movl 12(%esp),%eax # 64 bit nRegReturn, lower half +- movl 16(%esp),%edx # 64 bit nRegReturn, upper half ++ movl 16(%esp),%eax # 64bit returnValue, lower half ++ movl 20(%esp),%edx # 64bit returnValue, upper half + leave + ret + .LFEh: +@@ -69,12 +71,13 @@ + .LCFIf0: + movl %esp,%ebp + .LCFIf1: +- subl $0x8,%esp # 64bit nRegReturn ++ subl $0x4,%esp # 32bit returnValue ++ pushl %esp # 32bit &returnValue + pushl %ecx # 32bit pCallStack + pushl %edx # 32bit nVtableOffset + pushl %eax # 32bit nFunctionIndex + call cpp_vtable_call +- flds 12(%esp) # 64 bit nRegReturn, lower half ++ flds 16(%esp) # 32bit returnValue + leave + ret + .LFEf: +@@ -89,12 +92,13 @@ + .LCFId0: + movl %esp,%ebp + .LCFId1: +- subl $0x8,%esp # 64bit nRegReturn ++ subl $0x8,%esp # 64bit returnValue ++ pushl %esp # 32bit &returnValue + pushl %ecx # 32bit pCallStack + pushl %edx # 32bit nVtableOffset + pushl %eax # 32bit nFunctionIndex + call cpp_vtable_call +- fldl 12(%esp) # 64 bit nRegReturn ++ fldl 16(%esp) # 64bit returnValue + leave + ret + .LFEd: +@@ -109,12 +113,13 @@ + .LCFIc0: + movl %esp,%ebp + .LCFIc1: +- subl $0x8,%esp # 64bit nRegReturn ++ subl $0x4,%esp # 32bit returnValue ++ pushl %esp # 32bit &returnValue + pushl %ecx # 32bit pCallStack + pushl %edx # 32bit nVtableOffset + pushl %eax # 32bit nFunctionIndex + call cpp_vtable_call +- movl 12(%esp),%eax # 64 bit nRegReturn, lower half ++ movl 16(%esp),%eax # 32bit returnValue + leave + ret $4 + .LFEc: diff --git a/editors/openoffice.org-vcltesttool/files/patch-config_office+set_soenv.in b/editors/openoffice.org-vcltesttool/files/patch-config_office+set_soenv.in index 93e375b46f8e..a06f28849d7a 100644 --- a/editors/openoffice.org-vcltesttool/files/patch-config_office+set_soenv.in +++ b/editors/openoffice.org-vcltesttool/files/patch-config_office+set_soenv.in @@ -1,4 +1,10 @@ ---- config_office/set_soenv.in~ Thu Sep 22 23:30:56 2005 +Issuetracker : #i56949# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : FreeBSD porting : Add conditional the case of @GCCVER@ >= 30401. +Like GNU/Linux's case, we also need the case for $CVER if @GCCVER@ is equal to or larger than 3.4.1 + +--- config_office/set_soenv.in Thu Sep 22 23:30:56 2005 +++ config_office/set_soenv.in Sat Oct 1 12:59:30 2005 @@ -347,6 +347,9 @@ $JRELIBDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."i386"; diff --git a/editors/openoffice.org-vcltesttool/files/patch-epm+epm-3.7.patch b/editors/openoffice.org-vcltesttool/files/patch-epm+epm-3.7.patch index 4cc75dc9a25c..2182489d5445 100644 --- a/editors/openoffice.org-vcltesttool/files/patch-epm+epm-3.7.patch +++ b/editors/openoffice.org-vcltesttool/files/patch-epm+epm-3.7.patch @@ -1,7 +1,7 @@ -Issutracker : #iXXXXX# -CWS : N/A -Author: : <maho@openoffice.org> (JCA) -Description : epm porting for FreeBSD +Issuetracker : #iXXXXX# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : epm porting for FreeBSD o FreeBSD's package manager doesn't allow multiple lines for @exec and @unexec o chown is at /usr/sbin/ diff --git a/editors/openoffice.org-vcltesttool/files/patch-icu+icu-2.6.patch b/editors/openoffice.org-vcltesttool/files/patch-icu+icu-2.6.patch new file mode 100644 index 000000000000..eb643e9e4a97 --- /dev/null +++ b/editors/openoffice.org-vcltesttool/files/patch-icu+icu-2.6.patch @@ -0,0 +1,38 @@ +Issuetracker : #i56952# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : FreeBSD porting : Passing $ORIGIN to linker at icu project +We also want to pass -rpath $ORIGIN to linker as GNU/Linux and/or Solaris's case. + +--- icu/icu-2.6.patch Fri Aug 26 20:43:35 2005 ++++ icu-2.6.patch Mon Oct 24 18:18:45 2005 +@@ -2747,3 +2747,29 @@ + commands = pkg_appendToList(commands, NULL, uprv_strdup(stanza)); + + sprintf(stanza, "@$(RMV) $(TEMP_DIR)/%s", cfile+genFileOffset); ++*** misc/icu/source/config/mh-bsd-gcc Thu May 2 08:48:10 2002 ++--- misc/build/icu/source/config/mh-bsd-gcc Mon Oct 24 18:16:57 2005 ++*************** ++*** 10,21 **** ++--- 10,30 ---- ++ GEN_DEPS.cc= $(CXX) -E -MM $(DEFS) $(CPPFLAGS) ++ ++ ## Flags for position independent code +++ STATICCFLAGS = -fPIC +++ STATICCXXFLAGS = -fPIC +++ STATICCPPFLAGS = -DPIC ++ SHAREDLIBCFLAGS = -fPIC ++ SHAREDLIBCXXFLAGS = -fPIC ++ SHAREDLIBCPPFLAGS = -DPIC ++ ++ ## Compiler switch to embed a runtime search path ++ LD_RPATH= +++ ## Force RPATH=$ORIGIN to locate own dependencies w/o need for LD_LIBRARY_PATH +++ ENABLE_RPATH=YES +++ RPATHLDFLAGS=${LD_RPATH_PRE}'$$ORIGIN' +++ +++ #SH# ENABLE_RPATH=YES +++ #SH# RPATHLDFLAGS="${LD_RPATH_PRE}'$$ORIGIN'" ++ LD_RPATH_PRE= -Wl,-rpath, ++ ++ ## Compiler switch to embed a library name diff --git a/editors/openoffice.org-vcltesttool/files/patch-instsetoo b/editors/openoffice.org-vcltesttool/files/patch-instsetoo index ccb23c985924..fe7e3b5f3845 100644 --- a/editors/openoffice.org-vcltesttool/files/patch-instsetoo +++ b/editors/openoffice.org-vcltesttool/files/patch-instsetoo @@ -1,7 +1,7 @@ -Issutracker : #i53288# -CWS : N/A -Author: : <maho@openoffice.org> (JCA) -Description : remove circular dependency +Issuetracker : #i53288# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : remove circular dependency in this case, core01 is depend on core02-core08, and core0[2-9] and core10 diff --git a/editors/openoffice.org-vcltesttool/files/patch-jvmfwk+distributions+OpenOfficeorg+makefile.mk b/editors/openoffice.org-vcltesttool/files/patch-jvmfwk+distributions+OpenOfficeorg+makefile.mk new file mode 100644 index 000000000000..2c89e95a8cdb --- /dev/null +++ b/editors/openoffice.org-vcltesttool/files/patch-jvmfwk+distributions+OpenOfficeorg+makefile.mk @@ -0,0 +1,17 @@ +Issuetracker : #i56951# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : FreeBSD porting : javavendors_linux.xml can be used for FreeBSD as well. +javavendors_linux.xml can be used for FreeBSD as well. + +--- jvmfwk/distributions/OpenOfficeorg/makefile.mk Thu Sep 8 04:26:17 2005 ++++ jvmfwk/distributions/OpenOfficeorg/makefile.mk Sat Oct 22 18:31:16 2005 +@@ -49,7 +49,7 @@ + .IF "$(GUI)"=="UNX" + .IF "$(OS)"=="MACOSX" + +-$(COPY) javavendors_macosx.xml $(BIN)$/javavendors_ooo.xml +-.ELIF "$(OS)"=="LINUX" ++.ELIF "$(OS)"=="LINUX" || "$(OS)"=="FREEBSD" + +-$(COPY) javavendors_linux.xml $(BIN)$/javavendors_ooo.xml + .ELSE + +-$(COPY) javavendors_unx.xml $(BIN)$/javavendors_ooo.xml diff --git a/editors/openoffice.org-vcltesttool/files/patch-jvmfwk+plugins+sunmajor+pluginlib+sunversion.cxx b/editors/openoffice.org-vcltesttool/files/patch-jvmfwk+plugins+sunmajor+pluginlib+sunversion.cxx new file mode 100644 index 000000000000..c963d013cc07 --- /dev/null +++ b/editors/openoffice.org-vcltesttool/files/patch-jvmfwk+plugins+sunmajor+pluginlib+sunversion.cxx @@ -0,0 +1,61 @@ +Issuetracker : #i56953# +CWS : N/A +Author : <maho@openoffice.org> +Description : FreeBSD porting : do not hardcode pXX of Java version and FreeBSD native Java is always superior to Linux's one. + +1. we had been hard coding Java's version by p1, p2 ... etc. but apparently +it is not a good habit. in this patch we eleminate this. + +2. we'd better to use FreeBSD's native Java, and not GNU/Linux's ones if both are exist +in the system. We add 100 as micro version number, so that we treat FreeBSD's version of +java 1.4.1-p10 for example to 1.4.1_110. + +--- jvmfwk/plugins/sunmajor/pluginlib/sunversion.cxx Thu Sep 8 04:31:40 2005 ++++ jvmfwk/plugins/sunmajor/pluginlib/sunversion.cxx Sat Oct 22 18:25:49 2005 +@@ -208,7 +208,16 @@ + return false; + #if defined(FREEBSD) + if (m_preRelease == Rel_FreeBSD) { +- m_nUpdateSpecial = *pCur; ++ pCur++; //elemnate `p' ++ if (pCur < pEnd && isdigit(*pCur)) ++ if (pCur < pEnd) ++ pCur ++; ++ int len = pCur - pLast -1; //elemenate `p' ++ if (len >= 127) ++ return false; ++ strncpy(buf, (pLast+1), len); //elemenate `p' ++ buf[len] = 0; ++ m_nUpdateSpecial = atoi(buf)+100; //hack for FBSD + return true; + } + #endif +@@ -249,27 +258,7 @@ + else if (! strcmp(szRelease, "rc3")) + return Rel_RC3; + #if defined (FREEBSD) +- else if (! strcmp(szRelease, "p1")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p2")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p3")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p4")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p5")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p6")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p7")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p8")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p9")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p10")) +- return Rel_FreeBSD; +- else if (! strcmp(szRelease, "p11")) ++ else if (! strncmp(szRelease, "p", 1)) + return Rel_FreeBSD; + #endif + else diff --git a/editors/openoffice.org-vcltesttool/files/patch-libxmlsec+makefile.mk b/editors/openoffice.org-vcltesttool/files/patch-libxmlsec+makefile.mk new file mode 100644 index 000000000000..5735c62a3298 --- /dev/null +++ b/editors/openoffice.org-vcltesttool/files/patch-libxmlsec+makefile.mk @@ -0,0 +1,18 @@ +Issuetracker : #i56954# +CWS : N/A +Author : <maho@openoffice.org> (JCA) +Description : FreeBSD porting : Passing $ORIGIN to linker at libxmlsec project +We also want to pass -rpath $ORIGIN to linker as GNU/Linux and/or Solaris's case. + +--- libxmlsec/makefile.mk.org Tue Oct 25 15:00:10 2005 ++++ libxmlsec/makefile.mk Tue Oct 25 15:00:28 2005 +@@ -89,6 +89,9 @@ + .IF "$(OS)$(COM)"=="SOLARISC52" + LDFLAGS:=-Wl,-R'$$$$ORIGIN' + .ENDIF # "$(OS)$(COM)"=="SOLARISC52" ++.IF "$(OS)$(COM)"=="FREEBSDGCC" ++LDFLAGS:=-Wl,-rpath,'$$$$ORIGIN' ++.ENDIF # "$(OS)$(COM)"=="FREEBSDGCC" + .EXPORT: LDFLAGS + .ENDIF + CONFIGURE_DIR= diff --git a/editors/openoffice.org-vcltesttool/files/patch-postprocess+prj+build.lst b/editors/openoffice.org-vcltesttool/files/patch-postprocess+prj+build.lst index cc04678794e8..91addd32b2b4 100644 --- a/editors/openoffice.org-vcltesttool/files/patch-postprocess+prj+build.lst +++ b/editors/openoffice.org-vcltesttool/files/patch-postprocess+prj+build.lst @@ -1,7 +1,7 @@ -Issutracker : #i56070# -CWS : N/A -Author: : <maho@openoffice.org> -Description : some *.desktop files missing on making installsets +Issuetracker : #i56070#, #i56731# +CWS : N/A +Author : <maho@openoffice.org> +Description : some *.desktop files missing on making installsets Index: postprocess/prj/build.lst =================================================================== @@ -12,7 +12,10 @@ diff -u -r1.20 build.lst +++ postprocess/prj/build.lst 16 Oct 2005 08:36:25 -0000 @@ -1,4 +1,4 @@ -po postprocess :: accessibility automation basctl bean BINFILTER:binfilter chart2 configmgr CRASHREP:crashrep dbaccess desktop dtrans embeddedobj embedserv EPM:epm eventattacher extensions extras fileaccess filter forms fpicker helpcontent2 hwpfilter io lingucomponent MATHMLDTD:MathMLDTD MSFONTEXTRACT:msfontextract ODK:odk officecfg package padmin psprint_config remotebridges sc scaddins scp2 scripting sd setup_native slideshow starmath sw testshl testshl2 testtools ucb UnoControls unoxml ure wizards xmlsecurity BITSTREAM_VERA_FONTS:bitstream_vera_fonts DICTIONARIES:dictionaries OOo:pyuno OOo:readlicense_oo SO:top NULL -+po postprocess :: accessibility automation basctl bean BINFILTER:binfilter chart2 configmgr CRASHREP:crashrep dbaccess desktop dtrans embeddedobj embedserv EPM:epm eventattacher extensions extras fileaccess filter forms fpicker helpcontent2 hwpfilter io lingucomponent MATHMLDTD:MathMLDTD MSFONTEXTRACT:msfontextract ODK:odk officecfg package padmin psprint_config remotebridges sc scaddins scp2 scripting sd setup_native slideshow starmath sw sysui testshl testshl2 testtools ucb UnoControls unoxml ure wizards xmlsecurity BITSTREAM_VERA_FONTS:bitstream_vera_fonts DICTIONARIES:dictionaries OOo:pyuno OOo:readlicense_oo SO:top NULL ++po postprocess :: accessibility automation basctl bean BINFILTER:binfilter chart2 configmgr CRASHREP:crashrep dbaccess desktop dtrans embeddedobj embedserv EPM:epm eventattacher extensions extras fileaccess filter forms fpicker helpcontent2 hwpfilter io lingucomponent MATHMLDTD:MathMLDTD MSFONTEXTRACT:msfontextract ODK:odk officecfg package padmin psprint_config remotebridges sc scaddins scp2 scripting sd setup_native slideshow starmath sw sysui testshl testshl2 testtools ucb UnoControls unoxml ure wizards xmlsecurity BITSTREAM_VERA_FONTS:bitstream_vera_fonts xmerge DICTIONARIES:dictionaries OOo:pyuno OOo:readlicense_oo SO:top NULL po postprocess usr1 - all po_mkout NULL po postprocess\checkxml nmake - all po_checkxml NULL po postprocess\packconfig nmake - all po_packconfig po_checkxml NULL + + + diff --git a/editors/openoffice.org-vcltesttool/files/patch-pythonlink b/editors/openoffice.org-vcltesttool/files/patch-pythonlink new file mode 100644 index 000000000000..779d21c95f44 --- /dev/null +++ b/editors/openoffice.org-vcltesttool/files/patch-pythonlink @@ -0,0 +1,312 @@ +Issuetracker : #i56955# +CWS : N/A +Author : <maho@openoffice.org> +Description : Remove instsetoo_native/inc_openoffice/unix/shellscripts_pyuno.txt + +It is desirable to prepare minimal shellscripts as far as possible at +installation part, and possibly, no shellscripts. However, +unfortunately three things had done at shellscripts_pyuno.txt. + +1. symlink to python.sh -> python +2. chmod +x program/python-core-2.3.4/bin/python +3. symlink to python-core-2.3.4 -> python-core + +solution + +0. apply following patch. full build confirmed for SRC680_m134, FreeBSD 5.4-RELEASE. +1. Done in scp2 project: prepare scp2/source/python/shortcut_python.scp and scp2/util/makefile.mk, +and make a symlink to python.sh -> python. +(3. is impossible to solve in this way since we only have python-core-2.3.4.zip in files in scp2.) +2. Do not use program/python-core-2.3.4/bin/python, use program/python.bin instead. python.sh +now executes program/python.bin. this is usual way; see e.g., spadmin etc. +3. change from symlinking python-core-2.3.4->python-core +to adding version number (by replacing by sed) to python.sh which invoke python in OOo, +and we don't have to make a symlink. + +suggestion (and not yet done): + +4. we can also remove symlink from python.sh to python and +rename python.sh to python. apparently intermidiate python.sh is unnecessary. +currently: python -> python.sh -> python.bin +suggested: python -> python.bin +delivering a shell script python can harm since we have python binary from python project +as well. but this is safe since python (shell script) and python.bin are delivered, +at the same time. + +--- scp2/source/python/makefile.mk Fri Sep 9 10:43:01 2005 ++++ scp2/source/python/makefile.mk Wed Oct 26 17:12:52 2005 +@@ -60,7 +60,8 @@ + PARFILES=\ + module_python.par \ + profileitem_python.par \ +- file_python.par ++ file_python.par \ ++ shortcut_python.par + + ULFFILES= \ + module_python.ulf + +--- scp2/util/makefile.mk Fri Sep 9 10:52:09 2005 ++++ scp2/util/makefile.mk Thu Oct 27 07:25:25 2005 +@@ -87,7 +87,8 @@ + file_xsltfilter.par \ + module_python.par \ + file_python.par \ +- profileitem_python.par ++ profileitem_python.par \ ++ shortcut_python.par + + .IF "$(SOLAR_JAVA)"!="" + SCP1FILES += \ + +--- /dev/null Thu Oct 27 09:59:37 2005 ++++ scp2/source/python/shortcut_python.scp Thu Oct 27 09:59:19 2005 +@@ -0,0 +1,49 @@ ++/************************************************************************* ++ * ++ * OpenOffice.org - a multi-platform office productivity suite ++ * ++ * $RCSfile: shortcut_python.scp,v $ ++ * ++ * $Revision: 1.20 $ ++ * ++ * last change: $Author: rt $ $Date: 2005/09/09 01:42:03 $ ++ * ++ * The Contents of this file are made available subject to ++ * the terms of GNU Lesser General Public License Version 2.1. ++ * ++ * ++ * GNU Lesser General Public License Version 2.1 ++ * ============================================= ++ * Copyright 2005 by Sun Microsystems, Inc. ++ * 901 San Antonio Road, Palo Alto, CA 94303, USA ++ * ++ * This library is free software; you can redistribute it and/or ++ * modify it under the terms of the GNU Lesser General Public ++ * License version 2.1, as published by the Free Software Foundation. ++ * ++ * This library is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ * Lesser General Public License for more details. ++ * ++ * You should have received a copy of the GNU Lesser General Public ++ * License along with this library; if not, write to the Free Software ++ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, ++ * MA 02111-1307 USA ++ * ++ ************************************************************************/ ++ ++#include "macros.inc" ++ ++#ifndef SYSTEM_PYTHON ++#ifdef UNX ++ ++Shortcut gid_Shortcut_Python_Sh ++ FileID = gid_File_Python_Sh; ++ Dir = gid_Dir_Program; ++ Name = "python"; ++ Styles = (RELATIVE); ++End ++ ++#endif ++#endif + +--- instsetoo_native/inc_openoffice/unix/shellscripts_pyuno.txt Thu Aug 18 17:11:29 2005 ++++ /dev/null Wed Oct 26 09:51:22 2005 +@@ -1,74 +0,0 @@ +-%preinstall << END +-# echo Command before installing +-exit 0 +-END +- +-%postinstall << END +-# echo Command after installing +-# searching for the PRODUCTINSTALLLOCATION for the different platforms +-platform=`uname -s` +-case $$platform in +-SunOS) +- PRODUCTINSTALLLOCATION="$$BASEDIR" +- ;; +-Linux) +- PRODUCTINSTALLLOCATION="$$RPM_INSTALL_PREFIX" +- ;; +-*) +- PRODUCTINSTALLLOCATION="$$BASEDIR" +- ;; +-esac +- +-if [ -d $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python-core-2.3.4 ] +-then +- ln -s python-core-2.3.4 $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python-core >/dev/null 2>&1 +-fi +- +-if [ -f $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python.sh ] +-then +- ln -s python.sh $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python >/dev/null 2>&1 +-fi +- +-if [ -f $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python-core-2.3.4/bin/python ] +-then +- chmod +x $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python-core-2.3.4/bin/python +-fi +- +-exit 0 +-END +- +-%preremove << END +-# echo Command before removing +-exit 0 +-END +- +-%postremove << END +-# echo Command after removing +- +-# searching for the PRODUCTINSTALLLOCATION for the different platforms +-platform=`uname -s` +-case $$platform in +-SunOS) +- PRODUCTINSTALLLOCATION="$$BASEDIR" +- ;; +-Linux) +- PRODUCTINSTALLLOCATION="$$RPM_INSTALL_PREFIX" +- ;; +-*) +- PRODUCTINSTALLLOCATION="$$BASEDIR" +- ;; +-esac +- +-if [ -h $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python-core ] +-then +- rm -f $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python-core >/dev/null 2>&1 +-fi +- +-if [ -h $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python ] +-then +- rm -f $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/program/python >/dev/null 2>&1 +-fi +- +- +-exit 0 +-END +--- instsetoo_native/inc_openoffice/unix/packagelist.txt Wed Oct 26 17:34:58 2005 ++++ instsetoo_native/inc_openoffice/unix/packagelist.txt Thu Oct 27 06:25:32 2005 +@@ -233,7 +233,6 @@ + + Start + module = "gid_Module_Optional_Pyuno" +-script = "shellscripts_pyuno.txt" + solarispackagename = "openofficeorg-pyuno" + solarisrequires = "openofficeorg-core01" + packagename = "openoffice.org-pyuno" + + +--- pyuno/zipcore/python.sh Fri Sep 9 01:55:24 2005 ++++ pyuno/zipcore/python.sh Thu Oct 27 14:48:08 2005 +@@ -101,14 +101,14 @@ + ;; + esac + +-PYTHONPATH="$sd_prog":"$sd_prog/python-core/lib":"$sd_prog/python-core/lib/lib-dynload":"$sd_prog/python-core/lib/lib-tk":"$PYTHONPATH" ++PYTHONPATH="$sd_prog":"$sd_prog/python-core-%%PYVERSION%%/lib":"$sd_prog/python-core-%%PYVERSION%%/lib/lib-dynload":"$sd_prog/python-core-%%PYVERSION%%/lib/lib-tk":"$PYTHONPATH" + export PYTHONPATH + +-PYTHONHOME="$sd_prog"/python-core ++PYTHONHOME="$sd_prog"/python-core-%%PYVERSION%% + export PYTHONHOME + + # set path so that other apps can be started from soffice just by name + PATH="$sd_prog":$PATH + export PATH +-exec "$sd_prog/python-core/bin/python" "$@" ++exec "$sd_prog/python.bin" "$@" + +--- pyuno/zipcore/makefile.mk Thu Sep 9 01:55:34 2004 ++++ pyuno/zipcore/makefile.mk Thu Oct 27 14:47:34 2005 +@@ -12,7 +12,11 @@ + + PYDIRNAME=python-core-$(PYVERSION) + DESTROOT=$(BIN)$/python-core-$(PYVERSION) ++.IF "$(GUI)" == "UNX" ++PYTHONBINARY=$(BIN)$/python$(EXECPOST).bin ++.ELSE + PYTHONBINARY=$(DESTROOT)$/bin$/python$(EXECPOST) ++.ENDIF + + FINDLIBFILES_TMP:=$(subst,/,$/ \ + $(shell +$(FIND) $(SOLARLIBDIR)$/python -type f| $(GREP) -v .pyc )) +@@ -29,6 +33,8 @@ + $(BIN)$/python.sh : python.sh + -rm -f $@ + cat $? > $@ ++ sed 's/%%PYVERSION%%/$(PYVERSION)/g' < $@ > $@.new ++ mv $@.new $@ + .IF "$(GUI)" == "UNX" + chmod +x $@ + .ENDIF +@@ -47,15 +53,21 @@ + -rm -f $@ + cat $< > $@ + +-$(DESTROOT)$/bin$/python$(EXECPOST) : $(SOLARBINDIR)$/python$(EXECPOST) ++.IF "$(GUI)"== "UNX" ++$(BIN)$/python$(EXECPOST).bin : $(SOLARBINDIR)$/python$(EXECPOST) + -+$(MKDIRHIER) $(@:d) + -rm -f $@ + cat $< > $@ +-.IF "$(GUI)"== "UNX" + .IF "$(OS)" != "MACOSX" + strip $@ + .ENDIF + chmod +x $@ ++.ELSE ++$(DESTROOT)$/bin$/python$(EXECPOST) : $(SOLARBINDIR)$/python$(EXECPOST) ++ -+$(MKDIRHIER) $(@:d) ++ -rm -f $@ ++ cat $< > $@ ++ strip $@ + .ENDIF + + .ENDIF +--- pyuno/prj/d.lst Wed Feb 16 03:46:13 2005 ++++ pyuno/prj/d.lst Thu Oct 27 14:52:10 2005 +@@ -22,4 +22,5 @@ + ..\%__SRC%\misc\pyunorc %_DEST%\lib%_EXT%\pyunorc + ..\%__SRC%\misc\pyuno.ini %_DEST%\bin%_EXT%\pyuno.ini + ..\%__SRC%\bin\python-core-*.zip %_DEST%\bin%_EXT%\python-core-*.zip ++..\%__SRC%\bin\python.bin %_DEST%\bin%_EXT%\python.bin + ..\%__SRC%\bin\python.sh %_DEST%\bin%_EXT%\python.sh + + +--- scp2/source/python/module_python.scp Fri Sep 9 10:43:17 2005 ++++ scp2/source/python/module_python.scp Thu Oct 27 14:54:41 2005 +@@ -38,7 +38,7 @@ + Module gid_Module_Optional_Pyuno + MOD_NAME_DESC ( MODULE_OPTIONAL_PYTHON ); + ParentID = gid_Module_Optional; +- Files = (gid_File_Pyuno,gid_File_Lib_Pyuno,gid_File_Lib_Pythonloader,gid_File_Py_Unohelper,gid_File_Py_Uno,gid_File_Py_Pythonloader,gid_File_Py_Python_Core,gid_File_Python_Sh,gid_File_Lib_Python_So, gid_File_Py_Scriptprovider,gid_File_Py_Pythonscript,gid_File_Scripts_Python,gid_File_Registry_Spool_Oo_Scripting_Python_Xcu,gid_File_Pythonmsi_Dll); ++ Files = (gid_File_Pyuno,gid_File_Lib_Pyuno,gid_File_Lib_Pythonloader,gid_File_Py_Unohelper,gid_File_Py_Uno,gid_File_Py_Pythonloader,gid_File_Py_Python_Core,gid_File_Py_Python_Bin,gid_File_Python_Sh,gid_File_Lib_Python_So, gid_File_Py_Scriptprovider,gid_File_Py_Pythonscript,gid_File_Scripts_Python,gid_File_Registry_Spool_Oo_Scripting_Python_Xcu,gid_File_Pythonmsi_Dll); + Minimal = NO; + Default = YES; + Styles = ( ); + +--- scp2/source/python/file_python.scp Fri Sep 9 10:42:31 2005 ++++ scp2/source/python/file_python.scp Thu Oct 27 16:41:18 2005 +@@ -86,8 +86,17 @@ + Name = STRING(CONCAT3(python-core-,PYVERSION,.zip)); + Styles = (ARCHIVE); + End ++ ++#ifdef UNX ++File gid_File_Py_Python_Bin ++ BIN_FILE_BODY; ++ Dir = gid_Dir_Program; ++ Name = "python.bin"; ++ Styles = (PACKED); ++End + #endif + ++#endif + + // substitute for the python Windows basic scripts + diff --git a/editors/openoffice.org-vcltesttool/files/patch-rsc+source+rscpp+makefile.mk b/editors/openoffice.org-vcltesttool/files/patch-rsc+source+rscpp+makefile.mk index 713232e42a70..2959319805b5 100644 --- a/editors/openoffice.org-vcltesttool/files/patch-rsc+source+rscpp+makefile.mk +++ b/editors/openoffice.org-vcltesttool/files/patch-rsc+source+rscpp+makefile.mk @@ -1,4 +1,7 @@ -#i54178# +Issuetracker : #i54178# +CWS : hr17 +Author: : +Description : Index: rsc/source/rscpp/makefile.mk =================================================================== diff --git a/editors/openoffice.org-vcltesttool/files/patch-solenv+inc+unxfbsdi.mk b/editors/openoffice.org-vcltesttool/files/patch-solenv+inc+unxfbsdi.mk index ff89caae4ff0..02b0c8ad1400 100644 --- a/editors/openoffice.org-vcltesttool/files/patch-solenv+inc+unxfbsdi.mk +++ b/editors/openoffice.org-vcltesttool/files/patch-solenv+inc+unxfbsdi.mk @@ -1,7 +1,11 @@ -STLPORT_VERSION is 450 for FreeBSD +Issuetracker : #i56956# +CWS : N/A +Author: : <maho@openoffice.org> (JCA) +Description : FreeBSD porting : catch up recent version of solenv/inc/unxlngi6.mk +catch up recent version of solenv/inc/unxlngi6.mk and STLPORT_VERSION is 450 in FreeBSD ---- solenv/inc/unxfbsdi.mk~ Thu Sep 8 18:52:53 2005 -+++ solenv/inc/unxfbsdi.mk Fri Sep 30 14:08:04 2005 +--- solenv/inc/unxfbsdi.mk Wed Oct 5 20:33:12 2005 ++++ solenv/inc/unxfbsdi.mk Mon Oct 24 11:13:39 2005 @@ -45,7 +45,7 @@ #LINKOUTPUT_FILTER=" |& $(SOLARENV)$/bin$/msg_filter" @@ -11,8 +15,6 @@ STLPORT_VERSION is 450 for FreeBSD # enable visibility define in "sal/types.h" .IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE" ---- solenv/inc/unxfbsdi.mk~ Sat Oct 1 08:52:58 2005 -+++ solenv/inc/unxfbsdi.mk Sat Oct 1 12:52:34 2005 @@ -190,8 +190,13 @@ LIBSALCPPRT*=-Wl,--whole-archive -lsalcpprt -Wl,--no-whole-archive diff --git a/editors/openoffice.org-vcltesttool/files/pkg-message.in b/editors/openoffice.org-vcltesttool/files/pkg-message.in index 016629fb8c3d..197e0ddd1e2b 100644 --- a/editors/openoffice.org-vcltesttool/files/pkg-message.in +++ b/editors/openoffice.org-vcltesttool/files/pkg-message.in @@ -38,6 +38,5 @@ OO.org does need $LANG to be set to a suitable value. 3. If you run into problems -------------------------------------------------- If you somehow run into problems, please remove the already installed -".openoffice.org2" dir in your homedir. -Redo the user installation and the problems should go away. - +".openoffice.org2" dir in your homedir. Redo the user +installation and the problems should go away. |