[Custom LOCALBASE/PREFIX] lang/p5-Tcl - fails: compiler_error

Cezary Morga cm at therek.net
Wed Jul 8 21:04:30 UTC 2009


QAT at freebsd.org pisze:
> The Restless Daemon identified a compiler error while trying to build:
>  p5-Tcl-0.97_2 maintained by perl at FreeBSD.org
>  Makefile ident: $FreeBSD: ports/lang/p5-Tcl/Makefile,v 1.33 2009/03/05 11:36:12 mm Exp $

A patch for this issue in attachment. HTH

-- 
Cezary Morga
"The world is a tragedy to those who feel, but a comedy to those who 
think." (Horace Walpole)
-------------- next part --------------
diff -ruN lang/p5-Tcl.orig/files/patch-Makefile.PL lang/p5-Tcl/files/patch-Makefile.PL
--- lang/p5-Tcl.orig/files/patch-Makefile.PL	1970-01-01 01:00:00.000000000 +0100
+++ lang/p5-Tcl/files/patch-Makefile.PL	2009-07-08 22:53:46.624734000 +0200
@@ -0,0 +1,13 @@
+--- Makefile.PL.orig	2008-09-07 00:32:03.000000000 +0000
++++ Makefile.PL	2009-07-08 20:52:52.404852410 +0000
+@@ -192,8 +192,9 @@ if (defined($libpath) && defined($incpat
+ 	    $defs .= " -DTCL_LIB_FILE=\\\"tcl$tclver.dll\\\"" if $usestubs; 
+ 	}
+ 	elsif ($^O eq 'freebsd') {
++	    $tclcfg{tcl_library} =~ /^(.*)[\\\/]lib[\\\/]/ and
++	        $incpath .= " -I$1/include/tcl$tclver";
+ 	    $tclver=~s/\.//;
+-	    $tclsh=~/([\d.]+)$/ and $incpath .= " -I/usr/local/include/tcl$1";
+ 	    $defs .= " -DTCL_LIB_FILE=\\\"libtcl$tclver.so\\\"" if $usestubs; 
+ 	}
+ 	elsif ($^O eq 'hpux') {


More information about the freebsd-perl mailing list