From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Feb 20 01:10:04 2008 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 5009016A407 for ; Wed, 20 Feb 2008 01:10:04 +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 34FCE13C4F2 for ; Wed, 20 Feb 2008 01:10:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m1K1A4r4049397 for ; Wed, 20 Feb 2008 01:10:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m1K1A4wg049396; Wed, 20 Feb 2008 01:10:04 GMT (envelope-from gnats) Resent-Date: Wed, 20 Feb 2008 01:10:04 GMT Resent-Message-Id: <200802200110.m1K1A4wg049396@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, "Pietro Cerutti" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B75D16A403 for ; Wed, 20 Feb 2008 01:07:07 +0000 (UTC) (envelope-from gahr@gahr.ch) Received: from cpanel03.rubas-s03.net (cpanel03.rubas-s03.net [195.182.222.73]) by mx1.freebsd.org (Postfix) with ESMTP id 09A3A13CA04 for ; Wed, 20 Feb 2008 00:59:34 +0000 (UTC) (envelope-from gahr@gahr.ch) Received: from 80-218-191-236.dclient.hispeed.ch ([80.218.191.236] helo=gahrtop.localhost) by cpanel03.rubas-s03.net with esmtpa (Exim 4.68) (envelope-from ) id 1JRdJ6-0002AQ-TS for FreeBSD-gnats-submit@freebsd.org; Wed, 20 Feb 2008 01:59:33 +0100 Received: from gahrtop.localhost (localhost [127.0.0.1]) by gahrtop.localhost (Postfix) with ESMTP id BF5F350841 for ; Wed, 20 Feb 2008 01:59:14 +0100 (CET) Message-Id: <1203469154.6825@gahrtop.localhost> Date: Wed, 20 Feb 2008 01:59:14 +0100 From: "Pietro Cerutti" To: "FreeBSD gnats submit" X-Send-Pr-Version: gtk-send-pr 0.4.9 Cc: Subject: ports/120864: [patch] graphics/figurine unbreak fix build on sparc64 + adopt maintainship 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: Wed, 20 Feb 2008 01:10:04 -0000 >Number: 120864 >Category: ports >Synopsis: [patch] graphics/figurine unbreak fix build on sparc64 + adopt maintainship >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Feb 20 01:10:03 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Pietro Cerutti >Release: FreeBSD 8.0-CURRENT i386 >Organization: >Environment: System: FreeBSD 8.0-CURRENT #4: Wed Feb 13 18:13:34 CET 2008 root@gahrtop.localhost:/usr/obj/usr/src/sys/MSI1034 >Description: Optimizations produce bad assembly code on sparc64. While at it, I've beautified the Makefile (according to my taste ;-) and adopted maintainship >How-To-Repeat: >Fix: --- _figurine.diff begins here --- --- Makefile.orig 2008-02-20 01:44:52.000000000 +0100 +++ Makefile 2008-02-20 01:57:15.000000000 +0100 @@ -12,24 +12,32 @@ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= gahr@gahr.ch COMMENT= A drawing program for X11 RUN_DEPENDS= fig2dev:${PORTSDIR}/print/transfig - GNU_CONFIGURE= yes USE_XPM= yes MAN1= figurine.1 +.include + +# Optimizations produce bad assembly code on sparc64 +.if ${ARCH} == "sparc64" +CFLAGS+= -=O0 +.endif + post-patch: .if defined(NOPORTDOCS) @${REINPLACE_CMD} -e "s|Doc examples src|src|" \ ${WRKSRC}/Makefile.in .endif - @${FIND} ${WRKSRC} -type f -name Makefile.in | \ - ${XARGS} -n 10 ${REINPLACE_CMD} \ - -e 's|datadir = @datadir@|datadir = @datadir@/doc|' + @${REINPLACE_CMD} -e 's|datadir = @datadir@|datadir = @datadir@/doc|' \ + ${WRKSRC}/Makefile.in \ + ${WRKSRC}/src/Makefile.in \ + ${WRKSRC}/Doc/Makefile.in \ + ${WRKSRC}/examples/Makefile.in -.include +.include --- _figurine.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: