From matt@megaweapon.zigg.com Sun Nov 28 05:22:41 1999
Return-Path: <matt@megaweapon.zigg.com>
Received: from megaweapon.zigg.com (megaweapon.zigg.com [206.114.60.8])
	by hub.freebsd.org (Postfix) with ESMTP id CA28114D0E
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 28 Nov 1999 05:22:39 -0800 (PST)
	(envelope-from matt@megaweapon.zigg.com)
Received: (from matt@localhost)
	by megaweapon.zigg.com (8.9.3/8.9.3) id IAA21146;
	Sun, 28 Nov 1999 08:21:07 -0500 (EST)
	(envelope-from matt)
Message-Id: <199911281321.IAA21146@megaweapon.zigg.com>
Date: Sun, 28 Nov 1999 08:21:07 -0500 (EST)
From: matt@zigg.com
Sender: matt@megaweapon.zigg.com
Reply-To: matt@zigg.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: [PATCH] www/lynx-ssl can't find OpenSSL if installed w/ PREFIX
X-Send-Pr-Version: 3.2

>Number:         15137
>Category:       ports
>Synopsis:       [PATCH] www/lynx-ssl can't find OpenSSL if installed w/ PREFIX
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 28 05:30:01 PST 1999
>Closed-Date:    Thu Dec 23 07:39:35 PST 1999
>Last-Modified:  Thu Dec 23 07:40:28 PST 1999
>Originator:     Matt Behrens
>Release:        FreeBSD 3.3-STABLE i386
>Organization:
zigg.com
>Environment:

FreeBSD megaweapon.zigg.com 3.3-STABLE FreeBSD 3.3-STABLE #3: Sat Nov 27 15:38:05 EST 1999     matt@megaweapon.zigg.com:/usr/src/sys/compile/MEGAWEAPON  i386

>Description:

The www/lynx-ssl port cannot find OpenSSL includes, which it depends
on, if OpenSSL is installed using an alternative PREFIX.  This will
cause the build to fail.

The reason this happens is because patch-aa substitutes /usr/local
as the SSL_DIR instead of /usr/local/ssl.

>How-To-Repeat:

# cd /usr/ports/security/openssl
# make PREFIX=/foo/bar install
# cd /usr/ports/www/lynx-ssl
# make PREFIX=/foo/bar install

(build will fail on missing includes)

>Fix:
	
Tested patch follows.

--- patches/patch-aa.broken	Sun Nov 28 08:09:34 1999
+++ patches/patch-aa	Sun Nov 28 08:10:07 1999
@@ -15,7 +15,7 @@
  # ability to make SSL connections.
 -SSL_DIR= /usr/local/ssl
 -SSL_LIBS= -L$(SSL_DIR)/lib -lssl -lcrypto
-+SSL_DIR= /usr/local
++SSL_DIR= $(prefix)
 +SSL_LIBS= -L$(SSL_DIR)/lib -lssl -lcrypto ${EXTRA_SSL_LIBS}
  SSL_DEFINES= -I$(SSL_DIR)/include -DUSE_SSL

>Release-Note:
>Audit-Trail:

From: Matt Behrens <matt@megaweapon.zigg.com>
To: freebsd-gnats-submit@freebsd.org, matt@zigg.com
Cc:  
Subject: Re: ports/15137: [PATCH] www/lynx-ssl can't find O...
Date: Sun, 28 Nov 1999 08:33:37 -0500 (EST)

 Just a clarification:  In the ``Description'' I pointed out that patch-aa
 substitutes /usr/local for /usr/local/ssl.  I neglected to point out that this
 is a step in the right direction, but the real reason it's wrong is because it
 assumes a PREFIX of /usr/local.
 
 Sorry for any confusion that might have caused.
 
 
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Thu Dec 23 07:39:35 PST 1999 
State-Changed-Why:  
Committed, thanks! 
>Unformatted:
