ports/150632: [patch] devel/lua-alien: attempt to fix build on sparc64
Anonymous
swell.k at gmail.com
Thu Sep 16 22:20:02 UTC 2010
>Number: 150632
>Category: ports
>Synopsis: [patch] devel/lua-alien: attempt to fix build on sparc64
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Sep 16 22:20:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Anonymous
>Release: FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
>Description:
http://docs.freebsd.org/cgi/mid.cgi?86hbhxtt5c.fsf
I've added regression-test target. It passes without errors on i386/amd64.
Not sure how it'll behave on other ARCHs, though.
>How-To-Repeat:
>Fix:
--- a.diff begins here ---
Index: devel/lua-alien/Makefile
===================================================================
RCS file: /a/.cvsup/ports/devel/lua-alien/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- devel/lua-alien/Makefile 1 Sep 2010 07:29:09 -0000 1.2
+++ devel/lua-alien/Makefile 16 Sep 2010 21:52:52 -0000
@@ -62,4 +62,7 @@ do-install:
${TAR} cf - -C${WRKSRC}/samples . | ${TAR} xof - -C${EXAMPLESDIR}
.endif
+regression-test: install
+ cd ${DATADIR}/tests && ${LUA_CMD} test_alien.lua
+
.include <bsd.port.mk>
Index: devel/lua-alien/files/patch-src-alien-core.c
===================================================================
RCS file: devel/lua-alien/files/patch-src-alien-core.c
diff -N devel/lua-alien/files/patch-src-alien-core.c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ devel/lua-alien/files/patch-src-alien-core.c 10 Sep 2010 17:14:27 -0000
@@ -0,0 +1,11 @@
+--- src/alien/core.c~
++++ src/alien/core.c
+@@ -301,7 +301,7 @@ static void *alien_loadfunc (lua_State *
+ #define FFI_STDCALL FFI_DEFAULT_ABI
+ #endif
+
+-#ifdef DARWIN
++#if defined(DARWIN) || !defined(FFI_SYSV)
+ #define FFI_SYSV FFI_DEFAULT_ABI
+ #endif
+
--- a.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list