h2o: update to 1.3.0.

This commit is contained in:
Eivind Uggedal 2015-06-18 08:20:47 +00:00
parent 4d4193bd1e
commit 2691b699d4
2 changed files with 31 additions and 2 deletions

View File

@ -0,0 +1,29 @@
--- src/main.c.orig 2015-06-18 08:13:27.185634622 +0000
+++ src/main.c 2015-06-18 08:14:36.524223552 +0000
@@ -47,7 +47,7 @@
#include <openssl/crypto.h>
#include <openssl/err.h>
#include <openssl/ssl.h>
-#ifdef __linux__
+#ifdef __GLIBC__
#include <execinfo.h>
#endif
#include "cloexec.h"
@@ -1065,7 +1065,7 @@
notify_all_threads();
}
-#ifdef __linux__
+#ifdef __GLIBC__
static int popen_annotate_backtrace_symbols(void)
{
char *cmd_fullpath = h2o_configurator_get_cmd_path("share/h2o/annotate-backtrace-symbols"), *argv[] = {cmd_fullpath, NULL};
@@ -1118,7 +1118,7 @@
{
h2o_set_signal_handler(SIGTERM, on_sigterm);
h2o_set_signal_handler(SIGPIPE, SIG_IGN);
-#ifdef __linux__
+#ifdef __GLIBC__
if ((backtrace_symbols_to_fd = popen_annotate_backtrace_symbols()) == -1)
backtrace_symbols_to_fd = 2;
h2o_set_signal_handler(SIGABRT, on_sigfatal);

View File

@ -1,6 +1,6 @@
# Template file for 'h2o'
pkgname=h2o
version=1.2.0
version=1.3.0
revision=1
build_style=cmake
configure_flags="-DUSE_BUNDLED_SSL=OFF"
@ -15,7 +15,7 @@ maintainer="Eivind Uggedal <eivind@uggedal.com>"
license="MIT"
homepage="https://github.com/h2o/h2o"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=09aacd84ea0a53eaffdc8e0c2a2cf1108bea5db81d5859a136221fd67f07833f
checksum=01a32a51edfea24526a0d0df085c66867706e41dd07073f777d6fbaa8d15a62d
post_install() {
vsv h2o