[arch-commits] Commit in hhvm/repos (9 files)
Bartłomiej Piotrowski
bpiotrowski at archlinux.org
Fri Mar 4 20:38:32 UTC 2016
Date: Friday, March 4, 2016 @ 21:38:32
Author: bpiotrowski
Revision: 164835
archrelease: copy trunk to community-staging-x86_64
Added:
hhvm/repos/community-staging-x86_64/
hhvm/repos/community-staging-x86_64/PKGBUILD
(from rev 164834, hhvm/trunk/PKGBUILD)
hhvm/repos/community-staging-x86_64/hhvm.install
(from rev 164834, hhvm/trunk/hhvm.install)
hhvm/repos/community-staging-x86_64/hhvm.service
(from rev 164834, hhvm/trunk/hhvm.service)
hhvm/repos/community-staging-x86_64/hhvm.tmpfile
(from rev 164834, hhvm/trunk/hhvm.tmpfile)
hhvm/repos/community-staging-x86_64/hhvm at .service
(from rev 164834, hhvm/trunk/hhvm at .service)
hhvm/repos/community-staging-x86_64/namespaces.patch
(from rev 164834, hhvm/trunk/namespaces.patch)
hhvm/repos/community-staging-x86_64/php.ini
(from rev 164834, hhvm/trunk/php.ini)
hhvm/repos/community-staging-x86_64/server.ini
(from rev 164834, hhvm/trunk/server.ini)
------------------+
PKGBUILD | 151 +++++++++++++++++++++++++++++++++++++++++++++++++++++
hhvm.install | 9 +++
hhvm.service | 15 +++++
hhvm.tmpfile | 2
hhvm at .service | 15 +++++
namespaces.patch | 144 ++++++++++++++++++++++++++++++++++++++++++++++++++
php.ini | 10 +++
server.ini | 6 ++
8 files changed, 352 insertions(+)
Copied: hhvm/repos/community-staging-x86_64/PKGBUILD (from rev 164834, hhvm/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2016-03-04 20:38:32 UTC (rev 164835)
@@ -0,0 +1,151 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Contributor: James Miller <james at pocketrent.com>
+
+pkgname=hhvm
+pkgver=3.12.1
+pkgrel=1
+
+_thirdparty_commit=ae031dcc9594163f5b0c35e7026563f1c8372595
+_folly_commit=0dbbe8568985ac7966c4354dd89fe0a1771f1dc4
+_mcrouter_commit=cb05bfa78209fb5f49b1af7e04553d8429ae3d7a
+_proxygen_commit=6c54f58dc09e974aa807c0358021eea18e598735
+_squangle_commit=82e54515599aeb09790713784b54f5a9bc554ce1
+_thrift_commit=e4ef3334f770303b021d78a19083ef2c5877e981
+_wangle_commit=05b7c1d1b1fdf66be70dac54b615edcc20f4f9f1
+_webscalesql_commit=a9e580b5a0baa768210ef10544c8fab52003ec0b
+
+pkgdesc="Virtual Machine, Runtime, and JIT for PHP"
+arch=('x86_64')
+url="http://hhvm.com"
+license=('PHP')
+depends=('boost-libs' 'google-glog' 'libmysqlclient' 'libmemcached' 'libzip'
+ 'libxslt' 'intel-tbb' 'libmcrypt' 'oniguruma' 'jemalloc' 'curl' 'libvpx'
+ 'libdwarf' 'imagemagick' 'libedit' 'sqlite' 'libyaml' 'fribidi' 're2'
+ 'gperf' 'c-client' 'unixodbc')
+makedepends=('git' 'cmake' 'gcc' 'boost' 'gflags' 'python2' 'pfff' 'mongodb'
+ 'ragel' 'libmariadbclient')
+source=("https://github.com/facebook/hhvm/archive/HHVM-$pkgver.tar.gz"
+ "https://github.com/hhvm/hhvm-third-party/archive/$_thirdparty_commit/hhvm-third-party-$_thirdparty_commit.tar.gz"
+ "https://github.com/facebook/folly/archive/$_folly_commit/folly-$_folly_commit.tar.gz"
+ "https://github.com/facebook/fbthrift/archive/$_thrift_commit/thrift-$_thrift_commit.tar.gz"
+ "https://github.com/facebook/proxygen/archive/$_proxygen_commit/proxygen-$_proxygen_commit.tar.gz"
+ "https://github.com/facebook/mysql-5.6/archive/$_webscalesql_commit/webscalesql-$_webscalesql_commit.tar.gz"
+ "https://github.com/facebook/mcrouter/archive/$_mcrouter_commit/mcrouter-$_mcrouter_commit.tar.gz"
+ "https://github.com/facebook/squangle/archive/$_squangle_commit/squangle-$_squangle_commit.tar.gz"
+ "https://github.com/facebook/wangle/archive/$_wangle_commit/wangle-$_wangle_commit.tar.gz"
+ 'hhvm.tmpfile'
+ 'hhvm.service'
+ 'hhvm at .service'
+ 'php.ini'
+ 'server.ini'
+ 'namespaces.patch')
+install=hhvm.install
+backup=(etc/hhvm/{php,server}.ini)
+options+=('!buildflags')
+
+prepare() {
+ cd "$srcdir"/$pkgname-HHVM-$pkgver
+
+ patch -p1 -i "$srcdir"/namespaces.patch
+
+ sed -r 's/service hhvm (start|stop|restart)/systemctl \1 hhvm.service/' \
+ -i hphp/tools/oss-repo-mode
+
+ # Fix sendmail path
+ sed -r 's#/usr/lib/sendmail#/usr/bin/sendmail#g' -i \
+ hphp/runtime/base/runtime-option.cpp
+
+ rm -rf third-party
+ ln -s "$srcdir"/hhvm-third-party-$_thirdparty_commit third-party
+
+ cd third-party/folly
+ rm -rf src
+ ln -s "$srcdir"/folly-$_folly_commit src
+
+ cd ../thrift
+ rm -rf src
+ ln -s "$srcdir"/fbthrift-$_thrift_commit src
+
+ cd ../proxygen
+ rm -rf src
+ ln -s "$srcdir"/proxygen-$_proxygen_commit src
+
+ cd ../mcrouter
+ rm -rf src
+ ln -s "$srcdir"/mcrouter-$_mcrouter_commit src
+
+ cd ../wangle
+ rm -rf src
+ ln -s "$srcdir"/wangle-$_wangle_commit src
+
+ cd ../squangle
+ rm -rf src squangle
+ ln -s "$srcdir"/squangle-$_squangle_commit src
+ ln -s src/squangle
+
+ cd ../webscalesqlclient
+ rm -rf mysql-5.6
+ ln -s "$srcdir"/mysql-5.6-$_webscalesql_commit mysql-5.6
+}
+
+build() {
+ cd "$srcdir"/$pkgname-HHVM-$pkgver
+ msg2 "Building hhvm"
+
+ cmake -Wno-dev \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DCMAKE_PREFIX_PATH="$srcdir" \
+ -DENABLE_MONGO:BOOL=ON \
+ -DMYSQL_UNIX_SOCK_ADDR=/run/mysqld/mysqld.sock \
+ .
+
+ make
+
+ for hacktool in hackificator remove_soft_types; do
+ cd "$srcdir"/$pkgname-HHVM-$pkgver/hphp/hack/tools/$hacktool
+ make depend
+ make
+ done
+}
+
+# check() {
+# cd "$srcdir"/$pkgname-HHVM-$pkgver/hphp/test
+# ./run --threads 8 quick
+# }
+
+package() {
+ cd "$srcdir"/$pkgname-HHVM-$pkgver
+ make DESTDIR="$pkgdir/" install
+
+ cd hphp/hack/bin
+ for bin in hh_* tools/*; do
+ install -Dm755 $bin "$pkgdir"/usr/bin/$(basename $bin)
+ done
+
+ cd "$srcdir"
+ install -Dm644 hhvm.tmpfile "$pkgdir"/usr/lib/tmpfiles.d/hhvm.conf
+ install -Dm644 hhvm.service "$pkgdir"/usr/lib/systemd/system/hhvm.service
+ install -Dm644 hhvm at .service "$pkgdir"/usr/lib/systemd/system/hhvm at .service
+
+ install -Dm644 php.ini "$pkgdir"/etc/hhvm/php.ini
+ install -Dm644 server.ini "$pkgdir"/etc/hhvm/server.ini
+}
+
+sha256sums=('6227c1b24418a0c1bc0e1b09990afda1dddeace492becba210f183087a01cd26'
+ 'bdf6c71fc023cc7093672a54418e62d058361b4d0fd016c497e9083d93786590'
+ 'd9a68d98bb9ad263c671b48a5f7f5b8db90b5bffe438922c1b285700f01e824c'
+ '7e36c2c10a13a416e5384615e93f55d3742e0d96559d611877b746252e672ed7'
+ 'f67c4993f633565f6f2f97aca56eff779d8e7dfc15263e0835ccaff61209f43c'
+ '06983fb95386626dc1a2fdfda2d2632d8f8851b7ad03ec3bef2046f5736af3ab'
+ 'f9d16dab7775298a1673e5cc68b2f9c9a1a1f94e34f27930dbb7205c5c9240e9'
+ '7a80ce5e25d512fe27b44a3d9bbc44fcafcc0d8c35e70df2650b4772e46e4977'
+ '075b9a5c6cceb27e5c6d869929708abb02f8e25f5aba828c4ec643722cb2052a'
+ 'c356010a6d6b976f387bb205a75ea07d5f40593a8010483f2ed0f66f112331bc'
+ '8b50d1ef9f5f726e6d8d469a8c84d85ad63f8b507b97d258b4d751a0e3e221df'
+ '59c640602929dac0aa34d06c668ed69361eb4b7b47a77f9aa0badb4d0b61571c'
+ '3e3093f817706c238fad021483f114fd4ce0b45d84097dcb7870157fc9ec769f'
+ '5b53bc57965e1c5151d720dc7f63f1b2e8ebd5e758b2ef0be3b74df38ebcbce0'
+ '4b83a34d76e9a20001d55bf828e6db3272e5f12a7b02a87e902642236ad2ad7c')
Copied: hhvm/repos/community-staging-x86_64/hhvm.install (from rev 164834, hhvm/trunk/hhvm.install)
===================================================================
--- community-staging-x86_64/hhvm.install (rev 0)
+++ community-staging-x86_64/hhvm.install 2016-03-04 20:38:32 UTC (rev 164835)
@@ -0,0 +1,9 @@
+post_install() {
+ if [[ ! -d run/hhvm ]]; then
+ usr/bin/systemd-tmpfiles --create hhvm.conf
+ fi
+}
+
+post_upgrade() {
+ post_install
+}
Copied: hhvm/repos/community-staging-x86_64/hhvm.service (from rev 164834, hhvm/trunk/hhvm.service)
===================================================================
--- community-staging-x86_64/hhvm.service (rev 0)
+++ community-staging-x86_64/hhvm.service 2016-03-04 20:38:32 UTC (rev 164835)
@@ -0,0 +1,15 @@
+[Unit]
+Description=HHVM FastCGI application server
+After=syslog.target network.target
+
+[Service]
+PIDFile=/run/hhvm/server.pid
+PrivateTmp=true
+User=http
+Group=http
+ExecStart=/usr/bin/hhvm --config=/etc/hhvm/php.ini --config=/etc/hhvm/server.ini --mode=daemon -vServer.Type=fastcgi -vPidFile=/run/hhvm/server.pid
+Restart=on-failure
+RuntimeDirectory=hhvm
+
+[Install]
+WantedBy=multi-user.target
Copied: hhvm/repos/community-staging-x86_64/hhvm.tmpfile (from rev 164834, hhvm/trunk/hhvm.tmpfile)
===================================================================
--- community-staging-x86_64/hhvm.tmpfile (rev 0)
+++ community-staging-x86_64/hhvm.tmpfile 2016-03-04 20:38:32 UTC (rev 164835)
@@ -0,0 +1,2 @@
+d /var/run/hhvm 755 http http
+d /var/log/hhvm 755 http http
Copied: hhvm/repos/community-staging-x86_64/hhvm at .service (from rev 164834, hhvm/trunk/hhvm at .service)
===================================================================
--- community-staging-x86_64/hhvm at .service (rev 0)
+++ community-staging-x86_64/hhvm at .service 2016-03-04 20:38:32 UTC (rev 164835)
@@ -0,0 +1,15 @@
+[Unit]
+Description=HHVM FastCGI application server
+After=syslog.target network.target
+
+[Service]
+PIDFile=/run/hhvm/%I.pid
+PrivateTmp=true
+User=http
+Group=http
+ExecStart=/usr/bin/hhvm --config=/etc/hhvm/php.ini --config=/etc/hhvm/%I.ini --mode=daemon -vServer.Type=fastcgi -vPidFile=/run/hhvm/%I.pid
+Restart=on-failure
+RuntimeDirectory=hhvm
+
+[Install]
+WantedBy=multi-user.target
Copied: hhvm/repos/community-staging-x86_64/namespaces.patch (from rev 164834, hhvm/trunk/namespaces.patch)
===================================================================
--- community-staging-x86_64/namespaces.patch (rev 0)
+++ community-staging-x86_64/namespaces.patch 2016-03-04 20:38:32 UTC (rev 164835)
@@ -0,0 +1,144 @@
+diff --git a/hphp/runtime/base/tv-helpers.cpp b/hphp/runtime/base/tv-helpers.cpp
+index 4e01e81..1a872dd 100644
+--- a/hphp/runtime/base/tv-helpers.cpp
++++ b/hphp/runtime/base/tv-helpers.cpp
+@@ -14,6 +14,8 @@
+ +----------------------------------------------------------------------+
+ */
+
++#include <cmath>
++
+ #include "hphp/runtime/base/tv-helpers.h"
+
+ #include "hphp/runtime/base/dummy-resource.h"
+@@ -673,7 +675,7 @@ bool tvCoerceParamToInt64InPlace(TypedValue* tv) {
+ if (RuntimeOption::PHP7_ScalarTypes && tv->m_type == KindOfDouble) {
+ if (tv->m_data.dbl < std::numeric_limits<int64_t>::min()) return false;
+ if (tv->m_data.dbl > std::numeric_limits<int64_t>::max()) return false;
+- if (isnan(tv->m_data.dbl)) return false;
++ if (std::isnan(tv->m_data.dbl)) return false;
+ }
+ tvCastToInt64InPlace(tv);
+ return true;
+diff --git a/hphp/runtime/base/zend-printf.cpp b/hphp/runtime/base/zend-printf.cpp
+index a008f3a..c6f0fa4 100644
+--- a/hphp/runtime/base/zend-printf.cpp
++++ b/hphp/runtime/base/zend-printf.cpp
+@@ -18,6 +18,7 @@
+ #include "hphp/runtime/base/zend-printf.h"
+
+ #include <math.h>
++#include <cmath>
+
+ #include "hphp/runtime/base/array-iterator.h"
+ #include "hphp/runtime/base/builtin-functions.h"
+@@ -693,14 +694,14 @@ inline static void appenddouble(StringBuffer *buffer,
+ precision = MAX_FLOAT_PRECISION;
+ }
+
+- if (isnan(number)) {
++ if (std::isnan(number)) {
+ is_negative = (number<0);
+ appendstring(buffer, "NaN", 3, 0, padding,
+ alignment, 3, is_negative, 0, always_sign);
+ return;
+ }
+
+- if (isinf(number)) {
++ if (std::isinf(number)) {
+ is_negative = (number<0);
+ appendstring(buffer, "INF", 3, 0, padding,
+ alignment, 3, is_negative, 0, always_sign);
+@@ -1407,10 +1408,10 @@ static int xbuf_format_converter(char **outbuf, const char *fmt, va_list ap)
+ goto fmt_error;
+ }
+
+- if (isnan(fp_num)) {
++ if (std::isnan(fp_num)) {
+ s = const_cast<char*>("nan");
+ s_len = 3;
+- } else if (isinf(fp_num)) {
++ } else if (std::isinf(fp_num)) {
+ s = const_cast<char*>("inf");
+ s_len = 3;
+ } else {
+@@ -1448,11 +1449,11 @@ static int xbuf_format_converter(char **outbuf, const char *fmt, va_list ap)
+ goto fmt_error;
+ }
+
+- if (isnan(fp_num)) {
++ if (std::isnan(fp_num)) {
+ s = const_cast<char*>("NAN");
+ s_len = 3;
+ break;
+- } else if (isinf(fp_num)) {
++ } else if (std::isinf(fp_num)) {
+ if (fp_num > 0) {
+ s = const_cast<char*>("INF");
+ s_len = 3;
+diff --git a/hphp/runtime/ext/std/ext_std_math.cpp b/hphp/runtime/ext/std/ext_std_math.cpp
+index 7bb7390..2d6da60 100644
+--- a/hphp/runtime/ext/std/ext_std_math.cpp
++++ b/hphp/runtime/ext/std/ext_std_math.cpp
+@@ -24,6 +24,8 @@
+ #include "hphp/runtime/ext/std/ext_std.h"
+ #include "hphp/system/constants.h"
+
++#include <cmath>
++
+ namespace HPHP {
+ ///////////////////////////////////////////////////////////////////////////////
+
+@@ -187,9 +189,9 @@ Variant HHVM_FUNCTION(abs, const Variant& number) {
+ }
+ }
+
+-bool HHVM_FUNCTION(is_finite, double val) { return finite(val);}
+-bool HHVM_FUNCTION(is_infinite, double val) { return isinf(val);}
+-bool HHVM_FUNCTION(is_nan, double val) { return isnan(val);}
++bool HHVM_FUNCTION(is_finite, double val) { return std::isfinite(val);}
++bool HHVM_FUNCTION(is_infinite, double val) { return std::isinf(val);}
++bool HHVM_FUNCTION(is_nan, double val) { return std::isnan(val);}
+
+ Variant HHVM_FUNCTION(ceil, const Variant& number) {
+ int64_t ival;
+diff --git a/hphp/runtime/ext_zend_compat/php-src/main/snprintf.cpp b/hphp/runtime/ext_zend_compat/php-src/main/snprintf.cpp
+index 352c4f8..7745085 100644
+--- a/hphp/runtime/ext_zend_compat/php-src/main/snprintf.cpp
++++ b/hphp/runtime/ext_zend_compat/php-src/main/snprintf.cpp
+@@ -29,6 +29,8 @@
+ #include <stdlib.h>
+ #include <math.h>
+
++#include <cmath>
++
+ #ifdef HAVE_INTTYPES_H
+ #include <inttypes.h>
+ #endif
+@@ -989,10 +991,10 @@ static int format_converter(register buffy * odp, const char *fmt, va_list ap) /
+ goto fmt_error;
+ }
+
+- if (zend_isnan(fp_num)) {
++ if (std::isnan(fp_num)) {
+ s = "NAN";
+ s_len = 3;
+- } else if (zend_isinf(fp_num)) {
++ } else if (std::isinf(fp_num)) {
+ s = "INF";
+ s_len = 3;
+ } else {
+@@ -1030,11 +1032,11 @@ static int format_converter(register buffy * odp, const char *fmt, va_list ap) /
+ goto fmt_error;
+ }
+
+- if (zend_isnan(fp_num)) {
++ if (std::isnan(fp_num)) {
+ s = "NAN";
+ s_len = 3;
+ break;
+- } else if (zend_isinf(fp_num)) {
++ } else if (std::isinf(fp_num)) {
+ if (fp_num > 0) {
+ s = "INF";
+ s_len = 3;
Copied: hhvm/repos/community-staging-x86_64/php.ini (from rev 164834, hhvm/trunk/php.ini)
===================================================================
--- community-staging-x86_64/php.ini (rev 0)
+++ community-staging-x86_64/php.ini 2016-03-04 20:38:32 UTC (rev 164835)
@@ -0,0 +1,10 @@
+; php options
+session.save_handler = files
+;session.save_path = /var/lib/php5
+session.gc_maxlifetime = 1440
+
+; hhvm specific
+hhvm.log.level = Warning
+hhvm.log.always_log_unhandled_exceptions = true
+hhvm.log.runtime_error_reporting_level = 8191
+hhvm.mysql.typed_results = false
Copied: hhvm/repos/community-staging-x86_64/server.ini (from rev 164834, hhvm/trunk/server.ini)
===================================================================
--- community-staging-x86_64/server.ini (rev 0)
+++ community-staging-x86_64/server.ini 2016-03-04 20:38:32 UTC (rev 164835)
@@ -0,0 +1,6 @@
+hhvm.server.port = 9000
+hhvm.server.type = fastcgi
+hhvm.server.default_document = index.php
+hhvm.log.use_log_file = true
+hhvm.log.file = /var/log/hhvm/error.log
+hhvm.repo.central.path = /var/run/hhvm/hhvm.hhbc
More information about the arch-commits
mailing list