From dan@dan.emsphone.com  Thu Feb 21 09:12:28 2002
Return-Path: <dan@dan.emsphone.com>
Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101])
	by hub.freebsd.org (Postfix) with ESMTP id 6F46D37B405
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 21 Feb 2002 09:12:27 -0800 (PST)
Received: (from dan@localhost)
	by dan.emsphone.com (8.11.6/8.11.6) id g1LHCQt63424;
	Thu, 21 Feb 2002 11:12:26 -0600 (CST)
	(envelope-from dan)
Message-Id: <200202211712.g1LHCQt63424@dan.emsphone.com>
Date: Thu, 21 Feb 2002 11:12:26 -0600 (CST)
From: Dan Nelson <dnelson@allantgroup.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [patch] ruby-optparse use of uninitialized variable in Makefile
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         35184
>Category:       ports
>Synopsis:       [patch] ruby-optparse use of uninitialized variable in Makefile
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 21 09:20:01 PST 2002
>Closed-Date:    Fri Feb 22 04:44:49 JST 2002
>Last-Modified:  Fri Feb 22 04:45:01 JST 2002
>Originator:     Dan Nelson
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
The Allant Group
>Environment:
System: FreeBSD dan.emsphone.com 5.0-CURRENT FreeBSD 5.0-CURRENT #131: Tue Feb 19 11:33:38 CST 2002 zsh@dan.emsphone.com:/usr/src/sys/i386/compile/DANSMP i386


	
>Description:

The do-install target of the port Makefile uses ${f} before it is set. 
This makes the install fail if the user has an environment variable 'f'
set.

	
>How-To-Repeat:

export f=hello
make install

	
>Fix:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/devel/ruby-optparse/Makefile,v
retrieving revision 1.19
diff -u -r1.19 Makefile
--- Makefile	13 Dec 2001 05:02:24 -0000	1.19
+++ Makefile	21 Feb 2002 16:48:03 -0000
@@ -36,7 +36,7 @@
 do-install:
 	${MKDIR} ${RUBY_SITELIBDIR}/${PORTNAME}
 	${INSTALL_DATA} ${WRKSRC}/optparse.rb ${RUBY_SITELIBDIR}/
-	${INSTALL_DATA} ${WRKSRC}/optparse/*.rb${f} ${RUBY_SITELIBDIR}/${PORTNAME}/
+	${INSTALL_DATA} ${WRKSRC}/optparse/*.rb ${RUBY_SITELIBDIR}/${PORTNAME}/
 .if !defined(NOPORTDOCS)
 	${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME}/ja
 	${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}/ja

	


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: knu 
State-Changed-When: Fri Feb 22 04:44:49 JST 2002 
State-Changed-Why:  
Committed, thanks! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=35184 
>Unformatted:
