commit php5-pecl-v8js for openSUSE:Factory
Hello community, here is the log from the commit of package php5-pecl-v8js for openSUSE:Factory checked in at 2013-09-25 17:19:10 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/php5-pecl-v8js (Old) and /work/SRC/openSUSE:Factory/.php5-pecl-v8js.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "php5-pecl-v8js" Changes: -------- --- /work/SRC/openSUSE:Factory/php5-pecl-v8js/php5-pecl-v8js.changes 2012-10-03 09:22:58.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.php5-pecl-v8js.new/php5-pecl-v8js.changes 2013-09-25 17:19:11.000000000 +0200 @@ -1,0 +2,19 @@ +Mon Sep 23 18:50:28 UTC 2013 - thomas.worm@thomas-worm.de + +- Added compatibility to current v8 engine by adding + CXXFLAGS="-DV8_USE_UNSAFE_HANDLES=1" configure flag + for higher SUSE versions. + +------------------------------------------------------------------- +Tue Sep 3 16:57:05 UTC 2013 - dvaleev@suse.com + +- set Exclusive arch to architectures where v8 is available + +------------------------------------------------------------------- +Fri May 24 21:19:34 UTC 2013 - thomas.worm@thomas-worm.de + +- Added patches to to work with v8 version 3.18.0. + * v8js-alignedpointers.patch - Thomas Worm <thomas.worm@thomas-worm.de> + * v8js-deprecated.patch - Thomas Worm <thomas.worm@thomas-worm.de> + +------------------------------------------------------------------- New: ---- v8js-alignedpointers.patch v8js-deprecated.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ php5-pecl-v8js.spec ++++++ --- /var/tmp/diff_new_pack.4CAYRe/_old 2013-09-25 17:19:12.000000000 +0200 +++ /var/tmp/diff_new_pack.4CAYRe/_new 2013-09-25 17:19:12.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package php5-pecl-v8js # -# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2012 Thomas Worm <thomas.worm@thomas-worm.de> # # All modifications and additions to the file contributed by third parties @@ -15,22 +15,35 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild + Name: php5-pecl-v8js Version: 0.1.3 Release: 0 Summary: V8 Javascript Engine for PHP +License: PHP-3.0 Group: Development/Libraries/PHP -License: PHP-3.0 -URL: http://pecl.php.net/package/v8js +Url: http://pecl.php.net/package/v8js Source0: http://pecl.php.net/get/v8js-%{version}.tgz +# PATCH-FIX-UPSTREAM v8js-alignedpointers.patch - Patch for fixing pointer alignment - Thomas Worm <thomas.worm@thomas-worm.de> +Patch1: v8js-alignedpointers.patch +# PATCH-FIX-UPSTREAM v8js-deprecated.patch - Patch for fixing deprecated cast - Thomas Worm <thomas.worm@thomas-worm.de> +Patch2: v8js-deprecated.patch + BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: php5 php5-devel v8 v8-devel libtool gcc gcc-c++ -Requires: php5 v8 +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: libtool +BuildRequires: php5 +BuildRequires: php5-devel +BuildRequires: v8 +BuildRequires: v8-devel +Requires: php5 +Requires: v8 # BuildArch: noarch +ExclusiveArch: %{ix86} x86_64 %arm %define extension_dir %{_libdir}/php5/extensions %define php_sysconf %{_sysconfdir}/php5 @@ -41,10 +54,18 @@ %prep %setup -q -n %{extension_name}-%{version} +%if 0%{?suse_version} > 1220 +%patch1 +%endif +%patch2 %build %{_bindir}/phpize +%if 0%{?suse_version} > 1220 +%configure CXXFLAGS="-DV8_USE_UNSAFE_HANDLES=1" --with-%{extension_name} +%else %configure --with-%{extension_name} +%endif %{__make} %check ++++++ _service ++++++ --- /var/tmp/diff_new_pack.4CAYRe/_old 2013-09-25 17:19:12.000000000 +0200 +++ /var/tmp/diff_new_pack.4CAYRe/_new 2013-09-25 17:19:12.000000000 +0200 @@ -1,3 +1,5 @@ +<?xml version="1.0"?> <services> <service name="download_files" mode="localonly" /> </services> + ++++++ v8js-alignedpointers.patch ++++++ diff -rupN v8js-0.1.3.orig/v8js_convert.cc v8js-0.1.3/v8js_convert.cc --- v8js_convert.cc 2012-06-13 04:40:04.000000000 +0200 +++ v8js_convert.cc 2013-05-24 23:03:26.000000000 +0200 @@ -36,7 +36,7 @@ extern "C" { static v8::Handle<v8::Value> php_v8js_php_callback(const v8::Arguments &args) /* {{{ */ { v8::Handle<v8::Value> return_value; - zval *value = reinterpret_cast<zval *>(args.This()->GetPointerFromInternalField(0)); + zval *value = reinterpret_cast<zval *>(args.This()->GetAlignedPointerFromInternalField(0)); zend_function *method_ptr; zend_fcall_info fci; zend_fcall_info_cache fcc; @@ -383,7 +383,7 @@ static v8::Handle<v8::Value> php_v8js_ha newobj->SetHiddenValue(V8JS_SYM(ZEND_ISSET_FUNC_NAME), PHP_V8JS_CALLBACK(isset_ptr)); } } - newobj->SetPointerInInternalField(0, (void *) value); + newobj->SetAlignedPointerInInternalField(0, (void *) value); } else { new_tpl->SetClassName(V8JS_SYM("Array")); newobj = new_tpl->InstanceTemplate()->NewInstance(); ++++++ v8js-deprecated.patch ++++++ diff -rupN v8js-0.1.3.orig/v8js_convert.cc v8js-0.1.3/v8js_convert.cc --- v8js_convert.cc 2012-06-13 04:40:04.000000000 +0200 +++ v8js_convert.cc 2013-05-24 23:14:38.000000000 +0200 @@ -49,7 +49,7 @@ static v8::Handle<v8::Value> php_v8js_ph /* Set method_ptr from v8::External or fetch the closure invoker */ if (!args.Data().IsEmpty() && args.Data()->IsExternal()) { - method_ptr = static_cast<zend_function *>(v8::External::Unwrap(args.Data())); + method_ptr = static_cast<zend_function *>(v8::External::Cast(*(args.Data()))->Value()); } else { method_ptr = zend_get_closure_invoke_method(value TSRMLS_CC); } -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@hilbert.suse.de