~ubuntu-branches/ubuntu/karmic/openoffice.org-l10n/karmic

« back to all changes in this revision

Viewing changes to ooo-build/patches/src680/win32-use-short-tmp.diff

  • Committer: Bazaar Package Importer
  • Author(s): Chris Cheney
  • Date: 2008-01-08 23:17:08 UTC
  • mfrom: (1.1.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20080108231708-7f5yc4h021ikwgyz
Tags: 1:2.3.1-3ubuntu1
* Copy of the openoffice.org source.
  - debian/changelog: Change source name.
  - debian/control.in: Change source name.
  - debian/control: Regenerate control file.

* Resynchronise with Debian (r989). Remaining changes:
  - debian/broffice.org.postrm.in:
    . Change diversions to ubuntu bitmap filenames.
  - debian/broffice.org.preinst.in:
    . Change diversions to ubuntu bitmap filenames.
  - debian/control.2.in:
    . Add file for Ubuntu.
  - debian/control.in:
    . Change maintainer line.
    . Use imagemagick instead of graphicsmagick.
    . Change bzr repo location.
    . Use java-runtime-depends variable for java dependencies.
    . Make openoffice.org-core Depends on openoffice.org-hyphenation.
    . Add package openoffice.org-style-human.
    . Various other minor Ubuntu changes.
  - debian/control.l10n.in:
    . Add file for Ubuntu.
  - debian/control.lang.in:
    . Add L10N_COMMON to Depends.
  - debian/control.mozilla.in:
    . Add Xb-Npp-xxx tags according to "firefox distro add-on suport" spec.
  - debian/control.ubuntu.in:
    . Add file for Ubuntu.
  - debian/deppackage.postinst.in:
    . Add file for Ubuntu.
  - debian/module-po.map:
    . Add file for Ubuntu.
  - debian/ooo-build-ubuntu.diff:
    . Various Ubuntu specific changes to ooo-build.
  - debian/rules:
    . Add USE_LZMA_COMPRESS option.
    . Add USE_COMMON_DOCDIR option.
    . Add support to build on lpia.
    . Add support to build l10n as a separate source.
    . Add java-runtime-depends variable for java dependencies.
    . Add support to chmod +x programs in debian dir.
    . Add support to uuencode binary files in ubuntu dir.
    . Add support to Ubuntu specific bitmaps.
    . Use imagemagick instead of graphicsmagick.
    . Add support for openoffice.org-style-human package.
    . Add support for launchpad translations.
    . Various Ubuntu specific changes.
  - debian/scripts/convert2po:
    . Add file for Ubuntu.
  - debian/scripts/fix_image_rgb:
    . Use imagemagick instead of graphicsmagick.
  - debian/scripts/gsifilter.py:
    . Add file for Ubuntu.
  - debian/scripts/splitgsi:
    . Add file for Ubuntu.
  - debian/template.desktop.in:
    . Add NoDisplay=true.
  - ooo-build/configure.in:
    . Added support for Hardy.
  - ooo-build/distro-configs/UbuntuHardy.conf.in:
    . Added support for Hardy.
  - ooo-build/distro-configs/UbuntuHardy64.conf.in:
    . Added support for Hardy.
  - ooo-build/patches/src680/apply:
    . Added support for Hardy.
  - ooo-build/patches/src680/ubuntu-lpi.diff:
    . Updated patch.
  - ubuntu/*
    . Various Ubuntu specific changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
--- config_office/configure.in
2
 
+++ config_office/configure.in
3
 
@@ -5242,6 +5242,32 @@
4
 
 
5
 
 AC_SUBST(BUILD_TYPE)
6
 
 
7
 
+if test "$_os" = "WINNT"; then
8
 
+    # Set TMP (and TEMP) to a short value to avoid potential problems with
9
 
+    # too long lines in ddf files
10
 
+    AC_MSG_CHECKING([for problematic length of TMP and TEMP])
11
 
+    # $TMP and $TEMP are usually the same, but just to be sure...
12
 
+    # and I am not sure which one actually gets used
13
 
+    case "`cygpath -w $TMP`!`cygpath -w $TEMP`" in
14
 
+    ??????????*!*|*!????????*)
15
 
+       # Either is "long", try using "C:\tmp"
16
 
+       AC_MSG_RESULT([yes])
17
 
+       mkdir /cygdrive/c/tmp 2>/dev/null
18
 
+       if test -d /cygdrive/c/tmp && touch /cygdrive/c/tmp/foobarzap 2>/dev/null; then
19
 
+           rm /cygdrive/c/tmp/foobarzap
20
 
+           TEMPORARY_DIRECTORY=/cygdrive/c/tmp
21
 
+           AC_SUBST(TEMPORARY_DIRECTORY)
22
 
+           echo Using `cygpath -w $TEMPORARY_DIRECTORY`
23
 
+       else
24
 
+           AC_MSG_WARN([One or both are too long, but can't figure out what to use instead])
25
 
+       fi
26
 
+       ;;
27
 
+   *)
28
 
+       AC_MSG_RESULT([no])
29
 
+       ;;
30
 
+    esac
31
 
+fi
32
 
+
33
 
 # make sure config.guess is +x; we execute config.guess, so it has to be so; 
34
 
 chmod +x $_solenv/bin/config.guess
35
 
 
36
 
dummy line to avoid confusing diff-mode
37
 
--- config_office/set_soenv.in
38
 
+++ config_office/set_soenv.in
39
 
@@ -1660,6 +1660,10 @@
40
 
    ToFile( "NSIS_PATH",         "@NSIS_PATH@",      "e" );
41
 
    ToFile( "DISABLE_ACTIVEX",   "@DISABLE_ACTIVEX@","e" );
42
 
    ToFile( "USE_NEW_SDK",       $USE_NEW_SDK,       "e" );
43
 
+   if( '@TEMPORARY_DIRECTORY@' ) {
44
 
+      ToFile( "TMP",            "@TEMPORARY_DIRECTORY@", "e");
45
 
+      ToFile( "TEMP",           "@TEMPORARY_DIRECTORY@", "e");
46
 
+   }
47
 
 }
48
 
 ToFile( "PERL",              $PERL,              "e" );
49
 
 ToFile( "RPM",               "@RPM@",            "e" );