Subject: CVS commit: pkgsrc/lang/perl5/patches
To: None <>
From: Johnny C. Lam <>
List: pkgsrc-changes
Date: 10/14/2001 22:55:48
Module Name:	pkgsrc
Committed By:	jlam
Date:		Sun Oct 14 19:55:48 UTC 2001

Modified Files:
	doc: pkg-CHANGES
	pkgsrc/lang/perl5: Makefile distinfo
Added Files:
	pkgsrc/lang/perl5/patches: patch-ag

Log Message:
Add a patch to the perl package that causes perl modules from CPAN to link
directly against -lperl when built.  Combined with the previous update of
perl to add ${LOCALBASE}/lib to the rpath when creating shared
libraries/modules, these two changes make using (ap-perl) more
painless.  All perl shared modules now contain interlibrary dependencies to
the shared libraries they need.  Instead of needing (at least on ELF):

        LoadFile !/usr/lib/
        LoadFile lib/perl5/5.6.1/i386-netbsd/CORE/
        # Any other libraries needed by perl shared modules need to listed
        # with LoadFile here.
        LoadModule perl_module lib/httpd/
        AddModule mod_perl.c

you'd need only the last two lines as the mod_perl authors intended.

I've tested this patch for many weeks now, successfully loading and using
the p5-Apache-ASP module as my test bed, and I haven't noticed any problems
with normal perl usage.

Also comment the Makefile slightly better.

To generate a diff of this commit:
cvs rdiff -r1.5259 -r1.5260 doc/pkg-CHANGES
cvs rdiff -r1.47 -r1.48 pkgsrc/lang/perl5/Makefile
cvs rdiff -r1.7 -r1.8 pkgsrc/lang/perl5/distinfo
cvs rdiff -r0 -r1.7 pkgsrc/lang/perl5/patches/patch-ag

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.