From nobody@FreeBSD.ORG  Wed Aug  9 17:05:58 2000
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 1660737B89E; Wed,  9 Aug 2000 17:05:58 -0700 (PDT)
Message-Id: <20000810000558.1660737B89E@hub.freebsd.org>
Date: Wed,  9 Aug 2000 17:05:58 -0700 (PDT)
From: spcoltri@omcl.org
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: Fix wrong install directory for port www/p5-HTML
X-Send-Pr-Version: www-1.0

>Number:         20512
>Category:       ports
>Synopsis:       Fix wrong install directory for port www/p5-HTML
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 09 17:10:00 PDT 2000
>Closed-Date:    Thu Aug 10 18:03:47 PDT 2000
>Last-Modified:  Thu Aug 10 18:04:12 PDT 2000
>Originator:     Steve Coltrin
>Release:        4.1-STABLE
>Organization:
Orbital Mind Control Lasers
>Environment:
FreeBSD code.omcl.org 4.1-STABLE FreeBSD 4.1-STABLE #0: Fri Aug  4 17:01:25 MDT 2000     zoot@code.omcl.org:/usr/obj/usr/src/sys/CODE  i386
>Description:
www/p5-HTML installs into lib/perl5/site_perl , rather than
lib/perl5/site_perl/${PERL_VER} . Consequence is that perl cannot find
the module files, and ports which depend on it mistakenly think it is
not installed when it is (and their install breaks when the redundant
install of p5-HTML returns an error).
>How-To-Repeat:
cd /usr/ports/www/p5-HTML && make install && perl -e "use HTML::Base;"
>Fix:
Apply in ports/www :

diff -ur p5-HTML.old/Makefile p5-HTML/Makefile
--- p5-HTML.old/Makefile	Sat Jun 17 17:56:04 2000
+++ p5-HTML/Makefile	Wed Aug  9 17:59:07 2000
@@ -20,8 +20,8 @@
 NO_BUILD=	yes
 
 do-install:
-		@ ${MKDIR} ${PREFIX}/lib/perl5/site_perl/HTML/
-		@ ${INSTALL_DATA} ${WRKDIR}/HTML/Base.pm ${PREFIX}/lib/perl5/site_perl/HTML/
-		@ ${INSTALL_DATA} ${WRKDIR}/html_base.pod ${PREFIX}/lib/perl5/site_perl/
+		@ ${MKDIR} ${PREFIX}/lib/perl5/site_perl/${PERL_VER}/HTML/
+		@ ${INSTALL_DATA} ${WRKDIR}/HTML/Base.pm ${PREFIX}/lib/perl5/site_perl/${PERL_VER}/HTML/
+		@ ${INSTALL_DATA} ${WRKDIR}/html_base.pod ${PREFIX}/lib/perl5/site_perl/${PERL_VER}/
 
 .include <bsd.port.mk>
diff -ur p5-HTML.old/pkg/PLIST p5-HTML/pkg/PLIST
--- p5-HTML.old/pkg/PLIST	Thu Oct 24 02:42:50 1996
+++ p5-HTML/pkg/PLIST	Wed Aug  9 18:01:18 2000
@@ -1,2 +1,2 @@
-lib/perl5/site_perl/HTML/Base.pm
-lib/perl5/site_perl/html_base.pod
+lib/perl5/site_perl/%%PERL_VER%%/HTML/Base.pm
+lib/perl5/site_perl/%%PERL_VER%%/html_base.pod

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: will 
State-Changed-When: Thu Aug 10 18:03:47 PDT 2000 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20512 
>Unformatted:
