18110
|
1 |
--- Songbird1.2.0/components/library/localdatabase/src/sbLocalDatabaseLibrary.cpp.orig 2009-06-19 17:17:02.665263203 +0800
|
|
2 |
+++ Songbird1.2.0/components/library/localdatabase/src/sbLocalDatabaseLibrary.cpp 2009-06-19 17:00:14.981000458 +0800
|
|
3 |
@@ -153,6 +153,22 @@
|
|
4 |
*/
|
|
5 |
template<class V, typename T>
|
|
6 |
PLDHashOperator PR_CALLBACK
|
|
7 |
+CopyInterfaceHashtableEntry(const nsAString& aKey,
|
|
8 |
+ T* aData,
|
|
9 |
+ void* aUserData)
|
|
10 |
+{
|
|
11 |
+ nsInterfaceHashtableMT<V, T> *newHash =
|
|
12 |
+ reinterpret_cast<nsInterfaceHashtableMT<V, T>*>(aUserData);
|
|
13 |
+
|
|
14 |
+ NS_ASSERTION(newHash->IsInitialized(), "copying to uninitialized hashtable!");
|
|
15 |
+
|
|
16 |
+ PRBool success = newHash->Put(aKey, aData);
|
|
17 |
+
|
|
18 |
+ return success ? PL_DHASH_NEXT : PL_DHASH_STOP;
|
|
19 |
+}
|
|
20 |
+
|
|
21 |
+template<class V, typename T>
|
|
22 |
+PLDHashOperator PR_CALLBACK
|
|
23 |
CopyInterfaceHashtableEntry(typename V::KeyType aKey,
|
|
24 |
T* aData,
|
|
25 |
void* aUserData)
|
|
26 |
--- Songbird1.2.0/configure.ac.orig 2009-07-21 15:16:47.922634217 +0800
|
|
27 |
+++ Songbird1.2.0/configure.ac 2009-07-21 15:17:25.328753707 +0800
|
|
28 |
@@ -876,7 +876,8 @@
|
|
29 |
|
|
30 |
CFLAGS="$CFLAGS $SUN_COMPILER_FLAGS"
|
|
31 |
CXXFLAGS="$CXXFLAGS $SUN_COMPILER_FLAGS"
|
|
32 |
- LDFLAGS_DLL="-G -z defs -library=Cstd,Crun -lc"
|
|
33 |
+ LDFLAGS="-L\$(topsrcdir)/$OBJDIRNAME/$DISTDIRNAME$XULRUNNERDIR $LDFLAGS"
|
|
34 |
+ LDFLAGS_DLL="-G -library=Cstd,Crun -lc"
|
|
35 |
LDFLAGS_BIN=""
|
|
36 |
USING_RANLIB=1
|
|
37 |
fi
|
|
38 |
--- Songbird1.4/components/library/localdatabase/src/sbLocalDatabaseDiffingService.cpp.orig 2009-10-13 15:03:01.406389802 -0700
|
|
39 |
+++ Songbird1.4/components/library/localdatabase/src/sbLocalDatabaseDiffingService.cpp 2009-10-13 15:08:29.361060496 -0700
|
|
40 |
@@ -442,14 +442,14 @@
|
|
41 |
}
|
|
42 |
// Check if the duration is the same in seconds, that's good enough
|
|
43 |
else if (propertyId.EqualsLiteral(SB_PROPERTY_DURATION)) {
|
|
44 |
- PRUint32 const sourceDuration = propertyValue.ToInteger(&rv, 10);
|
|
45 |
+ PRUint64 const sourceDuration = nsString_ToUint64(propertyValue, &rv);
|
|
46 |
if (NS_SUCCEEDED(rv)) {
|
|
47 |
PRUint64 const destDuration =
|
|
48 |
nsString_ToUint64(propertyDestinationValue, &rv);
|
|
49 |
// If the duration was parsed and the difference less than a second
|
|
50 |
// then treat it as unchanged
|
|
51 |
if (NS_SUCCEEDED(rv)
|
|
52 |
- && abs(sourceDuration - destDuration) < PR_USEC_PER_SEC) {
|
|
53 |
+ && labs(sourceDuration - destDuration) < PR_USEC_PER_SEC) {
|
|
54 |
continue;
|
|
55 |
}
|
|
56 |
}
|
|
57 |
--- /dev/null 2009-10-13 17:30:01.000000000 -0700
|
|
58 |
+++ Songbird1.4/tools/scripts/make-mozilla-sdk.sh 2009-10-13 17:31:12.426790472 -0700
|
|
59 |
@@ -0,0 +1,200 @@
|
|
60 |
+#!/bin/sh
|
|
61 |
+
|
|
62 |
+# bin_files are relative to $objdir/dist/bin/
|
|
63 |
+bin_files="regxpcom*
|
|
64 |
+ xpidl*
|
|
65 |
+ xpt_dump*
|
|
66 |
+ xpt_link*
|
|
67 |
+ mozcrt19*
|
|
68 |
+"
|
|
69 |
+
|
|
70 |
+# lib_files are relative to $objdir/dist/lib/
|
|
71 |
+lib_files="*js3250.*
|
|
72 |
+ *plc4.*
|
|
73 |
+ *plds4.*
|
|
74 |
+ *nspr4.*
|
|
75 |
+ *unicharutil_external_s.*
|
|
76 |
+ *xpcom.*
|
|
77 |
+ *xpcomglue_s.*
|
|
78 |
+ *mozjs*
|
|
79 |
+ *mozcrt19*
|
|
80 |
+ *xul*
|
|
81 |
+ *smime3*
|
|
82 |
+ *ssl3*
|
|
83 |
+ *nss3*
|
|
84 |
+ *nssutil3*
|
|
85 |
+ *sqlite3*
|
|
86 |
+"
|
|
87 |
+
|
|
88 |
+# symbol_files are relative to $objdir
|
|
89 |
+symbol_files="intl/unicharutil/util/nsunicharutils.pdb
|
|
90 |
+ intl/unicharutil/util/unicharutil_external_s.pdb
|
|
91 |
+ js/src/js3250.pdb
|
|
92 |
+ toolkit/library/xul.pdb
|
|
93 |
+ xpcom/glue/nsarrayenumerator.pdb
|
|
94 |
+ xpcom/glue/nsarrayutils.pdb
|
|
95 |
+ xpcom/glue/nsautolock.pdb
|
|
96 |
+ xpcom/glue/nscategorycache.pdb
|
|
97 |
+ xpcom/glue/nscomarray.pdb
|
|
98 |
+ xpcom/glue/nscomponentmanagerutils.pdb
|
|
99 |
+ xpcom/glue/nscomptr.pdb
|
|
100 |
+ xpcom/glue/nscrtglue.pdb
|
|
101 |
+ xpcom/glue/nsenumeratorutils.pdb
|
|
102 |
+ xpcom/glue/nsgenericfactory.pdb
|
|
103 |
+ xpcom/glue/nsid.pdb
|
|
104 |
+ xpcom/glue/nsiinterfacerequestorutils.pdb
|
|
105 |
+ xpcom/glue/nsisupportsimpl.pdb
|
|
106 |
+ xpcom/glue/nsmemory.pdb
|
|
107 |
+ xpcom/glue/nsquicksort.pdb
|
|
108 |
+ xpcom/glue/nsstringapi.pdb
|
|
109 |
+ xpcom/glue/nstarray.pdb
|
|
110 |
+ xpcom/glue/nsthashtable.pdb
|
|
111 |
+ xpcom/glue/nsthreadutils.pdb
|
|
112 |
+ xpcom/glue/nsvoidarray.pdb
|
|
113 |
+ xpcom/glue/nsweakreference.pdb
|
|
114 |
+ xpcom/glue/pldhash.pdb
|
|
115 |
+ xpcom/glue/xpcomglue_s.pdb
|
|
116 |
+ xpcom/stub/xpcom.pdb
|
|
117 |
+ xulrunner/app/xulrunner.pdb
|
|
118 |
+ xulrunner/stub/xulrunner-stub.pdb
|
|
119 |
+ memory/jemalloc/mozcrt19*.pdb
|
|
120 |
+ memory/jemalloc/libc*.pdb
|
|
121 |
+"
|
|
122 |
+
|
|
123 |
+# update_bin_files are relative to $objdir/dist/host/bin/
|
|
124 |
+update_bin_files="*mar*
|
|
125 |
+ *bsdiff*
|
|
126 |
+"
|
|
127 |
+
|
|
128 |
+# update_script_files are relative to $srcdir/tools/update-packaging/
|
|
129 |
+update_script_files="common.sh
|
|
130 |
+ make_full_update.sh
|
|
131 |
+ make_incremental_update.sh
|
|
132 |
+ unwrap_full_update.pl
|
|
133 |
+"
|
|
134 |
+
|
|
135 |
+# build_scripts are relative to $srcdir
|
|
136 |
+build_script_files="build/cygwin-wrapper
|
|
137 |
+ build/autoconf/acoutput-fast.pl
|
|
138 |
+ build/autoconf/make-makefile
|
|
139 |
+ build/macosx/universal/fix-buildconfig
|
|
140 |
+ build/macosx/universal/unify
|
|
141 |
+ build/package/mac_osx/make-diskimage
|
|
142 |
+ build/package/mac_osx/mozilla.dsstore
|
|
143 |
+ config/build-list.pl
|
|
144 |
+ config/configobj.py
|
|
145 |
+ config/make-jars.pl
|
|
146 |
+ config/mozLock.pm
|
|
147 |
+ config/preprocessor.pl
|
|
148 |
+ config/printconfigsetting.py
|
|
149 |
+"
|
|
150 |
+
|
|
151 |
+# breakpad script files are relative to $srcdir
|
|
152 |
+breakpad_script_files="toolkit/crashreporter/tools/symbolstore.py
|
|
153 |
+ toolkit/crashreporter/tools/upload_symbols.sh
|
|
154 |
+"
|
|
155 |
+
|
|
156 |
+# windows breakpad binary files are relative to $srcdir
|
|
157 |
+breakpad_bin_files_win="toolkit/crashreporter/tools/win32/dump_syms.exe"
|
|
158 |
+
|
|
159 |
+# other breakpad binary files are relative to $objdir/dist/host/bin/
|
|
160 |
+breakpad_bin_files_nix="dump_syms"
|
|
161 |
+
|
|
162 |
+notice() {
|
|
163 |
+ echo $* 1>&2
|
|
164 |
+}
|
|
165 |
+
|
|
166 |
+if [ $# != 3 ]; then
|
|
167 |
+ notice "usage: make-mozilla-sdk.sh [mozilla-src-dir] [mozilla-obj-dir] [songbird-sdk-dir]"
|
|
168 |
+ exit 1
|
|
169 |
+fi
|
|
170 |
+
|
|
171 |
+MAKE=make
|
|
172 |
+CP=cp
|
|
173 |
+case `uname -s` in
|
|
174 |
+ CYGWIN*|MINGW*)
|
|
175 |
+ is_windows="1"
|
|
176 |
+ ;;
|
|
177 |
+ SunOS)
|
|
178 |
+ MAKE=gmake
|
|
179 |
+ if [ -x /usr/gnu/bin/cp ]; then
|
|
180 |
+ CP=/usr/gnu/bin/cp
|
|
181 |
+ fi
|
|
182 |
+ ;;
|
|
183 |
+esac
|
|
184 |
+
|
|
185 |
+relsrcdir="$1"
|
|
186 |
+temp1=`dirname "$relsrcdir"`
|
|
187 |
+temp2=`basename "$relsrcdir"`
|
|
188 |
+srcdir="`cd \"$temp1\" 2>/dev/null && pwd || echo \"$temp1\"`/$temp2"
|
|
189 |
+
|
|
190 |
+relobjdir="$2"
|
|
191 |
+temp1=`dirname "$relobjdir"`
|
|
192 |
+temp2=`basename "$relobjdir"`
|
|
193 |
+objdir="`cd \"$temp1\" 2>/dev/null && pwd || echo \"$temp1\"`/$temp2"
|
|
194 |
+
|
|
195 |
+distdir="$objdir/dist"
|
|
196 |
+
|
|
197 |
+relsdkdir="$3"
|
|
198 |
+temp1=`dirname "$relsdkdir"`
|
|
199 |
+temp2=`basename "$relsdkdir"`
|
|
200 |
+sdkdir="`cd \"$temp1\" 2>/dev/null && pwd || echo \"$temp1\"`/$temp2"
|
|
201 |
+
|
|
202 |
+mkdir -p "$sdkdir"
|
|
203 |
+
|
|
204 |
+# build in bsdiff to enable partial update patches (binary diffs)
|
|
205 |
+if test -d "$objdir"/other-licenses/bsdiff; then
|
|
206 |
+ notice "making bsdiff..."
|
|
207 |
+ cd "$objdir"/other-licenses/bsdiff && $MAKE
|
|
208 |
+fi
|
|
209 |
+
|
|
210 |
+notice "copying binary files..."
|
|
211 |
+cd "$sdkdir" && mkdir -p bin
|
|
212 |
+cd "$distdir/bin" && $CP -Lfp $bin_files "$sdkdir/bin"
|
|
213 |
+cd "$distdir/host/bin" && $CP -Lfp $update_bin_files "$sdkdir/bin"
|
|
214 |
+
|
|
215 |
+# breakpad binaries differ by platform
|
|
216 |
+if test -n "$is_windows"; then
|
|
217 |
+cd "$srcdir" && $CP -Lfp $breakpad_bin_files_win "$sdkdir/bin"
|
|
218 |
+else
|
|
219 |
+cd "$distdir/host/bin" && $CP -Lfp $breakpad_bin_files_nix "$sdkdir/bin"
|
|
220 |
+fi
|
|
221 |
+
|
|
222 |
+notice "copying library files..."
|
|
223 |
+cd "$sdkdir" && mkdir -p lib
|
|
224 |
+# some os don't have all these files, so silence errors
|
|
225 |
+cd "$distdir/lib" && $CP -Lfp $lib_files "$sdkdir/lib" 2>/dev/null
|
|
226 |
+
|
|
227 |
+notice "copying symbol files..."
|
|
228 |
+# some os don't have these files, so silence errors
|
|
229 |
+cd "$objdir" && $CP -Lfp $symbol_files "$sdkdir/lib" 2>/dev/null
|
|
230 |
+
|
|
231 |
+notice "copying include files..."
|
|
232 |
+cd "$sdkdir" && mkdir -p include
|
|
233 |
+cd "$distdir/include" && $CP -RLfp * "$sdkdir/include"
|
|
234 |
+
|
|
235 |
+notice "copying idl files..."
|
|
236 |
+cd "$sdkdir" && mkdir -p idl
|
|
237 |
+cd "$distdir/idl" && $CP -Lfp * "$sdkdir/idl"
|
|
238 |
+
|
|
239 |
+notice "copying frozen sdk..."
|
|
240 |
+cd "$sdkdir" && mkdir -p frozen
|
|
241 |
+cd "$distdir/sdk" && $CP -RLfp * "$sdkdir/frozen"
|
|
242 |
+
|
|
243 |
+notice "copying scripts..."
|
|
244 |
+cd "$sdkdir" && mkdir -p scripts
|
|
245 |
+cd "$srcdir" && $CP -Lfp $build_script_files "$sdkdir/scripts"
|
|
246 |
+if test -d "$srcdir"/tools/update-packaging; then
|
|
247 |
+ cd "$srcdir/tools/update-packaging" && $CP -Lfp $update_script_files "$sdkdir/scripts"
|
|
248 |
+fi
|
|
249 |
+cd "$srcdir" && $CP -Lfp $breakpad_script_files "$sdkdir/scripts"
|
|
250 |
+
|
|
251 |
+notice "performing post-processing..."
|
|
252 |
+
|
|
253 |
+# bump WINVER and _WIN32_WINNT to 0x501 on windows
|
|
254 |
+if test -n "$is_windows"; then
|
|
255 |
+cd "$sdkdir/include" && perl -p -i.bak -e 's/WINVER 0x500/WINVER 0x501/g;s/_WIN32_WINNT 0x500/_WIN32_WINNT 0x501/g' ./mozilla-config.h
|
|
256 |
+cd "$sdkdir/include" && rm -f ./mozilla-config.h.bak
|
|
257 |
+fi
|
|
258 |
+
|
|
259 |
+notice "done."
|
|
260 |
--- /dev/null 2009-10-13 17:30:01.000000000 -0700
|
|
261 |
+++ Songbird1.4/tools/scripts/make-xulrunner-tarball.sh 2009-10-13 17:31:18.727150507 -0700
|
|
262 |
@@ -0,0 +1,49 @@
|
|
263 |
+#!/bin/sh
|
|
264 |
+
|
|
265 |
+# Ugh. So stupid.
|
|
266 |
+# Mac OS 10.4, which is what's on the buildbots, uses bash 2.05,
|
|
267 |
+# which doesn't have a builtin version of which. It calls /usr/bin/which, which
|
|
268 |
+# will stupidly 1. Not use proper return values (so the "which foo &&
|
|
269 |
+# do_something" construct fails), and 2. print everything to stderr, no matter
|
|
270 |
+# what, so doing cute tricks like test -z `which gtar 2>/dev/null` don't work
|
|
271 |
+# either.
|
|
272 |
+#
|
|
273 |
+# We know OS X has tar, so just ignore gtar detection on the mac... for now...
|
|
274 |
+#
|
|
275 |
+
|
|
276 |
+TAR=tar
|
|
277 |
+if [ `uname` != "Darwin" ]; then
|
|
278 |
+ which gtar 2>&1 >/dev/null && \
|
|
279 |
+ TAR=gtar
|
|
280 |
+fi
|
|
281 |
+
|
|
282 |
+notice() {
|
|
283 |
+ echo $* 1>&2
|
|
284 |
+}
|
|
285 |
+
|
|
286 |
+if [ $# != 3 ]; then
|
|
287 |
+ notice "usage: make-xulrunner-tarball.sh [mozilla-bin-dir] [songbird-tarball-dest-dir] [target-tarball-name]"
|
|
288 |
+ exit 1
|
|
289 |
+fi
|
|
290 |
+
|
|
291 |
+srcdir="$1"
|
|
292 |
+temp1=`dirname "$srcdir"`
|
|
293 |
+temp2=`basename "$srcdir"`
|
|
294 |
+bindir="`cd \"$temp1\" 2>/dev/null && pwd || echo \"$temp1\"`/$temp2"
|
|
295 |
+
|
|
296 |
+destdir="$2"
|
|
297 |
+temp1=`dirname "$destdir"`
|
|
298 |
+temp2=`basename "$destdir"`
|
|
299 |
+tarballdir="`cd \"$temp1\" 2>/dev/null && pwd || echo \"$temp1\"`/$temp2"
|
|
300 |
+
|
|
301 |
+tarballname="$3"
|
|
302 |
+
|
|
303 |
+tarball="$tarballdir/$tarballname"
|
|
304 |
+
|
|
305 |
+echo cd "$bindir"
|
|
306 |
+cd "$bindir"
|
|
307 |
+
|
|
308 |
+notice "creating tarball in dest..."
|
|
309 |
+$TAR czvhf $tarball *
|
|
310 |
+
|
|
311 |
+notice "done."
|
|
312 |
--- Songbird1.4/dependencies/Makefile.in.orig 2009-10-13 17:33:24.833397734 -0700
|
|
313 |
+++ Songbird1.4/dependencies/Makefile.in 2009-10-13 17:33:36.594695901 -0700
|
|
314 |
@@ -494,7 +494,7 @@
|
|
315 |
|
|
316 |
## See comment above about, re: the specifics of this export::'s logic.
|
|
317 |
export::
|
|
318 |
- $(TAR) -j -x -p -f $(XULRUNNER_DIR)/xulrunner.tar.bz2 -C $(SONGBIRD_XULRUNNERDIR)
|
|
319 |
+ $(TAR) -z -x -p -f $(XULRUNNER_DIR)/xulrunner.tar.gz -C $(SONGBIRD_XULRUNNERDIR)
|
|
320 |
$(RM) -r $(SONGBIRD_XR_EXTENSIONS)
|
|
321 |
ifneq (1,$(SONGBIRD_OFFICIAL))
|
|
322 |
$(MV) $(XULRUNNER_EXTENSION_DIRS) $(SONGBIRD_EXTENSIONSDIR)
|
|
323 |
--- Songbird1.4/extensions/Makefile.in.orig 2009-10-13 17:42:44.121204363 -0700
|
|
324 |
+++ Songbird1.4/extensions/Makefile.in 2009-10-13 17:42:32.577792349 -0700
|
|
325 |
@@ -45,7 +45,7 @@
|
|
326 |
DEFAULT_EXTENSIONS += ipod
|
|
327 |
endif
|
|
328 |
else
|
|
329 |
- DEFAULT_EXTENSIONS += ipod
|
|
330 |
+ #DEFAULT_EXTENSIONS += ipod
|
|
331 |
endif
|
|
332 |
|
|
333 |
# AlbumArt is not on the list because it's used internally by the bird, so
|