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

« back to all changes in this revision

Viewing changes to ooo-build/patches/dev300/crosswin32-solenv-cross.diff

  • Committer: Bazaar Package Importer
  • Author(s): Chris Cheney
  • Date: 2009-08-13 16:30:00 UTC
  • mfrom: (1.1.26 upstream)
  • Revision ID: james.westby@ubuntu.com-20090813163000-ck1d5pxexe0jg8p4
Tags: 1:3.1.1~rc1-1ubuntu1
* 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 (r1631). Remaining changes:
  - Add Launchpad integration support.
  - Add Launchpad translations support.
  - Add package openoffice.org-style-human.
  - Add some Ubuntu-specific bitmaps. Adjust broffice diversions for these.
  - Add support for compressing debs with lzma.
  - Add support for shared /usr/share/doc directories.
  - Add support to build l10n as a separate source.
  - Add support to build on lpia.
  - Add support to turn off building on sparc.
  - Add Xb-Npp-xxx tags according to "firefox distro add-on suport" spec.
  - Use imagemagick instead of graphicsmagick.
  - openoffice.org-help switch to internal copy of lucene.
  - Disable gnome-vfs support since it is buggy.
  - Switch desktop files from %U to %F for gvfs fuse.
* Resynchronise with ooo-build-3-1-1 (7b03695ba14f142cfde58b4592af50cd60e3e787).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- solenv/inc/startup/startup.mk.orig  2008-10-21 09:41:14.000000000 +0200
 
2
+++ solenv/inc/startup/startup.mk       2008-10-21 09:52:19.000000000 +0200
 
3
@@ -40,9 +40,20 @@ CALLTARGETS=$(MAKETARGETS)
 
4
 OS_variable_needed
 
5
 .ENDIF
 
6
 
 
7
-# Customize macro definitions based on seting of OS.
 
8
-# This must come before the default macro definitions which follow.
 
9
-.INCLUDE .NOINFER : $(INCFILENAME:d)$(OS)$/macros.mk
 
10
+# Customize macro definitions based on seting of BUILD_OS, after
 
11
+# translation into a third naming scheme (1. config.guess,
 
12
+# 2. configure.in) devised in 3. set_soenv.in: $B_OS.
 
13
+.IF "$(CROSS_COMPILING)" == "no"
 
14
+B_OS = $(OS)
 
15
+.ELSE # "$(CROSS_COMPILING)" == "yes"
 
16
+.IF "$(BUILD_OS)" == "Linux"
 
17
+B_OS = LINUX
 
18
+.ELSE # "$(BUILD_OS)" != "Linux"
 
19
+.ERROR : ; @echo Work in progress: cross compiling only on Linux
 
20
+.ENDIF 
 
21
+.ENDIF # "$(CROSS_COMPILING)" != "yes"
 
22
+
 
23
+.INCLUDE .NOINFER : $(INCFILENAME:d)$(B_OS)$/macros.mk
 
24
 
 
25
 # ----------------- Default Control Macro definitions -----------------------
 
26
 # Select appropriate defaults for basic macros
 
27
--- solenv/bin/build.pl.orig    2008-07-22 18:46:59.000000000 +0200
 
28
+++ solenv/bin/build.pl 2008-10-21 10:58:44.000000000 +0200
 
29
@@ -61,7 +61,7 @@
 
30
     my $enable_multiprocessing = 1;
 
31
     my $cygwin = 0;
 
32
     $cygwin++ if ($^O eq 'cygwin');
 
33
-    if ($ENV{GUI} eq 'WNT' && !$cygwin) {
 
34
+    if ($ENV{BUILD_OS} eq 'WNT' && !$cygwin) {
 
35
         eval { require Win32::Process; import Win32::Process; };
 
36
         $enable_multiprocessing = 0 if ($@);
 
37
     };
 
38
@@ -812,7 +838,7 @@ sub CorrectPath {
 
39
 sub check_dmake {
 
40
 #print "Checking dmake...";
 
41
 #    my $dmake_batch = CorrectPath("$tmp_dir/dmake.bat");
 
42
-    if ($QuantityToBuild && ($ENV{GUI} eq 'WNT') && ($ENV{USE_SHELL} eq '4nt')) {
 
43
+    if ($QuantityToBuild && ($ENV{BUILD_OS} eq 'WNT') && ($ENV{USE_SHELL} eq '4nt')) {
 
44
         if (open(DMAKEVERSION, "where dmake |")) {
 
45
             my @output = <DMAKEVERSION>;
 
46
             close DMAKEVERSION;
 
47
@@ -857,7 +883,7 @@ sub get_commands {
 
48
     while ($arg = pop(@dmake_args)) {
 
49
         $dmake .= ' '.$arg;
 
50
     };
 
51
-#    if (($ENV{GUI} eq 'WNT') && $QuantityToBuild) {
 
52
+#    if (($ENV{BUILD_OS} eq 'WNT') && $QuantityToBuild) {
 
53
 #        print_error("There is no such executable $_4nt_exe") if (!-e $_4nt_exe);
 
54
 #        $dmake_batch = generate_4nt_batch();
 
55
 #    };
 
56
@@ -873,7 +899,7 @@ sub get_commands {
 
57
 #                 ($ENV{GUI} eq 'MACOSX')) &&
 
58
 #                ($Dir eq '/')) {
 
59
 #        return 1;
 
60
-#    } elsif (    (($ENV{GUI} eq 'WNT') ||
 
61
+#    } elsif (    (($ENV{BUILD_OS} eq 'WNT') ||
 
62
 #                 ($ENV{GUI} eq 'WIN') ||
 
63
 #                 ($ENV{GUI} eq 'OS2')) &&
 
64
 #                ($Dir =~ /\S:\/$/)) {
 
65
@@ -933,7 +959,7 @@ sub CheckPlatform {
 
66
     return 1 if (($ENV{GUI} eq 'WIN') && ($Platform eq 'w'));
 
67
     return 1 if (($ENV{GUI} eq 'UNX') && ($Platform eq 'u'));
 
68
     return 1 if (($ENV{GUI} eq 'OS2') && ($Platform eq 'p'));
 
69
-    return 1 if (($ENV{GUI} eq 'WNT') &&
 
70
+    return 1 if ((($ENV{TARGET_OS} eq 'WNT') || ($ENV{TARGET_OS} eq 'MinGW')) &&
 
71
                  (($Platform eq 'w') || ($Platform eq 'n')));
 
72
     return 0;
 
73
 };
 
74
@@ -1378,7 +1409,7 @@ sub cancel_build {
 
75
         };
 
76
         print "\nAttention: if you build and deliver the above module(s) you may prolongue your the build issuing command \"build --from @broken_modules_names\"\n";
 
77
     } else {
 
78
-#        if ($ENV{GUI} eq 'WNT') {
 
79
+#        if ($ENV{BUILD_OS} eq 'WNT') {
 
80
             while (children_number()) {
 
81
                 handle_dead_children(1);
 
82
             }
 
83
@@ -1400,7 +1431,7 @@ sub store_error {
 
84
     my ($pid, $error_code) = @_;
 
85
     return 0 if (!$error_code);
 
86
     my $child_nick = $processes_hash{$pid};
 
87
-    if ($ENV{GUI} eq 'WNT') {
 
88
+    if ($ENV{BUILD_OS} eq 'WNT') {
 
89
         if (!defined $had_error{$child_nick}) {
 
90
             $had_error{$child_nick}++;
 
91
             return 1;
 
92
@@ -1429,7 +1460,7 @@ sub handle_dead_children {
 
93
     my $try_once_more = 0;
 
94
     do {
 
95
         my $pid = 0;
 
96
-        if ($ENV{GUI} eq 'WNT' && !$cygwin) {
 
97
+        if ($ENV{BUILD_OS} eq 'WNT' && !$cygwin) {
 
98
             foreach $pid (keys %processes_hash) {
 
99
                 my $exit_code  = undef;
 
100
                 my $proc_obj = $windows_procs{$pid};
 
101
@@ -1552,7 +1583,7 @@ sub start_child {
 
102
 #        html_store_job_info($dependencies_hash, $job_dir, $error_code);
 
103
 #        if ($error_code) {
 
104
 #            # give windows (4nt) one more chance 
 
105
-#            if ($ENV{GUI} eq 'WNT' && !$cygwin) {
 
106
+#            if ($ENV{BUILD_OS} eq 'WNT' && !$cygwin) {
 
107
 #                $error_code = do_post_job($`, $post_job, $dependencies_hash);
 
108
 #            };
 
109
 #            if ($error_code) {
 
110
@@ -1569,7 +1600,7 @@ sub start_child {
 
111
     my $children_running;
 
112
     my $oldfh = select STDOUT;
 
113
     $| = 1;
 
114
-    if ($ENV{GUI} eq 'WNT' && !$cygwin) {
 
115
+    if ($ENV{BUILD_OS} eq 'WNT' && !$cygwin) {
 
116
         print "$job_dir\n";
 
117
         my $process_obj = undef;
 
118
         my $rc = Win32::Process::Create($process_obj, $dmake_bin,
 
119
@@ -1725,7 +1756,7 @@ sub do_custom_job {
 
120
         $error_code = run_job($job, CorrectPath($StandDir.$module), $module_job);
 
121
         if ($error_code) {
 
122
             # give windows (4nt) one more chance 
 
123
-            if ($ENV{GUI} eq 'WNT' && !$cygwin) {
 
124
+            if ($ENV{BUILD_OS} eq 'WNT' && !$cygwin) {
 
125
                 $error_code = run_job($job, CorrectPath($StandDir.$module), $module_job);
 
126
             };
 
127
         };
 
128
@@ -3180,7 +3211,7 @@ sub html_store_job_info {
 
129
 
 
130
 sub start_server_on_port {
 
131
     my $port = shift;
 
132
-    if ($ENV{GUI} eq 'WNT') {
 
133
+    if ($ENV{BUILD_OS} eq 'WNT') {
 
134
         $socket_obj = new IO::Socket::INET (#LocalAddr => hostname(),
 
135
                                   LocalPort => $port,
 
136
                                   Proto     => 'tcp',
 
137
--- solenv/bin/deliver.pl.orig  2008-10-21 10:52:30.000000000 +0200
 
138
+++ solenv/bin/deliver.pl       2008-10-21 10:58:49.000000000 +0200
 
139
@@ -140,7 +140,7 @@ parse_options();
 
140
 print "$script_name -- version: $script_rev\n" if !$opt_silent;
 
141
 
 
142
 if ( ! $opt_delete ) {
 
143
-    if ( $ENV{GUI} eq 'WNT' ) {
 
144
+    if ( $ENV{BUILD_OS} eq 'WNT' ) {
 
145
         if ($ENV{COM} eq 'GCC') {
 
146
             initialize_strip() ;
 
147
         };
 
148
@@ -411,7 +411,7 @@ sub parse_options 
 
149
         $arg =~ /^-delete$/     and $opt_delete = 1  and next;
 
150
         $arg =~ /^-dontdeletecommon$/ and $dontdeletecommon = 1 and next;
 
151
         $arg =~ /^-help$/       and $opt_help   = 1  and $arg = '';
 
152
-        $arg =~ /^-link$/       and $ENV{GUI} ne 'WNT' and $opt_link = 1 and next;
 
153
+        $arg =~ /^-link$/       and $ENV{BUILD_OS} ne 'WNT' and $opt_link = 1 and next;
 
154
         $arg =~ /^-deloutput$/  and $opt_deloutput = 1 and next;
 
155
         $arg =~ /^-debug$/      and $is_debug   = 1  and next;
 
156
         $arg =~ /^-checkdlst$/  and $opt_checkdlst = 1 and next;
 
157
@@ -711,7 +711,7 @@ sub is_unstripped {
 
158
         # OS X file command doesn't know if a file is stripped or not
 
159
         if (($file_type =~ /not stripped/o) || ($file_type =~ /Mach-O/o) || 
 
160
             (($file_type =~ /PE/o) && ($ENV{GUI} eq 'WNT') &&
 
161
-             ($nm_output = `nm $file_name 2>&1`) && $nm_output &&
 
162
+             ($nm_output = `$(NM) $file_name 2>&1`) && $nm_output &&
 
163
              !($nm_output =~ /no symbols/i) && !($nm_output =~ /not recognized/i))) {
 
164
             return '1' if ($file_name =~ /\.bin$/o);
 
165
             return '1' if ($file_name =~ /\.so\.*/o);
 
166
@@ -1485,7 +1485,7 @@ sub usage 
 
167
     print STDERR "  -force       copy even if not newer\n";
 
168
     print STDERR "  -dontdeletecommon do not delete common files (for -delete option)\n";
 
169
     print STDERR "  -help        print this message\n";
 
170
-    if ( !defined($ENV{GUI}) || $ENV{GUI} ne 'WNT' ) {
 
171
+    if ( !defined($ENV{BUILD_OS}) || $ENV{BUILD_OS} ne 'WNT' ) {
 
172
         print STDERR "  -link        hard link files into the solver to save disk space\n";
 
173
     }
 
174
     print STDERR "  -minor       deliver into minor (milestone)\n";
 
175
--- solenv/inc/unitools.mk.pristine     2008-10-21 11:31:04.000000000 +0200
 
176
+++ solenv/inc/unitools.mk      2008-10-21 13:54:42.000000000 +0200
 
177
@@ -39,7 +39,7 @@ XSLTPROC*=xsltproc
 
178
 
 
179
 ULFCONV*=ulfconv
 
180
 
 
181
-MAKEDEPEND*=$(SOLARBINDIR)$/makedepend
 
182
+MAKEDEPEND*=$(TOOLS_DIR)/makedepend
 
183
 
 
184
 SCP_CHECK_TOOL:=checkscp$E
 
185
 
 
186
--- solenv/inc/settings.mk.pristine     2008-10-29 08:42:08.000000000 +0100
 
187
+++ solenv/inc/settings.mk      2008-10-30 10:01:59.000000000 +0100
 
188
@@ -752,7 +752,7 @@ COMMONBIN=$(LOCAL_COMMON_OUT)$/bin
 
189
 INC=$(PRJ)$/inc
 
190
 INCPCH=$(PRJ)$/inc$/pch
 
191
 INCLOCAL=..$/inc
 
192
-INCGUI=$(PRJ)$/$(GUIBASE)$/inc
 
193
+INCGUI=$(PRJ)$/$(GUIBASE:l)$/inc
 
194
 INCCOM=$(OUT)$/inc
 
195
 INCCOMX=$(OUT)$/inc
 
196
 INCUNOIDL=$(INCCOM)$/$(PRJNAME)
 
197
@@ -1050,7 +1050,11 @@ JAVA*:=$(JAVAINTERPRETER)
 
198
 SCPCOMP=$(PERL) $(SOLARENV)$/bin$/pre2par.pl
 
199
 SCPLINK=$(PERL) $(SOLARENV)$/bin$/par2script.pl
 
200
 LZIP*=lzip
 
201
+.IF "$(GUI)" == "UNX" || "$(BUILD_OS)" != "WNT"
 
202
+CPPLCC*=cpp.lcc
 
203
+.ELSE
 
204
 CPPLCC*=cpplcc
 
205
+.ENDIF
 
206
 
 
207
 .IF "$(DISABLE_ENHANCED_COMID)"==""
 
208
 .INCLUDE : tg_compv.mk