Merge lp:~noskcaj/ubuntu/saucy/gecko-mediaplayer/1.0.8-4u1 into lp:ubuntu/saucy/gecko-mediaplayer
- Saucy (13.10)
- 1.0.8-4u1
- Merge into saucy
Proposed by
Jackson Doak
Status: | Needs review | ||||||||
---|---|---|---|---|---|---|---|---|---|
Proposed branch: | lp:~noskcaj/ubuntu/saucy/gecko-mediaplayer/1.0.8-4u1 | ||||||||
Merge into: | lp:ubuntu/saucy/gecko-mediaplayer | ||||||||
Diff against target: |
600 lines (+70/-463) 9 files modified
.pc/0001-nomozalloc.patch/configure.in (+0/-228) .pc/0002-require-nspr.patch/configure.in (+0/-228) .pc/applied-patches (+0/-2) configure.in (+2/-3) debian/changelog (+33/-0) debian/gbp.conf (+1/-1) debian/install (+0/-1) debian/patches/functable-check.patch (+33/-0) debian/patches/series (+1/-0) |
||||||||
To merge this branch: | bzr merge lp:~noskcaj/ubuntu/saucy/gecko-mediaplayer/1.0.8-4u1 | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel Holbach (community) | Approve | ||
Review via email: mp+183036@code.launchpad.net |
Commit message
Description of the change
Merge from debian testing, closes 2 of 3 complete bugs, maybe all of them
To post a comment you must log in.
Unmerged revisions
- 32. By Jackson Doak
-
* Merge from Debian testing, remaining ubuntu changes:
- debian/rules: Drop --with-xulrunner- sdk flag, it's empty and cause FTBFS.
- debian/control: Build depend on libnspr4-dev
- debian/patches/ 0002-require- nspr.patch:
firefox-dev now only provides npapi headers so require nspr to build
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === removed directory '.pc/0001-nomozalloc.patch' | |||
2 | === removed file '.pc/0001-nomozalloc.patch/configure.in' | |||
3 | --- .pc/0001-nomozalloc.patch/configure.in 2013-03-07 11:00:21 +0000 | |||
4 | +++ .pc/0001-nomozalloc.patch/configure.in 1970-01-01 00:00:00 +0000 | |||
5 | @@ -1,228 +0,0 @@ | |||
6 | 1 | dnl Process this file with autoconf to produce a configure script. | ||
7 | 2 | dnl Created by Anjuta application wizard. | ||
8 | 3 | |||
9 | 4 | AC_INIT(configure.in) | ||
10 | 5 | AM_INIT_AUTOMAKE(gecko-mediaplayer, 1.0.8) | ||
11 | 6 | AM_CONFIG_HEADER(config.h) | ||
12 | 7 | AM_MAINTAINER_MODE([enable]) | ||
13 | 8 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) | ||
14 | 9 | |||
15 | 10 | AC_ISC_POSIX | ||
16 | 11 | AC_PROG_CC | ||
17 | 12 | AM_PROG_CC_STDC | ||
18 | 13 | AC_HEADER_STDC | ||
19 | 14 | |||
20 | 15 | |||
21 | 16 | AC_PROG_CPP | ||
22 | 17 | AC_PROG_CXX | ||
23 | 18 | AM_PROG_CC_C_O | ||
24 | 19 | AC_PROG_RANLIB | ||
25 | 20 | |||
26 | 21 | dnl Set gettext package name | ||
27 | 22 | GETTEXT_PACKAGE=gecko-mediaplayer | ||
28 | 23 | AC_SUBST(GETTEXT_PACKAGE) | ||
29 | 24 | AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name]) | ||
30 | 25 | |||
31 | 26 | dnl Add the languages which your application supports here. | ||
32 | 27 | ALL_LINGUAS="cs de es fr ja it nl pl pt pt_BR tr" | ||
33 | 28 | AM_GLIB_GNU_GETTEXT | ||
34 | 29 | |||
35 | 30 | PKG_CHECK_MODULES(GLIB, [glib-2.0]) | ||
36 | 31 | AC_SUBST(GLIB_CFLAGS) | ||
37 | 32 | AC_SUBST(GLIB_LIBS) | ||
38 | 33 | |||
39 | 34 | PKG_CHECK_MODULES(GMLIB, [gmlib >= 1.0.7]) | ||
40 | 35 | AC_SUBST(GMLIB_CFLAGS) | ||
41 | 36 | AC_SUBST(GMLIB_LIBS) | ||
42 | 37 | |||
43 | 38 | |||
44 | 39 | AC_ARG_WITH([xulrunner-sdk], | ||
45 | 40 | [AS_HELP_STRING([--with-xulrunner-sdk=path_to_sdk], | ||
46 | 41 | [Path to xulrunner SDK for build --with-xulrunner-sdk=/path/to/sdk])], | ||
47 | 42 | [ | ||
48 | 43 | XULRUNNER_SDK_PREFIX=$with_xulrunner_sdk | ||
49 | 44 | GECKO_CFLAGS="-I$XULRUNNER_SDK_PREFIX/include -I$XULRUNNER_SDK_PREFIX/include/plugin -I$XULRUNNER_SDK_PREFIX/include/nspr -I$XULRUNNER_SDK_PREFIX/include/xpcom -I$XULRUNNER_SDK_PREFIX/include/string -I$XULRUNNER_SDK_PREFIX/include/java" | ||
50 | 45 | GECKO_LIBS="-L$XULRUNNER_SDK_PREFIX/lib -lxpcomglue_s -lxul -lxpcom -lplds4 -lplc4 -lnspr4 -lpthread -ldl" | ||
51 | 46 | ], | ||
52 | 47 | []) | ||
53 | 48 | |||
54 | 49 | if test "$GECKO_CFLAGS" = ""; then | ||
55 | 50 | PKG_CHECK_MODULES(GECKO, [libxul >= 2],[GECKO_CFLAGS="$GECKO_CFLAGS -DMOZ_NO_MOZALLOC" | ||
56 | 51 | AC_MSG_NOTICE([Using libxul >= 2.0 ]) | ||
57 | 52 | ],[AC_MSG_NOTICE([libxul >= 2 not found, trying another])]) | ||
58 | 53 | fi | ||
59 | 54 | |||
60 | 55 | if test "$GECKO_CFLAGS" = ""; then | ||
61 | 56 | PKG_CHECK_MODULES(GECKO, [libxul >= 1.9.2],[ AC_MSG_NOTICE([Using libxul >= 1.9.2]) | ||
62 | 57 | ],[AC_MSG_NOTICE([libxul >= 1.9.2 not found, trying another])]) | ||
63 | 58 | fi | ||
64 | 59 | |||
65 | 60 | if test "$GECKO_CFLAGS" = ""; then | ||
66 | 61 | PKG_CHECK_MODULES(GECKO, [libxul < 1.9.2],[ AC_MSG_NOTICE([Using libxul < 1.9.2]) | ||
67 | 62 | ],[AC_MSG_WARN([libxul < 1.9.2 not found, trying another])]) | ||
68 | 63 | fi | ||
69 | 64 | |||
70 | 65 | if test "$GECKO_CFLAGS" = ""; then | ||
71 | 66 | PKG_CHECK_MODULES(GECKO, [libxul-unstable],[ AC_MSG_NOTICE([Using libxul-unstable]) | ||
72 | 67 | ],[AC_MSG_WARN([libxul-unstable not found, trying another])]) | ||
73 | 68 | fi | ||
74 | 69 | |||
75 | 70 | if test "$GECKO_CFLAGS" = ""; then | ||
76 | 71 | PKG_CHECK_MODULES(GECKO, [mozilla-plugin mozilla-xpcom],[ AC_MSG_NOTICE([Using mozilla]) | ||
77 | 72 | ],[AC_MSG_WARN([mozilla-plugin not found, trying another])]) | ||
78 | 73 | fi | ||
79 | 74 | |||
80 | 75 | if test "$GECKO_CFLAGS" = ""; then | ||
81 | 76 | PKG_CHECK_MODULES(GECKO, [firefox-plugin firefox-xpcom],[ AC_MSG_NOTICE([Using firefox]) | ||
82 | 77 | ],[AC_MSG_WARN([firefox-plugin not found, trying another])]) | ||
83 | 78 | fi | ||
84 | 79 | |||
85 | 80 | if test "$GECKO_CFLAGS" = ""; then | ||
86 | 81 | PKG_CHECK_MODULES(GECKO, [seamonkey-plugin seamonkey-xpcom],[ AC_MSG_NOTICE([Using seamonkey]) | ||
87 | 82 | ],[AC_MSG_WARN([seamonkey-plugin not found, trying another])]) | ||
88 | 83 | fi | ||
89 | 84 | |||
90 | 85 | if test "$GECKO_CFLAGS" = ""; then | ||
91 | 86 | PKG_CHECK_MODULES(GECKO, [xulrunner-plugin xulrunner-xpcom],[ AC_MSG_NOTICE([Using xulrunner]) | ||
92 | 87 | ],[AC_MSG_WARN([xulrunner-plugin not found, trying another])]) | ||
93 | 88 | fi | ||
94 | 89 | |||
95 | 90 | if test "$GECKO_CFLAGS" = ""; then | ||
96 | 91 | PKG_CHECK_MODULES(GECKO, [iceape-plugin iceape-xpcom],[ AC_MSG_NOTICE([Using iceape]) | ||
97 | 92 | ],[AC_MSG_WARN([iceape-plugin not found, trying another])]) | ||
98 | 93 | fi | ||
99 | 94 | |||
100 | 95 | if test "$GECKO_CFLAGS" = ""; then | ||
101 | 96 | PKG_CHECK_MODULES(GECKO, [npapi-sdk],[ AC_MSG_NOTICE([Using npapi-sdk]) | ||
102 | 97 | ],[AC_MSG_ERROR([npapi-sdk not found, all out of tries])]) | ||
103 | 98 | require_nspr="yes" | ||
104 | 99 | fi | ||
105 | 100 | |||
106 | 101 | AC_MSG_CHECKING([for const return value of NPP_GetMIMEDescription]) | ||
107 | 102 | oCFLAGS=$CFLAGS | ||
108 | 103 | CFLAGS="$GECKO_CFLAGS" | ||
109 | 104 | AC_LANG_PUSH([C]) | ||
110 | 105 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ | ||
111 | 106 | #ifndef XP_UNIX | ||
112 | 107 | #define XP_UNIX 1 | ||
113 | 108 | #endif | ||
114 | 109 | #include <npapi.h> | ||
115 | 110 | #if NP_VERSION_MAJOR == 0 && NP_VERSION_MINOR < 27 | ||
116 | 111 | #error | ||
117 | 112 | #else | ||
118 | 113 | const char*NPP_GetMIMEDescription(void) { | ||
119 | 114 | return "test"; | ||
120 | 115 | } | ||
121 | 116 | #endif | ||
122 | 117 | ],[ | ||
123 | 118 | const char *f=NPP_GetMIMEDescription(); | ||
124 | 119 | ])],[ | ||
125 | 120 | AC_MSG_RESULT([yes]) | ||
126 | 121 | AC_DEFINE([NPAPI_USE_CONSTCHARS],[1],[Define if NPAPI declares NPP_GetMIMEDescription as a const char*]) | ||
127 | 122 | ],[ | ||
128 | 123 | AC_MSG_RESULT([no]) | ||
129 | 124 | ]) | ||
130 | 125 | AC_LANG_POP([C]) | ||
131 | 126 | CFLAGS=$oCFLAGS | ||
132 | 127 | |||
133 | 128 | AC_MSG_CHECKING([for usage of UTF8Characters]) | ||
134 | 129 | oCFLAGS=$CFLAGS | ||
135 | 130 | CFLAGS="$GECKO_CFLAGS" | ||
136 | 131 | AC_LANG_PUSH([C]) | ||
137 | 132 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ | ||
138 | 133 | #ifndef XP_UNIX | ||
139 | 134 | #define XP_UNIX 1 | ||
140 | 135 | #endif | ||
141 | 136 | #include <npapi.h> | ||
142 | 137 | #include <npruntime.h> | ||
143 | 138 | ],[ | ||
144 | 139 | NPString s; | ||
145 | 140 | s.UTF8Characters = "Testing"; | ||
146 | 141 | ])],[ | ||
147 | 142 | AC_MSG_RESULT([yes]) | ||
148 | 143 | AC_DEFINE([NPAPI_USE_UPPERCASE_UTF8],[1],[Define if NPAPI declares NPString with an uppercase UTF8]) | ||
149 | 144 | ],[ | ||
150 | 145 | AC_MSG_RESULT([no]) | ||
151 | 146 | ]) | ||
152 | 147 | AC_LANG_POP([C]) | ||
153 | 148 | CFLAGS=$oCFLAGS | ||
154 | 149 | |||
155 | 150 | |||
156 | 151 | dnl Locate where the plugins should go | ||
157 | 152 | PKG_CHECK_MODULES(NSPR, [nspr],[ | ||
158 | 153 | libdir=`$PKG_CONFIG --variable=libdir nspr` | ||
159 | 154 | AC_SUBST(libdir) | ||
160 | 155 | if test "$require_nspr" = "yes"; then | ||
161 | 156 | AC_DEFINE([HAVE_NSPR],[1],[Define to 1 if using nspr]) | ||
162 | 157 | GECKO_CFLAGS="$GECKO_CFLAGS $NSPR_CFLAGS" | ||
163 | 158 | fi],[if test "$require_nspr" = "yes"; then | ||
164 | 159 | AC_MSG_ERROR([nspr not found, required by detected gecko]) | ||
165 | 160 | else | ||
166 | 161 | AC_MSG_WARN([nspr not found, may not be needed]) | ||
167 | 162 | fi]) | ||
168 | 163 | |||
169 | 164 | |||
170 | 165 | AC_SUBST(GECKO_CFLAGS) | ||
171 | 166 | AC_SUBST(GECKO_LIBS) | ||
172 | 167 | |||
173 | 168 | PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.95 dbus-glib-1 >= 0.70]) | ||
174 | 169 | AC_SUBST(DBUS_CFLAGS) | ||
175 | 170 | AC_SUBST(DBUS_LIBS) | ||
176 | 171 | |||
177 | 172 | AC_ARG_WITH([plugin_dir], | ||
178 | 173 | [AS_HELP_STRING([--with-plugin-dir=dir], | ||
179 | 174 | [Directory where plugins are stored])], | ||
180 | 175 | [plugindir=$withval], | ||
181 | 176 | [plugindir='$(libdir)/mozilla/plugins']) | ||
182 | 177 | AC_SUBST(plugindir) | ||
183 | 178 | |||
184 | 179 | AC_ARG_ENABLE(caching, | ||
185 | 180 | AC_HELP_STRING([--disable-caching],[Disable caching of remote media to local storage]), | ||
186 | 181 | [usecache=$enableval],[usecache=yes]) | ||
187 | 182 | |||
188 | 183 | if test $usecache != yes; then | ||
189 | 184 | GECKO_CFLAGS="$GECKO_CFLAGS -DDISABLE_CACHE" | ||
190 | 185 | fi | ||
191 | 186 | |||
192 | 187 | AC_ARG_WITH([libcurl], | ||
193 | 188 | [AS_HELP_STRING([--with-libcurl], | ||
194 | 189 | [Add support for libcurl])], | ||
195 | 190 | [], | ||
196 | 191 | [with_libcurl=check]) | ||
197 | 192 | AS_IF([test "x$with_libcurl" != xno], | ||
198 | 193 | [PKG_CHECK_MODULES(CURL,[libcurl],[CURL_DEFINES="-DHAVE_CURL" AC_DEFINE([CURL_ENABLED],[1],[Define to 1 if you have curl support])],AC_MSG_NOTICE([Compiling without curl support. May disable apple.com sites])) | ||
199 | 194 | AC_SUBST(CURL_DEFINES) | ||
200 | 195 | AC_SUBST(CURL_CFLAGS) | ||
201 | 196 | AC_SUBST(CURL_LIBS) | ||
202 | 197 | ]) | ||
203 | 198 | |||
204 | 199 | |||
205 | 200 | BACKEND=`pkg-config --variable=preference_backend gmlib` | ||
206 | 201 | |||
207 | 202 | if test ${BACKEND} = "gsettings"; then | ||
208 | 203 | AC_MSG_NOTICE([gmlib is using ${BACKEND} for preference storage]) | ||
209 | 204 | dnl GLIB_GSETTINGS | ||
210 | 205 | AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL],[false]) | ||
211 | 206 | USE_GSETTINGS=1 | ||
212 | 207 | AC_SUBST(USE_GSETTINGS) | ||
213 | 208 | elif test ${BACKEND} = "gconf"; then | ||
214 | 209 | AC_MSG_NOTICE([gmlib is using ${BACKEND} for preference storage]) | ||
215 | 210 | GSETTINGS_RULES="" | ||
216 | 211 | AC_SUBST(GSETTINGS_RULES) | ||
217 | 212 | AM_GCONF_SOURCE_2 | ||
218 | 213 | USE_GCONF=1 | ||
219 | 214 | AC_SUBST(USE_GCONF) | ||
220 | 215 | elif test ${BACKEND} = "keystore"; then | ||
221 | 216 | GSETTINGS_RULES="" | ||
222 | 217 | AC_SUBST(GSETTINGS_RULES) | ||
223 | 218 | AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL],[false]) | ||
224 | 219 | fi | ||
225 | 220 | |||
226 | 221 | |||
227 | 222 | AC_OUTPUT([ | ||
228 | 223 | Makefile | ||
229 | 224 | gecko-mediaplayer.spec | ||
230 | 225 | src/Makefile | ||
231 | 226 | po/Makefile.in | ||
232 | 227 | ]) | ||
233 | 228 | |||
234 | 229 | 0 | ||
235 | === removed directory '.pc/0002-require-nspr.patch' | |||
236 | === removed file '.pc/0002-require-nspr.patch/configure.in' | |||
237 | --- .pc/0002-require-nspr.patch/configure.in 2013-03-07 11:00:21 +0000 | |||
238 | +++ .pc/0002-require-nspr.patch/configure.in 1970-01-01 00:00:00 +0000 | |||
239 | @@ -1,228 +0,0 @@ | |||
240 | 1 | dnl Process this file with autoconf to produce a configure script. | ||
241 | 2 | dnl Created by Anjuta application wizard. | ||
242 | 3 | |||
243 | 4 | AC_INIT(configure.in) | ||
244 | 5 | AM_INIT_AUTOMAKE(gecko-mediaplayer, 1.0.8) | ||
245 | 6 | AM_CONFIG_HEADER(config.h) | ||
246 | 7 | AM_MAINTAINER_MODE([enable]) | ||
247 | 8 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) | ||
248 | 9 | |||
249 | 10 | AC_ISC_POSIX | ||
250 | 11 | AC_PROG_CC | ||
251 | 12 | AM_PROG_CC_STDC | ||
252 | 13 | AC_HEADER_STDC | ||
253 | 14 | |||
254 | 15 | |||
255 | 16 | AC_PROG_CPP | ||
256 | 17 | AC_PROG_CXX | ||
257 | 18 | AM_PROG_CC_C_O | ||
258 | 19 | AC_PROG_RANLIB | ||
259 | 20 | |||
260 | 21 | dnl Set gettext package name | ||
261 | 22 | GETTEXT_PACKAGE=gecko-mediaplayer | ||
262 | 23 | AC_SUBST(GETTEXT_PACKAGE) | ||
263 | 24 | AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name]) | ||
264 | 25 | |||
265 | 26 | dnl Add the languages which your application supports here. | ||
266 | 27 | ALL_LINGUAS="cs de es fr ja it nl pl pt pt_BR tr" | ||
267 | 28 | AM_GLIB_GNU_GETTEXT | ||
268 | 29 | |||
269 | 30 | PKG_CHECK_MODULES(GLIB, [glib-2.0]) | ||
270 | 31 | AC_SUBST(GLIB_CFLAGS) | ||
271 | 32 | AC_SUBST(GLIB_LIBS) | ||
272 | 33 | |||
273 | 34 | PKG_CHECK_MODULES(GMLIB, [gmlib >= 1.0.7]) | ||
274 | 35 | AC_SUBST(GMLIB_CFLAGS) | ||
275 | 36 | AC_SUBST(GMLIB_LIBS) | ||
276 | 37 | |||
277 | 38 | |||
278 | 39 | AC_ARG_WITH([xulrunner-sdk], | ||
279 | 40 | [AS_HELP_STRING([--with-xulrunner-sdk=path_to_sdk], | ||
280 | 41 | [Path to xulrunner SDK for build --with-xulrunner-sdk=/path/to/sdk])], | ||
281 | 42 | [ | ||
282 | 43 | XULRUNNER_SDK_PREFIX=$with_xulrunner_sdk | ||
283 | 44 | GECKO_CFLAGS="-I$XULRUNNER_SDK_PREFIX/include -I$XULRUNNER_SDK_PREFIX/include/plugin -I$XULRUNNER_SDK_PREFIX/include/nspr -I$XULRUNNER_SDK_PREFIX/include/xpcom -I$XULRUNNER_SDK_PREFIX/include/string -I$XULRUNNER_SDK_PREFIX/include/java" | ||
284 | 45 | GECKO_LIBS="-L$XULRUNNER_SDK_PREFIX/lib -lxpcomglue_s_nomozalloc -lxul -lxpcom -lplds4 -lplc4 -lnspr4 -lpthread -ldl" | ||
285 | 46 | ], | ||
286 | 47 | []) | ||
287 | 48 | |||
288 | 49 | if test "$GECKO_CFLAGS" = ""; then | ||
289 | 50 | PKG_CHECK_MODULES(GECKO, [libxul >= 2],[GECKO_CFLAGS="$GECKO_CFLAGS -DMOZ_NO_MOZALLOC" | ||
290 | 51 | AC_MSG_NOTICE([Using libxul >= 2.0 ]) | ||
291 | 52 | ],[AC_MSG_NOTICE([libxul >= 2 not found, trying another])]) | ||
292 | 53 | fi | ||
293 | 54 | |||
294 | 55 | if test "$GECKO_CFLAGS" = ""; then | ||
295 | 56 | PKG_CHECK_MODULES(GECKO, [libxul >= 1.9.2],[ AC_MSG_NOTICE([Using libxul >= 1.9.2]) | ||
296 | 57 | ],[AC_MSG_NOTICE([libxul >= 1.9.2 not found, trying another])]) | ||
297 | 58 | fi | ||
298 | 59 | |||
299 | 60 | if test "$GECKO_CFLAGS" = ""; then | ||
300 | 61 | PKG_CHECK_MODULES(GECKO, [libxul < 1.9.2],[ AC_MSG_NOTICE([Using libxul < 1.9.2]) | ||
301 | 62 | ],[AC_MSG_WARN([libxul < 1.9.2 not found, trying another])]) | ||
302 | 63 | fi | ||
303 | 64 | |||
304 | 65 | if test "$GECKO_CFLAGS" = ""; then | ||
305 | 66 | PKG_CHECK_MODULES(GECKO, [libxul-unstable],[ AC_MSG_NOTICE([Using libxul-unstable]) | ||
306 | 67 | ],[AC_MSG_WARN([libxul-unstable not found, trying another])]) | ||
307 | 68 | fi | ||
308 | 69 | |||
309 | 70 | if test "$GECKO_CFLAGS" = ""; then | ||
310 | 71 | PKG_CHECK_MODULES(GECKO, [mozilla-plugin mozilla-xpcom],[ AC_MSG_NOTICE([Using mozilla]) | ||
311 | 72 | ],[AC_MSG_WARN([mozilla-plugin not found, trying another])]) | ||
312 | 73 | fi | ||
313 | 74 | |||
314 | 75 | if test "$GECKO_CFLAGS" = ""; then | ||
315 | 76 | PKG_CHECK_MODULES(GECKO, [firefox-plugin firefox-xpcom],[ AC_MSG_NOTICE([Using firefox]) | ||
316 | 77 | ],[AC_MSG_WARN([firefox-plugin not found, trying another])]) | ||
317 | 78 | fi | ||
318 | 79 | |||
319 | 80 | if test "$GECKO_CFLAGS" = ""; then | ||
320 | 81 | PKG_CHECK_MODULES(GECKO, [seamonkey-plugin seamonkey-xpcom],[ AC_MSG_NOTICE([Using seamonkey]) | ||
321 | 82 | ],[AC_MSG_WARN([seamonkey-plugin not found, trying another])]) | ||
322 | 83 | fi | ||
323 | 84 | |||
324 | 85 | if test "$GECKO_CFLAGS" = ""; then | ||
325 | 86 | PKG_CHECK_MODULES(GECKO, [xulrunner-plugin xulrunner-xpcom],[ AC_MSG_NOTICE([Using xulrunner]) | ||
326 | 87 | ],[AC_MSG_WARN([xulrunner-plugin not found, trying another])]) | ||
327 | 88 | fi | ||
328 | 89 | |||
329 | 90 | if test "$GECKO_CFLAGS" = ""; then | ||
330 | 91 | PKG_CHECK_MODULES(GECKO, [iceape-plugin iceape-xpcom],[ AC_MSG_NOTICE([Using iceape]) | ||
331 | 92 | ],[AC_MSG_WARN([iceape-plugin not found, trying another])]) | ||
332 | 93 | fi | ||
333 | 94 | |||
334 | 95 | if test "$GECKO_CFLAGS" = ""; then | ||
335 | 96 | PKG_CHECK_MODULES(GECKO, [npapi-sdk],[ AC_MSG_NOTICE([Using npapi-sdk]) | ||
336 | 97 | ],[AC_MSG_ERROR([npapi-sdk not found, all out of tries])]) | ||
337 | 98 | require_nspr="yes" | ||
338 | 99 | fi | ||
339 | 100 | |||
340 | 101 | AC_MSG_CHECKING([for const return value of NPP_GetMIMEDescription]) | ||
341 | 102 | oCFLAGS=$CFLAGS | ||
342 | 103 | CFLAGS="$GECKO_CFLAGS" | ||
343 | 104 | AC_LANG_PUSH([C]) | ||
344 | 105 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ | ||
345 | 106 | #ifndef XP_UNIX | ||
346 | 107 | #define XP_UNIX 1 | ||
347 | 108 | #endif | ||
348 | 109 | #include <npapi.h> | ||
349 | 110 | #if NP_VERSION_MAJOR == 0 && NP_VERSION_MINOR < 27 | ||
350 | 111 | #error | ||
351 | 112 | #else | ||
352 | 113 | const char*NPP_GetMIMEDescription(void) { | ||
353 | 114 | return "test"; | ||
354 | 115 | } | ||
355 | 116 | #endif | ||
356 | 117 | ],[ | ||
357 | 118 | const char *f=NPP_GetMIMEDescription(); | ||
358 | 119 | ])],[ | ||
359 | 120 | AC_MSG_RESULT([yes]) | ||
360 | 121 | AC_DEFINE([NPAPI_USE_CONSTCHARS],[1],[Define if NPAPI declares NPP_GetMIMEDescription as a const char*]) | ||
361 | 122 | ],[ | ||
362 | 123 | AC_MSG_RESULT([no]) | ||
363 | 124 | ]) | ||
364 | 125 | AC_LANG_POP([C]) | ||
365 | 126 | CFLAGS=$oCFLAGS | ||
366 | 127 | |||
367 | 128 | AC_MSG_CHECKING([for usage of UTF8Characters]) | ||
368 | 129 | oCFLAGS=$CFLAGS | ||
369 | 130 | CFLAGS="$GECKO_CFLAGS" | ||
370 | 131 | AC_LANG_PUSH([C]) | ||
371 | 132 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ | ||
372 | 133 | #ifndef XP_UNIX | ||
373 | 134 | #define XP_UNIX 1 | ||
374 | 135 | #endif | ||
375 | 136 | #include <npapi.h> | ||
376 | 137 | #include <npruntime.h> | ||
377 | 138 | ],[ | ||
378 | 139 | NPString s; | ||
379 | 140 | s.UTF8Characters = "Testing"; | ||
380 | 141 | ])],[ | ||
381 | 142 | AC_MSG_RESULT([yes]) | ||
382 | 143 | AC_DEFINE([NPAPI_USE_UPPERCASE_UTF8],[1],[Define if NPAPI declares NPString with an uppercase UTF8]) | ||
383 | 144 | ],[ | ||
384 | 145 | AC_MSG_RESULT([no]) | ||
385 | 146 | ]) | ||
386 | 147 | AC_LANG_POP([C]) | ||
387 | 148 | CFLAGS=$oCFLAGS | ||
388 | 149 | |||
389 | 150 | |||
390 | 151 | dnl Locate where the plugins should go | ||
391 | 152 | PKG_CHECK_MODULES(NSPR, [nspr],[ | ||
392 | 153 | libdir=`$PKG_CONFIG --variable=libdir nspr` | ||
393 | 154 | AC_SUBST(libdir) | ||
394 | 155 | if test "$require_nspr" = "yes"; then | ||
395 | 156 | AC_DEFINE([HAVE_NSPR],[1],[Define to 1 if using nspr]) | ||
396 | 157 | GECKO_CFLAGS="$GECKO_CFLAGS $NSPR_CFLAGS" | ||
397 | 158 | fi],[if test "$require_nspr" = "yes"; then | ||
398 | 159 | AC_MSG_ERROR([nspr not found, required by detected gecko]) | ||
399 | 160 | else | ||
400 | 161 | AC_MSG_WARN([nspr not found, may not be needed]) | ||
401 | 162 | fi]) | ||
402 | 163 | |||
403 | 164 | |||
404 | 165 | AC_SUBST(GECKO_CFLAGS) | ||
405 | 166 | AC_SUBST(GECKO_LIBS) | ||
406 | 167 | |||
407 | 168 | PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.95 dbus-glib-1 >= 0.70]) | ||
408 | 169 | AC_SUBST(DBUS_CFLAGS) | ||
409 | 170 | AC_SUBST(DBUS_LIBS) | ||
410 | 171 | |||
411 | 172 | AC_ARG_WITH([plugin_dir], | ||
412 | 173 | [AS_HELP_STRING([--with-plugin-dir=dir], | ||
413 | 174 | [Directory where plugins are stored])], | ||
414 | 175 | [plugindir=$withval], | ||
415 | 176 | [plugindir='$(libdir)/mozilla/plugins']) | ||
416 | 177 | AC_SUBST(plugindir) | ||
417 | 178 | |||
418 | 179 | AC_ARG_ENABLE(caching, | ||
419 | 180 | AC_HELP_STRING([--disable-caching],[Disable caching of remote media to local storage]), | ||
420 | 181 | [usecache=$enableval],[usecache=yes]) | ||
421 | 182 | |||
422 | 183 | if test $usecache != yes; then | ||
423 | 184 | GECKO_CFLAGS="$GECKO_CFLAGS -DDISABLE_CACHE" | ||
424 | 185 | fi | ||
425 | 186 | |||
426 | 187 | AC_ARG_WITH([libcurl], | ||
427 | 188 | [AS_HELP_STRING([--with-libcurl], | ||
428 | 189 | [Add support for libcurl])], | ||
429 | 190 | [], | ||
430 | 191 | [with_libcurl=check]) | ||
431 | 192 | AS_IF([test "x$with_libcurl" != xno], | ||
432 | 193 | [PKG_CHECK_MODULES(CURL,[libcurl],[CURL_DEFINES="-DHAVE_CURL" AC_DEFINE([CURL_ENABLED],[1],[Define to 1 if you have curl support])],AC_MSG_NOTICE([Compiling without curl support. May disable apple.com sites])) | ||
433 | 194 | AC_SUBST(CURL_DEFINES) | ||
434 | 195 | AC_SUBST(CURL_CFLAGS) | ||
435 | 196 | AC_SUBST(CURL_LIBS) | ||
436 | 197 | ]) | ||
437 | 198 | |||
438 | 199 | |||
439 | 200 | BACKEND=`pkg-config --variable=preference_backend gmlib` | ||
440 | 201 | |||
441 | 202 | if test ${BACKEND} = "gsettings"; then | ||
442 | 203 | AC_MSG_NOTICE([gmlib is using ${BACKEND} for preference storage]) | ||
443 | 204 | dnl GLIB_GSETTINGS | ||
444 | 205 | AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL],[false]) | ||
445 | 206 | USE_GSETTINGS=1 | ||
446 | 207 | AC_SUBST(USE_GSETTINGS) | ||
447 | 208 | elif test ${BACKEND} = "gconf"; then | ||
448 | 209 | AC_MSG_NOTICE([gmlib is using ${BACKEND} for preference storage]) | ||
449 | 210 | GSETTINGS_RULES="" | ||
450 | 211 | AC_SUBST(GSETTINGS_RULES) | ||
451 | 212 | AM_GCONF_SOURCE_2 | ||
452 | 213 | USE_GCONF=1 | ||
453 | 214 | AC_SUBST(USE_GCONF) | ||
454 | 215 | elif test ${BACKEND} = "keystore"; then | ||
455 | 216 | GSETTINGS_RULES="" | ||
456 | 217 | AC_SUBST(GSETTINGS_RULES) | ||
457 | 218 | AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL],[false]) | ||
458 | 219 | fi | ||
459 | 220 | |||
460 | 221 | |||
461 | 222 | AC_OUTPUT([ | ||
462 | 223 | Makefile | ||
463 | 224 | gecko-mediaplayer.spec | ||
464 | 225 | src/Makefile | ||
465 | 226 | po/Makefile.in | ||
466 | 227 | ]) | ||
467 | 228 | |||
468 | 229 | 0 | ||
469 | === removed file '.pc/applied-patches' | |||
470 | --- .pc/applied-patches 2012-09-24 12:57:53 +0000 | |||
471 | +++ .pc/applied-patches 1970-01-01 00:00:00 +0000 | |||
472 | @@ -1,2 +0,0 @@ | |||
473 | 1 | 0001-nomozalloc.patch | ||
474 | 2 | 0002-require-nspr.patch | ||
475 | 3 | 0 | ||
476 | === modified file 'configure.in' | |||
477 | --- configure.in 2013-03-07 11:00:21 +0000 | |||
478 | +++ configure.in 2013-08-29 21:48:20 +0000 | |||
479 | @@ -42,7 +42,7 @@ | |||
480 | 42 | [ | 42 | [ |
481 | 43 | XULRUNNER_SDK_PREFIX=$with_xulrunner_sdk | 43 | XULRUNNER_SDK_PREFIX=$with_xulrunner_sdk |
482 | 44 | GECKO_CFLAGS="-I$XULRUNNER_SDK_PREFIX/include -I$XULRUNNER_SDK_PREFIX/include/plugin -I$XULRUNNER_SDK_PREFIX/include/nspr -I$XULRUNNER_SDK_PREFIX/include/xpcom -I$XULRUNNER_SDK_PREFIX/include/string -I$XULRUNNER_SDK_PREFIX/include/java" | 44 | GECKO_CFLAGS="-I$XULRUNNER_SDK_PREFIX/include -I$XULRUNNER_SDK_PREFIX/include/plugin -I$XULRUNNER_SDK_PREFIX/include/nspr -I$XULRUNNER_SDK_PREFIX/include/xpcom -I$XULRUNNER_SDK_PREFIX/include/string -I$XULRUNNER_SDK_PREFIX/include/java" |
484 | 45 | GECKO_LIBS="-L$XULRUNNER_SDK_PREFIX/lib -lxpcomglue_s_nomozalloc -lxul -lxpcom -lplds4 -lplc4 -lnspr4 -lpthread -ldl" | 45 | GECKO_LIBS="-L$XULRUNNER_SDK_PREFIX/lib -lxpcomglue_s -lxul -lxpcom -lplds4 -lplc4 -lnspr4 -lpthread -ldl" |
485 | 46 | ], | 46 | ], |
486 | 47 | []) | 47 | []) |
487 | 48 | 48 | ||
488 | @@ -68,9 +68,8 @@ | |||
489 | 68 | fi | 68 | fi |
490 | 69 | 69 | ||
491 | 70 | if test "$GECKO_CFLAGS" = ""; then | 70 | if test "$GECKO_CFLAGS" = ""; then |
493 | 71 | PKG_CHECK_MODULES(GECKO, [mozilla-plugin],[ AC_MSG_NOTICE([Using mozilla]) | 71 | PKG_CHECK_MODULES(GECKO, [mozilla-plugin mozilla-xpcom],[ AC_MSG_NOTICE([Using mozilla]) |
494 | 72 | ],[AC_MSG_WARN([mozilla-plugin not found, trying another])]) | 72 | ],[AC_MSG_WARN([mozilla-plugin not found, trying another])]) |
495 | 73 | require_nspr="yes" | ||
496 | 74 | fi | 73 | fi |
497 | 75 | 74 | ||
498 | 76 | if test "$GECKO_CFLAGS" = ""; then | 75 | if test "$GECKO_CFLAGS" = ""; then |
499 | 77 | 76 | ||
500 | === modified file 'debian/changelog' | |||
501 | --- debian/changelog 2013-03-07 11:00:21 +0000 | |||
502 | +++ debian/changelog 2013-08-29 21:48:20 +0000 | |||
503 | @@ -1,3 +1,36 @@ | |||
504 | 1 | gecko-mediaplayer (1.0.8-4ubuntu1) UNRELEASED; urgency=low | ||
505 | 2 | |||
506 | 3 | * Merge from Debian testing, remaining ubuntu changes: | ||
507 | 4 | - debian/rules: Drop --with-xulrunner-sdk flag, it's empty and cause FTBFS. | ||
508 | 5 | - debian/control: Build depend on libnspr4-dev | ||
509 | 6 | - debian/patches/0002-require-nspr.patch: | ||
510 | 7 | firefox-dev now only provides npapi headers so require nspr to build | ||
511 | 8 | |||
512 | 9 | -- Jackson Doak <noskcaj@ubuntu.com> Fri, 30 Aug 2013 07:26:44 +1000 | ||
513 | 10 | |||
514 | 11 | gecko-mediaplayer (1.0.8-4) unstable; urgency=low | ||
515 | 12 | |||
516 | 13 | * debian/patches/functable-check.patch: Actually check the correct function | ||
517 | 14 | table. This should now cover all cases correctly. | ||
518 | 15 | |||
519 | 16 | -- Sebastian Ramacher <sramacher@debian.org> Mon, 24 Jun 2013 12:51:09 +0200 | ||
520 | 17 | |||
521 | 18 | gecko-mediaplayer (1.0.8-3) unstable; urgency=low | ||
522 | 19 | |||
523 | 20 | * debian/patches/functable-check.patch: Fix function table check. This | ||
524 | 21 | improves the compatibility with browser other than iceweasel and with | ||
525 | 22 | older versions of iceweasel if built against a newer one. (LP: #870115, | ||
526 | 23 | #1069635) | ||
527 | 24 | |||
528 | 25 | -- Sebastian Ramacher <sramacher@debian.org> Sun, 23 Jun 2013 17:44:51 +0200 | ||
529 | 26 | |||
530 | 27 | gecko-mediaplayer (1.0.8-2) unstable; urgency=low | ||
531 | 28 | |||
532 | 29 | * Upload to unstable. | ||
533 | 30 | * debian/install: Don't install obsolete gconf2 scheme. | ||
534 | 31 | |||
535 | 32 | -- Sebastian Ramacher <sramacher@debian.org> Thu, 06 Jun 2013 22:42:00 +0200 | ||
536 | 33 | |||
537 | 1 | gecko-mediaplayer (1.0.8-1ubuntu1) raring; urgency=low | 34 | gecko-mediaplayer (1.0.8-1ubuntu1) raring; urgency=low |
538 | 2 | 35 | ||
539 | 3 | * Merge from Debian experimental, Ubuntu remaining changes : | 36 | * Merge from Debian experimental, Ubuntu remaining changes : |
540 | 4 | 37 | ||
541 | === modified file 'debian/gbp.conf' | |||
542 | --- debian/gbp.conf 2012-11-18 11:33:04 +0000 | |||
543 | +++ debian/gbp.conf 2013-08-29 21:48:20 +0000 | |||
544 | @@ -1,3 +1,3 @@ | |||
545 | 1 | [DEFAULT] | 1 | [DEFAULT] |
546 | 2 | pristine-tar = True | 2 | pristine-tar = True |
548 | 3 | debian-branch = experimental | 3 | debian-branch = master |
549 | 4 | 4 | ||
550 | === removed file 'debian/install' | |||
551 | --- debian/install 2008-11-25 21:39:54 +0000 | |||
552 | +++ debian/install 1970-01-01 00:00:00 +0000 | |||
553 | @@ -1,1 +0,0 @@ | |||
554 | 1 | gecko-mediaplayer.schemas /usr/share/gconf/schemas | ||
555 | 2 | 0 | ||
556 | === added file 'debian/patches/functable-check.patch' | |||
557 | --- debian/patches/functable-check.patch 1970-01-01 00:00:00 +0000 | |||
558 | +++ debian/patches/functable-check.patch 2013-08-29 21:48:20 +0000 | |||
559 | @@ -0,0 +1,33 @@ | |||
560 | 1 | Description: Fix function table check | ||
561 | 2 | We only need to know if we have access to all the values we need. Everything | ||
562 | 3 | else is not necessary. | ||
563 | 4 | Author: Sebastian Ramacher <sramacher@debian.org> | ||
564 | 5 | Last-Update: 2013-06-24 | ||
565 | 6 | Forwarded: https://code.google.com/p/gecko-mediaplayer/issues/detail?id=184 | ||
566 | 7 | |||
567 | 8 | --- a/src/np_entry.cpp | ||
568 | 9 | +++ b/src/np_entry.cpp | ||
569 | 10 | @@ -42,6 +42,7 @@ | ||
570 | 11 | #include <npapi.h> | ||
571 | 12 | #include <npfunctions.h> | ||
572 | 13 | #include "npupp.h" | ||
573 | 14 | +#include <cstddef> | ||
574 | 15 | |||
575 | 16 | #ifdef HAVE_CONFIG_H | ||
576 | 17 | #include <config.h> | ||
577 | 18 | @@ -117,9 +118,14 @@ | ||
578 | 19 | if (HIBYTE(pFuncs->version) > NP_VERSION_MAJOR) | ||
579 | 20 | return NPERR_INCOMPATIBLE_VERSION_ERROR; | ||
580 | 21 | |||
581 | 22 | - if (pFuncs->size < sizeof(NPNetscapeFuncs)) | ||
582 | 23 | + if (pFuncs->size < offsetof(NPNetscapeFuncs, setexception) + sizeof(NPN_SetExceptionProcPtr)) | ||
583 | 24 | return NPERR_INVALID_FUNCTABLE_ERROR; | ||
584 | 25 | |||
585 | 26 | +#ifdef XP_UNIX | ||
586 | 27 | + if (pluginFuncs->size < offsetof(NPPluginFuncs, getvalue) + sizeof(NPP_GetValueProcPtr)) | ||
587 | 28 | + return NPERR_INVALID_FUNCTABLE_ERROR; | ||
588 | 29 | +#endif | ||
589 | 30 | + | ||
590 | 31 | NPNFuncs.size = pFuncs->size; | ||
591 | 32 | NPNFuncs.version = pFuncs->version; | ||
592 | 33 | NPNFuncs.geturlnotify = pFuncs->geturlnotify; | ||
593 | 0 | 34 | ||
594 | === modified file 'debian/patches/series' | |||
595 | --- debian/patches/series 2012-09-24 12:57:53 +0000 | |||
596 | +++ debian/patches/series 2013-08-29 21:48:20 +0000 | |||
597 | @@ -1,2 +1,3 @@ | |||
598 | 1 | 0001-nomozalloc.patch | 1 | 0001-nomozalloc.patch |
599 | 2 | 0002-require-nspr.patch | 2 | 0002-require-nspr.patch |
600 | 3 | functable-check.patch |
Thanks. Uploaded.