From caomhin@hive.beehost.net  Sun Sep 25 13:15:58 2005
Return-Path: <caomhin@hive.beehost.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 44A8516A420
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 25 Sep 2005 13:15:58 +0000 (GMT)
	(envelope-from caomhin@hive.beehost.net)
Received: from hive.beehost.net (hive.beehost.net [64.49.223.162])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C14C543D48
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 25 Sep 2005 13:15:57 +0000 (GMT)
	(envelope-from caomhin@hive.beehost.net)
Received: (qmail 59646 invoked by uid 1101); 25 Sep 2005 13:16:07 -0000
Message-Id: <20050925131607.59645.qmail@hive.beehost.net>
Date: 25 Sep 2005 13:16:07 -0000
From: Kevin Golding <kevin@caomhin.demon.co.uk>
Reply-To: Kevin Golding <kevin@caomhin.demon.co.uk>
To: FreeBSD-gnats-submit@freebsd.org
Cc: perl@freebsd.org
Subject: Missing dependency in p5-Crypt-OpenSSL-RSA
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         86556
>Category:       ports
>Synopsis:       Missing dependency in p5-Crypt-OpenSSL-RSA
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 25 13:20:19 GMT 2005
>Closed-Date:    Sun Sep 25 15:33:38 CEST 2005
>Last-Modified:  Sun Sep 25 15:33:38 CEST 2005
>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@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@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:
State-Changed-From-To: open->closed 
State-Changed-By: tobez 
State-Changed-When: Sun Sep 25 15:33:24 CEST 2005 
State-Changed-Why:  
Fix committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=86556 
>Unformatted:
