Created attachment 155920 [details] fix sendfile in lang/erlang erlang file:sendfile/2,5 is broken on FreeBSD, commit message in erlang OTP upstream pull request https://github.com/erlang/otp/pull/694 explains the issue. minimal testcase: https://gist.github.com/sg2342/669c896afbd12626366c
Created attachment 155921 [details] fix sendfile in lang/erlang-runtime17
Created attachment 155922 [details] fix sendfile in lang/erlang-runtime16
Created attachment 155923 [details] fix sendfile in lang/erlang-runtime15
A commit references this bug: Author: olgeni Date: Fri Apr 24 13:15:03 UTC 2015 New revision: 384637 URL: https://svnweb.freebsd.org/changeset/ports/384637 Log: Fix implementation of sendfile function on FreeBSD. Also, replace USE_AUTOTOOLS with USES=autoreconf while I'm here. PR: 199649 Submitted by: Stefan Grundmann Changes: head/lang/erlang/Makefile head/lang/erlang/files/patch-erts_emulator_drivers_common_efile__drv.c head/lang/erlang-runtime15/Makefile head/lang/erlang-runtime15/files/patch-erts_emulator_drivers_common_efile__drv.c head/lang/erlang-runtime16/Makefile head/lang/erlang-runtime16/files/patch-erts_emulator_drivers_common_efile__drv.c head/lang/erlang-runtime17/Makefile head/lang/erlang-runtime17/files/patch-erts_emulator_drivers_common_efile__drv.c
Fix committed to all Erlang ports. Thank you!