- Fix build on powerpc64

PR:		231743
Submitted by:	Piotr Kubaj <pkubaj@anongoth.pl>
This commit is contained in:
Bryan Drewery 2018-09-27 16:55:05 +00:00
parent 7c8f751563
commit 0ce715bd34
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=480806
3 changed files with 24 additions and 2 deletions

View File

@ -11,7 +11,6 @@ MAINTAINER= bdrewery@FreeBSD.org
COMMENT= Gearman C Server and Library
BROKEN_sparc64= fails to build: cannot link with boost
BROKEN_powerpc64= fails to build: checking for the Boost program_options library... no
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=0:textproc/py-sphinx@${PY_FLAVOR}
LIB_DEPENDS= libboost_program_options.so:devel/boost-libs \
@ -23,7 +22,8 @@ CONFLICTS= p5-Gearman-Server-1.* gearmand-1.1.*
USERS= gearmand
GROUPS= gearmand
USES= pathfix gmake perl5 python:build libtool
USES= compiler:c++11-lang pathfix gmake perl5 python:build libtool
USE_CXXSTD= c++11
USE_PERL5= build
GNU_CONFIGURE= yes
USE_LDCONFIG= yes

View File

@ -1,5 +1,17 @@
--- ./configure.orig 2013-07-17 10:46:57.000000000 -0400
+++ ./configure 2013-07-17 10:46:57.000000000 -0400
@@ -16842,11 +16842,6 @@
$as_echo "$boost_cv_lib_version" >&6; }
# e.g. "134" for 1_34_1 or "135" for 1_35
boost_major_version=`echo "$boost_cv_lib_version" | sed 's/_//;s/_.*//'`
- case $boost_major_version in #(
- '' | *[!0-9]*)
- as_fn_error $? "invalid value: boost_major_version=$boost_major_version" "$LINENO" 5
- ;;
- esac
fi
CPPFLAGS=$boost_save_CPPFLAGS
@@ -17972,7 +17972,7 @@
else

View File

@ -0,0 +1,10 @@
--- libtest/timer.hpp.orig 2018-09-26 15:24:37 UTC
+++ libtest/timer.hpp
@@ -39,6 +39,7 @@
#include <cstdlib>
#include <ctime>
#include <iostream>
+#include <stdint.h>
namespace libtest {