From nobody@FreeBSD.org  Fri Jan  3 19:14:21 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id E9F26E4A
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  3 Jan 2014 19:14:21 +0000 (UTC)
Received: from oldred.freebsd.org (oldred.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id D80041A5C
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  3 Jan 2014 19:14:21 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id s03JELMP053133
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 3 Jan 2014 19:14:21 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id s03JELjR053129;
	Fri, 3 Jan 2014 19:14:21 GMT
	(envelope-from nobody)
Message-Id: <201401031914.s03JELjR053129@oldred.freebsd.org>
Date: Fri, 3 Jan 2014 19:14:21 GMT
From: Paul Brooks <paul.at.ngc@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: print/tex-luatex compilation fails on sparc64
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         185453
>Category:       ports
>Synopsis:       print/tex-luatex compilation fails on sparc64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    hrs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 03 19:20:00 UTC 2014
>Closed-Date:    
>Last-Modified:  Fri Jan 03 19:20:08 UTC 2014
>Originator:     Paul Brooks
>Release:        FreeBSD 9.2-STABLE
>Organization:
>Environment:
FreeBSD elon 9.2-STABLE FreeBSD 9.2-STABLE #0 r256546: Tue Oct 22 16:26:14 PDT 2013     root@elon:/usr/obj/usr/src/sys/ELON  sparc64
>Description:
On FreeBSD sparc64, the port print/tex-luatex fails to compile, with errors originating in luatexdir/lua51/lcoco.c
>How-To-Repeat:
Attempt to compile the current print/tex-luatex on FreeBSD sparc64
>Fix:
A work around that allows the port to compile, albeit with slightly slower execution:

--- /usr/ports/print/tex-luatex/Makefile        2013-09-04 00:55:49.000000000 -0700
+++ Makefile    2013-09-11 21:33:45.347352461 -0700
@@ -97,4 +97,11 @@
        ${CAT} ${DISTDIR}/${DIST_SUBDIR}/texlive-${DISTVERSION_TEXMF}-texmf${EXTRACT_SUFX} \
                ${EXTRACT_AFTER_ARGS_TEXMF}
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
+CFLAGS+=       -DCOCO_DISABLE
+.endif
+
+.include <bsd.port.post.mk>


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->hrs 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri Jan 3 19:20:08 UTC 2014 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=185453 
>Unformatted:
