Created attachment 157365 [details] simple patch for luafilesystem This patch adjusts files/patch-Makefile such that BSD make works correctly. As a result, GNU make is no longer required.
This causes build failure on amd64: =======================<phase: build >============================ ===> Building for lua52-luafilesystem-1.6.3 cc -O2 -pipe -fstack-protector -fno-strict-aliasing -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -pedantic -I/usr/local/include/lua52 -c src/lfs.c -o src/lfs.o mv lfs.o src/ mv: lfs.o: No such file or directory *** Error code 1 Stop. make[1]: stopped in /wrkdirs/usr/ports/devel/luafilesystem/work/luafilesystem-v_1_6_3 *** Error code 1
(In reply to Thomas Zander from comment #1) This build system error (or your ports tree mirror incorect). ===> Building for lua52-luafilesystem-1.6.3 --- src/lfs.o --- cc -O2 -pipe -fstack-protector -fno-strict-aliasing -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -pedantic -I/usr/local/include/lua52 -c src/lfs.c --- src/lfs.so --- cc -O2 -pipe -fstack-protector -fno-strict-aliasing -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -pedantic -I/usr/local/include/lua52 -shared -o src/lfs.so src/lfs.o '-o' flag not use default (in port for object file build use default scheme '$CC $CFLAGS -c $SOURCE', defined only lib compile rules).
It is building differently on my ports tree, I'll look into why that is the case. I'll see if redports is available again to test on external machines.
Created attachment 158976 [details] New patch with fix Some modify patch. Added hardcoding for object file files (avoid difference rules in port's tree and build system).
The patch submitted by fiziologus@gmail.com works correctly on my system. It looks more general than my patch or the original, so it is unlikely to have compatibility issues.
A commit references this bug: Author: pawel Date: Fri Nov 6 20:40:35 UTC 2015 New revision: 400958 URL: https://svnweb.freebsd.org/changeset/ports/400958 Log: - Allow build without using gmake [1] - Regenerate patches PR: 200586 [1] Submitted by: maintainer and Timothy Beyer [1] Changes: head/devel/luafilesystem/Makefile head/devel/luafilesystem/files/patch-Makefile head/devel/luafilesystem/files/patch-config