Date: 15 Sep 2007 14:56:14 -0600 From: shoemaker@bluebottle.com (Jonathan Shoemaker) To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/116379: [Maintainer Update]: fix arch-related issues Message-ID: <864phvodg1.fsf@localhost.lan> Resent-Message-ID: <200709152100.l8FL04wS003627@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 116379 >Category: ports >Synopsis: [Maintainer Update]: fix arch-related issues >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: Sat Sep 15 21:00:03 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Jonathan Shoemaker >Release: FreeBSD 6.2-RELEASE-p7 i386 >Organization: >Environment: System: FreeBSD localhost 6.2-RELEASE-p7 FreeBSD 6.2-RELEASE-p7 #0: Sat Sep 8 13:47:46 MDT 2007 root@localhost:/var/obj/usr/src/sys/CUSTOM i386 >Description: Received email stating "build fails on amd64 system with a message about unsupported instructions. [...] Modifying patch-Makefile so that -m486 / -mtune 486 option is removed fixed the problem for me." Updated Makefile to add PORTREVISION so that updates will be seen by ports-tools, implemented arch suggestions for fixes, removing most mention of architecture specific instructions. Those will likely be in make.conf, anyway, and if so will be passed along due to inclusion. >How-To-Repeat: Compile on amd64 (others as well, likely) >Fix: diff -ruN games/crafty/Makefile games/crafty/Makefile.orig --- games/crafty/Makefile Tue Sep 11 12:59:05 2007 +++ games/crafty/Makefile Sat Sep 15 14:37:47 2007 @@ -7,6 +7,7 @@ PORTNAME= crafty PORTVERSION= 20.14 +PORTREVISION= 1 CATEGORIES= games MASTER_SITES= ftp://ftp.cis.uab.edu/pub/hyatt/pgn/:data \ ftp://ftp.cis.uab.edu/pub/hyatt/documentation/:doc \ @@ -54,14 +55,6 @@ .if ${ARCH} == "i386" OPT+= -DINLINE32 -# XXX Someone with ASM knowledge would have to fix the Sparc.S -.elif ${ARCH} == "sparc64" -OPT+= -DINLINE32 -CFLAGS+= '$(CFLAGS) -D_REENTRANT -O3 -Wall \ - -fomit-frame-pointer -funroll-all-loops \ - -finline-functions -ffast-math' \ -.else -OPT+= -DFAST .endif MAKE_ENV+= opt="${OPT}" target=${OPSYS} CXFLAGS="${CXXFLAGS}" --- games/crafty/files/patch-Makefile.orig Sun Sep 9 19:11:54 2007 +++ games/crafty/files/patch-Makefile Sat Sep 15 14:39:45 2007 @@ -8,7 +8,7 @@ - CXFLAGS=$(CFLAGS) \ - LDFLAGS=$(LDFLAGS) \ - opt='$(opt) -DINLINE32' \ -+ CFLAGS+='-fomit-frame-pointer -mtune=i486 -O3 -Wall' \ ++ CFLAGS+='-fomit-frame-pointer -Wall' \ + CXFLAGS+='$(CXXFLAGS)' \ + LDFLAGS='$(LDFLAGS) -lstdc++' \ + opt='$(opt)' \ ---------------------------------------------------------------------- Free pop3 email with a spam filter. http://www.bluebottle.com/tag/5 >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?864phvodg1.fsf>