<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>patches/openoffice-pyuno-mingw.patch</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -9,20 +9,18 @@ from gub import targetbuild
 # http://baseutils.googlecode.com/svn/trunk/str_strsafe.h
 
 '''
-$ grep 'delivered' target/mingw/log/build.log
 Module 'solenv' delivered successfully. 0 files copied, 1 files unchanged
 Module 'stlport' delivered successfully. 0 files copied, 8 files unchanged
-Module 'soltools' delivered successfully. 1 files copied, 13 files unchanged
-Module 'external' delivered successfully. 0 files copied, 66 files unchanged
+Module 'soltools' delivered successfully. 0 files copied, 14 files unchanged
+Module 'external' delivered successfully. 0 files copied, 30 files unchanged
 Module 'libwpd' delivered successfully. 0 files copied, 12 files unchanged
 Module 'xml2cmp' delivered successfully. 0 files copied, 5 files unchanged
-Module 'sal' delivered successfully. 11 files copied, 99 files unchanged
+Module 'sal' delivered successfully. 10 files copied, 100 files unchanged
 Module 'vos' delivered successfully. 0 files copied, 31 files unchanged
-Module 'redland' delivered successfully. 0 files copied, 2 files unchanged
 Module 'sandbox' delivered successfully. 1 files copied, 1 files unchanged
 Module 'afms' delivered successfully. 0 files copied, 2 files unchanged
 Module 'beanshell' delivered successfully. 0 files copied, 2 files unchanged
-Module 'cppunit' delivered successfully. 4 files copied, 66 files unchanged
+Module 'cppunit' delivered successfully. 4 files copied, 65 files unchanged
 Module 'testshl2' delivered successfully. 1 files copied, 11 files unchanged
 Module 'salhelper' delivered successfully. 0 files copied, 12 files unchanged
 Module 'extras' delivered successfully. 0 files copied, 70 files unchanged
@@ -46,7 +44,7 @@ Module 'store' delivered successfully. 0 files copied, 8 files unchanged
 Module 'registry' delivered successfully. 0 files copied, 23 files unchanged
 Module 'idlc' delivered successfully. 0 files copied, 7 files unchanged
 Module 'udkapi' delivered successfully. 1 files copied, 417 files unchanged
-Module 'offapi' delivered successfully. 1 files copied, 3520 files unchanged
+Module 'offapi' delivered successfully. 3 files copied, 3518 files unchanged
 Module 'codemaker' delivered successfully. 0 files copied, 23 files unchanged
 Module 'offuh' delivered successfully. 0 files copied, 5518 files unchanged
 Module 'cppu' delivered successfully. 0 files copied, 47 files unchanged
@@ -81,15 +79,16 @@ Module 'regexp' delivered successfully. 0 files copied, 4 files unchanged
 Module 'i18npool' delivered successfully. 1 files copied, 40 files unchanged
 Module 'tools' delivered successfully. 5 files copied, 101 files unchanged
 Module 'unotools' delivered successfully. 0 files copied, 47 files unchanged
-Module 'transex3' delivered successfully. 2 files copied, 31 files unchanged
+Module 'transex3' delivered successfully. 0 files copied, 33 files unchanged
 Module 'sot' delivered successfully. 0 files copied, 21 files unchanged
 Module 'fileaccess' delivered successfully. 0 files copied, 4 files unchanged
 Module 'officecfg' delivered successfully. 1 files copied, 224 files unchanged
-Module 'setup_native' delivered successfully. 43 files copied, 15 files unchanged
-Module 'rsc' delivered successfully. 5 files copied, 3 files unchanged
-21:30:23 janneke@peder:~/vc/gub
-$ grep 'delivered' target/mingw/log/build.log | wc -l
-77 modules
+Module 'setup_native' delivered successfully. 2 files copied, 56 files unchanged
+Module 'rsc' delivered successfully. 0 files copied, 8 files unchanged
+Module 'oox' delivered successfully. 0 files copied, 9 files unchanged
+Module 'psprint' delivered successfully. 0 files copied, 14 files unchanged
+Module 'pyuno' delivered successfully. 8 files copied, 13 files unchanged
+79 modules
 '''
 
 class Openoffice (targetbuild.AutoBuild):
@@ -154,7 +153,8 @@ ac_cv_icu_version_minor=${ac_cv_icu_version_minor=3.81}
     def configure_command (self):
         return (targetbuild.AutoBuild.configure_command (self)
                 + misc.join_lines ('''
---with-vendor=\&quot;GUB -- LilyPond.org\&quot;
+--with-additional-sections=MinGW
+--with-vendor=\&quot;GUB -- http://lilypond.org/gub\&quot;
 --disable-Xaw
 --disable-access
 --disable-activex
@@ -221,6 +221,7 @@ ac_cv_icu_version_minor=${ac_cv_icu_version_minor=3.81}
 --with-system-neon
 --with-system-odbc-headers
 --with-system-portaudio
+--with-system-redland
 --with-system-sablot
 --with-system-saxon
 --with-system-sndfile
@@ -327,7 +328,7 @@ LD_LIBRARY_PATH=%(LD_LIBRARY_PATH)s
 ##CPPFLAGS=
                 
 class Openoffice__mingw (Openoffice):
-    Openoffice.upstream_patches += ['openoffice-config_office-mingw.patch', 'openoffice-solenv-mingw.patch', 'openoffice-soltools-mingw.patch', 'openoffice-sal-mingw.patch', 'openoffice-external-mingwheaders.patch', 'openoffice-cppunit-mingw.patch', 'openoffice-i18npool-mingw.patch', 'openoffice-tools-mingw.patch', 'openoffice-transex3-mingw.patch', 'openoffice-setup_native-mingw.patch']
+    Openoffice.upstream_patches += ['openoffice-config_office-mingw.patch', 'openoffice-solenv-mingw.patch', 'openoffice-sal-mingw.patch', 'openoffice-external-mingwheaders.patch', 'openoffice-cppunit-mingw.patch', 'openoffice-i18npool-mingw.patch', 'openoffice-tools-mingw.patch', 'openoffice-setup_native-mingw.patch', 'openoffice-pyuno-mingw.patch']
     # external/mingwheaders seems a badly misguided effort.  It
     # patches header files and is thus strictly tied to a gcc version;
     # that can never build.  How can patching header files ever work,
@@ -337,8 +338,15 @@ class Openoffice__mingw (Openoffice):
     # __MINGW32__ defines.  Why not fix OO.o makefiles and client
     # code?
     Openoffice.upstream_patches += ['openoffice-sal-mingw-c.patch']
+    # Kendy's MinGW patches are already applied
+    kendy = ['openoffice-transex3-mingw.patch', 'openoffice-soltools-mingw.patch']
     def get_build_dependencies (self):
         return Openoffice.get_build_dependencies (self) + ['libunicows-devel']
+    def patch (self):
+        Openoffice.patch (self)
+        # disable Kendy's patch for Cygwin version of mingw
+        self.file_sub ([('^(mingw-build-without-stlport-stlport.diff)', r'#\1')],
+                       '%(srcdir)s/patches/dev300/apply')
     def configure_command (self):
         return (Openoffice.configure_command (self)
                 .replace ('--with-system-xrender-headers', '')</diff>
      <filename>gub/specs/openoffice.py</filename>
    </modified>
    <modified>
      <diff>@@ -76,3 +76,14 @@
  #endif
  
  // Globally disable &quot;warning C4100: unreferenced formal parameter&quot; caused by
+--- sal/osl/w32/file.cxx.orig	2008-08-06 17:36:23.000000000 +0200
++++ sal/osl/w32/file.cxx	2008-10-21 20:53:48.000000000 +0200
+@@ -34,7 +34,7 @@
+ #define UNICODE
+ #define _UNICODE
+ #define _WIN32_WINNT 0x0500
+-#include &quot;systools\win32\uwinapi.h&quot;
++#include &quot;systools/win32/uwinapi.h&quot;
+ 
+ #include &quot;path_helper.hxx&quot;
+ </diff>
      <filename>patches/openoffice-sal-mingw.patch</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
---- solenv/inc/wntgcci6.mk.pristine	2008-10-21 13:20:04.000000000 +0200
-+++ solenv/inc/wntgcci6.mk	2008-10-28 11:05:46.000000000 +0100
+--- solenv/inc/wntgcci6.mk.pristine	2008-10-29 08:42:22.000000000 +0100
++++ solenv/inc/wntgcci6.mk	2008-10-29 08:49:44.000000000 +0100
 @@ -31,14 +31,18 @@
  
  # mk file for wntgcci6
@@ -32,10 +32,11 @@
  ###
  CFLAGSCC=-pipe $(ARCH_FLAGS)
  CFLAGSCXX=-pipe $(ARCH_FLAGS)
-@@ -108,17 +115,37 @@ STATIC= -static
- DYNAMIC= -dynamic
+@@ -109,18 +116,37 @@ DYNAMIC= -dynamic
  
- LINK*=$(CC)
+ LINK*=$(CXX)
+ LINKC*=$(CC)
+-
 -CYGLIB=$(LIB:s/;/ -L/)
 -LINKFLAGS=-nostdlib -Wl,--enable-stdcall-fixup,--enable-runtime-pseudo-reloc -L$(CYGLIB)
 +# FIXME: better way to strip trailing semicolon from $(LIB) to avoid
@@ -76,7 +77,7 @@
  LINKFLAGSTACK=
  LINKFLAGSPROF=
  LINKFLAGSDEBUG=-g
-@@ -150,16 +177,20 @@ STDSHLCUIMT+=-lmingw32 -lmoldname -lming
+@@ -152,16 +178,20 @@ STDSHLCUIMT+=-lmingw32 -lmoldname -lming
  LIBSTLPORT=-lstlport_gcc
  LIBSTLPORTST=-lstlport_gcc_static
  
@@ -99,7 +100,7 @@
  RCFLAGS=-D__MINGW32__ -DWIN32 -D_WIN32_IE=0x400 -fo$@ $(RCFILES)
  RCLINK=
  RCLINKFLAGS=
-@@ -168,12 +199,20 @@ RCSETVERSION=
+@@ -170,12 +200,20 @@ RCSETVERSION=
  DLLPOSTFIX=gi
  PCHPOST=.gch
  
@@ -121,7 +122,7 @@
  WINSPOOLLIB=-lwinspool
  IMM32LIB=-limm32
  PSPLIB=-lpsp
-@@ -187,14 +226,14 @@ USER32LIB=-luser32
+@@ -189,14 +227,14 @@ USER32LIB=-luser32
  LIBCMT=-lmsvcrt
  COMDLG32LIB=-lcomdlg32
  COMCTL32LIB=-lcomctl32
@@ -145,14 +146,27 @@
  OLDNAMESLIB=-lmoldname
 -MSIMG32LIB=$(PSDK_HOME)$/lib$/msimg32.lib
 +MSIMG32LIB=$(LINK_PSDK_LIB)msimg32$(PSDK_DOT_LIB)
---- solenv/inc/settings.mk.pristine	2008-10-21 11:31:04.000000000 +0200
-+++ solenv/inc/settings.mk	2008-10-28 20:16:46.000000000 +0100
-@@ -752,7 +752,7 @@ COMMONBIN=$(LOCAL_COMMON_OUT)$/bin
- INC=$(PRJ)$/inc
- INCPCH=$(PRJ)$/inc$/pch
- INCLOCAL=..$/inc
--INCGUI=$(PRJ)$/$(GUIBASE)$/inc
-+INCGUI=$(PRJ)$/$(GUIBASE:l)$/inc
- INCCOM=$(OUT)$/inc
- INCCOMX=$(OUT)$/inc
- INCUNOIDL=$(INCCOM)$/$(PRJNAME)
+--- solenv/inc/shlinfo.rc.pristine	2008-10-29 09:33:25.000000000 +0100
++++ solenv/inc/shlinfo.rc	2008-10-29 09:33:33.000000000 +0100
+@@ -29,7 +29,9 @@
+  ************************************************************************/
+ 
+ #define VERSION			3
++#ifndef CROSS_COMPILING
+ #define SUBVERSION		0
++#endif
+ #define VERVARIANT		0
+ 
+ // .0 + VER_CONCEPT
+@@ -159,7 +161,11 @@ VS_VERSION_INFO versioninfo
+ VS_VERSION_INFO rcdata
+ {
+ 	0xF0, &quot;sw&quot;, 0x0F, VER_YEAR, VER_MONTH, VER_DAY,
++#ifndef CROSS_COMPILING
+ 	VERSION, VERVARIANT, VER_COUNT
++#else
++	VERSION
++#endif
+ };
+ 
+ #endif // OS2</diff>
      <filename>patches/openoffice-solenv-mingw.patch</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>52e5e0ae081eb15be09386692d4e20cb50235d1a</id>
    </parent>
  </parents>
  <author>
    <name>Jan Nieuwenhuizen</name>
    <email>janneke@gnu.org</email>
  </author>
  <url>http://github.com/janneke/gub/commit/a99035790613b0c3def919ff8e75979b5bdc582a</url>
  <id>a99035790613b0c3def919ff8e75979b5bdc582a</id>
  <committed-date>2008-10-29T09:10:11-07:00</committed-date>
  <authored-date>2008-10-29T09:10:11-07:00</authored-date>
  <message>OpenOffice: Add Kendy's MinGW section.  Resolve conflicts.  Use python with threads.

79 modules, get past pyuno.</message>
  <tree>1740802804ba5f575c529b7a0cc16ab308717e37</tree>
  <committer>
    <name>Jan Nieuwenhuizen</name>
    <email>janneke@gnu.org</email>
  </committer>
</commit>
