From 6c5c0cd49f1dda439b70309dbbd4e08b3ae9245b Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Mon, 21 Feb 2022 17:22:13 +0100 Subject: [PATCH] gjs: update to 1.70.1. --- srcpkgs/gjs/patches/libatomic.patch | 62 ----------------------------- srcpkgs/gjs/template | 20 +++++++--- 2 files changed, 15 insertions(+), 67 deletions(-) delete mode 100644 srcpkgs/gjs/patches/libatomic.patch diff --git a/srcpkgs/gjs/patches/libatomic.patch b/srcpkgs/gjs/patches/libatomic.patch deleted file mode 100644 index 4c439d6f809a..000000000000 --- a/srcpkgs/gjs/patches/libatomic.patch +++ /dev/null @@ -1,62 +0,0 @@ -From d68601062729e7cc35dca2ffce84c6d93703a7bf Mon Sep 17 00:00:00 2001 -From: Simon McVittie -Date: Fri, 8 Oct 2021 11:42:49 +0100 -Subject: [PATCH] build: Link with libatomic if necessary - -The implementation of atomic operations in gcc uses atomic opcodes if -supported, but falls back to a library implementation if necessary. -Link that library on architectures where 64-bit atomic operations need it, -such as Debian armel (ARMv5 EABI softfloat), mipsel and powerpc. - -Resolves: https://gitlab.gnome.org/GNOME/gjs/-/issues/442 -Signed-off-by: Simon McVittie ---- - meson.build | 18 +++++++++++++++++- - 1 file changed, 17 insertions(+), 1 deletion(-) - -diff --git a/meson.build b/meson.build -index e28c4bf9..ed857d7f 100644 ---- a/meson.build -+++ b/meson.build -@@ -109,6 +109,8 @@ endif - - ### Check for required libraries ############################################### - -+null_dep = dependency('', required : false) -+ - # Note: Notify GNOME release team when adding or updating dependencies - glib_required_version = '>= 2.66.0' - glib = dependency('glib-2.0', version: glib_required_version, -@@ -180,6 +182,20 @@ features.''') - endif - endif - -+if cxx.links(''' -+#include -+ -+int main(void) -+{ -+ std::atomic_int64_t value = ATOMIC_VAR_INIT(0); -+ return value.load(); -+} -+''', name: '64-bit atomics built-in') -+ libatomic = null_dep -+else -+ libatomic = cc.find_library('atomic', required: false) -+endif -+ - build_profiler = sysprof_capture.found() and not get_option('profiler').disabled() - profiler_deps = [sysprof_capture] - if build_profiler and not cxx.has_function('timer_settime') -@@ -458,7 +474,7 @@ module_resource_srcs = gnome.compile_resources('js-resources', - c_name: 'js_resources') - - libgjs_dependencies = [glib, gobject, gthread, gio, gi, ffi, spidermonkey, -- readline] -+ readline, libatomic] - pkg_dependencies = [glib, gobject, gthread, gio, gi, ffi, spidermonkey] - libraries_private = [] - --- -GitLab - diff --git a/srcpkgs/gjs/template b/srcpkgs/gjs/template index 4609094a2159..b028c09437bb 100644 --- a/srcpkgs/gjs/template +++ b/srcpkgs/gjs/template @@ -1,25 +1,35 @@ # Template file for 'gjs' pkgname=gjs -version=1.70.0 +version=1.70.1 revision=1 build_style=meson build_helper="gir qemu" -configure_args="-Dskip_dbus_tests=true -Dskip_gtk_tests=true - -Dprofiler=disabled -Dinstalled_tests=false" # Disable tests because they need dbus, X and GTK. +configure_args="-Dprofiler=disabled -Dinstalled_tests=false" hostmakedepends="glib-devel pkg-config" makedepends="dbus-glib-devel mozjs78-devel readline-devel sysprof-devel" +checkdepends="xvfb-run" short_desc="Mozilla-based javascript bindings for the GNOME platform" maintainer="Enno Boland " license="MIT, LGPL-2.0-or-later" -homepage="https://wiki.gnome.org/action/show/Projects/Gjs" +homepage="https://gitlab.gnome.org/GNOME/gjs" changelog="https://gitlab.gnome.org/GNOME/gjs/blob/gnome-41/NEWS" distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz" -checksum=4b0629341a318a02374e113ab97f9a9f3325423269fc1e0b043a5ffb01861c5f +checksum=bbdc0eec7cf25fbc534769f6a1fb2c7a18e17b871efdb0ca58e9abf08b28003f if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then makedepends+=" libatomic-devel" fi +if [ "$XBPS_CHECK_PKGS" ]; then + hostmakedepends+=" dbus" +else + configure_args+=" -Dskip_dbus_tests=true -Dskip_gtk_tests=true" +fi + +do_check() { + xvfb-run ninja -C build test +} + post_install() { vlicense COPYING }