diff options
-rw-r--r-- | dev-lang/erlang/ChangeLog | 7 | ||||
-rw-r--r-- | dev-lang/erlang/erlang-11.2.5.ebuild | 6 | ||||
-rw-r--r-- | dev-lang/erlang/files/erlang-11.2.5-gethostbyname.patch | 20 |
3 files changed, 30 insertions, 3 deletions
diff --git a/dev-lang/erlang/ChangeLog b/dev-lang/erlang/ChangeLog index eb2c4225ee47..b4f24d539da3 100644 --- a/dev-lang/erlang/ChangeLog +++ b/dev-lang/erlang/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-lang/erlang # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v 1.67 2007/07/17 21:47:48 gustavoz Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v 1.68 2007/08/06 14:46:05 uberlord Exp $ + + 06 Aug 2007; Roy Marples <uberlord@gentoo.org> + +files/erlang-11.2.5-gethostbyname.patch, erlang-11.2.5.ebuild: + Fix gethostbyname problem on FreeBSD and keyword ~x86-fbsd, #182001 thanks + to Pierre Guinoiseau. 17 Jul 2007; Gustavo Zacarias <gustavoz@gentoo.org> erlang-11.2.5.ebuild: Stable on sparc wrt security #184592 diff --git a/dev-lang/erlang/erlang-11.2.5.ebuild b/dev-lang/erlang/erlang-11.2.5.ebuild index 8be188d69672..f6043d826a76 100644 --- a/dev-lang/erlang/erlang-11.2.5.ebuild +++ b/dev-lang/erlang/erlang-11.2.5.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/erlang-11.2.5.ebuild,v 1.4 2007/07/17 21:47:48 gustavoz Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/erlang-11.2.5.ebuild,v 1.5 2007/08/06 14:46:05 uberlord Exp $ inherit elisp-common eutils flag-o-matic multilib versionator @@ -25,7 +25,7 @@ SRC_URI="http://www.erlang.org/download/${MY_P}.tar.gz LICENSE="EPL" SLOT="0" -KEYWORDS="~alpha ~amd64 ppc ~ppc64 sparc x86" +KEYWORDS="~alpha ~amd64 ppc ~ppc64 sparc x86 ~x86-fbsd" IUSE="doc emacs hipe java kpoll odbc smp ssl tk" RDEPEND=">=dev-lang/perl-5.6.1 @@ -50,6 +50,8 @@ src_unpack() { # needed for amd64 epatch "${FILESDIR}/${PN}-10.2.6-export-TARGET.patch" + # needed for FreeBSD + epatch "${FILESDIR}/${PN}-11.2.5-gethostbyname.patch" use odbc || sed -i 's: odbc : :' lib/Makefile if use hipe; then diff --git a/dev-lang/erlang/files/erlang-11.2.5-gethostbyname.patch b/dev-lang/erlang/files/erlang-11.2.5-gethostbyname.patch new file mode 100644 index 000000000000..8bef15046edc --- /dev/null +++ b/dev-lang/erlang/files/erlang-11.2.5-gethostbyname.patch @@ -0,0 +1,20 @@ +diff -Naur otp_src_R11B-4.orig/lib/erl_interface/src/connect/ei_resolve.c otp_src_R11B-4/lib/erl_interface/src/connect/ei_resolve.c +--- otp_src_R11B-4.orig/lib/erl_interface/src/connect/ei_resolve.c 2006-11-06 14:53:29 +0100 ++++ otp_src_R11B-4/lib/erl_interface/src/connect/ei_resolve.c 2007-06-13 23:14:06 +0200 +@@ -44,6 +44,7 @@ + #include <stdlib.h> + #include <string.h> + #include <errno.h> ++#include <sys/param.h> + #endif + + /* common to all platforms */ +@@ -614,7 +615,7 @@ + #ifndef HAVE_GETHOSTBYNAME_R + return my_gethostbyname_r(name,hostp,buffer,buflen,h_errnop); + #else +-#ifdef __GLIBC__ ++#if (defined(__GLIBC__) || (__FreeBSD_version >= 602000)) + struct hostent *result; + + gethostbyname_r(name, hostp, buffer, buflen, &result, h_errnop); |