ports/86556: Missing dependency in p5-Crypt-OpenSSL-RSA

Kevin Golding kevin at caomhin.demon.co.uk
Sun Sep 25 13:20:20 UTC 2005


>Number:         86556
>Category:       ports
>Synopsis:       Missing dependency in p5-Crypt-OpenSSL-RSA
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 25 13:20:19 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Kevin Golding
>Release:        FreeBSD 5.3-RELEASE-p17 i386
>Organization:
>Environment:
System: FreeBSD hive.caomhin.org 5.3-RELEASE-p17 FreeBSD 5.3-RELEASE-p17 #1: Thu Jun 30 17:35:51 BST 2005 kgolding at hive.caomhin.org:/usr/obj/usr/src/sys/HIVE i386


	
>Description:
After upgrading SpamAssassin the following error appeared when starting
the daemon:

spamd[83367]: Can't locate Crypt/OpenSSL/Bignum.pm in @INC (@INC
contains: lib ../lib /usr/local/lib/perl5/site_perl/5.8.6 /usr/local/lib
/perl5/site_perl/5.8.6/mach /usr/local/lib/perl5/site_perl/5.8.5
/usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.6/BSDPAN
/usr/local/lib/perl5/5.8.6/mach /usr/local/lib/perl5/5.8.6) at
/usr/local/lib/perl5/site_perl/5.8.6/mach/Crypt/OpenSSL/RSA.pm line 29

Since this release introduced DomainKeys support I assumed that was the
cause of these messages.  This is somewhat supported by the following in
the log when processing a message:

spamd[58775]: Can't call method "verify" on an undefined value at
/usr/local/lib/perl5/site_perl/5.8.6/Mail/DomainKeys/Key/Public.pm line
178, <GEN12> line 89.

At first I assumed that p5-Mail-DomainKeys was missing the dependency,
however it simply calls some functions in p5-Crypt-OpenSSL-RSA that
require p5-Crypt-OpenSSL-Bignum.  It seems that the functions have been
around for a while but the requirement on Bignum isn't listed on CPAN
either, which means the dependency could possibly belong somewhere else
instead.

>How-To-Repeat:
Install SpamAssassin 3.1, enable DomainKeys, watch logs.  Else call new_key_from_parameters or get_key_parameters from a script on a machine without p5-Crypt-OpenSSL-RSA-Bignum installed
>Fix:

	

--- openssl-rsa-bignum.patch begins here ---
--- Makefile.orig	Wed Sep 21 19:41:55 2005
+++ Makefile	Sun Sep 25 13:42:17 2005
@@ -7,6 +7,7 @@
 
 PORTNAME=	Crypt-OpenSSL-RSA
 PORTVERSION=	0.22
+PORTREVISION=	1
 CATEGORIES=	security perl5
 MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
 MASTER_SITE_SUBDIR=	../../authors/id/C/CD/CDRAKE/
@@ -15,7 +16,8 @@
 MAINTAINER=	perl at FreeBSD.org
 COMMENT=	Perl5 module to RSA encode and decode strings using OpenSSL
 
-BUILD_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/Crypt/OpenSSL/Random.pm:${PORTSDIR}/security/p5-Crypt-OpenSSL-Random
+BUILD_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/Crypt/OpenSSL/Random.pm:${PORTSDIR}/security/p5-Crypt-OpenSSL-Random \
+		${SITE_PERL}/${PERL_ARCH}/Crypt/OpenSSL/Bignum.pm:${PORTSDIR}/security/p5-Crypt-OpenSSL-Bignum
 RUN_DEPENDS=	${BUILD_DEPENDS}
 
 PERL_CONFIGURE=	yes
--- openssl-rsa-bignum.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list