[packages/php-pecl-spidermonkey] Fix build on x86_64 Release 1

baggins baggins at pld-linux.org
Wed Aug 8 11:55:37 CEST 2012


commit b1d675f813e35812398cb689978c81fe5331cbe5
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Aug 8 11:55:20 2012 +0200

    Fix build on x86_64
    Release 1

 lib64.patch                | 11 +++++++++++
 php-pecl-spidermonkey.spec |  6 +++++-
 2 files changed, 16 insertions(+), 1 deletion(-)
---
diff --git a/lib64.patch b/lib64.patch
new file mode 100644
index 0000000..bbe4d94
--- /dev/null
+++ b/lib64.patch
@@ -0,0 +1,11 @@
+--- php-pecl-spidermonkey-1.0.0/spidermonkey-1.0.0/config.m4~	2012-04-19 05:50:36.000000000 +0200
++++ php-pecl-spidermonkey-1.0.0/spidermonkey-1.0.0/config.m4	2012-08-08 11:54:07.552281177 +0200
+@@ -36,7 +36,7 @@
+     done
+     # test for the libname independantely
+     for j in js mozjs mozjs185; do
+-      test -f $i/lib/lib$j.so && SPIDERMONKEY_LIBNAME=$j && break
++      test -f $i/lib64/lib$j.so && SPIDERMONKEY_LIBNAME=$j && break
+     done
+     test -f $i/include/$j/jsapi.h && break
+   done
diff --git a/php-pecl-spidermonkey.spec b/php-pecl-spidermonkey.spec
index 3020d3e..65b315f 100644
--- a/php-pecl-spidermonkey.spec
+++ b/php-pecl-spidermonkey.spec
@@ -4,11 +4,12 @@ Summary:	%{_modname} - Spidermonkey JavaScript engine for PHP
 Summary(pl.UTF-8):	%{_modname} - silnik JavaScript Spidermonkey dla PHP
 Name:		php-pecl-%{_modname}
 Version:	1.0.0
-Release:	0.1
+Release:	1
 License:	PHP 3.01
 Group:		Development/Languages/PHP
 Source0:	http://pecl.php.net/get/%{_modname}-%{version}.tgz
 # Source0-md5:	1a7a4043fa6c86bb7e3cb24e794c284b
+Patch0:		lib64.patch
 URL:		http://pecl.php.net/package/%{_modname}/
 BuildRequires:	js185-devel
 BuildRequires:	php-devel >= 4:5.3.0
@@ -32,6 +33,9 @@ To rozszerzenie ma w PECL status: %{_status}.
 
 %prep
 %setup -q -c
+%ifarch %{x8664}
+%patch0 -p1
+%endif
 mv %{_modname}-%{version}/* .
 
 %build


More information about the pld-cvs-commit mailing list