pkgsrc/textproc/p5-XML-Parser/patches/patch-aa
hubertf b4404f763a Fix previous problem (libexpat looked for in libpth dir, and of course
not found if pth is not installed) differently: look in $Config{prefix}/lib
first.

Patch mailed to the perl folks (perl-xml@lyris.activestate.com)
2001-10-16 00:22:04 +00:00

14 lines
511 B
Text

$NetBSD: patch-aa,v 1.1 2001/10/16 00:22:04 hubertf Exp $
--- Makefile.PL.orig Wed Oct 4 18:49:11 2000
+++ Makefile.PL Tue Oct 16 02:17:09 2001
@@ -25,7 +25,8 @@
unless ($expat_libpath) {
# Test for existence of libexpat
my $found = 0;
- foreach (split(/\s+/, $Config{libpth})) {
+ # HF: look in the perl base dir too, as libpth may not be installed:
+ foreach ( $Config{prefix} . "/lib" , split(/\s+/, $Config{libpth})) {
if (-f "$_/libexpat." . $Config{so}) {
$found = 1;
last;