Package: gjs / 1.32.0-5

Metadata

Package Version Patches format
gjs 1.32.0-5 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0001 Fold libgjs gdbus.so into libgjs.so.patch | (download)

Makefile-gjs-dbus.am | 22 1 + 21 - 0 !
Makefile.am | 22 17 + 5 - 0 !
gjs/context.c | 6 5 + 1 - 0 !
3 files changed, 23 insertions(+), 27 deletions(-)

 [patch] fold libgjs-gdbus.so into libgjs.so

There's no strong reason to have it be a separate shared library,
and having private shared libraries in the main $(libdir) is
frowned upon.

We should also install Gjs-DBus.typelib into a package-private
typelib directory.  Fortunately, gjs_context_constructor() already
had the code to push PKGLIBDIR into the girepository search path.

https://bugzilla.gnome.org/show_bug.cgi?id=674756

02_gerror_class.patch | (download)

Makefile.am | 6 4 + 2 - 0 !
gi/arg.c | 41 37 + 4 - 0 !
gi/enumeration.c | 62 38 + 24 - 0 !
gi/enumeration.h | 3 3 + 0 - 0 !
gi/function.c | 15 9 + 6 - 0 !
gi/gerror.c | 589 589 + 0 - 0 !
gi/gerror.h | 53 53 + 0 - 0 !
gi/repo.c | 8 8 + 0 - 0 !
gi/value.c | 18 17 + 1 - 0 !
gjs/jsapi-util-error.c | 73 23 + 50 - 0 !
gjs/mem.c | 2 2 + 0 - 0 !
gjs/mem.h | 1 1 + 0 - 0 !
modules/overrides/GLib.js | 5 5 + 0 - 0 !
test/js/testEverythingBasic.js | 29 29 + 0 - 0 !
util/log.c | 3 3 + 0 - 0 !
util/log.h | 3 2 + 1 - 0 !
16 files changed, 823 insertions(+), 88 deletions(-)

 introduce special marshalling for gerrors

Previously GErrors were transformed into plain Error with a custom
message, which removed the code and domain metadata. This commit
introduces a new class hierarchy (derived from GLib.Error) for each
enumeration representing an error domain, and modifies existing
code to throw instances of that when a function fails.

https://bugzilla.gnome.org/show_bug.cgi?id=591480

03_gerror_details.patch | (download)

gi/arg.c | 4 2 + 2 - 0 !
gi/gerror.c | 63 62 + 1 - 0 !
gi/gerror.h | 3 2 + 1 - 0 !
gi/value.c | 2 1 + 1 - 0 !
gjs/context.h | 4 4 + 0 - 0 !
gjs/jsapi-util-error.c | 2 1 + 1 - 0 !
gjs/jsapi-util.c | 36 19 + 17 - 0 !
gjs/stack.c | 73 39 + 34 - 0 !
8 files changed, 130 insertions(+), 57 deletions(-)

 gerror: add stack, filename and linenumber

Similar to native Errors(), GLib.Error is extended to provide debug
information in the form of fileName, lineNumber and stack (obtained
using the JS debug API). At the same time, the existing stack logging
facility is modified to be similar in format to the native one, and
logError is modified to avoid iterating object properties (which
gives an undefined order, and does not include prototype properties)

https://bugzilla.gnome.org/show_bug.cgi?id=591480

04_gjs_dumpstack.patch | (download)

gjs/stack.c | 5 4 + 1 - 0 !
1 file changed, 4 insertions(+), 1 deletion(-)

 stack: fix gjs_dumpstack

We need to iterate the stack here at least once or the while
loop will terminate early.

https://bugzilla.gnome.org/show_bug.cgi?id=683992

05_log_typo.patch | (download)

modules/overrides/Gio.js | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

---
11_revert_abi_breakage.patch | (download)

gi/gerror.c | 5 4 + 1 - 0 !
gjs/context.h | 4 0 + 4 - 0 !
gjs/stack.c | 13 10 + 3 - 0 !
3 files changed, 14 insertions(+), 8 deletions(-)

---