Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Sep 2013 18:01:38 GMT
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/181944: games/iourbanterror: gcc not found
Message-ID:  <201309081801.r88I1c3v081362@oldred.freebsd.org>
Resent-Message-ID: <201309081810.r88IA0nu083690@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         181944
>Category:       ports
>Synopsis:       games/iourbanterror: gcc not found
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 08 18:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     O. Hartmann
>Release:        FreeBSD 10.0-CURRENT/amd64
>Organization:
FU Berlin
>Environment:
FreeBSD 10.0-CURRENT #1 r255363: Sat Sep  7 18:14:10 CEST 2013 
>Description:
On most recent CURRENT, gcc has gone.

The recreative port games/iourbanterror fails to compile due to hardcoded gcc.


>How-To-Repeat:
Try compiling games/iourbanterror on most recent gcc-free CURRENT.
>Fix:
Apply patched port's Makefile and "repair" a misguieded sed -e command in the toplevel Makefile of the port.

Patch attached with submission follows:

diff -Nur iourbanterror.orig/Makefile iourbanterror/Makefile
--- iourbanterror.orig/Makefile	2013-09-08 19:59:40.000000000 +0200
+++ iourbanterror/Makefile	2013-09-08 19:52:47.000000000 +0200
@@ -31,7 +31,8 @@
 HOMEPATH=	/.ioUrbanTerror
 
 MAKE_ARGS+=	BUILD_MISSIONPACK=0 \
-		BUILD_STANDALONE=1
+		BUILD_STANDALONE=1 \
+		TOOLS_CC=${CC}
 
 post-patch:
 	@${REINPLACE_CMD} \
diff -Nur iourbanterror.orig/files/patch-Makefile iourbanterror/files/patch-Makefile
--- iourbanterror.orig/files/patch-Makefile	1970-01-01 01:00:00.000000000 +0100
+++ iourbanterror/files/patch-Makefile	2013-09-08 19:54:11.000000000 +0200
@@ -0,0 +1,24 @@
+--- Makefile.orig	2013-09-08 19:53:13.000000000 +0200
++++ Makefile	2013-09-08 19:53:50.000000000 +0200
+@@ -4,17 +4,17 @@
+ # GNU Make required
+ #
+ 
+-COMPILE_PLATFORM=$(shell uname|sed -e s/_.*//|tr '[:upper:]' '[:lower:]'|sed -e 's/\//_/g')
++COMPILE_PLATFORM=$(shell uname|sed -e 's/_.*//' | tr '[:upper:]' '[:lower:]'|sed -e 's/\//_/g')
+ 
+-COMPILE_ARCH=$(shell uname -m | sed -e s/i.86/x86/)
++COMPILE_ARCH=$(shell uname -m | sed -e 's/i.86/x86/')
+ 
+ ifeq ($(COMPILE_PLATFORM),sunos)
+   # Solaris uname and GNU uname differ
+-  COMPILE_ARCH=$(shell uname -p | sed -e s/i.86/x86/)
++  COMPILE_ARCH=$(shell uname -p | sed -e 's/i.86/x86/')
+ endif
+ ifeq ($(COMPILE_PLATFORM),darwin)
+   # Apple does some things a little differently...
+-  COMPILE_ARCH=$(shell uname -p | sed -e s/i.86/x86/)
++  COMPILE_ARCH=$(shell uname -p | sed -e 's/i.86/x86/')
+ endif
+ 
+ ifndef BUILD_STANDALONE


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309081801.r88I1c3v081362>