From marc@informatik.uni-bremen.de  Tue Nov 19 13:58:11 2002
Return-Path: <marc@informatik.uni-bremen.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 42B9537B40A
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 19 Nov 2002 13:58:11 -0800 (PST)
Received: from popelschnipser.de (ultrakoreggd.org [217.160.78.206])
	by mx1.FreeBSD.org (Postfix) with SMTP id 5DDA843E77
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 19 Nov 2002 13:58:04 -0800 (PST)
	(envelope-from marc@informatik.uni-bremen.de)
Received: (qmail 17709 invoked by uid 1048); 19 Nov 2002 21:58:02 -0000
Received: from marc@informatik.uni-bremen.de by p10089345 by uid 1045 with qmail-scanner-1.14 
 (spamassassin: 2.42.  Clear:. 
 Processed in 0.045846 secs); 19 Nov 2002 21:58:02 -0000
Received: from unknown (HELO ?192.168.100.100?) (217.82.124.203)
  by ultrakoreggd.org with SMTP; 19 Nov 2002 21:58:02 -0000
Message-Id: <38850000.1037743080@leeloo.intern.geht.de>
Date: Tue, 19 Nov 2002 22:58:00 +0100
From: Marc Recht <marc@informatik.uni-bremen.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc: knu@freebsd.org
Subject: fix for bsd.port.mk

>Number:         45495
>Category:       ports
>Synopsis:       Fix port bsd.port.mk to build when there is no system ssl
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    dinoex
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 19 14:00:06 PST 2002
>Closed-Date:    Fri Sep 05 19:08:26 CEST 2003
>Last-Modified:  Fri Sep 05 19:09:44 CEST 2003
>Originator:     Marc Recht <marc@informatik.uni-bremen.de>
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD leeloo.intern.geht.de 5.0-CURRENT FreeBSD 5.0-CURRENT #0: 
Tue Nov 19 19:05:23 CET 2002 
root@leeloo.intern.geht.de:/usr/obj/usr/src/sys/LEELOO i386



>Description:
If ${OSVERSION} >= 400014 then bsd.port.mk tries to use the system ssl and 
fails
if none is available. Since it could be that the openssl port is installed, 
it
should check for it, too. The attached patch fixes that problem.

>How-To-Repeat:
Remove system ssl and try to build a port with USE_SSL.

>Fix:
--- bsd.port.mk.orig	Tue Nov 19 20:19:21 2002
+++ bsd.port.mk	Tue Nov 19 20:23:56 2002
@@ -734,7 +734,7 @@

 .if defined(USE_OPENSSL)
 .if ${OSVERSION} >= 400014
-.if !exists(/usr/lib/libcrypto.so)
+.if !exists(/usr/lib/libcrypto.so) && 
!exists(${LOCALBASE}/lib/libcrypto.so)
 .BEGIN:
 	@${ECHO_CMD} "This port requires the OpenSSL library, which is part of"
 	@${ECHO_CMD} "the FreeBSD crypto distribution but not installed on your"
@@ -744,8 +744,14 @@
 	@${ECHO_CMD} "OpenSSL distribution."
 	@${FALSE}
 .else
+.if exists(/usr/lib/libcrypto.so)
 OPENSSLBASE=	/usr
 OPENSSLDIR=		/etc/ssl
+.else
+LIB_DEPENDS+=	crypto.3:${PORTSDIR}/security/openssl
+OPENSSLBASE?=	${LOCALBASE}
+OPENSSLDIR?=	${OPENSSLBASE}/openssl
+.endif
 # OpenSSL in the base system may not include IDEA for patent licensing 
reasons.
 .if defined(MAKE_IDEA) && !defined(OPENSSL_IDEA)
 OPENSSL_IDEA=	${MAKE_IDEA}
@@ -764,7 +770,7 @@
 .endif
 .endif
 .else
-LIB_DEPENDS+=	crypto.2:${PORTSDIR}/security/openssl
+LIB_DEPENDS+=	crypto.3:${PORTSDIR}/security/openssl
 OPENSSLBASE?=	${LOCALBASE}
 OPENSSLDIR?=	${OPENSSLBASE}/openssl
 .endif

>Release-Note:
>Audit-Trail:

From: dirk.meyer@dinoex.sub.org (Dirk Meyer)
To: FreeBSD-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: ports/45495: fix for bsd.port.mk
Date: Wed, 20 Nov 2002 07:29:22 +0100

 Marc Recht worte:
 
 > >How-To-Repeat:
 > Remove system ssl and try to build a port with USE_SSL.
 
 noted in ports/39054
 
 my workaround is to delete "USE_SSL"
 and used instead:
 
 .include "${PORTSDIR}/security/openssl/Makefile.ssl"
 
 regards Dirk
 
 - Dirk Meyer, Im Grund 4, 34317 Habichtswald, Germany
 - [dirk.meyer@dinoex.sub.org],[dirk.meyer@guug.de],[dinoex@FreeBSD.org]
Responsible-Changed-From-To: freebsd-ports->portmgr 
Responsible-Changed-By: naddy 
Responsible-Changed-When: Wed Nov 20 03:30:25 PST 2002 
Responsible-Changed-Why:  
Over to infrastructure maintainers. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=45495 
State-Changed-From-To: open->feedback 
State-Changed-By: dinoex 
State-Changed-When: Wed Aug 27 09:32:56 CEST 2003 
State-Changed-Why:  
Dioes the problem still exist with the new bsd.port.mk? 

Please update to: 
ports/Mk/bsd.port.mk,v 1.464 2003/08/27 04:42:45 marcus Exp $ 

and check again. 


Responsible-Changed-From-To: portmgr->dinoex 
Responsible-Changed-By: dinoex 
Responsible-Changed-When: Wed Aug 27 09:32:56 CEST 2003 
Responsible-Changed-Why:  
bsd.openssl.mk issue 

http://www.freebsd.org/cgi/query-pr.cgi?pr=45495 
State-Changed-From-To: feedback->closed 
State-Changed-By: dinoex 
State-Changed-When: Fri Sep 5 19:07:35 CEST 2003 
State-Changed-Why:  
current detection will use openssl in ports if non in base is found 

http://www.freebsd.org/cgi/query-pr.cgi?pr=45495 
>Unformatted:
 X-send-pr-version: 3.113
 X-GNATS-Notify:
 
 
