[packages/hiphop-php] use "Tabasco" 30-Sep-2013 snapshot
glen
glen at pld-linux.org
Sun Oct 6 19:42:36 CEST 2013
commit 1c0ae0005649314a73887dc0de09001c66e34030
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Oct 6 20:40:36 2013 +0300
use "Tabasco" 30-Sep-2013 snapshot
gcc4.8.patch | 16 ----------------
gd-syms.patch | 29 -----------------------------
hiphop-php.spec | 16 ++++++++--------
3 files changed, 8 insertions(+), 53 deletions(-)
---
diff --git a/hiphop-php.spec b/hiphop-php.spec
index 7b90770..8f8e075 100644
--- a/hiphop-php.spec
+++ b/hiphop-php.spec
@@ -10,14 +10,16 @@
# make[2]: *** [src/hphp/hphp] Error 139
# relinking succeeds, but resulting binary segfaults as well:
# 0x0000000000b9cc0b in HPHP::Extension::LoadModules(HPHP::Hdf) ()
+%define githash 78394ee
+%define rel 0.1
Summary: Virtual Machine, Runtime, and JIT for PHP
Name: hiphop-php
Version: 2.1.0
-Release: 0.1
+Release: 0.%{githash}.%{rel}
License: PHP 3.01
Group: Development/Languages
-Source0: https://github.com/facebook/hiphop-php/archive/HPHP-%{version}.tar.gz
-# Source0-md5: edd3d8b4371d38286c7c5f0c2582f5e1
+Source0: https://github.com/facebook/hiphop-php/archive/%{githash}/HPHP-%{version}.%{githash}.tar.gz
+# Source0-md5: 81742a0535a6bab906208d3756b206d1
# need fb.changes.patch, which is available for 1.4 only
Source1: http://www.monkey.org/~provos/libevent-1.4.14b-stable.tar.gz
# Source1-md5: a00e037e4d3f9e4fe9893e8a2d27918c
@@ -28,8 +30,6 @@ Patch3: system-xhp.patch
Patch4: system-libafdt.patch
Patch5: system-folly.patch
Patch6: boost-system-category.patch
-Patch7: gcc4.8.patch
-Patch8: gd-syms.patch
URL: http://wiki.github.com/facebook/hiphop-php/
BuildRequires: binutils-devel
BuildRequires: bison >= 2.3
@@ -79,11 +79,10 @@ HipHop is most commonly run as a standalone server, replacing both
Apache and mod_php.
%prep
-%setup -q -n %{name}-HPHP-%{version} -a1
+%setup -qc -a1
+mv %{name}-%{githash}*/* .
%patch5 -p1
%patch6 -p1
-%patch7 -p1
-%patch8 -p1
ln -s libevent-1.4.*-stable libevent
%{__patch} -d libevent -p1 < hphp/third_party/libevent-1.4.14.fb-changes.diff
@@ -162,6 +161,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
+%doc README.md hphp/NEWS
%attr(755,root,root) %{_bindir}/hhvm
%attr(755,root,root) %{_libdir}/libevent-1.4.so.*.*.*
%ghost %{_libdir}/libevent-1.4.so.2
diff --git a/gcc4.8.patch b/gcc4.8.patch
deleted file mode 100644
index ccdfb67..0000000
--- a/gcc4.8.patch
+++ /dev/null
@@ -1,16 +0,0 @@
---- hiphop-php-HPHP-2.1.0/hphp/runtime/vm/jit/phys-reg.h~ 2013-07-12 21:00:55.000000000 +0300
-+++ hiphop-php-HPHP-2.1.0/hphp/runtime/vm/jit/phys-reg.h 2013-10-06 02:59:16.294268856 +0300
-@@ -250,8 +250,13 @@
- uint64_t m_bits;
- };
-
-+#if defined(__GNUC__) && (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)
-+static_assert(std::is_trivially_destructible<RegSet>::value,
-+ "RegSet must have a trivial destructor");
-+#else
- static_assert(std::has_trivial_destructor<RegSet>::value,
- "RegSet must have a trivial destructor");
-+#endif
-
- //////////////////////////////////////////////////////////////////////
-
diff --git a/gd-syms.patch b/gd-syms.patch
deleted file mode 100644
index 1c4c885..0000000
--- a/gd-syms.patch
+++ /dev/null
@@ -1,29 +0,0 @@
---- hiphop-php-HPHP-2.1.0/hphp/runtime/ext/ext_image.cpp~ 2013-07-12 18:00:55.000000000 +0000
-+++ hiphop-php-HPHP-2.1.0/hphp/runtime/ext/ext_image.cpp 2013-10-06 12:44:00.105141356 +0000
-@@ -4188,7 +4188,7 @@
- return false;
- }
-
--// gdImageConvolution does not exist in our libgd.a, copied from
-+// hphp_gdImageConvolution does not exist in our libgd.a, copied from
- // php's libgd/gd.c
-
- /* Filters function added on 2003/12
-@@ -4200,7 +4200,7 @@
- (src->trueColor?gdImageGetTrueColorPixel:gdImageGetPixel)
- #endif
-
--static int gdImageConvolution(gdImagePtr src, float filter[3][3],
-+static int hphp_gdImageConvolution(gdImagePtr src, float filter[3][3],
- float filter_div, float offset) {
- int x, y, i, j, new_a;
- float new_r, new_g, new_b;
-@@ -4290,7 +4290,7 @@
- }
- }
- }
-- if (gdImageConvolution(im_src, mtx, div, offset)) {
-+ if (hphp_gdImageConvolution(im_src, mtx, div, offset)) {
- return true;
- } else {
- return false;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/hiphop-php.git/commitdiff/1c0ae0005649314a73887dc0de09001c66e34030
More information about the pld-cvs-commit
mailing list