Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Mar 2008 16:50:40 GMT
From:      Gavin Atkinson <gavin.atkinson@ury.york.ac.uk>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/121607: fix games/netris to build when CC is set to an absolute path
Message-ID:  <200803111650.m2BGoeEH077823@ga9test2.york.ac.uk>
Resent-Message-ID: <200803111700.m2BH02uD042526@freefall.freebsd.org>

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

>Number:         121607
>Category:       ports
>Synopsis:       fix games/netris to build when CC is set to an absolute path
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 11 17:00:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Gavin Atkinson
>Release:        FreeBSD 7.0-BETA3 amd64
>Organization:
>Environment:
System: FreeBSD ga9test2.york.ac.uk 7.0-BETA3 FreeBSD 7.0-BETA3 #0: Fri Nov 16 19:12:38 UTC 2007 root@myers.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64

>Description:
	games/netris fails when CC is set to an absolute path.  Attached patch
fixes it.
>How-To-Repeat:
	setenv CC /usr/bin/gcc
	cd /usr/ports/games/netris
	make all
>Fix:

	

--- netris.diff begins here ---
Index: ports/games/netris/files/patch-aa
===================================================================
RCS file: /home/pcvs/ports/games/netris/files/patch-aa,v
retrieving revision 1.5
diff -u -r1.5 patch-aa
--- ports/games/netris/files/patch-aa	22 Jan 2000 19:05:57 -0000	1.5
+++ ports/games/netris/files/patch-aa	11 Mar 2008 16:48:37 -0000
@@ -1,5 +1,5 @@
---- Configure.orig	Mon Dec 20 14:58:16 1999
-+++ Configure	Mon Dec 20 15:00:24 1999
+--- Configure.orig	2008-03-11 16:27:51.000000000 +0000
++++ Configure	2008-03-11 16:31:27.000000000 +0000
 @@ -85,7 +85,7 @@
  echo "Checking for libraries"
  echo 'main(){}' > test.c
@@ -9,6 +9,15 @@
  	if $CC $CFLAGS $LEXTRA test.c $lib > /dev/null 2>&1; then
  		LFLAGS="$lib"
  	fi
+@@ -204,7 +204,7 @@
+ sed -e "s/-LFLAGS-/$_LFLAGS/g" -e "s/-SRCS-/$SRCS/g" \
+ 	-e "s/-OBJS-/$OBJS/g" -e "s/-DISTFILES-/$DISTFILES/g" \
+ 	-e "s/-COPT-/$_COPT/g" -e "s/-CEXTRA-/$_CEXTRA/g" \
+-	-e "s/-LEXTRA-/$_LEXTRA/g" -e "s/-CC-/$CC/g" \
++	-e "s/-LEXTRA-/$_LEXTRA/g" -e "s%-CC-%$CC%g" \
+ 	<< "END" > Makefile
+ #
+ # Automatically generated by ./Configure -- DO NOT EDIT!
 @@ -285,7 +285,7 @@
  
  install:
--- netris.diff ends here ---


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



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