Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jun 1999 14:42:57 -0400 (EDT)
From:      Will Andrews <andrews@technologist.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/12364: lang/gnat does not fully honor PREFIX?
Message-ID:  <199906231842.OAA45569@shadow.blackdawn.com>

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

>Number:         12364
>Category:       ports
>Synopsis:       lang/gnat does not fully honor PREFIX?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 23 11:50:00 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Will Andrews
>Release:        FreeBSD 3.2-STABLE i386
>Organization:
none
>Environment:

FreeBSD shadow.blackdawn.com 3.2-STABLE FreeBSD 3.2-STABLE #0: Wed Jun 23 12:45:
46 EDT 1999     root@shadow.blackdawn.com:/usr/src/sys/compile/SHADOW  i386

>Description:

Some of the lines in lang/gnat's Makefile refers to hardcoded /usr/local,
rather than ${PREFIX}.. I'm not sure if this is a requirement in the port,
so I'm posting this in hopes that the port maintainer will see this and
make a reply as to whether the Makefile needs to be updated.

>How-To-Repeat:

Irrelevant.

>Fix:
	
diff -urN Makefile.old Makefile
--- Makefile.old        Wed Jun 23 14:32:46 1999
+++ Makefile    Wed Jun 23 14:40:42 1999
@@ -23,10 +23,10 @@

 MAINTAINER=    maurice@serc.rmit.edu.au

-.if !exists(/usr/local/bin/gnatf)
+.if !exists(${PREFIX}/bin/gnatf)
 BROKEN=                "requires existing gnat compiler"
 .endif
-.if !exists(/usr/local/bin/adagcc)
+.if !exists(${PREFIX}/bin/adagcc)
 BROKEN=                "requires patched gcc compiler"
 .endif
 # You need a compiler who calls an existing gnat compiler (3.08 or greater):
@@ -37,7 +37,7 @@
 MAN1=          adagcc.1 cccp.1

 # Make sure we use the patched gcc compiler
-CC = /usr/local/bin/adagcc
+CC = ${PREFIX}/bin/adagcc

 # Which version of gcc do we have? Must be 2.7.2.1
 CCVERSION= 2.7.2.1

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


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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