From 4be71cdd53a0270998fc78fc56340e3805ac3d70 Mon Sep 17 00:00:00 2001 From: jasper Date: Mon, 27 Dec 2010 15:48:01 +0000 Subject: [PATCH] - fix build on at least mips64el by syncing the endian definitions, tested on both big and little endian machines. --- www/ruby-passenger/Makefile | 4 ++-- .../patches/patch-ext_boost_detail_endian_hpp | 22 +++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 www/ruby-passenger/patches/patch-ext_boost_detail_endian_hpp diff --git a/www/ruby-passenger/Makefile b/www/ruby-passenger/Makefile index e4bb4bba185..4b20128f243 100644 --- a/www/ruby-passenger/Makefile +++ b/www/ruby-passenger/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.13 2010/11/24 21:35:16 jeremy Exp $ +# $OpenBSD: Makefile,v 1.14 2010/12/27 15:48:01 jasper Exp $ SHARED_ONLY = Yes @@ -6,7 +6,7 @@ COMMENT = Nginx module for deploying Ruby applications DISTNAME = passenger-3.0.0 PKGNAME = ruby-${DISTNAME} -REVISION = 1 +REVISION = 2 CATEGORIES = www HOMEPAGE = http://www.modrails.com/ diff --git a/www/ruby-passenger/patches/patch-ext_boost_detail_endian_hpp b/www/ruby-passenger/patches/patch-ext_boost_detail_endian_hpp new file mode 100644 index 00000000000..1668022b6fb --- /dev/null +++ b/www/ruby-passenger/patches/patch-ext_boost_detail_endian_hpp @@ -0,0 +1,22 @@ +$OpenBSD: patch-ext_boost_detail_endian_hpp,v 1.1 2010/12/27 15:48:01 jasper Exp $ + +Sync with ports/devel/boost/patches/patch-boost_detail_endian_hpp + +--- ext/boost/detail/endian.hpp.orig Mon Dec 27 14:15:06 2010 ++++ ext/boost/detail/endian.hpp Mon Dec 27 14:15:25 2010 +@@ -65,6 +65,15 @@ + + # define BOOST_LITTLE_ENDIAN + # define BOOST_BYTE_ORDER 1234 ++#elif defined(__OpenBSD__) ++# include ++# if (_BYTE_ORDER == _LITTLE_ENDIAN) ++# define BOOST_LITTLE_ENDIAN ++# define BOOST_BYTE_ORDER 1234 ++# elif (_BYTE_ORDER == _BIG_ENDIAN) ++# define BOOST_BIG_ENDIAN ++# define BOOST_BYTE_ORDER 4321 ++# endif + #else + # error The file boost/detail/endian.hpp needs to be set up for your CPU type. + #endif