From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Sep 16 22:20:01 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA0A61065672 for ; Thu, 16 Sep 2010 22:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9DF378FC13 for ; Thu, 16 Sep 2010 22:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o8GMK1gp034606 for ; Thu, 16 Sep 2010 22:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o8GMK1eN034605; Thu, 16 Sep 2010 22:20:01 GMT (envelope-from gnats) Resent-Date: Thu, 16 Sep 2010 22:20:01 GMT Resent-Message-Id: <201009162220.o8GMK1eN034605@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Anonymous Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 903561065673 for ; Thu, 16 Sep 2010 22:17:08 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4BA258FC22 for ; Thu, 16 Sep 2010 22:17:08 +0000 (UTC) Received: by gwb15 with SMTP id 15so697136gwb.13 for ; Thu, 16 Sep 2010 15:17:07 -0700 (PDT) Received: by 10.100.6.11 with SMTP id 11mr4512144anf.33.1284675427430; Thu, 16 Sep 2010 15:17:07 -0700 (PDT) Received: from localhost (tor-exit-proxy7-readme.formlessnetworking.net [208.53.142.43]) by mx.google.com with ESMTPS id n20sm2787892ibe.17.2010.09.16.15.17.04 (version=SSLv3 cipher=RC4-MD5); Thu, 16 Sep 2010 15:17:06 -0700 (PDT) Message-Id: <86fwx9ibg7.fsf@gmail.com> Date: Fri, 17 Sep 2010 02:13:28 +0400 From: Anonymous To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: ports/150632: [patch] devel/lua-alien: attempt to fix build on sparc64 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Sep 2010 22:20:02 -0000 >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 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: