Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Aug 2002 12:17:03 -0700 (PDT)
From:      "Crist J. Clark" <cjc@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/41668: p5-PodParser does not build due to old File::Spec
Message-ID:  <200208141917.g7EJH3Pa030485@blossom.cjclark.org>

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

>Number:         41668
>Category:       ports
>Synopsis:       p5-PodParser does not build due to old File::Spec
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 14 12:20:01 PDT 2002
>Closed-Date:
>Last-Modified:
>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:
>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?200208141917.g7EJH3Pa030485>