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

« back to all changes in this revision

Viewing changes to ooo-build/patches/src680/stl-abi.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
Index: configure.in
 
2
===================================================================
 
3
RCS file: /cvs/tools/config_office/configure.in,v
 
4
retrieving revision 1.221
 
5
diff -u -r1.221 configure.in
 
6
--- config_office/configure.in  4 Oct 2007 07:48:20 -0000       1.221
 
7
+++ config_office/configure.in  17 Oct 2007 12:12:45 -0000
 
8
@@ -408,9 +408,10 @@
 
9
 
 
10
                           Usage: --with-stlport4=<absolute path to stlport4 home>
 
11
 
 
12
-                          Warning!!, --without-stlport4 is possible with
 
13
-                          gcc >= 3.3.3, but will break ABI compatability
 
14
-], WITH_STLPORT=$withval , WITH_STLPORT=yes)
 
15
+                          Warning!!, disabling with --without-stlport4 or 
 
16
+                          enabling with --with-stlport4 on a platform that
 
17
+                          defaults to the opposite will break ABI compatability
 
18
+], WITH_STLPORT=$withval , WITH_STLPORT=auto)
 
19
 AC_ARG_WITH(jdk-home,
 
20
 [  --with-jdk-home         if you have installed JDK 1.3 or later on your system
 
21
                           please supply the path here.
 
22
@@ -2059,6 +2060,30 @@
 
23
 else
 
24
 
 
25
 dnl ===================================================================
 
26
+dnl Checks for what the default STL should be
 
27
+dnl ===================================================================
 
28
+   AC_MSG_CHECKING([what the default STL should be])
 
29
+   DEFAULT_TO_STLPORT="yes"
 
30
+   if test "$_os" = "Linux"; then
 
31
+     case "$build_cpu" in
 
32
+       i?86)
 
33
+         DEFAULT_TO_STLPORT="yes"
 
34
+         ;;
 
35
+       *)
 
36
+         DEFAULT_TO_STLPORT="no"
 
37
+         ;;
 
38
+     esac
 
39
+   fi
 
40
+   if test "$DEFAULT_TO_STLPORT" = "yes"; then
 
41
+      AC_MSG_RESULT([stlport])
 
42
+   else
 
43
+      AC_MSG_RESULT([gcc])
 
44
+   fi
 
45
+   if test "$WITH_STLPORT" = "auto"; then
 
46
+      WITH_STLPORT=$DEFAULT_TO_STLPORT
 
47
+   fi
 
48
+
 
49
+dnl ===================================================================
 
50
 dnl Checks for STLPORT4
 
51
 dnl ===================================================================
 
52
    AC_MSG_CHECKING([for STLport4 headers])
 
53
@@ -2066,9 +2091,17 @@
 
54
    USE_SYSTEM_STL=""
 
55
    if test "$WITH_STLPORT" = "yes"; then
 
56
       AC_MSG_RESULT([using internal stlport.])
 
57
+      if test "$DEFAULT_TO_STLPORT" != "yes"; then
 
58
+         AC_MSG_WARN([using stlport. Warning breaks your ABI compatability!])
 
59
+         echo "using stlport. Warning breaks your ABI compatability!" >>warn
 
60
+      fi
 
61
    elif test "$WITH_STLPORT" = "no"; then
 
62
-      AC_MSG_RESULT([use system STL instead, Warning breaks your ABI compatability!])
 
63
+      AC_MSG_RESULT([use system STL])
 
64
       USE_SYSTEM_STL="YES"
 
65
+      if test "$DEFAULT_TO_STLPORT" != "no"; then
 
66
+         AC_MSG_WARN([using system STL. Warning breaks your ABI compatability!])
 
67
+         echo "using system STL. Warning breaks your ABI compatability!" >>warn
 
68
+      fi
 
69
    else
 
70
       STLPORT4=$WITH_STLPORT
 
71
       if test "$_os" != "WINNT" -o "$WITH_MINGWIN" = "yes"; then
 
72
@@ -2113,6 +2146,10 @@
 
73
                           fi
 
74
                   fi
 
75
           fi
 
76
+      if test "$DEFAULT_TO_STLPORT" != "yes"; then
 
77
+         AC_MSG_WARN([using stlport. Warning breaks your ABI compatability!])
 
78
+         echo "using stlport. Warning breaks your ABI compatability!" >>warn
 
79
+      fi
 
80
    fi
 
81
 fi
 
82
 
 
83
@@ -2145,23 +2182,42 @@
 
84
 fi
 
85
 AC_SUBST(ALLOC)
 
86
 
 
87
+dnl Check whether there's a C pre-processor.
 
88
+if test "$_os" = "Linux" -o "$_os" = "FreeBSD" -o "$_os" = "NetBSD" ; then
 
89
+   AC_PROG_CPP
 
90
+fi
 
91
+dnl Check whether there's a C++ pre-processor.
 
92
+if test "$_os" = "Linux" -o "$_os" = "FreeBSD" -o "$_os" = "NetBSD" ; then
 
93
+   AC_PROG_CXXCPP
 
94
+fi
 
95
+
 
96
 dnl ===================================================================
 
97
-dnl hash_map hackery
 
98
+dnl system stl sanity tests
 
99
 dnl ===================================================================
 
100
 if test "$USE_SYSTEM_STL" = "YES"; then
 
101
-   AC_MSG_CHECKING([if hash_map will be in __gnu_cxx namespace])
 
102
    AC_LANG_SAVE
 
103
+   AC_MSG_CHECKING([if hash_map will be in __gnu_cxx namespace])
 
104
    AC_LANG_CPLUSPLUS
 
105
    AC_TRY_COMPILE([#include <ext/hash_map>
 
106
 using namespace __gnu_cxx;
 
107
 ],[hash_map<int, int> t; return 0;],
 
108
   ac_cv_cxx_have_ext_hash_map=yes, ac_cv_cxx_have_ext_hash_map=no)
 
109
-   AC_LANG_RESTORE
 
110
+
 
111
    if test "$ac_cv_cxx_have_ext_hash_map" = "no"; then
 
112
-      AC_MSG_ERROR([Can't find hash_map. Try with stlport enabled])
 
113
+      AC_MSG_ERROR([Can't find hash_map. Try with --with-stlport])
 
114
    else
 
115
       AC_MSG_RESULT([$ac_cv_cxx_have_ext_hash_map])
 
116
    fi
 
117
+
 
118
+   if test "$HAVE_GCC_VISIBILITY_FEATURE" = "TRUE"; then
 
119
+      AC_MSG_CHECKING([if STL headers are visibility safe])
 
120
+      AC_EGREP_HEADER(visibility push, string, stlvisok=yes, stlvisok=no)
 
121
+      AC_MSG_RESULT([$stlvisok])
 
122
+      if test "$stlvisok" = "no"; then
 
123
+         AC_MSG_ERROR([Your gcc STL headers are not visibility safe. Try with --with-stlport])
 
124
+      fi
 
125
+   fi
 
126
+   AC_LANG_RESTORE
 
127
 fi
 
128
 
 
129
 dnl ===================================================================
 
130
@@ -2547,14 +2603,6 @@
 
131
 dnl ===================================================================
 
132
 dnl Checks for programs.
 
133
 dnl ===================================================================
 
134
-dnl Check whether there's a C pre-processor.
 
135
-if test "$_os" = "Linux" -o "$_os" = "FreeBSD" -o "$_os" = "NetBSD" ; then
 
136
-   AC_PROG_CPP
 
137
-fi
 
138
-dnl Check whether there's a C++ pre-processor.
 
139
-if test "$_os" = "Linux" -o "$_os" = "FreeBSD" -o "$_os" = "NetBSD" ; then
 
140
-   AC_PROG_CXXCPP
 
141
-fi
 
142
 
 
143
 dnl ===================================================================
 
144
 dnl Check whether we already have dmake
 
145
Index: settings/settings.mk
 
146
===================================================================
 
147
RCS file: /cvs/api/odk/settings/settings.mk,v
 
148
retrieving revision 1.23
 
149
diff -u -r1.23 settings.mk
 
150
--- odk/settings/settings.mk    31 Jul 2007 13:58:07 -0000      1.23
 
151
+++ odk/settings/settings.mk    18 Oct 2007 13:41:31 -0000
 
152
@@ -229,10 +229,12 @@
 
153
 PACKAGE_LIB_DIR=linux_x86.plt
 
154
 UNOPKG_PLATFORM=Linux_x86
 
155
 JAVA_PROC_TYPE=i386
 
156
+STLPORTLIB=-lstlport_gcc
 
157
 
 
158
 ifeq "$(PROCTYPE)" "x86_64"
 
159
 PACKAGE_LIB_DIR=linux_x86_64.plt
 
160
 UNOPKG_PLATFORM=Linux_x86_64
 
161
+STLPORTLIB=
 
162
 # needs deeper investigation for intel 64 bit
 
163
 JAVA_PROC_TYPE=amd64
 
164
 endif
 
165
@@ -289,7 +291,6 @@
 
166
 SALHELPERLIB=-luno_salhelper$(COMID)
 
167
 REGLIB=-lreg
 
168
 STORELIB=-lstore
 
169
-STLPORTLIB=-lstlport_gcc
 
170
 
 
171
 EMPTYSTRING=
 
172
 PATH_SEPARATOR=: