From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jul 27 08:10:11 2011 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 4DC4B106567A for ; Wed, 27 Jul 2011 08:10:11 +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 015DC8FC1F for ; Wed, 27 Jul 2011 08:10:10 +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 p6R8A9mE009876 for ; Wed, 27 Jul 2011 08:10:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p6R8A9Ua009875; Wed, 27 Jul 2011 08:10:09 GMT (envelope-from gnats) Resent-Date: Wed, 27 Jul 2011 08:10:09 GMT Resent-Message-Id: <201107270810.p6R8A9Ua009875@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, Zhihao Yuan Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B1507106564A for ; Wed, 27 Jul 2011 08:05:26 +0000 (UTC) (envelope-from lichray@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7C7208FC13 for ; Wed, 27 Jul 2011 08:05:26 +0000 (UTC) Received: by iyb11 with SMTP id 11so2016712iyb.13 for ; Wed, 27 Jul 2011 01:05:25 -0700 (PDT) Received: by 10.231.197.16 with SMTP id ei16mr3919548ibb.111.1311753925478; Wed, 27 Jul 2011 01:05:25 -0700 (PDT) Received: from compaq.yuetime (c-98-228-191-105.hsd1.il.comcast.net [98.228.191.105]) by mx.google.com with ESMTPS id a11sm909938ibg.55.2011.07.27.01.05.23 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 27 Jul 2011 01:05:24 -0700 (PDT) Received: by compaq.yuetime (sSMTP sendmail emulation); Wed, 27 Jul 2011 03:05:20 -0500 Message-Id: <4e2fc6c4.cb32e70a.6a4c.2818@mx.google.com> Date: Wed, 27 Jul 2011 03:05:20 -0500 From: Zhihao Yuan To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/159225: [PATCH]Disable unsupported CFLAGS on non-x86 platforms X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Zhihao Yuan List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jul 2011 08:10:11 -0000 >Number: 159225 >Category: ports >Synopsis: [PATCH]Disable unsupported CFLAGS on non-x86 platforms >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Wed Jul 27 08:10:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Zhihao Yuan >Release: FreeBSD 8.2-STABLE amd64 >Organization: >Environment: System: FreeBSD compaq.yuetime 8.2-STABLE FreeBSD 8.2-STABLE #2 r224038: Thu Jul 14 21:40:15 CDT 2011 lichray@compaq.yuetime:/usr/obj/home/lichray/devel/freebsd-stable/sys/HOUKAGO amd64 >Description: SSE does not exist on platforms other then i386 and amd64. And -march should be placed by users (FreeBSD already put one, actually). So this patch switches to the release build, and only enables SSE on supported platforms. >How-To-Repeat: >Fix: Note that I also unbroken the build on sparc64. I want a call for tests, and know why it does not build. --- mupdf_3.patch begins here --- diff -ruN --exclude=CVS /usr/ports/graphics/mupdf.orig/Makefile /usr/ports/graphics/mupdf/Makefile --- /usr/ports/graphics/mupdf.orig/Makefile 2011-07-16 00:26:21.000000000 -0500 +++ /usr/ports/graphics/mupdf/Makefile 2011-07-27 02:57:43.364209603 -0500 @@ -6,7 +6,7 @@ PORTNAME= mupdf PORTVERSION= 0.8.165 -PORTREVISION= 2 +PORTREVISION= 3 PORTEPOCH= 1 CATEGORIES= graphics MASTER_SITES= GOOGLE_CODE \ @@ -22,7 +22,7 @@ openjpeg.2:${PORTSDIR}/graphics/openjpeg USE_GMAKE= yes -MAKE_ARGS+= build=native prefix=${PREFIX} verbose=1 mandir=${PREFIX}/man +MAKE_ARGS+= build=release prefix=${PREFIX} verbose=1 mandir=${PREFIX}/man USE_XORG= x11 xext USE_GNOME= pkgconfig MAN1= mupdf.1 mu_pdfclean.1 mu_pdfdraw.1 mu_pdfshow.1 @@ -36,6 +36,10 @@ .include +.if ${ARCH} == "amd64" || ${ARCH} == "i386" +CFLAGS+= -mfpmath=sse +.endif + .if defined(WITH_SCROLL) EXTRA_PATCHES+= ${FILESDIR}/scroll_hack-apps_pdfapp.c .endif @@ -60,9 +64,4 @@ ${FIND} ${WRKSRC} -name pdf\*.1 -exec ${SH} -c 'mv {} $$(dirname {})/mu_$$(basename {})' \; .include - -.if ${ARCH} == "sparc64" -BROKEN= Does not compile on sparc64 : uses i386-specific options -.endif - .include --- mupdf_3.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: