Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Nov 1999 08:21:07 -0500 (EST)
From:      matt@zigg.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/15137: [PATCH] www/lynx-ssl can't find OpenSSL if installed w/ PREFIX
Message-ID:  <199911281321.IAA21146@megaweapon.zigg.com>

next in thread | raw e-mail | index | archive | help

>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:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 28 05:30:01 PST 1999
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199911281321.IAA21146>