[packages/gjs] - updated to 1.56.2 - added noc++17 patch (stick to C++ 14 features as specified by docs; require ju

qboosh qboosh at pld-linux.org
Sat May 25 14:53:32 CEST 2019


commit c4adf36e336c9c9000a1df9dad0684ecc74e4bd6
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat May 25 14:54:15 2019 +0200

    - updated to 1.56.2
    - added noc++17 patch (stick to C++ 14 features as specified by docs; require just gcc 5)

 gjs-noc++17.patch | 12 ++++++++++++
 gjs.spec          | 22 ++++++++++++----------
 2 files changed, 24 insertions(+), 10 deletions(-)
---
diff --git a/gjs.spec b/gjs.spec
index 5a59112..ba9efd0 100644
--- a/gjs.spec
+++ b/gjs.spec
@@ -5,29 +5,30 @@
 Summary:	JavaScript bindings for GNOME
 Summary(pl.UTF-8):	Wiązania JavaScriptu dla GNOME
 Name:		gjs
-Version:	1.54.3
+Version:	1.56.2
 Release:	1
 License:	MIT and (MPL v1.1 or GPL v2+ or LGPL v2+)
 Group:		Libraries
-Source0:	http://ftp.gnome.org/pub/GNOME/sources/gjs/1.54/%{name}-%{version}.tar.xz
-# Source0-md5:	387dd08d40d4f1f1ffec9546b52e7619
-URL:		http://live.gnome.org/Gjs
+Source0:	http://ftp.gnome.org/pub/GNOME/sources/gjs/1.56/%{name}-%{version}.tar.xz
+# Source0-md5:	6744153c56e958ad496021062e21823f
+Patch0:		%{name}-noc++17.patch
+URL:		https://wiki.gnome.org/Projects/Gjs
 BuildRequires:	autoconf >= 2.64
 BuildRequires:	automake >= 1:1.11.1
 BuildRequires:	cairo-devel
 BuildRequires:	cairo-gobject-devel
 BuildRequires:	gettext-tools
-BuildRequires:	glib2-devel >= 1:2.50.0
+BuildRequires:	glib2-devel >= 1:2.54.0
 BuildRequires:	gobject-introspection-devel >= 1.41.4
 BuildRequires:	gtk+3-devel >= 3.20
 BuildRequires:	libffi-devel
-BuildRequires:	libstdc++-devel >= 6:4.7
+BuildRequires:	libstdc++-devel >= 6:5.0
 BuildRequires:	libtool >= 2:2.2.0
-BuildRequires:	mozjs60-devel
+BuildRequires:	mozjs60-devel >= 60
 BuildRequires:	pkgconfig
 BuildRequires:	readline-devel
 %{?with_systemtap:BuildRequires:	systemtap-sdt-devel}
-Requires:	glib2 >= 1:2.50.0
+Requires:	glib2 >= 1:2.54.0
 Requires:	gtk+3 >= 3.20
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -47,11 +48,11 @@ Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
 Requires:	cairo-devel
 Requires:	cairo-gobject-devel
-Requires:	glib2-devel >= 1:2.50.0
+Requires:	glib2-devel >= 1:2.54.0
 Requires:	gobject-introspection-devel >= 1.41.4
 Requires:	gtk+3-devel >= 3.20
 Requires:	libffi-devel
-Requires:	mozjs60-devel
+Requires:	mozjs60-devel >= 60
 
 %description devel
 Header files for gjs library.
@@ -74,6 +75,7 @@ Sondy systemtap/dtrace dla gjs.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__libtoolize}
diff --git a/gjs-noc++17.patch b/gjs-noc++17.patch
new file mode 100644
index 0000000..2c75fe3
--- /dev/null
+++ b/gjs-noc++17.patch
@@ -0,0 +1,12 @@
+Fixes build in C++14 mode (insert(pair&&) is C++17)
+--- gjs-1.56.2/gi/gtype.cpp.orig	2019-05-08 01:34:52.000000000 +0200
++++ gjs-1.56.2/gi/gtype.cpp	2019-05-24 15:52:21.984123467 +0200
+@@ -172,7 +172,7 @@
+     /* Saving a reference to the wrapper pointer, as heap_wrapper will be
+      * nullified by std::move */
+     JSObject *gtype_wrapper = *heap_wrapper;
+-    weak_pointer_list.insert({gtype, std::move(heap_wrapper)});
++    weak_pointer_list.emplace(gtype, std::move(heap_wrapper));
+ 
+     return gtype_wrapper;
+ }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gjs.git/commitdiff/c4adf36e336c9c9000a1df9dad0684ecc74e4bd6



More information about the pld-cvs-commit mailing list