From swell.k@gmail.com  Thu Sep 16 22:17:08 2010
Return-Path: <swell.k@gmail.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 903561065673
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; Thu, 16 Sep 2010 22:17:08 +0000 (UTC)
Received: by gwb15 with SMTP id 15so697136gwb.13
        for <FreeBSD-gnats-submit@freebsd.org>; 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 <swell.k@gmail.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: [patch] devel/lua-alien: attempt to fix build on sparc64

>Number:         150632
>Category:       ports
>Synopsis:       [patch] devel/lua-alien: attempt to fix build on sparc64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    philip
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 16 22:20:01 UTC 2010
>Closed-Date:    Sat Sep 18 18:29:39 UTC 2010
>Last-Modified:  Sat Sep 18 18:30:06 UTC 2010
>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:
Class-Changed-From-To: sw-bug->maintainer-update 
Class-Changed-By: edwin 
Class-Changed-When: Thu Sep 16 22:20:10 UTC 2010 
Class-Changed-Why:  
Fix category (submitter is maintainer) (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=150632 
Responsible-Changed-From-To: freebsd-ports-bugs->philip 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Sep 16 22:20:15 UTC 2010 
Responsible-Changed-Why:  
philip@ wants this port PRs (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=150632 
State-Changed-From-To: open->closed 
State-Changed-By: philip 
State-Changed-When: Sat Sep 18 18:29:38 UTC 2010 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=150632 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/150632: commit references a PR
Date: Sat, 18 Sep 2010 18:29:25 +0000 (UTC)

 philip      2010-09-18 18:29:19 UTC
 
   FreeBSD ports repository
 
   Modified files:
     devel/lua-alien      Makefile 
   Added files:
     devel/lua-alien/files patch-src-alien-core.c 
   Log:
   Add a regression test target.  Attempt to fix the build on sparc64.
   
   PR:             ports/150632
   Submitted by:   Anonymous <swell.k -at- gmail.com> (maintainer)
   
   Revision  Changes    Path
   1.3       +3 -0      ports/devel/lua-alien/Makefile
   1.1       +11 -0     ports/devel/lua-alien/files/patch-src-alien-core.c (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
