From nobody@FreeBSD.org  Mon Feb 18 23:37:11 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 0DF3E16A473
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 18 Feb 2008 23:37:11 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 01B2413C455
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 18 Feb 2008 23:37:11 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m1INYgcj038541
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 18 Feb 2008 23:34:42 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m1INYgGU038540;
	Mon, 18 Feb 2008 23:34:42 GMT
	(envelope-from nobody)
Message-Id: <200802182334.m1INYgGU038540@www.freebsd.org>
Date: Mon, 18 Feb 2008 23:34:42 GMT
From: Adam Pordzik <adampordzik@gmx.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: bsd.openssl.mk doesn't honour (WITH|USE)_OPENSSL_BASE correctly (faced with postgres)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         120829
>Category:       ports
>Synopsis:       bsd.openssl.mk doesn't honour (WITH|USE)_OPENSSL_BASE correctly (faced with postgres)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dinoex
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 18 23:40:03 UTC 2008
>Closed-Date:    Sun Mar 30 13:24:59 CEST 2008
>Last-Modified:  Sun Mar 30 13:24:59 CEST 2008
>Originator:     Adam Pordzik
>Release:        RELENG_6
>Organization:
>Environment:
FreeBSD brain.lan.d-dt.de 6.3-STABLE FreeBSD 6.3-STABLE #2: Sat Jan 19 02:53:24 CET 2008     root@brain.lan.d-dt.de:/data/build/obj/data/build/src/sys/GENERIC  i386

>Description:
Building databases/postgresNN with openssl from ports installed leads to:

Dependency error: this port wants the OpenSSL library from the FreeBSD
base system. You can't build against it, while a newer
version is installed by a port.
Please deinstall the port or undefine WITH_OPENSSL_BASE.
*** Error code 1

Stop in /usr/ports/databases/postgresql83-client.
*** Error code 1

Stop in /usr/ports/databases/postgresql83-client.

Yes, WITH_OPENSSL_BASE is defined in make.conf. USE_OPENSSL_BASE ends in the same result.

Since I only use OpenSSL from ports only for certification purposes, I do not want to link other ports against it to keep dependencies simple. I does not matter whether OpenSSL-DESTDIR points to /usr/local or /something/else.
>How-To-Repeat:
Repeat the above. But facing no Problems with e.g. cyrus-sasl2 build.
>Fix:
Dont really know: bsd.openssl.mk asks for:

.if defined(WITH_OPENSSL_BASE)

and right after for:

.if !exists(${DESTDIR}/usr/lib/libcrypto.so)

# error comes here

I don't think one should check for libXXX in LOCALBASE if I explicitly declined this. But I'm bemused, since it (during postgres build) asks for libs in DESTDIR, but openssl is installed under /some/other/dir.


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->dinoex 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Feb 18 23:40:10 UTC 2008 
Responsible-Changed-Why:  
bsd.openssl.mk is dinoex territory (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120829 
State-Changed-From-To: open->feedback 
State-Changed-By: dinoex 
State-Changed-When: Tue Feb 19 08:40:47 CET 2008 
State-Changed-Why:  

Dependency error: 
this port wants the OpenSSL library from the FreeBSD base system. 
You can't build against it, while a newer version is installed by a port. 

If you case each port must support an option to reverse the ordering 
of the include and library paths. Otherwise the build will fail, 
either using wrong includes or link against wrong libraries. 
Therefor this combination is not supoported, and the build is halted. 

Your Options: 
a) build against the OpenSSL port 

b) deinstall the OpenSSL port while building and reinstall it later. 

c) build postgres on a clean system, or in a build jail / tinderbox. 



http://www.freebsd.org/cgi/query-pr.cgi?pr=120829 
State-Changed-From-To: feedback->closed 
State-Changed-By: dinoex 
State-Changed-When: Sun Mar 30 13:23:14 CEST 2008 
State-Changed-Why:  
There is no easy way to keep the linke from attaching to the port version. 

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