Wed Feb 3 13:29:38 2010 UTC ()
Don't use "${PKG_PREFIX}" which is not set when this script gets run.
This avoids error messages from "perllink" while deinstalling (or
updateing) a Perl module package.

Fixed based on an analysis provided by Steven Drake on "tech-pkg".


(tron)
diff -r1.1 -r1.2 pkgsrc/lang/perl5/files/deinstall.tmpl

cvs diff -r1.1 -r1.2 pkgsrc/lang/perl5/files/deinstall.tmpl (expand / switch to unified diff)

--- pkgsrc/lang/perl5/files/deinstall.tmpl 2005/08/12 19:59:03 1.1
+++ pkgsrc/lang/perl5/files/deinstall.tmpl 2010/02/03 13:29:37 1.2
@@ -1,23 +1,23 @@ @@ -1,23 +1,23 @@
1# $NetBSD: deinstall.tmpl,v 1.1 2005/08/12 19:59:03 jlam Exp $ 1# $NetBSD: deinstall.tmpl,v 1.2 2010/02/03 13:29:37 tron Exp $
2 2
3case ${STAGE} in 3case ${STAGE} in
4DEINSTALL) 4DEINSTALL)
5 eval `${PERL5} -V:prefix -V:archlib -V:scriptdir` 5 eval `${PERL5} -V:prefix -V:archlib -V:scriptdir`
6 PERL5_PACKLIST="@PERL5_PACKLIST@" 6 PERL5_PACKLIST="@PERL5_PACKLIST@"
7 7
8 # Remove the perllocal.pod file. 8 # Remove the perllocal.pod file.
9 case "$archlib" in 9 case "$archlib" in
10 $prefix/*) archlib="${PKG_PREFIX}/${archlib#$prefix/}" ;; 10 $prefix/*) archlib="@PREFIX@/${archlib#$prefix/}" ;;
11 esac 11 esac
12 ${RM} -f $archlib/perllocal.pod 12 ${RM} -f $archlib/perllocal.pod
13 ${RMDIR} -p $archlib 2>/dev/null || ${TRUE} 13 ${RMDIR} -p $archlib 2>/dev/null || ${TRUE}
14 14
15 # Remove any symlinked bits that belong to this module. 15 # Remove any symlinked bits that belong to this module.
16 $scriptdir/perllink -f -p ${PKG_PREFIX} delete ${PERL5_PACKLIST} 16 $scriptdir/perllink -f -p @PREFIX@ delete ${PERL5_PACKLIST}
17 17
18 # If this is not the perl package, then re-link any perl bits 18 # If this is not the perl package, then re-link any perl bits
19 # back into place. 19 # back into place.
20 # 20 #
21 @PERL5_COMMENT@$scriptdir/perllink -p ${PKG_PREFIX} add 21 @PERL5_COMMENT@$scriptdir/perllink -p @PREFIX@ add
22 ;; 22 ;;
23esac 23esac