aboutsummaryrefslogtreecommitdiffstats
path: root/lang/erlang-runtime16
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2015-04-24 21:15:00 +0800
committerolgeni <olgeni@FreeBSD.org>2015-04-24 21:15:00 +0800
commit03a7d2d5f409f2ac67def92eb07c4a75f61f213a (patch)
tree0544641103c3ad64456fdfbd6bf6139c2c10c9aa /lang/erlang-runtime16
parent1a6971332aa4b248f8260240d1e1014669366904 (diff)
downloadfreebsd-ports-gnome-03a7d2d5f409f2ac67def92eb07c4a75f61f213a.tar.gz
freebsd-ports-gnome-03a7d2d5f409f2ac67def92eb07c4a75f61f213a.tar.zst
freebsd-ports-gnome-03a7d2d5f409f2ac67def92eb07c4a75f61f213a.zip
Fix implementation of sendfile function on FreeBSD.
Also, replace USE_AUTOTOOLS with USES=autoreconf while I'm here. PR: 199649 Submitted by: Stefan Grundmann
Diffstat (limited to 'lang/erlang-runtime16')
-rw-r--r--lang/erlang-runtime16/Makefile5
-rw-r--r--lang/erlang-runtime16/files/patch-erts_emulator_drivers_common_efile__drv.c11
2 files changed, 13 insertions, 3 deletions
diff --git a/lang/erlang-runtime16/Makefile b/lang/erlang-runtime16/Makefile
index 6490c58d80c1..db4e88692544 100644
--- a/lang/erlang-runtime16/Makefile
+++ b/lang/erlang-runtime16/Makefile
@@ -3,7 +3,7 @@
PORTNAME= erlang
PORTVERSION= 16.b.03.1
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= lang parallel java
MASTER_SITES= http://www.erlang.org/download/:erlangorg \
http://erlang.stacken.kth.se/download/:erlangorg \
@@ -43,8 +43,7 @@ OPTIONS_EXCLUDE_DragonFly= SCTP
ERL_RELEASE= R${PORTVERSION:S/.//g:tu:S/1$/-1/}
-USES= gmake perl5
-USE_AUTOTOOLS= autoconf:env
+USES= autoreconf gmake perl5
USE_PERL5= build
GNU_CONFIGURE= yes
LDFLAGS+= -L${LOCALBASE}/lib
diff --git a/lang/erlang-runtime16/files/patch-erts_emulator_drivers_common_efile__drv.c b/lang/erlang-runtime16/files/patch-erts_emulator_drivers_common_efile__drv.c
new file mode 100644
index 000000000000..bc3c37541f66
--- /dev/null
+++ b/lang/erlang-runtime16/files/patch-erts_emulator_drivers_common_efile__drv.c
@@ -0,0 +1,11 @@
+--- erts/emulator/drivers/common/efile_drv.c.orig
++++ erts/emulator/drivers/common/efile_drv.c
+@@ -1938,6 +1938,8 @@
+ d->result_ok = 1;
+ if (d->c.sendfile.nbytes != 0)
+ d->c.sendfile.nbytes -= nbytes;
++ } else if (nbytes == 0 && d->c.sendfile.nbytes == 0) {
++ d->result_ok = 1;
+ } else
+ d->result_ok = 0;
+ } else {