Gentoo Archives: gentoo-commits

From: Priit Laes <plaes@×××××.org>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:master commit in: dev-libs/gjs/, dev-libs/gjs/files/
Date: Mon, 27 Aug 2012 10:41:52
Message-Id: 1346052995.ed26e0e38ac8e8c507c58e002d08339fc48bd2e6.plaes@gentoo
1 commit: ed26e0e38ac8e8c507c58e002d08339fc48bd2e6
2 Author: Priit Laes <plaes <AT> plaes <DOT> org>
3 AuthorDate: Mon Aug 27 07:36:35 2012 +0000
4 Commit: Priit Laes <plaes <AT> plaes <DOT> org>
5 CommitDate: Mon Aug 27 07:36:35 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=ed26e0e3
7
8 dev-libs/gjs: 1.33.3 → 1.33.9
9
10 ---
11 dev-libs/gjs/files/gjs-0.7.14-sanity.patch | 485 --------------------
12 .../gjs/{gjs-1.33.4.ebuild => gjs-1.33.9.ebuild} | 3 +-
13 dev-libs/gjs/gjs-9999.ebuild | 3 +-
14 3 files changed, 2 insertions(+), 489 deletions(-)
15
16 diff --git a/dev-libs/gjs/files/gjs-0.7.14-sanity.patch b/dev-libs/gjs/files/gjs-0.7.14-sanity.patch
17 deleted file mode 100644
18 index 7b37d64..0000000
19 --- a/dev-libs/gjs/files/gjs-0.7.14-sanity.patch
20 +++ /dev/null
21 @@ -1,485 +0,0 @@
22 -This is a combination of 9 squashed commits (squashed to save space, since
23 -the patches keep on modifying the same region of code) and a bit of manual
24 -backporting work, bringing sanity wrt xulrunner and spidermonkey handling to
25 -gjs-0.7.14's configure, and allowing gjs-0.7.14 to correctly build against
26 -spidermonkey-1.8.5.
27 -
28 -The patches squashed (along with their commit messages) are the following:
29 -
30 -1. Marc-Antoine Perennou <Marc-Antoine@××××××××.com> 2011-04-01 14:55:43
31 -Conditionally adapt to JS_CLASS_TRACE removal
32 -
33 -Upstream removed it in http://hg.mozilla.org/mozilla-central/rev/a7784d11c59b
34 -
35 -https://bugzilla.gnome.org/show_bug.cgi?id=646471
36 -
37 -2. Marc-Antoine Perennou <Marc-Antoine@××××××××.com> 2011-04-01 15:04:57
38 -Conditionally adapt to JS_DestroyScript removal
39 -
40 -Upstream changed the behaviour of several things about JSScripts in
41 -http://hg.mozilla.org/mozilla-central/rev/c919a7271ac1
42 -
43 -We now have to use a JSObject instead of a JSScript in certain circumstances,
44 -and we no longer have to call JS_DestroyScript which no longer exists
45 -
46 -https://bugzilla.gnome.org/show_bug.cgi?id=646471
47 -
48 -3. Marc-Antoine Perennou <Marc-Antoine@××××××××.com> 2011-04-28 19:01:03
49 -conditonally adapt to JS_BufferIsCompilableUnit changes
50 -
51 -Upstream added an argument to JS_BufferIsCompilableUnit in commit
52 -http://hg.mozilla.org/mozilla-central/rev/a773890b676f
53 -We now have to tell if the bytes are utf8 or not.
54 -
55 -https://bugzilla.gnome.org/show_bug.cgi?id=646471
56 -
57 -4. Colin Walters <walters@××××××.org> 2011-05-04 14:14:18
58 -Support compilation with standalone mozjs185 release
59 -
60 -Adjust the detection logic so that we look for mozjs-185.pc first. If
61 -we have this, we can skip all kinds of insanity.
62 -
63 -See https://bugzilla.mozilla.org/show_bug.cgi?id=628723
64 -for the discussion about creating this release.
65 -
66 -https://bugzilla.gnome.org/show_bug.cgi?id=646369
67 -
68 -5. Colin Walters <walters@××××××.org> 2011-05-05 12:49:09
69 -JS_CLASS_TRACE is a preprocessor macro, can't use AC_CHECK_LIB
70 -
71 -6. Nirbheek Chauhan <nirbheek@g.o> 2011-05-05 19:23:27
72 -build: drop js-config support, xulrunner-1.8/1.9 cruft, etc
73 -
74 -* The last working version of mozjs/xulrunner is 1.9.2.x, so drop support for
75 - everything before that.
76 -* Spidermonkey got a pkg-config file (gnome bug 646369), so we can get rid of
77 - js-config script support.
78 -* Use AC_CHECK_FUNC instead of AC_CHECK_LIB, which avoids having to guess the
79 - spidermonkey library name, and is the "preferred" way according to
80 - gnome bug 646369#c3.
81 -
82 -https://bugzilla.gnome.org/show_bug.cgi?id=644971
83 -
84 -7. Nirbheek Chauhan <nirbheek@g.o> 2011-05-16 17:44:30
85 -build: pick up the JS library from pkg-config instead of the system one
86 -
87 -Add JS_LIBS to gjs_console_LDADD so that the JS library in libdir from
88 -pkg-config is picked up first instead of the library in /usr/lib which may be
89 -from a system install of an older spidermonkey.
90 -
91 -https://bugzilla.gnome.org/show_bug.cgi?id=644971
92 -
93 -8. Colin Walters <walters@××××××.org> 2011-06-09 13:41:14
94 -Don't set rpath if we're using the standalone libmozjs185
95 -
96 -If we set an rpath to $prefix/lib, this causes us to prefer installed
97 -libraries over the just-built ones, effectively subverting the ability
98 -to run uninstalled.
99 -
100 -9. Alexandre Rostovtsev <tetromino@×××××.com> 2011-07-28 03:40:49
101 -Make choice of javascript package non-automagic
102 -
103 -Add a --with-js-package configure flag to allow selecting which
104 -javascript package to build against, e.g. to force building against
105 -xulrunner on a system that happens to have spidermonkey installed.
106 -
107 -By default, the behavior is the same as before (first check for
108 -mozjs185, then for mozilla-js).
109 -
110 -https://bugzilla.gnome.org/show_bug.cgi?id=655479
111 ----
112 - Makefile.am | 15 +++-
113 - configure.ac | 228 +++++++++++++++++++++-------------------------
114 - gi/keep-alive.c | 10 ++-
115 - gjs-internals-1.0.pc.in | 5 +-
116 - modules/console.c | 10 ++
117 - 5 files changed, 135 insertions(+), 133 deletions(-)
118 -
119 -diff --git a/Makefile.am b/Makefile.am
120 -index a7ecd84..5d340dd 100644
121 ---- a/Makefile.am
122 -+++ b/Makefile.am
123 -@@ -69,7 +69,10 @@ libgjs_la_CFLAGS = \
124 - libgjs_la_LDFLAGS = \
125 - -export-symbols-regex "^[^_]" -version-info 0:0:0 \
126 - -no-undefined \
127 -- -R $(FIREFOX_JS_LIBDIR) -rdynamic
128 -+ -rdynamic
129 -+if HAVE_FIREFOX_JS_LIBDIR
130 -+libgjs_la_LDFLAGS += -R $(FIREFOX_JS_LIBDIR)
131 -+endif
132 - libgjs_la_LIBADD = \
133 - $(GJS_LIBS)
134 -
135 -@@ -121,9 +124,13 @@ gjs_console_CFLAGS = \
136 - $(AM_CFLAGS) \
137 - $(GOBJECT_CFLAGS)
138 - gjs_console_LDADD = \
139 -- $(GOBJECT_LIBS) \
140 -- libgjs.la
141 --gjs_console_LDFLAGS = -R $(FIREFOX_JS_LIBDIR) -rdynamic
142 -+ $(JS_LIBS) \
143 -+ $(GOBJECT_LIBS) \
144 -+ libgjs.la
145 -+gjs_console_LDFLAGS = -rdynamic
146 -+if HAVE_FIREFOX_JS_LIBDIR
147 -+gjs_console_LDFLAGS += -R $(FIREFOX_JS_LIBDIR)
148 -+endif
149 - gjs_console_SOURCES = gjs/console.c
150 -
151 - install-exec-hook:
152 -diff --git a/configure.ac b/configure.ac
153 -index d185ba1..3d41ecd 100644
154 ---- a/configure.ac
155 -+++ b/configure.ac
156 -@@ -91,123 +91,100 @@ m4_define(gobject_required_version, 2.18.0)
157 - AC_CHECK_HEADERS([malloc.h])
158 - AC_CHECK_FUNCS(mallinfo)
159 -
160 --# Look for Spidermonkey. If js-config exists, use that;
161 --# otherwise we try some pkgconfig files from various distributions.
162 --
163 --AC_ARG_VAR([JS_CONFIG], [The js-config program to use])
164 --if test "$ac_cv_env_JS_CONFIG_set" != "set"; then
165 -- AC_PATH_PROG([JS_CONFIG], [js-config], [])
166 -+AC_ARG_WITH([js-package],
167 -+ AS_HELP_STRING([--with-js-package[=@<:@auto/mozjs185/mozilla-js@:>@]],
168 -+ [Choose JavaScript package: 'mozjs185' (i.e. spidermonkey), 'mozilla-js' (i.e. xulrunner or firefox), or 'auto' (detect automatically)]),
169 -+ [with_js_package=$withval],
170 -+ [with_js_package="auto"])
171 -+
172 -+# First, try separate mozjs185 release
173 -+if test $with_js_package = mozjs185 -o $with_js_package = auto; then
174 -+ AC_MSG_CHECKING([for standalone mozjs185])
175 -+ PKG_CHECK_EXISTS([mozjs185], JS_PACKAGE=mozjs185,)
176 -+ if test x$JS_PACKAGE != x; then
177 -+ FIREFOX_JS_LIBDIR=
178 -+ MOZJS_IS_STANDALONE=yes
179 -+ AC_MSG_RESULT([yes])
180 -+ PKG_CHECK_MODULES(JS, $JS_PACKAGE)
181 -+ else
182 -+ AC_MSG_RESULT([no])
183 -+ fi
184 - fi
185 -
186 --if test -n "$JS_CONFIG"; then
187 -- JS_CFLAGS="$($JS_CONFIG --cflags)"
188 -- JS_LIBS="$($JS_CONFIG --libs)"
189 -- FIREFOX_JS_LIBDIR="$($JS_CONFIG --libdir)"
190 -- JS_PACKAGE=
191 --
192 -- # js-config gives almost usable CFLAGS, we must define one of XP_BEOS,
193 -- # XP_OS2, XP_WIN or XP_UNIX
194 -- JS_CFLAGS="$JS_CFLAGS -DXP_UNIX"
195 --else
196 -- ## spidermonkey .pc file name varies across distributions and Gecko version
197 -- ##
198 -- ## mozilla-js: Gecko 1.9, all distributions
199 -- ## xulrunner-js: Gecko 1.8 (and earlier?) Debian/Ubuntu
200 -- ## firefox-js: ???
201 -- ##
202 -- ## Checking for mozilla-js first will hopefully get us the newest version
203 -- ## of spidermonkey.
204 -- PKG_CHECK_EXISTS([mozilla-js], [JS_PACKAGE=mozilla-js],
205 -- [PKG_CHECK_EXISTS([xulrunner-js], [JS_PACKAGE=xulrunner-js], [JS_PACKAGE=firefox-js])])
206 --
207 -- PKG_CHECK_MODULES(JS, $JS_PACKAGE)
208 --
209 -- ## some flavors of Firefox .pc only set sdkdir, not libdir
210 -- FIREFOX_JS_SDKDIR=`$PKG_CONFIG --variable=sdkdir $JS_PACKAGE`
211 -- FIREFOX_JS_LIBDIR=`$PKG_CONFIG --variable=libdir $JS_PACKAGE`
212 --
213 -- ## Ubuntu does not set libdir in mozilla-js.pc
214 -- if test x"$FIREFOX_JS_LIBDIR" = x ; then
215 -- ## Ubuntu returns xulrunner-devel as the sdkdir, but for the
216 -- ## libdir we want the runtime location on the target system,
217 -- ## so can't use -devel.
218 -- ## The library is in the non-devel directory also.
219 -- ## Don't ask me why it's in two places.
220 -- FIREFOX_JS_LIBDIR=`echo "$FIREFOX_JS_SDKDIR" | sed -e 's/-devel//g'`
221 --
222 -- if ! test -d "$FIREFOX_JS_LIBDIR" ; then
223 -- FIREFOX_JS_LIBDIR=
224 -- fi
225 -+if test $with_js_package = mozilla-js -o $with_js_package = auto; then
226 -+ # If we didn't find mozjs185 (the standalone spidermonkey), look for mozilla-js
227 -+ if test x$JS_PACKAGE = x; then
228 -+ AC_MSG_CHECKING([for mozilla-js 1.9.2])
229 -+ PKG_CHECK_EXISTS([mozilla-js >= 1.9.2], JS_PACKAGE=mozilla-js,)
230 -+ if test x$JS_PACKAGE != x; then
231 -+ AC_MSG_RESULT([yes])
232 -+ else
233 -+ AC_MSG_ERROR([Could not find mozilla-js 1.9.2])
234 -+ fi
235 -+
236 -+ PKG_CHECK_MODULES(JS, $JS_PACKAGE)
237 -+
238 -+ ## some flavors of Firefox .pc only set sdkdir, not libdir
239 -+ FIREFOX_JS_SDKDIR=`$PKG_CONFIG --variable=sdkdir $JS_PACKAGE`
240 -+ FIREFOX_JS_LIBDIR=`$PKG_CONFIG --variable=libdir $JS_PACKAGE`
241 -+
242 -+ ## Ubuntu does not set libdir in mozilla-js.pc
243 -+ if test x"$FIREFOX_JS_LIBDIR" = x; then
244 -+ ## Ubuntu returns xulrunner-devel as the sdkdir, but for the
245 -+ ## libdir we want the runtime location on the target system,
246 -+ ## so can't use -devel.
247 -+ ## The library is in the non-devel directory also.
248 -+ ## Don't ask me why it's in two places.
249 -+ FIREFOX_JS_LIBDIR=`echo "$FIREFOX_JS_SDKDIR" | sed -e 's/-devel//g'`
250 -+ if ! test -d "$FIREFOX_JS_LIBDIR"; then
251 -+ FIREFOX_JS_LIBDIR=
252 -+ fi
253 -+ fi
254 -+
255 -+ if test x"$FIREFOX_JS_LIBDIR" = x; then
256 -+ AC_MSG_ERROR([Could not figure out where the Firefox JavaScript library lives])
257 -+ fi
258 - fi
259 - fi
260 -
261 --if test x"$FIREFOX_JS_LIBDIR" = x ; then
262 -- AC_MSG_ERROR([Could not figure out where Firefox JavaScript library lives])
263 -+if test x$JS_PACKAGE = x; then
264 -+ AC_MSG_ERROR([No appropriate JavaScript package found])
265 - fi
266 -
267 --AC_SUBST(JS_PACKAGE)
268 --AC_SUBST(FIREFOX_JS_LIBDIR)
269 -+echo "Using JS_PACKAGE: $JS_PACKAGE"
270 -+echo "Using JS_CFLAGS: $JS_CFLAGS"
271 -+echo "Using JS_LIBS: $JS_LIBS"
272 -
273 --AC_MSG_CHECKING([for mozilla-js >= 1.9.2 ])
274 --if `$PKG_CONFIG --exists $JS_PACKAGE '>=' 1.9.2`; then
275 -- AC_MSG_RESULT([yes])
276 --else
277 -- AC_MSG_ERROR([$JS_PACKAGE >= 1.9.2 is required])
278 -+AC_SUBST(JS_PACKAGE)
279 -+AM_CONDITIONAL(HAVE_FIREFOX_JS_LIBDIR, test x$FIREFOX_JS_LIBDIR != x)
280 -+if test x$FIREFOX_JS_LIBDIR != x; then
281 -+ GJS_INTERNALS_LIBS="-Wl,--rpath=$FIREFOX_JS_LIBDIR"
282 - fi
283 -+AC_SUBST(GJS_INTERNALS_LIBS)
284 -+AC_SUBST(FIREFOX_JS_LIBDIR)
285 -
286 --AC_CHECK_LIB([mozjs], [JS_GetStringBytes], AC_DEFINE([HAVE_JS_GETSTRINGBYTES], [1], [Define if we still have JS_GetStringBytes]),, [$JS_LIBS])
287 --AC_CHECK_LIB([mozjs], [JS_GetFunctionName], AC_DEFINE([HAVE_JS_GETFUNCTIONNAME], [1], [Define if we still have JS_GetFunctionName]),, [$JS_LIBS])
288 --AC_CHECK_LIB([mozjs], [JS_GetStringChars], AC_DEFINE([HAVE_JS_GETSTRINGCHARS], [1], [Define if we still have JS_GetStringChars]),, [$JS_LIBS])
289 --AC_CHECK_LIB([mozjs], [JS_StrictPropertyStub], AC_DEFINE([HAVE_JS_STRICTPROPERTYSTUB], [1], [Define if we have JS_StrictPropertyStub]),, [$JS_LIBS])
290 --AC_CHECK_LIB([mozjs], [JS_GetGlobalForScopeChain], AC_DEFINE([HAVE_JS_GETGLOBALFORSCOPECHAIN], [1], [Define if we have JS_GetGlobalForScopeChain]),, [$JS_LIBS])
291 -+saved_CFLAGS=$CFLAGS
292 -+saved_LIBS=$LIBS
293 -+CFLAGS=$JS_CFLAGS
294 -+LIBS=$JS_LIBS
295 -+AC_CHECK_FUNC([JS_GetStringBytes], AC_DEFINE([HAVE_JS_GETSTRINGBYTES], [1], [Define if we still have JS_GetStringBytes]),)
296 -+AC_CHECK_FUNC([JS_GetFunctionName], AC_DEFINE([HAVE_JS_GETFUNCTIONNAME], [1], [Define if we still have JS_GetFunctionName]),)
297 -+AC_CHECK_FUNC([JS_GetStringChars], AC_DEFINE([HAVE_JS_GETSTRINGCHARS], [1], [Define if we still have JS_GetStringChars]),)
298 -+AC_CHECK_FUNC([JS_StrictPropertyStub], AC_DEFINE([HAVE_JS_STRICTPROPERTYSTUB], [1], [Define if we have JS_StrictPropertyStub]),)
299 -+AC_CHECK_FUNC([JS_GetGlobalForScopeChain], AC_DEFINE([HAVE_JS_GETGLOBALFORSCOPECHAIN], [1], [Define if we have JS_GetGlobalForScopeChain]),)
300 -+AC_CHECK_FUNC([JS_DestroyScript], AC_DEFINE([HAVE_JS_DESTROYSCRIPT], [1], [Define if we still have JS_DestroyScript]),)
301 -+AC_CHECK_FUNC([JS_DecodeUTF8], AC_DEFINE([HAVE_JS_DECODEUTF8], [1], [Define if we have JS_DecodeUTF8]),)
302 -+AC_CHECK_FUNC([JS_FreezeObject], AC_DEFINE([HAVE_JS_FREEZEOBJECT], [1], [Define if we have JS_FreezeObject]),)
303 -+AC_CHECK_FUNC([JS_IsScriptFrame], AC_DEFINE([HAVE_JS_ISSCRIPTFRAME], [1], [Define if we have JS_IsScriptFrame]),)
304 -+AC_CHECK_FUNC([JS_EndPC], AC_DEFINE([HAVE_JS_ENDPC], [1], [Define if we have JS_EndPC]),)
305 -+AC_CHECK_FUNC([JS_NewCompartmentAndGlobalObject], AC_DEFINE([HAVE_JS_NEWCOMPARTMENTANDGLOBALOBJECT], [1], [Define if we have JS_NewCompartmentAndGlobalObject]),)
306 -+CFLAGS=$saved_CFLAGS
307 -+LIBS=$saved_LIBS
308 -
309 --AC_MSG_CHECKING([for mozilla-js >= 2 ])
310 --if `$PKG_CONFIG --exists $JS_PACKAGE '>=' 2`; then
311 -- AC_MSG_RESULT([yes])
312 -+if test x$MOZJS_IS_STANDALONE = xyes || `$PKG_CONFIG --exists $JS_PACKAGE '>=' 2`; then
313 - AC_DEFINE(HAVE_MOZJS_2, [1], [Define if mozilla-js is at least 2])
314 -- AC_CHECK_LIB([mozjs], [JS_FreezeObject], AC_DEFINE([HAVE_JS_FREEZEOBJECT], [1], [Define if we have JS_FreezeObject]),
315 -- , [$JS_LIBS])
316 -- AC_CHECK_LIB([mozjs], [JS_IsScriptFrame], AC_DEFINE([HAVE_JS_ISSCRIPTFRAME], [1], [Define if we have JS_IsScriptFrame]),
317 -- , [$JS_LIBS])
318 -- AC_CHECK_LIB([mozjs], [JS_EndPC], AC_DEFINE([HAVE_JS_ENDPC], [1], [Define if we have JS_EndPC]),
319 -- , [$JS_LIBS])
320 -- AC_CHECK_LIB([mozjs], [JS_NewCompartmentAndGlobalObject],
321 -- AC_DEFINE([HAVE_JS_NEWCOMPARTMENTANDGLOBALOBJECT], [1], [Define if we have JS_NewCompartmentAndGlobalObject]),
322 -- , [$JS_LIBS])
323 --
324 --else
325 -- AC_MSG_RESULT([no])
326 - fi
327 -
328 --## workaround for Ubuntu Hardy bug where mozilla-js.pc gives CFLAGS
329 --## -I.../stable while jsapi.h is in .../unstable
330 --AC_MSG_CHECKING([if SpiderMonkey needs extra compiler flags])
331 --save_CFLAGS="$CFLAGS"
332 --CFLAGS="$CFLAGS $JS_CFLAGS"
333 --AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <jsapi.h>]])],
334 -- [js_extra_cflags_needed=no],
335 -- [js_extra_cflags_needed=yes])
336 --CFLAGS="$save_CFLAGS"
337 --AC_MSG_RESULT([$js_extra_cflags_needed])
338 --
339 --JS_EXTRA_CFLAGS=
340 --if test "$js_extra_cflags_needed" = yes; then
341 -- try_cflags="-I`$PKG_CONFIG --variable=includedir $JS_PACKAGE`/unstable"
342 -- AC_MSG_CHECKING([if $try_cflags works])
343 -- save_CFLAGS="$CFLAGS"
344 -- CFLAGS="$CFLAGS $JS_CFLAGS $try_cflags"
345 -- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <jsapi.h>]])],
346 -- [AC_MSG_RESULT([yes])
347 -- JS_EXTRA_CFLAGS="$try_cflags"],
348 -- [AC_MSG_RESULT([no])])
349 -- CFLAGS="$save_CFLAGS"
350 --
351 -- if test x"$JS_EXTRA_CFLAGS" = x; then
352 -- AC_MSG_ERROR([Unable to determine extra compiler flags needed])
353 -- fi
354 --fi
355 --AC_SUBST([JS_EXTRA_CFLAGS])
356 --
357 - AC_MSG_CHECKING([whether JSLocaleToUnicode takes a const char*])
358 - save_CFLAGS="$CFLAGS"
359 - CFLAGS="$CFLAGS $JS_CFLAGS -Wno-unused -Werror"
360 -@@ -228,6 +205,30 @@ if test "$have_jslocale_to_unicode_const" = yes; then
361 - AC_DEFINE([JS_LOCALETOUNICODE_NEEDS_CONST_CHAR], [1], [Define if JSLocaleToUnicode takes a const char* for its src])
362 - fi
363 -
364 -+save_CFLAGS="$CFLAGS"
365 -+CFLAGS="$CFLAGS $JS_CFLAGS"
366 -+AC_MSG_CHECKING([for JS_CLASS_TRACE macro])
367 -+AC_COMPILE_IFELSE(
368 -+ [AC_LANG_PROGRAM(
369 -+ [[
370 -+ #include <jsapi.h>
371 -+ #ifndef JS_CLASS_TRACE
372 -+ #error "No JS_CLASS_TRACE"
373 -+ #endif
374 -+ ]],
375 -+ [[(void) 0;]]
376 -+ )],
377 -+ [have_js_class_trace=yes],
378 -+ [have_js_class_trace=no])
379 -+
380 -+if test "x$have_js_class_trace" = xyes; then
381 -+ AC_MSG_RESULT([yes])
382 -+ AC_DEFINE([HAVE_JS_CLASS_TRACE], [1], [Define if we still have JS_CLASS_TRACE])
383 -+else
384 -+ AC_MSG_RESULT([no])
385 -+fi
386 -+CFLAGS="$save_CFLAGS"
387 -+
388 - common_packages="gobject-2.0 >= gobject_required_version $JS_PACKAGE"
389 - gjs_packages="gmodule-2.0 gthread-2.0 $common_packages"
390 - gjs_gi_packages="gobject-introspection-1.0 >= 0.10.1 $common_packages"
391 -@@ -258,27 +259,6 @@ PKG_CHECK_MODULES([GJSTESTS], [$gjstests_packages])
392 - GI_DATADIR=$($PKG_CONFIG --variable=gidatadir gobject-introspection-1.0)
393 - AC_SUBST(GI_DATADIR)
394 -
395 --if test x"$JS_PACKAGE" = x; then
396 -- # if JS_PACKAGE is undefined, pkg-config modules don't include
397 -- # SpiderMonkey and we need to deal with it ourselves
398 -- GJS_CFLAGS="$GJS_CFLAGS $JS_CFLAGS"
399 -- GJS_LIBS="$GJS_LIBS $JS_LIBS"
400 -- GJS_GI_CFLAGS="$GJS_GI_CFLAGS $JS_CFLAGS"
401 -- GJS_GI_LIBS="$GJS_GI_LIBS $JS_LIBS"
402 -- GJS_CAIRO_CFLAGS="$GJS_CAIRO_CFLAGS $JS_CFLAGS"
403 -- GJS_CAIRO_LIBS="$GJS_CAIRO_LIBS $JS_LIBS"
404 -- GJS_DBUS_CFLAGS="$GJS_DBUS_CFLAGS $JS_CFLAGS"
405 -- GJS_DBUS_LIBS="$GJS_DBUS_LIBS $JS_LIBS"
406 -- GJSTESTS_CFLAGS="$GJSTESTS_CFLAGS $JS_CFLAGS"
407 -- GJSTESTS_LIBS="$GJSTEST_LIBS $JS_LIBS"
408 --fi
409 --
410 --GJS_CFLAGS="$GJS_CFLAGS $JS_EXTRA_CFLAGS"
411 --GJS_GI_CFLAGS="$GJS_GI_CFLAGS $JS_EXTRA_CFLAGS"
412 --GJS_CAIRO_CFLAGS="$GJS_CAIRO_CFLAGS $JS_EXTRA_CFLAGS"
413 --GJS_DBUS_CFLAGS="$GJS_DBUS_CFLAGS $JS_EXTRA_CFLAGS"
414 --GJSTESTS_CFLAGS="$GJSTESTS_CFLAGS $JS_EXTRA_CFLAGS"
415 --
416 - # readline
417 - LIBS_no_readline=$LIBS
418 -
419 -diff --git a/gi/keep-alive.c b/gi/keep-alive.c
420 -index c7149ac..e268eaf 100644
421 ---- a/gi/keep-alive.c
422 -+++ b/gi/keep-alive.c
423 -@@ -184,8 +184,10 @@ keep_alive_trace(JSTracer *tracer,
424 - */
425 - static struct JSClass gjs_keep_alive_class = {
426 - "__private_GjsKeepAlive", /* means "new __private_GjsKeepAlive()" works */
427 -- JSCLASS_HAS_PRIVATE |
428 -- JSCLASS_MARK_IS_TRACE, /* TraceOp not MarkOp */
429 -+#ifdef HAVE_JS_CLASS_TRACE
430 -+ JSCLASS_MARK_IS_TRACE | /* TraceOp not MarkOp */
431 -+#endif
432 -+ JSCLASS_HAS_PRIVATE,
433 - JS_PropertyStub,
434 - JS_PropertyStub,
435 - JS_PropertyStub,
436 -@@ -200,7 +202,11 @@ static struct JSClass gjs_keep_alive_class = {
437 - NULL,
438 - NULL,
439 - NULL,
440 -+#ifdef HAVE_JS_CLASS_TRACE
441 - JS_CLASS_TRACE(keep_alive_trace),
442 -+#else
443 -+ keep_alive_trace,
444 -+#endif
445 - NULL
446 - };
447 -
448 -diff --git a/gjs-internals-1.0.pc.in b/gjs-internals-1.0.pc.in
449 -index 701dd42..f4feb19 100644
450 ---- a/gjs-internals-1.0.pc.in
451 -+++ b/gjs-internals-1.0.pc.in
452 -@@ -8,10 +8,9 @@ datadir=@datadir@
453 -
454 - jsdir=@gjsjsdir@
455 - jsnativedir=@gjsnativedir@
456 --mozjslibdir=@FIREFOX_JS_LIBDIR@
457 -
458 --Cflags: -I${includedir}/gjs-1.0 @JS_EXTRA_CFLAGS@
459 --Libs: -Wl,--rpath=${mozjslibdir}
460 -+Cflags: -I${includedir}/gjs-1.0
461 -+Libs: @GJS_INTERNALS_LIBS@
462 - Requires: gjs-1.0 gobject-introspection-1.0 @JS_PACKAGE@
463 -
464 - Name: gjs-internals-1.0
465 -diff --git a/modules/console.c b/modules/console.c
466 -index 49f891b..8e20db3 100644
467 ---- a/modules/console.c
468 -+++ b/modules/console.c
469 -@@ -161,7 +161,11 @@ gjs_console_interact(JSContext *context,
470 - {
471 - JSObject *object = JS_THIS_OBJECT(context, vp);
472 - gboolean eof = FALSE;
473 -+#ifdef HAVE_JS_DESTROYSCRIPT
474 - JSScript *script = NULL;
475 -+#else
476 -+ JSObject *script = NULL;
477 -+#endif
478 - jsval result;
479 - JSString *str;
480 - GString *buffer = NULL;
481 -@@ -192,7 +196,11 @@ gjs_console_interact(JSContext *context,
482 - g_string_append(buffer, temp_buf);
483 - g_free(temp_buf);
484 - lineno++;
485 -+#ifdef HAVE_JS_DECODEUTF8
486 -+ } while (!JS_BufferIsCompilableUnit(context, JS_TRUE, object, buffer->str, buffer->len));
487 -+#else
488 - } while (!JS_BufferIsCompilableUnit(context, object, buffer->str, buffer->len));
489 -+#endif
490 -
491 - script = JS_CompileScript(context, object, buffer->str, buffer->len, "typein",
492 - startline);
493 -@@ -219,8 +227,10 @@ gjs_console_interact(JSContext *context,
494 - }
495 -
496 - next:
497 -+#ifdef HAVE_JS_DESTROYSCRIPT
498 - if (script)
499 - JS_DestroyScript(context, script);
500 -+#endif
501 - g_string_free(buffer, TRUE);
502 - } while (!eof);
503 -
504 ---
505 -1.7.6
506 -
507
508 diff --git a/dev-libs/gjs/gjs-1.33.4.ebuild b/dev-libs/gjs/gjs-1.33.9.ebuild
509 similarity index 96%
510 rename from dev-libs/gjs/gjs-1.33.4.ebuild
511 rename to dev-libs/gjs/gjs-1.33.9.ebuild
512 index a4b4d6f..767438d 100644
513 --- a/dev-libs/gjs/gjs-1.33.4.ebuild
514 +++ b/dev-libs/gjs/gjs-1.33.9.ebuild
515 @@ -45,9 +45,8 @@ pkg_setup() {
516 --disable-systemtap
517 --disable-dtrace
518 --disable-coverage
519 + $(use_enable test tests)
520 "
521 - # TODO: figure out how to use the `--disable-test`
522 -
523 python_set_active_version 2
524 python_pkg_setup
525 }
526
527 diff --git a/dev-libs/gjs/gjs-9999.ebuild b/dev-libs/gjs/gjs-9999.ebuild
528 index a4b4d6f..767438d 100644
529 --- a/dev-libs/gjs/gjs-9999.ebuild
530 +++ b/dev-libs/gjs/gjs-9999.ebuild
531 @@ -45,9 +45,8 @@ pkg_setup() {
532 --disable-systemtap
533 --disable-dtrace
534 --disable-coverage
535 + $(use_enable test tests)
536 "
537 - # TODO: figure out how to use the `--disable-test`
538 -
539 python_set_active_version 2
540 python_pkg_setup
541 }