After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 646471 - [Patch] Fix build with xulrunner6 (JS_CLASS_TRACE, JS_DestroyScript, JS_BufferIsCompilableUnit)
[Patch] Fix build with xulrunner6 (JS_CLASS_TRACE, JS_DestroyScript, JS_Buffe...
Status: RESOLVED FIXED
Product: gjs
Classification: Bindings
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gjs-maint
gjs-maint
: 647071 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-04-01 19:27 UTC by Marc-Antoine Perennou
Modified: 2011-05-04 18:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Conditionally adapt to JS_CLASS_TRACE removal (2.42 KB, patch)
2011-04-01 19:28 UTC, Marc-Antoine Perennou
none Details | Review
Conditionally adapt to JS_DestroyScript removal (2.07 KB, patch)
2011-04-01 19:28 UTC, Marc-Antoine Perennou
committed Details | Review
Conditionally adapt to JS_CLASS_TRACE removal (2.42 KB, patch)
2011-04-01 19:31 UTC, Marc-Antoine Perennou
committed Details | Review
Conditionally adapt to JS_BufferIsCompilableUnit changes (1.95 KB, patch)
2011-04-28 23:09 UTC, Marc-Antoine Perennou
reviewed Details | Review
Conditionally adapt to JS_BufferIsCompilableUnit changes (1.95 KB, patch)
2011-04-28 23:27 UTC, Marc-Antoine Perennou
committed Details | Review

Description Marc-Antoine Perennou 2011-04-01 19:27:35 UTC
upstream removed JS_CLASS_TRACE in http://hg.mozilla.org/mozilla-central/rev/a7784d11c59b and made several changes for JSScript leading to JS_DestroyScript removal in http://hg.mozilla.org/mozilla-central/rev/c919a7271ac1

This two patches allow getting a working gjs with those changes
Comment 1 Marc-Antoine Perennou 2011-04-01 19:28:09 UTC
Created attachment 184889 [details] [review]
Conditionally adapt to JS_CLASS_TRACE removal
Comment 2 Marc-Antoine Perennou 2011-04-01 19:28:39 UTC
Created attachment 184890 [details] [review]
Conditionally adapt to JS_DestroyScript removal
Comment 3 Marc-Antoine Perennou 2011-04-01 19:31:26 UTC
Created attachment 184891 [details] [review]
Conditionally adapt to JS_CLASS_TRACE removal

Silly mistake ...
Comment 4 Marc-Antoine Perennou 2011-04-28 23:09:04 UTC
Created attachment 186843 [details] [review]
Conditionally adapt to JS_BufferIsCompilableUnit changes

Since http://hg.mozilla.org/mozilla-central/rev/a773890b676f we have to pass an extra arg to tell if bytes are UTF-8 encoded
Comment 5 Colin Walters 2011-04-28 23:17:03 UTC
Review of attachment 186843 [details] [review]:

Not sure how this patch worked for you...

::: modules/console.c
@@ +197,3 @@
             g_free(temp_buf);
             lineno++;
+#ifdef JS_DecodeUTF8

Should be:

#ifdef HAVE_JS_DECODEUTF8
Comment 6 Colin Walters 2011-04-28 23:19:43 UTC
Review of attachment 184890 [details] [review]:

See also patch in https://bugzilla.gnome.org/show_bug.cgi?id=646369

I think this one is good though.
Comment 7 Marc-Antoine Perennou 2011-04-28 23:27:58 UTC
Created attachment 186844 [details] [review]
Conditionally adapt to JS_BufferIsCompilableUnit changes

I amended my commit but forgot to re format-patch...
Comment 8 Colin Walters 2011-04-28 23:31:09 UTC
Review of attachment 186844 [details] [review]:

Ok.
Comment 9 Colin Walters 2011-05-04 15:24:15 UTC
Review of attachment 184891 [details] [review]:

I need to better understand the implications of this one.  Do we need to implement some new hook to properly do GC?
Comment 10 Marc-Antoine Perennou 2011-05-04 15:52:37 UTC
Actually, I tried to basically follow what has been done upstream in the commit which removed it. I obviously can be missing anything there, but though, I've been running gnome-shell with those patches applied to gjs since I posted them here and did not hit any problem I could notice. (No particular leak or so)
Comment 11 Colin Walters 2011-05-04 16:08:29 UTC
(In reply to comment #10)
> Actually, I tried to basically follow what has been done upstream in the commit
> which removed it. I obviously can be missing anything there, but though, I've
> been running gnome-shell with those patches applied to gjs since I posted them
> here and did not hit any problem I could notice. (No particular leak or so)

I double checked this and your changes look right.  I'll commit this series now, thanks!
Comment 12 Colin Walters 2011-05-04 16:18:43 UTC
Attachment 184890 [details] pushed as 82a074e - Conditionally adapt to JS_DestroyScript removal
Attachment 184891 [details] pushed as 0f886dc - Conditionally adapt to JS_CLASS_TRACE removal
Comment 13 Colin Walters 2011-05-04 16:19:40 UTC
Thanks again for the patches, Marc!
Comment 14 Colin Walters 2011-05-04 18:51:07 UTC
*** Bug 647071 has been marked as a duplicate of this bug. ***