From 4c05a773a760f160cf35650c67236a0f2f26e1b6736d9287d6b066b25680e114 Mon Sep 17 00:00:00 2001 From: Vincent Untz Date: Fri, 7 Sep 2012 22:35:08 +0000 Subject: [PATCH 1/4] Accepting request 132900 from GNOME:Next Push G:N - Addressed the comments from previous review OBS-URL: https://build.opensuse.org/request/show/132900 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gjs?expand=0&rev=68 --- gjs-1.32.0.tar.xz | 3 -- gjs-1.33.10.tar.xz | 3 ++ gjs-getpid_uid_gid.patch | 105 --------------------------------------- gjs.changes | 55 ++++++++++++++++++++ gjs.spec | 28 +++++------ 5 files changed, 71 insertions(+), 123 deletions(-) delete mode 100644 gjs-1.32.0.tar.xz create mode 100644 gjs-1.33.10.tar.xz delete mode 100644 gjs-getpid_uid_gid.patch diff --git a/gjs-1.32.0.tar.xz b/gjs-1.32.0.tar.xz deleted file mode 100644 index 264c579..0000000 --- a/gjs-1.32.0.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b9f1dc156c15806824c936bb08ddc5048f52f6921654146c47025a62457108c0 -size 464372 diff --git a/gjs-1.33.10.tar.xz b/gjs-1.33.10.tar.xz new file mode 100644 index 0000000..419d7c9 --- /dev/null +++ b/gjs-1.33.10.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b856e329eac8208e6618d7e5a7176828ffcc8bb8bb72cf13c34d66524d0ecafd +size 473420 diff --git a/gjs-getpid_uid_gid.patch b/gjs-getpid_uid_gid.patch deleted file mode 100644 index c66fe38..0000000 --- a/gjs-getpid_uid_gid.patch +++ /dev/null @@ -1,105 +0,0 @@ -From 457a90fecc74c0a36da1b9252c9f9028932f42a0 Mon Sep 17 00:00:00 2001 -From: Giovanni Campagna -Date: Tue, 7 Feb 2012 15:36:26 +0100 -Subject: [PATCH] system: add getpid(), getuid(), getgid() - -These functions are useful sometimes (for example when building -a PolkitSubject), and have no equivalent in GLib, therefore it's -appropriate to place them in the system module. - -https://bugzilla.gnome.org/show_bug.cgi?id=646187 ---- - modules/system.c | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ - 1 file changed, 64 insertions(+) - -diff --git a/modules/system.c b/modules/system.c -index ea8a9a8..c7c5b5c 100644 ---- a/modules/system.c -+++ b/modules/system.c -@@ -24,6 +24,9 @@ - - #include - -+#include -+#include -+ - #include - #include - -@@ -75,6 +78,49 @@ gjs_gc(JSContext *context, - JS_GC(context); - return JS_TRUE; - } -+ -+static JSBool -+gjs_getpid(JSContext *context, -+ uintN argc, -+ jsval *vp) -+{ -+ jsval *argv = JS_ARGV(cx, vp); -+ jsval rval; -+ if (!gjs_parse_args(context, "getpid", "", argc, argv)) -+ return JS_FALSE; -+ rval = INT_TO_JSVAL(getpid()); -+ JS_SET_RVAL(context, vp, rval); -+ return JS_TRUE; -+} -+ -+static JSBool -+gjs_getuid(JSContext *context, -+ uintN argc, -+ jsval *vp) -+{ -+ jsval *argv = JS_ARGV(cx, vp); -+ jsval rval; -+ if (!gjs_parse_args(context, "getuid", "", argc, argv)) -+ return JS_FALSE; -+ rval = INT_TO_JSVAL(getuid()); -+ JS_SET_RVAL(context, vp, rval); -+ return JS_TRUE; -+} -+ -+static JSBool -+gjs_getgid(JSContext *context, -+ uintN argc, -+ jsval *vp) -+{ -+ jsval *argv = JS_ARGV(cx, vp); -+ jsval rval; -+ if (!gjs_parse_args(context, "getgid", "", argc, argv)) -+ return JS_FALSE; -+ rval = INT_TO_JSVAL(getgid()); -+ JS_SET_RVAL(context, vp, rval); -+ return JS_TRUE; -+} -+ - JSBool - gjs_js_define_system_stuff(JSContext *context, - JSObject *module) -@@ -97,6 +143,24 @@ gjs_js_define_system_stuff(JSContext *context, - 0, GJS_MODULE_PROP_FLAGS)) - return JS_FALSE; - -+ if (!JS_DefineFunction(context, module, -+ "getpid", -+ (JSNative) gjs_getpid, -+ 0, GJS_MODULE_PROP_FLAGS)) -+ return FALSE; -+ -+ if (!JS_DefineFunction(context, module, -+ "getuid", -+ (JSNative) gjs_getuid, -+ 0, GJS_MODULE_PROP_FLAGS)) -+ return FALSE; -+ -+ if (!JS_DefineFunction(context, module, -+ "getgid", -+ (JSNative) gjs_getgid, -+ 0, GJS_MODULE_PROP_FLAGS)) -+ return FALSE; -+ - return JS_TRUE; - } - --- -1.7.10 diff --git a/gjs.changes b/gjs.changes index 396acd1..46a3405 100644 --- a/gjs.changes +++ b/gjs.changes @@ -1,3 +1,58 @@ +------------------------------------------------------------------- +Tue Sep 4 19:08:07 UTC 2012 - dimstar@opensuse.org + +- Update to version 1.33.10: + + Object: don't access priv->info if it's NULL + + Throw an exception when registering a GType that already exists + + Misc bug fixes. +- Drop gjs-avoid_crash.patch: fixed upstream. + +------------------------------------------------------------------- +Mon Aug 27 18:13:21 UTC 2012 - dimstar@opensuse.org + +- Add gjs-avoid_crash.patch: Fix crashes in gnome-shell. + +------------------------------------------------------------------- +Mon Aug 20 17:12:32 UTC 2012 - dimstar@opensuse.org + +- Update to version 1.33.9: + + Fix memory leaks. + + Fix compiler warnings. + +------------------------------------------------------------------- +Tue Jul 17 20:16:59 UTC 2012 - dimstar@opensuse.org + +- Update to version 1.33.4: + + Build: link everything to gio + + Fix memory leaks + + Fix various bugs and issues caught by the Clang static + analyzer. + +------------------------------------------------------------------- +Tue Jun 29 17:39:10 UTC 2012 - dimstar@opensuse.org + +- Update to version 1.33.3: + + Introduce special marshalling for GErrors + + Gio: Split GDBus implementation into helpers + + Gio: modernize DBus bindings + + Trace signal closures from the gobject instead of the context + keep-alive. + +------------------------------------------------------------------- +Fri Jun 29 11:04:30 UTC 2012 - dimstar@opensuse.org + +- Update to version 1.33.2: + + gi: Improve error message when we get a non-function for a + callback + + Fold libgjs-gdbus.so into libgjs.so + + GDBus: fix NotImplementedError message + + system: add getpid(), getuid(), getgid() + + Rename GjsDBus to GjsPrivate + + Fix various memory leaks. +- Rename typelib-1_0-GjsDBus-1_0 subpackage to + typelib-1_0-GjsPrivate-1_0. +- Drop gjs-getpid_uid_gid.patch: fixed upstream. + ------------------------------------------------------------------- Thu Jun 28 21:14:51 UTC 2012 - dimstar@opensuse.org diff --git a/gjs.spec b/gjs.spec index 8f42c9d..f46ff72 100644 --- a/gjs.spec +++ b/gjs.spec @@ -17,24 +17,22 @@ Name: gjs -Version: 1.32.0 +Version: 1.33.10 Release: 0 # FIXME: find out if tapsets should really be in devel package or in main package Summary: JavaScript bindings based on gobject-introspection and Mozilla License: MIT Group: Development/Libraries/GNOME Url: http://live.gnome.org/Gjs -Source: http://download.gnome.org/sources/gjs/1.32/%{name}-%{version}.tar.xz -# PATCH-FIX-UPSTREAM gjs-getpid_uid_gid.patch bnc#751211 bgo#646187 dimstar@opensuse.org -- Add getpid(), getuid() getgid(), taken from upstream git. -Patch0: gjs-getpid_uid_gid.patch +Source: http://download.gnome.org/sources/gjs/1.33/%{name}-%{version}.tar.xz BuildRequires: gcc-c++ BuildRequires: python BuildRequires: readline-devel BuildRequires: systemtap-sdt-devel BuildRequires: pkgconfig(cairo) BuildRequires: pkgconfig(dbus-glib-1) -BuildRequires: pkgconfig(glib-2.0) >= 2.31.0 -BuildRequires: pkgconfig(gobject-introspection-1.0) >= 1.31.22 +BuildRequires: pkgconfig(glib-2.0) >= 2.32.0 +BuildRequires: pkgconfig(gobject-introspection-1.0) >= 1.33.10 BuildRequires: pkgconfig(mozjs185) Requires: libgjs0 = %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -45,7 +43,7 @@ Mozilla SpiderMonkey JavaScript engine. %package -n libgjs0 Summary: JavaScript bindings based on gobject-introspection and Mozilla -Group: Development/Libraries/GNOME +Group: System/Libraries Provides: libgjs-0 = %{version} Obsoletes: libgjs-0 < %{version} @@ -53,11 +51,11 @@ Obsoletes: libgjs-0 < %{version} This module contains JavaScript bindings based on gobject-introspection and the Mozilla SpiderMonkey JavaScript engine. -%package -n typelib-1_0-GjsDBus-1_0 +%package -n typelib-1_0-GjsPrivate-1_0 Summary: GJS DBus utility library -- Introspection bindings -Group: Development/Libraries/GNOME +Group: System/Libraries -%description -n typelib-1_0-GjsDBus-1_0 +%description -n typelib-1_0-GjsPrivate-1_0 This module contains JavaScript bindings based on gobject-introspection and the Mozilla SpiderMonkey JavaScript engine. @@ -65,7 +63,7 @@ Mozilla SpiderMonkey JavaScript engine. Summary: JavaScript bindings based on gobject-introspection and Mozilla Group: Development/Libraries/GNOME Requires: libgjs0 = %{version} -Requires: typelib-1_0-GjsDBus-1_0 +Requires: typelib-1_0-GjsPrivate-1_0 = %{version} # Just a helper provides Provides: gjs-devel = %{version} @@ -75,7 +73,6 @@ Mozilla SpiderMonkey JavaScript engine. %prep %setup -q -%patch0 -p1 %build %configure \ @@ -108,16 +105,17 @@ rm -rf %{buildroot} %{_libdir}/*.so.* %{_libdir}/gjs-1.0/ -%files -n typelib-1_0-GjsDBus-1_0 +%files -n typelib-1_0-GjsPrivate-1_0 %defattr(-,root,root) -%{_libdir}/girepository-1.0/GjsDBus-1.0.typelib +%dir %{_libdir}/gjs +%dir %{_libdir}/gjs/girepository-1.0/ +%{_libdir}/gjs/girepository-1.0/GjsPrivate-1.0.typelib %files -n libgjs-devel %defattr(-,root,root) %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc -%{_datadir}/gir-1.0/GjsDBus-1.0.gir %{_datadir}/systemtap/tapset/*.stp %changelog From e06095cf0161e34850b1236e1202358c506f8bdc32349b77bc54754dca507b6f Mon Sep 17 00:00:00 2001 From: Vincent Untz Date: Fri, 7 Sep 2012 22:40:05 +0000 Subject: [PATCH 2/4] Accepting request 133322 from home:vuntz:branches:GNOME:Factory suggested tweak OBS-URL: https://build.opensuse.org/request/show/133322 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gjs?expand=0&rev=69 --- gjs.changes | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gjs.changes b/gjs.changes index 46a3405..209220c 100644 --- a/gjs.changes +++ b/gjs.changes @@ -2,8 +2,8 @@ Tue Sep 4 19:08:07 UTC 2012 - dimstar@opensuse.org - Update to version 1.33.10: - + Object: don't access priv->info if it's NULL + Throw an exception when registering a GType that already exists + + Object: don't access priv->info if it's NULL + Misc bug fixes. - Drop gjs-avoid_crash.patch: fixed upstream. @@ -16,6 +16,7 @@ Mon Aug 27 18:13:21 UTC 2012 - dimstar@opensuse.org Mon Aug 20 17:12:32 UTC 2012 - dimstar@opensuse.org - Update to version 1.33.9: + + Several changes in the GC system. + Fix memory leaks. + Fix compiler warnings. @@ -47,10 +48,14 @@ Fri Jun 29 11:04:30 UTC 2012 - dimstar@opensuse.org + Fold libgjs-gdbus.so into libgjs.so + GDBus: fix NotImplementedError message + system: add getpid(), getuid(), getgid() + + Handle arrays of filenames + Rename GjsDBus to GjsPrivate + + Import a new "format" module + + Add argument names to our function's toString + + Support Function.prototype.length + Fix various memory leaks. - Rename typelib-1_0-GjsDBus-1_0 subpackage to - typelib-1_0-GjsPrivate-1_0. + typelib-1_0-GjsPrivate-1_0, following upstream change. - Drop gjs-getpid_uid_gid.patch: fixed upstream. ------------------------------------------------------------------- From 6c9e4407f944b8c5aac16ee205f3c4217d1376604a6042127c9967e9e4b161a2 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Fri, 21 Sep 2012 19:23:22 +0000 Subject: [PATCH 3/4] Accepting request 134970 from home:dimstar:branches:GNOME:Factory Update to 1.33.14 OBS-URL: https://build.opensuse.org/request/show/134970 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gjs?expand=0&rev=70 --- gjs-1.33.10.tar.xz | 3 --- gjs-1.33.14.tar.xz | 3 +++ gjs.changes | 8 ++++++++ gjs.spec | 3 ++- 4 files changed, 13 insertions(+), 4 deletions(-) delete mode 100644 gjs-1.33.10.tar.xz create mode 100644 gjs-1.33.14.tar.xz diff --git a/gjs-1.33.10.tar.xz b/gjs-1.33.10.tar.xz deleted file mode 100644 index 419d7c9..0000000 --- a/gjs-1.33.10.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b856e329eac8208e6618d7e5a7176828ffcc8bb8bb72cf13c34d66524d0ecafd -size 473420 diff --git a/gjs-1.33.14.tar.xz b/gjs-1.33.14.tar.xz new file mode 100644 index 0000000..735c4fa --- /dev/null +++ b/gjs-1.33.14.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e7c4865dadf39bb0e87cd3a613d364214c8e90fa5488e12474b1cb1fd7487c96 +size 473472 diff --git a/gjs.changes b/gjs.changes index 209220c..d085ef7 100644 --- a/gjs.changes +++ b/gjs.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue Sep 18 21:03:52 UTC 2012 - dimstar@opensuse.org + +- Update to version 1.33.14: + + Bugs fixed: bgo#684064. +- Add pkgconfig(libffi) BuildRequires: since gjs uses ffi + functions, confiure now checks for libffi presence. + ------------------------------------------------------------------- Tue Sep 4 19:08:07 UTC 2012 - dimstar@opensuse.org diff --git a/gjs.spec b/gjs.spec index f46ff72..075effd 100644 --- a/gjs.spec +++ b/gjs.spec @@ -17,7 +17,7 @@ Name: gjs -Version: 1.33.10 +Version: 1.33.14 Release: 0 # FIXME: find out if tapsets should really be in devel package or in main package Summary: JavaScript bindings based on gobject-introspection and Mozilla @@ -33,6 +33,7 @@ BuildRequires: pkgconfig(cairo) BuildRequires: pkgconfig(dbus-glib-1) BuildRequires: pkgconfig(glib-2.0) >= 2.32.0 BuildRequires: pkgconfig(gobject-introspection-1.0) >= 1.33.10 +BuildRequires: pkgconfig(libffi) BuildRequires: pkgconfig(mozjs185) Requires: libgjs0 = %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build From 8564f9c0d45dadc30b1246d719e59bbae56164272865bd73dfc7ac8c0a6be89b Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Tue, 25 Sep 2012 20:31:42 +0000 Subject: [PATCH 4/4] Accepting request 135725 from home:dimstar:branches:GNOME:Factory Update to 1.34.0 OBS-URL: https://build.opensuse.org/request/show/135725 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gjs?expand=0&rev=71 --- gjs-1.33.14.tar.xz | 3 --- gjs-1.34.0.tar.xz | 3 +++ gjs.changes | 6 ++++++ gjs.spec | 4 ++-- 4 files changed, 11 insertions(+), 5 deletions(-) delete mode 100644 gjs-1.33.14.tar.xz create mode 100644 gjs-1.34.0.tar.xz diff --git a/gjs-1.33.14.tar.xz b/gjs-1.33.14.tar.xz deleted file mode 100644 index 735c4fa..0000000 --- a/gjs-1.33.14.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e7c4865dadf39bb0e87cd3a613d364214c8e90fa5488e12474b1cb1fd7487c96 -size 473472 diff --git a/gjs-1.34.0.tar.xz b/gjs-1.34.0.tar.xz new file mode 100644 index 0000000..4460a69 --- /dev/null +++ b/gjs-1.34.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3d62c717a0522a36c6faa1eb021872255e3cd285a72786afe23b7cca2e3084cb +size 474004 diff --git a/gjs.changes b/gjs.changes index d085ef7..933c435 100644 --- a/gjs.changes +++ b/gjs.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Sep 24 18:54:41 UTC 2012 - dimstar@opensuse.org + +- Update to version 1.34.0: + + stack: Fix gjs_dumpstack (bgo#683992). + ------------------------------------------------------------------- Tue Sep 18 21:03:52 UTC 2012 - dimstar@opensuse.org diff --git a/gjs.spec b/gjs.spec index 075effd..ad58af1 100644 --- a/gjs.spec +++ b/gjs.spec @@ -17,14 +17,14 @@ Name: gjs -Version: 1.33.14 +Version: 1.34.0 Release: 0 # FIXME: find out if tapsets should really be in devel package or in main package Summary: JavaScript bindings based on gobject-introspection and Mozilla License: MIT Group: Development/Libraries/GNOME Url: http://live.gnome.org/Gjs -Source: http://download.gnome.org/sources/gjs/1.33/%{name}-%{version}.tar.xz +Source: http://download.gnome.org/sources/gjs/1.34/%{name}-%{version}.tar.xz BuildRequires: gcc-c++ BuildRequires: python BuildRequires: readline-devel