Merge lp:~jbicha/ubuntu/oneiric/gjs/1.29.18 into lp:ubuntu/oneiric/gjs

Proposed by Jeremy Bícha
Status: Merged
Merge reported by: Sebastien Bacher
Merged at revision: not available
Proposed branch: lp:~jbicha/ubuntu/oneiric/gjs/1.29.18
Merge into: lp:ubuntu/oneiric/gjs
Diff against target: 428 lines (+110/-40)
11 files modified
.pc/.quilt_patches (+1/-0)
.pc/.quilt_series (+1/-0)
.pc/01_remove_rpath_flags.patch/gjs-internals-1.0.pc.in (+0/-18)
.pc/applied-patches (+0/-1)
configure (+14/-14)
configure.ac (+2/-2)
debian/changelog (+7/-0)
debian/libgjs0c.symbols (+1/-0)
gi/object.c (+4/-0)
gjs/context.c (+78/-5)
gjs/context.h (+2/-0)
To merge this branch: bzr merge lp:~jbicha/ubuntu/oneiric/gjs/1.29.18
Reviewer Review Type Date Requested Status
Ubuntu branches Pending
Review via email: mp+76441@code.launchpad.net
To post a comment you must log in.
50. By Jeremy Bícha

* New upstream release.
* debian/libgjs0c.symbols: Add 1 new symbol

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your work there

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file '.pc/.quilt_patches'
--- .pc/.quilt_patches 1970-01-01 00:00:00 +0000
+++ .pc/.quilt_patches 2011-09-21 16:48:23 +0000
@@ -0,0 +1,1 @@
1debian/patches
02
=== added file '.pc/.quilt_series'
--- .pc/.quilt_series 1970-01-01 00:00:00 +0000
+++ .pc/.quilt_series 2011-09-21 16:48:23 +0000
@@ -0,0 +1,1 @@
1series
02
=== added directory '.pc/01_remove_rpath_flags.patch'
=== removed directory '.pc/01_remove_rpath_flags.patch'
=== added file '.pc/01_remove_rpath_flags.patch/.timestamp'
=== added file '.pc/01_remove_rpath_flags.patch/gjs-internals-1.0.pc.in'
--- .pc/01_remove_rpath_flags.patch/gjs-internals-1.0.pc.in 1970-01-01 00:00:00 +0000
+++ .pc/01_remove_rpath_flags.patch/gjs-internals-1.0.pc.in 2011-09-21 16:48:23 +0000
@@ -0,0 +1,18 @@
1prefix=@prefix@
2exec_prefix=@exec_prefix@
3libdir=@libdir@
4bindir=@bindir@
5includedir=@includedir@
6datarootdir=@datarootdir@
7datadir=@datadir@
8
9jsdir=@gjsjsdir@
10jsnativedir=@gjsnativedir@
11
12Cflags: -I${includedir}/gjs-1.0
13Libs: @GJS_INTERNALS_LIBS@
14Requires: gjs-1.0 gobject-introspection-1.0 @JS_PACKAGE@
15
16Name: gjs-internals-1.0
17Description: Internal API for gjs (for modules and embedders); uses mozjs
18Version: @VERSION@
019
=== removed file '.pc/01_remove_rpath_flags.patch/gjs-internals-1.0.pc.in'
--- .pc/01_remove_rpath_flags.patch/gjs-internals-1.0.pc.in 2011-07-22 21:56:42 +0000
+++ .pc/01_remove_rpath_flags.patch/gjs-internals-1.0.pc.in 1970-01-01 00:00:00 +0000
@@ -1,18 +0,0 @@
1prefix=@prefix@
2exec_prefix=@exec_prefix@
3libdir=@libdir@
4bindir=@bindir@
5includedir=@includedir@
6datarootdir=@datarootdir@
7datadir=@datadir@
8
9jsdir=@gjsjsdir@
10jsnativedir=@gjsnativedir@
11
12Cflags: -I${includedir}/gjs-1.0
13Libs: @GJS_INTERNALS_LIBS@
14Requires: gjs-1.0 gobject-introspection-1.0 @JS_PACKAGE@
15
16Name: gjs-internals-1.0
17Description: Internal API for gjs (for modules and embedders); uses mozjs
18Version: @VERSION@
190
=== added file '.pc/applied-patches'
--- .pc/applied-patches 1970-01-01 00:00:00 +0000
+++ .pc/applied-patches 2011-09-21 16:48:23 +0000
@@ -0,0 +1,1 @@
101_remove_rpath_flags.patch
02
=== removed file '.pc/applied-patches'
--- .pc/applied-patches 2011-07-22 21:56:42 +0000
+++ .pc/applied-patches 1970-01-01 00:00:00 +0000
@@ -1,1 +0,0 @@
101_remove_rpath_flags.patch
20
=== modified file 'configure'
--- configure 2011-09-06 09:45:58 +0000
+++ configure 2011-09-21 16:48:23 +0000
@@ -1,6 +1,6 @@
1#! /bin/sh1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for gjs 1.29.17.3# Generated by GNU Autoconf 2.68 for gjs 1.29.18.
4#4#
5# Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gjs>.5# Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gjs>.
6#6#
@@ -571,8 +571,8 @@
571# Identity of this package.571# Identity of this package.
572PACKAGE_NAME='gjs'572PACKAGE_NAME='gjs'
573PACKAGE_TARNAME='gjs'573PACKAGE_TARNAME='gjs'
574PACKAGE_VERSION='1.29.17'574PACKAGE_VERSION='1.29.18'
575PACKAGE_STRING='gjs 1.29.17'575PACKAGE_STRING='gjs 1.29.18'
576PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=gjs'576PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=gjs'
577PACKAGE_URL=''577PACKAGE_URL=''
578578
@@ -1375,7 +1375,7 @@
1375 # Omit some internal or obsolete options to make the list less imposing.1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.1376 # This message is too long to be a string in the A/UX 3.1 sh.
1377 cat <<_ACEOF1377 cat <<_ACEOF
1378\`configure' configures gjs 1.29.17 to adapt to many kinds of systems.1378\`configure' configures gjs 1.29.18 to adapt to many kinds of systems.
13791379
1380Usage: $0 [OPTION]... [VAR=VALUE]...1380Usage: $0 [OPTION]... [VAR=VALUE]...
13811381
@@ -1445,7 +1445,7 @@
14451445
1446if test -n "$ac_init_help"; then1446if test -n "$ac_init_help"; then
1447 case $ac_init_help in1447 case $ac_init_help in
1448 short | recursive ) echo "Configuration of gjs 1.29.17:";;1448 short | recursive ) echo "Configuration of gjs 1.29.18:";;
1449 esac1449 esac
1450 cat <<\_ACEOF1450 cat <<\_ACEOF
14511451
@@ -1453,7 +1453,7 @@
1453 --disable-option-checking ignore unrecognized --enable/--with options1453 --disable-option-checking ignore unrecognized --enable/--with options
1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1456 --enable-maintainer-mode enable make rules and dependencies not useful1456 --disable-maintainer-mode disable make rules and dependencies not useful
1457 (and sometimes confusing) to the casual installer1457 (and sometimes confusing) to the casual installer
1458 --enable-silent-rules less verbose build output (undo: `make V=1')1458 --enable-silent-rules less verbose build output (undo: `make V=1')
1459 --disable-silent-rules verbose build output (undo: `make V=0')1459 --disable-silent-rules verbose build output (undo: `make V=0')
@@ -1589,7 +1589,7 @@
1589test -n "$ac_init_help" && exit $ac_status1589test -n "$ac_init_help" && exit $ac_status
1590if $ac_init_version; then1590if $ac_init_version; then
1591 cat <<\_ACEOF1591 cat <<\_ACEOF
1592gjs configure 1.29.171592gjs configure 1.29.18
1593generated by GNU Autoconf 2.681593generated by GNU Autoconf 2.68
15941594
1595Copyright (C) 2010 Free Software Foundation, Inc.1595Copyright (C) 2010 Free Software Foundation, Inc.
@@ -2079,7 +2079,7 @@
2079This file contains any messages produced by compilers while2079This file contains any messages produced by compilers while
2080running configure, to aid debugging if configure makes a mistake.2080running configure, to aid debugging if configure makes a mistake.
20812081
2082It was created by gjs $as_me 1.29.17, which was2082It was created by gjs $as_me 1.29.18, which was
2083generated by GNU Autoconf 2.68. Invocation command line was2083generated by GNU Autoconf 2.68. Invocation command line was
20842084
2085 $ $0 $@2085 $ $0 $@
@@ -2894,7 +2894,7 @@
28942894
2895# Define the identity of the package.2895# Define the identity of the package.
2896 PACKAGE='gjs'2896 PACKAGE='gjs'
2897 VERSION='1.29.17'2897 VERSION='1.29.18'
28982898
28992899
2900cat >>confdefs.h <<_ACEOF2900cat >>confdefs.h <<_ACEOF
@@ -2947,13 +2947,13 @@
29472947
29482948
29492949
2950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&52950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable maintainer-specific portions of Makefiles" >&5
2951$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }2951$as_echo_n "checking whether to disable maintainer-specific portions of Makefiles... " >&6; }
2952 # Check whether --enable-maintainer-mode was given.2952 # Check whether --enable-maintainer-mode was given.
2953if test "${enable_maintainer_mode+set}" = set; then :2953if test "${enable_maintainer_mode+set}" = set; then :
2954 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval2954 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2955else2955else
2956 USE_MAINTAINER_MODE=no2956 USE_MAINTAINER_MODE=yes
2957fi2957fi
29582958
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&52959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
@@ -17790,7 +17790,7 @@
17790# report actual input values of CONFIG_FILES etc. instead of their17790# report actual input values of CONFIG_FILES etc. instead of their
17791# values after options handling.17791# values after options handling.
17792ac_log="17792ac_log="
17793This file was extended by gjs $as_me 1.29.17, which was17793This file was extended by gjs $as_me 1.29.18, which was
17794generated by GNU Autoconf 2.68. Invocation command line was17794generated by GNU Autoconf 2.68. Invocation command line was
1779517795
17796 CONFIG_FILES = $CONFIG_FILES17796 CONFIG_FILES = $CONFIG_FILES
@@ -17856,7 +17856,7 @@
17856cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=117856cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17857ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"17857ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17858ac_cs_version="\\17858ac_cs_version="\\
17859gjs config.status 1.29.1717859gjs config.status 1.29.18
17860configured by $0, generated by GNU Autoconf 2.68,17860configured by $0, generated by GNU Autoconf 2.68,
17861 with options \\"\$ac_cs_config\\"17861 with options \\"\$ac_cs_config\\"
1786217862
1786317863
=== modified file 'configure.ac'
--- configure.ac 2011-09-06 09:45:58 +0000
+++ configure.ac 2011-09-21 16:48:23 +0000
@@ -3,7 +3,7 @@
33
4m4_define(pkg_major_version, 1)4m4_define(pkg_major_version, 1)
5m4_define(pkg_minor_version, 29)5m4_define(pkg_minor_version, 29)
6m4_define(pkg_micro_version, 17)6m4_define(pkg_micro_version, 18)
7m4_define(pkg_version, pkg_major_version.pkg_minor_version.pkg_micro_version)7m4_define(pkg_version, pkg_major_version.pkg_minor_version.pkg_micro_version)
88
9AC_PREREQ(2.61)9AC_PREREQ(2.61)
@@ -16,7 +16,7 @@
16AC_SUBST([GETTEXT_PACKAGE])16AC_SUBST([GETTEXT_PACKAGE])
17AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [The name of the gettext domain])17AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [The name of the gettext domain])
1818
19AM_MAINTAINER_MODE19AM_MAINTAINER_MODE([enable])
20m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])20m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
2121
22# our first pkg-config invocation is conditional, ensure macros still work22# our first pkg-config invocation is conditional, ensure macros still work
2323
=== modified file 'debian/changelog'
--- debian/changelog 2011-09-06 09:45:58 +0000
+++ debian/changelog 2011-09-21 16:48:23 +0000
@@ -1,3 +1,10 @@
1gjs (1.29.18-0ubuntu1) oneiric; urgency=low
2
3 * New upstream release.
4 * debian/libgjs0c.symbols: Add 1 new symbol
5
6 -- Jeremy Bicha <jbicha@ubuntu.com> Wed, 21 Sep 2011 12:38:48 -0400
7
1gjs (1.29.17-0ubuntu1) oneiric; urgency=low8gjs (1.29.17-0ubuntu1) oneiric; urgency=low
29
3 * New upstream release.10 * New upstream release.
411
=== modified file 'debian/libgjs0c.symbols'
--- debian/libgjs0c.symbols 2011-08-17 17:02:38 +0000
+++ debian/libgjs0c.symbols 2011-09-21 16:48:23 +0000
@@ -75,6 +75,7 @@
75 gjs_context_define_string_array@Base 0.7.175 gjs_context_define_string_array@Base 0.7.1
76 gjs_context_eval@Base 0.7.176 gjs_context_eval@Base 0.7.1
77 gjs_context_eval_file@Base 0.7.177 gjs_context_eval_file@Base 0.7.1
78 gjs_context_gc@Base 1.29.18
78 gjs_context_get_all@Base 0.7.179 gjs_context_get_all@Base 0.7.1
79 gjs_context_get_native_context@Base 0.7.180 gjs_context_get_native_context@Base 0.7.1
80 gjs_context_get_type@Base 0.7.181 gjs_context_get_type@Base 0.7.1
8182
=== modified file 'gi/object.c'
--- gi/object.c 2011-07-22 21:56:42 +0000
+++ gi/object.c 2011-09-21 16:48:23 +0000
@@ -674,6 +674,7 @@
674 if (unthreadsafe_template_for_constructor.gobj == NULL) {674 if (unthreadsafe_template_for_constructor.gobj == NULL) {
675 GParameter *params;675 GParameter *params;
676 int n_params;676 int n_params;
677 GTypeQuery query;
677678
678 gtype = g_registered_type_info_get_g_type( (GIRegisteredTypeInfo*) priv->info);679 gtype = g_registered_type_info_get_g_type( (GIRegisteredTypeInfo*) priv->info);
679 if (gtype == G_TYPE_NONE) {680 if (gtype == G_TYPE_NONE) {
@@ -692,6 +693,9 @@
692 priv->gobj = g_object_newv(gtype, n_params, params);693 priv->gobj = g_object_newv(gtype, n_params, params);
693 free_g_params(params, n_params);694 free_g_params(params, n_params);
694695
696 g_type_query(gtype, &query);
697 JS_updateMallocCounter(context, query.instance_size);
698
695 if (G_IS_INITIALLY_UNOWNED(priv->gobj) &&699 if (G_IS_INITIALLY_UNOWNED(priv->gobj) &&
696 !g_object_is_floating(priv->gobj)) {700 !g_object_is_floating(priv->gobj)) {
697 /* GtkWindow does not return a ref to caller of g_object_new.701 /* GtkWindow does not return a ref to caller of g_object_new.
698702
=== modified file 'gjs/context.c'
--- gjs/context.c 2011-09-06 09:45:58 +0000
+++ gjs/context.c 2011-09-21 16:48:23 +0000
@@ -56,6 +56,8 @@
56 guint prop_id,56 guint prop_id,
57 const GValue *value,57 const GValue *value,
58 GParamSpec *pspec);58 GParamSpec *pspec);
59static JSBool gjs_on_context_gc (JSContext *cx,
60 JSGCStatus status);
5961
60struct _GjsContext {62struct _GjsContext {
61 GObject parent;63 GObject parent;
@@ -70,7 +72,10 @@
7072
71 char **search_path;73 char **search_path;
7274
73 unsigned int we_own_runtime : 1;75 guint idle_emit_gc_id;
76
77 guint we_own_runtime : 1;
78 guint gc_notifications_enabled : 1;
74};79};
7580
76struct _GjsContextClass {81struct _GjsContextClass {
@@ -79,19 +84,19 @@
7984
80G_DEFINE_TYPE(GjsContext, gjs_context, G_TYPE_OBJECT);85G_DEFINE_TYPE(GjsContext, gjs_context, G_TYPE_OBJECT);
8186
82#if 0
83enum {87enum {
88 SIGNAL_GC,
84 LAST_SIGNAL89 LAST_SIGNAL
85};90};
8691
87static int signals[LAST_SIGNAL];92static int signals[LAST_SIGNAL];
88#endif
8993
90enum {94enum {
91 PROP_0,95 PROP_0,
92 PROP_JS_VERSION,96 PROP_JS_VERSION,
93 PROP_SEARCH_PATH,97 PROP_SEARCH_PATH,
94 PROP_RUNTIME98 PROP_RUNTIME,
99 PROP_GC_NOTIFICATIONS
95};100};
96101
97102
@@ -335,6 +340,22 @@
335 PROP_JS_VERSION,340 PROP_JS_VERSION,
336 pspec);341 pspec);
337342
343 pspec = g_param_spec_boolean("gc-notifications",
344 "",
345 "Whether or not to emit the \"gc\" signal",
346 FALSE,
347 G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
348
349 g_object_class_install_property(object_class,
350 PROP_GC_NOTIFICATIONS,
351 pspec);
352
353 signals[SIGNAL_GC] = g_signal_new("gc", G_TYPE_FROM_CLASS(klass),
354 G_SIGNAL_RUN_LAST, 0,
355 NULL, NULL,
356 NULL,
357 G_TYPE_NONE, 0);
358
338 gjs_register_native_module("byteArray", gjs_define_byte_array_stuff, 0);359 gjs_register_native_module("byteArray", gjs_define_byte_array_stuff, 0);
339}360}
340361
@@ -386,6 +407,11 @@
386407
387 js_context = GJS_CONTEXT(object);408 js_context = GJS_CONTEXT(object);
388409
410 if (js_context->idle_emit_gc_id > 0) {
411 g_source_remove (js_context->idle_emit_gc_id);
412 js_context->idle_emit_gc_id = 0;
413 }
414
389 if (js_context->search_path != NULL) {415 if (js_context->search_path != NULL) {
390 g_strfreev(js_context->search_path);416 g_strfreev(js_context->search_path);
391 js_context->search_path = NULL;417 js_context->search_path = NULL;
@@ -674,6 +700,9 @@
674 /* For GjsDBus */700 /* For GjsDBus */
675 g_irepository_prepend_search_path(PKGLIBDIR);701 g_irepository_prepend_search_path(PKGLIBDIR);
676702
703 if (js_context->gc_notifications_enabled)
704 JS_SetGCCallback(js_context->context, gjs_on_context_gc);
705
677 JS_EndRequest(js_context->context);706 JS_EndRequest(js_context->context);
678707
679 g_static_mutex_lock (&contexts_lock);708 g_static_mutex_lock (&contexts_lock);
@@ -697,6 +726,9 @@
697 case PROP_JS_VERSION:726 case PROP_JS_VERSION:
698 g_value_set_string(value, js_context->jsversion_string);727 g_value_set_string(value, js_context->jsversion_string);
699 break;728 break;
729 case PROP_GC_NOTIFICATIONS:
730 g_value_set_boolean(value, js_context->gc_notifications_enabled);
731 break;
700 default:732 default:
701 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);733 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
702 break;734 break;
@@ -727,7 +759,9 @@
727 else759 else
728 js_context->jsversion_string = g_value_dup_string(value);760 js_context->jsversion_string = g_value_dup_string(value);
729 break;761 break;
730762 case PROP_GC_NOTIFICATIONS:
763 js_context->gc_notifications_enabled = g_value_get_boolean(value);
764 break;
731 default:765 default:
732 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);766 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
733 break;767 break;
@@ -866,6 +900,45 @@
866}900}
867901
868/**902/**
903 * gjs_context_gc:
904 * @context: a #GjsContext
905 *
906 * Initiate a full GC; may or may not block until complete. This
907 * function just calls Spidermonkey JS_GC().
908 */
909void
910gjs_context_gc (GjsContext *context)
911{
912 JS_GC(context->context);
913}
914
915static gboolean
916gjs_context_idle_emit_gc (gpointer data)
917{
918 GjsContext *gjs_context = data;
919
920 gjs_context->idle_emit_gc_id = 0;
921
922 g_signal_emit (gjs_context, signals[SIGNAL_GC], 0);
923
924 return FALSE;
925}
926
927static JSBool
928gjs_on_context_gc (JSContext *cx,
929 JSGCStatus status)
930{
931 GjsContext *gjs_context = JS_GetContextPrivate(cx);
932
933 if (status == JSGC_END) {
934 if (gjs_context->idle_emit_gc_id == 0)
935 gjs_context->idle_emit_gc_id = g_idle_add (gjs_context_idle_emit_gc, gjs_context);
936 }
937
938 return TRUE;
939}
940
941/**
869 * gjs_context_get_all:942 * gjs_context_get_all:
870 *943 *
871 * Returns a newly-allocated list containing all known instances of #GjsContext.944 * Returns a newly-allocated list containing all known instances of #GjsContext.
872945
=== modified file 'gjs/context.h'
--- gjs/context.h 2011-02-27 00:27:14 +0000
+++ gjs/context.h 2011-09-21 16:48:23 +0000
@@ -75,6 +75,8 @@
7575
76void gjs_context_maybe_gc (GjsContext *context);76void gjs_context_maybe_gc (GjsContext *context);
7777
78void gjs_context_gc (GjsContext *context);
79
78void gjs_dumpstack (void);80void gjs_dumpstack (void);
7981
80G_END_DECLS82G_END_DECLS

Subscribers

People subscribed via source and target branches

to all changes: