From mi@privatelabs.com  Fri Aug  4 10:11:59 2000
Return-Path: <mi@privatelabs.com>
Received: from privatecube.privatelabs.com (privatecube.privatelabs.com [198.143.31.30])
	by hub.freebsd.org (Postfix) with ESMTP id D67FE37B9D4
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  4 Aug 2000 10:11:57 -0700 (PDT)
	(envelope-from mi@privatelabs.com)
Received: from misha.privatelabs.com (misha.privatelabs.com [198.143.31.6])
	by privatecube.privatelabs.com (8.9.3/8.9.2) with ESMTP id MAA13098;
	Fri, 4 Aug 2000 12:08:24 -0400
Received: (from root@localhost)
	by misha.privatelabs.com (8.9.3/8.9.3) id NAA89963;
	Fri, 4 Aug 2000 13:04:42 -0400 (EDT)
	(envelope-from mi)
Message-Id: <200008041704.NAA89963@misha.privatelabs.com>
Date: Fri, 4 Aug 2000 13:04:42 -0400 (EDT)
From: root@misha.privatelabs.com
Sender: mi@privatelabs.com
Reply-To: mi@aldan.algebra.com
To: FreeBSD-gnats-submit@freebsd.org
Cc: seb@strollo.org, ruslan@shevchenko.kiev.ua
Subject: lang/erlang skips the build of crypto.app
X-Send-Pr-Version: 3.2

>Number:         20401
>Category:       ports
>Synopsis:       lang/erlang skips the build of crypto.app
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 04 10:20:00 PDT 2000
>Closed-Date:    Fri Nov 17 15:34:45 PST 2000
>Last-Modified:  Fri Nov 17 15:36:07 PST 2000
>Originator:     Mikhail Teterin
>Release:        FreeBSD 4.1-STABLE i386
>Organization:
Virtual Estates, Inc.
>Environment:

>Description:

	This is  a bug in  the port, really, because  the erlang
	documentation says that you  can build the crypto.app if
	you have an SSL implementation -- and FreeBSD does.

	I noticed this trying to make a port of Eddie --
		http://www.eddieware.org/
	which I plan to submit shortly...

	The included patch fixes this problem.

	The port has some other shortcomings:
		. no way to disable the GUI parts (Java, Tk), which
		  makes it difficult to deploy on an X-less server;
		. it builds a Tk of its own (4.2!) instead of using
		  one installed by a Tk port;
		. although all parts appear to compile with the
		  specified CFLAGS, some append "-O2" or "-O3 -g".
	I don't have fixes for this problems ready, but I state them
	for the record.

>How-To-Repeat:

>Fix:

--- Makefile	Wed Apr 12 02:18:20 2000
+++ Makefile	Fri Aug  4 12:48:39 2000
@@ -42,2 +42,13 @@
 
+.ifdef(NO_OPENSSL)
+post-configure:
+	##
+	# Disabling the build of the crypto part -- requires SSL
+	${ECHO}	"NO_OPENSSL was defined (as ${NO_OPENSSL}) during configure" \
+		> ${WRKSRC}/lib/crypto/SKIP
+.else
+USE_OPENSSL=	True
+CONFIGURE_ENV+=	OPENSSLBASE="${OPENSSLBASE}"
+.endif
+
 # The Java applications that are part of the Erlang distribution are
--- patches/patch-cr	Wed Dec 31 19:00:00 1969
+++ patches/patch-cr	Fri Aug  4 10:56:33 2000
@@ -0,0 +1,23 @@
++++ erts/autoconf/configure	Thu Aug  3 18:30:46 2000
+@@ -4313,10 +4313,5 @@
+ 
+ 
+-SSLEAY_ROOT=
+-if test -d ${ERL_TOP}/lib/ssl/usr/ssleay; then
+-  SSLEAY_ROOT='$(ERL_TOP)/ssl/usr/ssleay/$(TARGET)'
+-else
+-  echo "I could not find ssleay" > ${ERL_TOP}/lib/crypto/SKIP
+-fi
++SSLEAY_ROOT=${OPENSSLBASE}
+ 
+ 
+--- lib/crypto/c_src/Makefile.in	Tue Nov 23 18:07:49 1999
++++ lib/crypto/c_src/Makefile.in	Fri Aug  4 09:57:39 2000
+@@ -40,2 +40,2 @@
+ # We need libgcc.a on Solaris 2
+-LIBGCC = @GCCLIB_PATH@
++# LIBGCC = @GCCLIB_PATH@
+@@ -51,2 +51,2 @@
+ SSLEAY_LIBDIR = $(SSLEAY_ROOT)/lib
+-SSLEAY_INCDIR = $(SSLEAY_ROOT)/include
++SSLEAY_INCDIR = $(SSLEAY_ROOT)/include/openssl
--- pkg/PLIST	Fri Dec 31 15:34:37 1999
+++ pkg/PLIST	Fri Aug  4 12:36:29 2000
@@ -622,2 +622,14 @@
 lib/erlang/lib/crypto-1.1.1/doc/index.html
+lib/erlang/lib/crypto-1.1.1/ebin/crypto_app.beam
+lib/erlang/lib/crypto-1.1.1/ebin/crypto.beam
+lib/erlang/lib/crypto-1.1.1/ebin/crypto_server.beam
+lib/erlang/lib/crypto-1.1.1/ebin/crypto_sup.beam
+lib/erlang/lib/crypto-1.1.1/ebin/crypto.app
+lib/erlang/lib/crypto-1.1.1/ebin/crypto.appup
+lib/erlang/lib/crypto-1.1.1/priv/lib/crypto_drv.so
+lib/erlang/lib/crypto-1.1.1/priv/lib/elibcrypto.so
+lib/erlang/lib/crypto-1.1.1/src/crypto_app.erl
+lib/erlang/lib/crypto-1.1.1/src/crypto.erl
+lib/erlang/lib/crypto-1.1.1/src/crypto_server.erl
+lib/erlang/lib/crypto-1.1.1/src/crypto_sup.erl
 lib/erlang/lib/debugger-1.5.1/doc/html/application.html
@@ -4005,2 +4017,6 @@
 @dirrm lib/erlang/lib/crypto-1.1.1/doc
+@dirrm lib/erlang/lib/crypto-1.1.1/ebin
+@dirrm lib/erlang/lib/crypto-1.1.1/priv/lib
+@dirrm lib/erlang/lib/crypto-1.1.1/priv
+@dirrm lib/erlang/lib/crypto-1.1.1/src
 @dirrm lib/erlang/lib/crypto-1.1.1


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ade 
State-Changed-When: Fri Nov 17 15:34:45 PST 2000 
State-Changed-Why:  
This PR will be obsoleted in the not too distant future by submitter 
of ports/19659 working with port maintainer. 

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