Subject: pkg/19205: Fix for pkgsrc/security/openssl on machines with "perl5" command
To: None <gnats-bugs@gnats.netbsd.org>
From: None <sketch@rd.bbc.co.uk>
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
>Closed-Date:
>Last-Modified:
>Originator:     Jonathan Perkin
>Release:        Today's CVS
>Organization:
British Broadcasting Corporation
>Environment:
SunOS desk08 5.8 Generic_108528-06 sun4u sparc SUNW,Sun-Blade-100
>Description:
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.
>How-To-Repeat:
--<jonp@desk08>-</cache/pkgsrc/security/openssl>--
-% 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/InputObjects.pm line 500, <GEN0> chunk 382.
[...]
--<jonp@desk08>-</cache/pkgsrc/security/openssl>--
-% which perl5
/usr/local/bin.sun4/perl5
--<jonp@desk08>-</cache/pkgsrc/security/openssl>--
-% perl5 -v

This is perl, version 5.004_04 built for sun4-solaris
>Fix:
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=             ${PKGDIR}/PLIST.${LOWER_OPSYS}
 PLIST_SRC+=            ${PLIST_RSAREF}
>Release-Note:
>Audit-Trail:
>Unformatted: