Subject: pkg/19205: Fix for pkgsrc/security/openssl on machines with "perl5" command
To: None <>
From: None <>
List: netbsd-bugs
Date: 11/29/2002 12:14:15
>Number:         19205
>Category:       pkg
>Synopsis:       Fix for pkgsrc/security/openssl on machines with "perl5" command
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 29 12:15:00 PST 2002
>Originator:     Jonathan Perkin
>Release:        Today's CVS
British Broadcasting Corporation
SunOS desk08 5.8 Generic_108528-06 sun4u sparc SUNW,Sun-Blade-100
openssl only checks for $PERL, then if that doesn't exist prefers "perl5"
over "perl".  This breaks machines which have a "perl5" binary, as that
will be used before the pkgsrc-installed version.

It should correctly check $PERL5 on pkgsrc systems as that is what is
used internally.
-% bmake install
installing man1/version.1
installing man1/x509.1
Can't call method "isa" on unblessed reference at /usr/local/lib/perl5/site_perl/Pod/ line 500, <GEN0> chunk 382.
-% which perl5
-% perl5 -v

This is perl, version 5.004_04 built for sun4-solaris
Index: Makefile
RCS file: /cvsroot/pkgsrc/security/openssl/Makefile,v
retrieving revision 1.61
diff -u -r1.61 Makefile
--- Makefile    2002/09/07 07:17:00     1.61
+++ Makefile    2002/11/29 20:01:36
@@ -22,7 +22,7 @@
 USE_BUILDLINK2=                YES
 CONFIGURE_SCRIPT=      config
 CONFIGURE_ARGS=                shared --openssldir=${PKG_SYSCONFDIR} --prefix=${PREFIX}
-CONFIGURE_ENV=         CC="${CC}"
+CONFIGURE_ENV=         CC="${CC}" PERL="${PERL5}"
 PLIST_SRC+=            ${PLIST_RSAREF}