Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Aug 2000 13:04:42 -0400 (EDT)
From:      root@misha.privatelabs.com
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        seb@strollo.org, ruslan@shevchenko.kiev.ua
Subject:   ports/20401: lang/erlang skips the build of crypto.app
Message-ID:  <200008041704.NAA89963@misha.privatelabs.com>

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

>Number:         20401
>Category:       ports
>Synopsis:       lang/erlang skips the build of crypto.app
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 04 10:20:00 PDT 2000
>Closed-Date:
>Last-Modified:
>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:
>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?200008041704.NAA89963>