Commit 059f2625 authored by Tim Lunn's avatar Tim Lunn

New upstream version 1.52.1

parents f04d27d2 73751baa
This diff is collapsed.
......@@ -101,7 +101,7 @@ minijasmine_LDADD = $(GJS_LIBS) libgjs.la
### TEST GIRS ##########################################################
TEST_INTROSPECTION_GIRS =
common_test_ldflags = -avoid-version
common_test_ldflags = $(AM_LDFLAGS) -avoid-version
common_test_libadd = $(GJS_LIBS)
if !BUILDOPT_INSTALL_TESTS
......@@ -199,7 +199,6 @@ common_jstests_files = \
installed-tests/js/testGIMarshalling.js \
installed-tests/js/testGLib.js \
installed-tests/js/testGObjectClass.js \
installed-tests/js/testGObjectDestructionAccess.js \
installed-tests/js/testGObjectInterface.js \
installed-tests/js/testGTypeClass.js \
installed-tests/js/testGio.js \
......@@ -224,9 +223,10 @@ jasmine_tests += installed-tests/js/testGDBus.js
endif
if ENABLE_GTK
jasmine_tests += \
installed-tests/js/testGtk.js \
installed-tests/js/testLegacyGtk.js \
jasmine_tests += \
installed-tests/js/testGtk.js \
installed-tests/js/testGObjectDestructionAccess.js \
installed-tests/js/testLegacyGtk.js \
$(NULL)
endif
......@@ -234,14 +234,15 @@ if ENABLE_CAIRO
jasmine_tests += installed-tests/js/testCairo.js
endif
EXTRA_DIST += \
$(common_jstests_files) \
installed-tests/js/testCairo.js \
installed-tests/js/testGtk.js \
installed-tests/js/testGDBus.js \
installed-tests/js/testLegacyGtk.js \
installed-tests/extra/gjs.supp \
installed-tests/extra/lsan.supp \
EXTRA_DIST += \
$(common_jstests_files) \
installed-tests/js/testCairo.js \
installed-tests/js/testGtk.js \
installed-tests/js/testGDBus.js \
installed-tests/js/testGObjectDestructionAccess.js \
installed-tests/js/testLegacyGtk.js \
installed-tests/extra/gjs.supp \
installed-tests/extra/lsan.supp \
$(NULL)
### TEST EXECUTION #####################################################
......
......@@ -17,9 +17,10 @@ check_LTLIBRARIES =
INTROSPECTION_GIRS =
## ACLOCAL_AMFLAGS can be removed for Automake 1.13
ACLOCAL_AMFLAGS = -I m4
AM_CXXFLAGS = $(WARN_CXXFLAGS) $(CODE_COVERAGE_CFLAGS)
AM_CFLAGS = $(WARN_CFLAGS) $(CODE_COVERAGE_CFLAGS)
AM_CXXFLAGS = $(WARN_CXXFLAGS) $(CODE_COVERAGE_CXXFLAGS)
AM_CPPFLAGS = -DG_LOG_DOMAIN=\"Gjs\" $(CODE_COVERAGE_CPPFLAGS)
AM_LDFLAGS = $(WARN_LDFLAGS) $(CODE_COVERAGE_LDFLAGS)
AM_LDFLAGS = $(WARN_LDFLAGS) $(CODE_COVERAGE_LIBS)
MAINTAINERCLEANFILES = \
$(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
$(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \
......@@ -66,6 +67,7 @@ libgjs_la_CPPFLAGS = \
-I$(top_srcdir)/gi \
-DGJS_COMPILATION
libgjs_la_LDFLAGS = \
$(AM_LDFLAGS) \
-export-symbols-regex "^[^_]" \
-version-info 0:0:0 \
$(NO_UNDEFINED_FLAG) \
......@@ -85,6 +87,7 @@ libgjs_la_SOURCES = $(gjs_srcs)
if ENABLE_PROFILER
libgjs_la_SOURCES += $(gjs_sysprof_srcs)
libgjs_la_LIBADD += $(LIB_TIMER_TIME)
endif
# Also, these files used to be a separate library
......@@ -152,7 +155,7 @@ gjs_console_CPPFLAGS = \
gjs_console_LDADD = \
$(GJS_CONSOLE_LIBS) \
libgjs.la
gjs_console_LDFLAGS = -rdynamic
gjs_console_LDFLAGS = $(AM_LDFLAGS) -rdynamic
gjs_console_SOURCES = $(gjs_console_srcs)
install-exec-hook:
......@@ -198,6 +201,7 @@ EXTRA_DIST += \
TAG_PREFIX=GJS_
COMPRESSION=.bz2
DISTCLEANFILES=gjs-*.syscap installed-tests/scripts/*.test installed-tests/js/*.test
PACKAGE=@PACKAGE@
VERSION=@VERSION@
......
This diff is collapsed.
Version 1.52.1
--------------
- This version has more changes than would normally be expected from a stable
version. The intention of 1.52.1 is to deliver a version that runs cleaner
under performance tools, in time for the upcoming GNOME Shell performance
hackfest. We also wanted to deliver a stable CI pipeline before branching
GNOME 3.28 off of master.
- Claudio André's work on the CI pipeline deserves a spotlight. We now have
test jobs that run linters, sanitizers, Valgrind, and more; the tests are
run on up-to-date Docker images; and the reliability errors that were plaguing
the test runs are solved.
- In addition to System.dumpHeap(), you can now dump a heap from a running
Javascript program by starting it with the environment variable
GJS_DEBUG_HEAP_OUTPUT=some_name, and sending it SIGUSR1.
- heapgraph.py is a tool in the repository (not installed in distributions) for
analyzing and graphing heap dumps, to aid with tracking down memory leaks.
- The linter CI jobs will compare your branch against GNOME/gjs@master, and fail
if your branch added any new linter errors. There may be false positives, and
the rules configuration is not perfect. If that's the case on your merge
request, you can skip the appropriate linter job by adding the text
"[skip (linter)]" in your commit message: e.g., "[skip cpplint]".
- We welcomed first merge requests from several new contributors for this
release.
- Closed bugs and merge requests:
* Crash when resolving promises if exception is pending [#18, !95, Philip
Chimento]
* gjs_byte_array_get_proto(JSContext*): assertion failed: (((void) "gjs_"
"byte_array" "_define_proto() must be called before " "gjs_" "byte_array"
"_get_proto()", !v_proto.isUndefined())) [#39, !92, Philip Chimento]
* Tools for examining heap graph [#116, !61, !118, Andy Holmes, Tommi
Komulainen, Philip Chimento]
* Run analysis tools to prepare for release [#120, !88, Philip Chimento]
* Add support for passing flags to Gio.DBusProxy in makeProxyWrapper [#122,
!81, Florian Müllner]
* Cannot instantiate Cairo.Context [#126, !91, Philip Chimento]
* GISCAN GjsPrivate-1.0.gir fails [#128, !90, Philip Chimento]
* Invalid read of g_object_finalized flag [#129, !117, Philip Chimento]
* Fix race condition in coverage file test [#130, !99, Philip Chimento]
* Linter jobs should only fail if new lint errors were added [#133, !94,
Philip Chimento]
* Disable all tests that depends on X if there is no XServer [#135, !109,
Claudio André]
* Pick a different C++ linter [#137, !102, Philip Chimento]
* Create a CI test that builds using autotools only [!74, Claudio André]
* CI: enable ASAN [!89, Claudio André]
* CI: disable static analysis jobs using the commit message [!93, Claudio
André]
* profiler: Don't assume layout of struct sigaction [!96, James Cowgill]
* Valgrind [!98, Claudio André]
* Robustness of CI [!103, Claudio André]
* CI: make a separate job for installed tests [!106, Claudio André]
* Corrected Markdown format and added links to JHBuild in setup guide for GJS
[!111, Avi Zajac]
* Update tweener.js -- 48 eslint errors fixed [!112, Karen Medina]
* Various maintenance [!100, !104, !105, !107, !110, !113, !116, Claudio
André, Philip Chimento]
Version 1.52.0
--------------
- No changes from 1.51.92 except for the continuous integration configuration.
- Closed bugs and merge requests:
* Various CI improvements [!84, !85, !86, !87, Claudio André]
Version 1.51.92
---------------
- Closed bugs and merge requests:
* abort if we are called back in a non-main thread [#75, !72, Philip Chimento]
* 3.27.91 build failure on debian/Ubuntu [#122, !73, Tim Lunn]
* Analyze project code quality with Code Climate inside CI [#10, !77, Claudio
André]
* Various CI improvements [!75, !76, !79, !80, !82, !83, Claudio André]
Version 1.51.91
---------------
......
[![Build Status](https://gitlab.gnome.org/GNOME/gjs/badges/master/build.svg)](https://gitlab.gnome.org/GNOME/gjs/pipelines)
[![coverage report](https://gitlab.gnome.org/GNOME/gjs/badges/master/coverage.svg)](https://gitlab.gnome.org/GNOME/gjs/-/jobs)
[![coverage report](https://gitlab.gnome.org/GNOME/gjs/badges/master/coverage.svg)](https://gnome.pages.gitlab.gnome.org/gjs/)
[![License](https://img.shields.io/badge/License-LGPL%20v2%2B-blue.svg)](https://gitlab.gnome.org/GNOME/gjs/blob/master/COPYING)
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://gitlab.gnome.org/GNOME/gjs/blob/master/COPYING)
......
This diff is collapsed.
#! /bin/sh
# Wrapper for compilers which do not understand '-c -o'.
scriptversion=2012-10-14.11; # UTC
scriptversion=2018-03-07.03; # UTC
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
# Copyright (C) 1999-2018 Free Software Foundation, Inc.
# Written by Tom Tromey <tromey@cygnus.com>.
#
# This program is free software; you can redistribute it and/or modify
......@@ -17,7 +17,7 @@ scriptversion=2012-10-14.11; # UTC
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <https://www.gnu.org/licenses/>.
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
......@@ -255,7 +255,8 @@ EOF
echo "compile $scriptversion"
exit $?
;;
cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \
icl | *[/\\]icl | icl.exe | *[/\\]icl.exe )
func_cl_wrapper "$@" # Doesn't return...
;;
esac
......@@ -339,9 +340,9 @@ exit $ret
# Local Variables:
# mode: shell-script
# sh-indentation: 2
# eval: (add-hook 'write-file-hooks 'time-stamp)
# eval: (add-hook 'before-save-hook 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-time-zone: "UTC"
# time-stamp-time-zone: "UTC0"
# time-stamp-end: "; # UTC"
# End:
This diff is collapsed.
......@@ -63,8 +63,7 @@
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define to the sub-directory in which libtool stores uninstalled libraries.
*/
/* Define to the sub-directory where libtool stores uninstalled libraries. */
#undef LT_OBJDIR
/* Name of package */
......
This diff is collapsed.
This diff is collapsed.
......@@ -2,8 +2,8 @@
# Process this file with autoconf to produce a configure script.
m4_define(pkg_major_version, 1)
m4_define(pkg_minor_version, 51)
m4_define(pkg_micro_version, 91)
m4_define(pkg_minor_version, 52)
m4_define(pkg_micro_version, 1)
m4_define(pkg_version, pkg_major_version.pkg_minor_version.pkg_micro_version)
m4_define(pkg_int_version, (pkg_major_version * 100 + pkg_minor_version) * 100 + pkg_micro_version)
......@@ -78,6 +78,48 @@ PKG_CHECK_MODULES([GJS_GDBUS], [$gjs_base_packages])
PKG_CHECK_MODULES([GJS_CONSOLE], [$gjs_base_packages])
PKG_CHECK_MODULES([GJSTESTS], [$gjstests_packages])
CPPFLAGS_save="$CPPFLAGS"
CPPFLAGS="$GJS_CFLAGS"
LIBS_save="$LIBS"
LIBS="$GJS_LIBS"
dnl If SpiderMonkey was compiled with --enable-debug, then we need to define
dnl -DDEBUG before including js-config.h.
AC_MSG_CHECKING([whether SpiderMonkey was configured with --enable-debug])
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
#include <js-config.h>
#ifdef JS_DEBUG
#error debug yes, if we didn't already error out due to DEBUG not being defined
#endif
]])], [
AC_MSG_RESULT([no])
GJS_DEBUG_DEF=
], [
AC_DEFINE([HAVE_DEBUG_SPIDERMONKEY], [1],
[Define to 1 if SpiderMonkey was compiled with --enable-debug])
GJS_DEBUG_DEF='#define DEBUG 1'
AC_MSG_RESULT([yes])
])
# Sanity check for SpiderMonkey
AC_MSG_CHECKING([if a minimal SpiderMonkey program compiles and runs])
AC_RUN_IFELSE([AC_LANG_PROGRAM([
$GJS_DEBUG_DEF
#include <js/Initialization.h>
], [
if (!JS_Init()) exit(1);
JS_ShutDown();
])],
[AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no])
AC_MSG_ERROR([Check if you are using the recommended configuration for
SpiderMonkey. See the file org.gnome.Sdk.json.in in
https://gitlab.gnome.org/GNOME/gnome-sdk-images])],
[AC_MSG_RESULT([cross-compiling, unable to determine])])
LIBS="$LIBS_save"
CPPFLAGS="$CPPFLAGS_save"
# Optional cairo dep (enabled by default)
AC_ARG_WITH(cairo,
[AS_HELP_STRING([--without-cairo], [Don't build cairo module])])
......@@ -205,23 +247,6 @@ AC_ARG_ENABLE([Bsymbolic],
AS_IF([test "x$enable_Bsymbolic" != "xno"],
[AX_APPEND_LINK_FLAGS([-Bsymbolic-functions])])
dnl If SpiderMonkey was compiled with --enable-debug, then we need to define
dnl -DDEBUG before including js-config.h.
AC_MSG_CHECKING([whether SpiderMonkey was configured with --enable-debug])
CPPFLAGS_save="$CPPFLAGS"
CPPFLAGS="$GJS_CFLAGS"
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
#include <js-config.h>
#ifdef JS_DEBUG
#error debug yes, if we didn't already error out due to DEBUG not being defined
#endif
]])], [AC_MSG_RESULT([no])], [
AC_DEFINE([HAVE_DEBUG_SPIDERMONKEY], [1],
[Define to 1 if SpiderMonkey was compiled with --enable-debug])
AC_MSG_RESULT([yes])
])
CPPFLAGS="$CPPFLAGS_save"
dnl
dnl Check for -fsanitize=address and -fsanitize=undefined support
dnl
......@@ -230,7 +255,8 @@ AC_ARG_ENABLE([asan],
AS_IF([test "x$enable_asan" = "xyes"], [
AX_CHECK_COMPILE_FLAG([-fsanitize=address -fno-omit-frame-pointer -g], [
AX_CHECK_LINK_FLAG([-fsanitize=address], [SAN_FLAGS="-fsanitize=address"])
AX_CHECK_LINK_FLAG([-fsanitize=address])
SAN_FLAGS="-fsanitize=address"
])
])
......@@ -239,8 +265,8 @@ AC_ARG_ENABLE([ubsan],
AS_IF([test "x$enable_ubsan" = "xyes"], [
AX_CHECK_COMPILE_FLAG([-fsanitize=undefined -fno-sanitize=vptr -fno-omit-frame-pointer -g], [
AX_CHECK_LINK_FLAG([-fsanitize=undefined -fno-sanitize=vptr],
[SAN_FLAGS="$SAN_FLAGS -fsanitize=undefined -fno-sanitize=vptr"])
AX_CHECK_LINK_FLAG([-fsanitize=undefined -fno-sanitize=vptr])
SAN_FLAGS="$SAN_FLAGS -fsanitize=undefined -fno-sanitize=vptr"
])
])
......
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
scriptversion=2013-05-30.07; # UTC
scriptversion=2018-03-07.03; # UTC
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
# Copyright (C) 1999-2018 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
......@@ -16,7 +16,7 @@ scriptversion=2013-05-30.07; # UTC
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <https://www.gnu.org/licenses/>.
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
......@@ -783,9 +783,9 @@ exit 0
# Local Variables:
# mode: shell-script
# sh-indentation: 2
# eval: (add-hook 'write-file-hooks 'time-stamp)
# eval: (add-hook 'before-save-hook 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-time-zone: "UTC"
# time-stamp-time-zone: "UTC0"
# time-stamp-end: "; # UTC"
# End:
......@@ -3,7 +3,7 @@
## Setting up ##
For the time being, we recommend using JHBuild to develop GJS.
Follow the [instructions from GNOME][jhbuild].
Follow the [instructions from GNOME](https://wiki.gnome.org/HowDoI/Jhbuild) for [JHBuild](https://git.gnome.org/browse/jhbuild/).
Even if your system includes a development package for mozjs, we
recommend building it on JHBuild so that you can enable the debugging
......@@ -133,4 +133,4 @@ xdg-open ~/.cache/jhbuild/build/gjs/gjs-X.Y.Z-coverage/index.html
(replace `X.Y.Z` with the version number, e.g. `1.48.0`)
[jhbuild] https://wiki.gnome.org/HowDoI/Jhbuild
[JHBuild](https://wiki.gnome.org/HowDoI/Jhbuild)
\ No newline at end of file
......@@ -31,7 +31,7 @@ function onDeleteEvent(widget, event) {
// Returning true gives you a chance to pop up 'are you sure you want to
// quit?' type dialogs.
return false;
};
}
// When the window is given the "delete_event" signal (this is given by the
// window manager, usually by the "close" option, or on the titlebar), we ask
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
File added
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment