From cjc@attbi.com  Wed Aug 14 12:17:05 2002
Return-Path: <cjc@attbi.com>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B2E6437B400
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 14 Aug 2002 12:17:05 -0700 (PDT)
Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 5060143E6E
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 14 Aug 2002 12:17:05 -0700 (PDT)
	(envelope-from cjc@attbi.com)
Received: from blossom.cjclark.org ([12.234.91.48]) by rwcrmhc51.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020814191704.OATN19356.rwcrmhc51.attbi.com@blossom.cjclark.org>
          for <FreeBSD-gnats-submit@freebsd.org>;
          Wed, 14 Aug 2002 19:17:04 +0000
Received: from blossom.cjclark.org (localhost. [127.0.0.1])
	by blossom.cjclark.org (8.12.3/8.12.3) with ESMTP id g7EJH4JK030486
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 14 Aug 2002 12:17:04 -0700 (PDT)
	(envelope-from cjc@blossom.cjclark.org)
Received: (from cjc@localhost)
	by blossom.cjclark.org (8.12.3/8.12.3/Submit) id g7EJH3Pa030485;
	Wed, 14 Aug 2002 12:17:03 -0700 (PDT)
Message-Id: <200208141917.g7EJH3Pa030485@blossom.cjclark.org>
Date: Wed, 14 Aug 2002 12:17:03 -0700 (PDT)
From: "Crist J. Clark" <cjc@freebsd.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: p5-PodParser does not build due to old File::Spec
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         41668
>Category:       ports
>Synopsis:       p5-PodParser does not build due to old File::Spec
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    skv
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 14 12:20:01 PDT 2002
>Closed-Date:    Thu Sep 12 10:25:20 PDT 2002
>Last-Modified:  Thu Sep 12 10:25:20 PDT 2002
>Originator:     Crist J. Clark
>Release:        FreeBSD 4.5-RELEASE i386
>Organization:
>Environment:
	Ports CVSup'ed as of 2002/08/14
>Description:
	The build phase of the PodParser module, fails due to the
presence of the older File::Spec module in the base Perl install. The
newer File::Spec, which is installed if needed earlier in the port
build, is not found.

  # cd /usr/ports/textproc/p5-PodParser/
  # make
  ===>  Configuring for p5-PodParser-1.18
  You need at least version 0.8 of the File::Spec module!
  BEGIN failed--compilation aborted at ./Makefile.PL line 14.
  *** Error code 255

  Stop in /export/freebsd/ports/textproc/p5-PodParser.

>How-To-Repeat:
	See "Description."
>Fix:
	There are patches in the port to allow the installed files to
find the newer File::Spec module rather than the old. For some reason,
the build process has not been patched in the same way. I merely
copied the same code added to these other files to Makefile.PL and the
build went smoothly,

--- Makefile.PL~	Thu Aug 10 14:41:59 2000
+++ Makefile.PL	Wed Aug 14 12:09:03 2002
@@ -6,6 +6,9 @@
 
 BEGIN {
     require 5.005;
+    # Added by FreeBSD ports to make sure newer version of File::Spec is used
+    use Config;
+    use lib $Config{installsitelib}; # installsitearch will be added automatically
     eval { require File::Spec };
     $@  and  die "You need to install the File::Spec module first!\n";
 	if(($File::Spec::VERSION || 0) < 0.8) {

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->skv 
Responsible-Changed-By: lioux 
Responsible-Changed-When: Wed Aug 14 14:49:26 PDT 2002 
Responsible-Changed-Why:  
Over to maintainer(s) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=41668 
State-Changed-From-To: open->closed 
State-Changed-By: skv 
State-Changed-When: Thu Sep 12 10:25:09 PDT 2002 
State-Changed-Why:  
Fixed. 

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