Skip site navigation (1)Skip section navigation (2)
Date:      18 Aug 1999 02:45:56 -0000
From:      patrick@server.mindstep.com
To:        freefall-gnats@server.mindstep.com
Cc:        martti.kuparinen@ericsson.com
Subject:   ports/13216: stunnel does not build from the port collection
Message-ID:  <19990818024556.58570.qmail@server.mindstep.com>

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

>Number:         13216
>Category:       ports
>Synopsis:       stunnel does not build from the port collection
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 17 19:50:02 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Patrick Bihan-Faou
>Release:        freebsd-3.2-STABLE
>Organization:
MindStep Corporation
>Environment:
System: FreeBSD penpro.local.mindstep.com 3.2-STABLE FreeBSD 3.2-STABLE #14: Wed Jul 28 12:13:59 EDT 1999 serge@penpro.local.mindstep.com:/usr/src/sys/compile/PENPRO i386

Current version of the stunnel port (checked-out on August 17, 1999)

>Description:

The autoconf script generates a makefile with an incorrect order for the
openSSL libraries. This prevents the port from linking properly.

>How-To-Repeat:

cd /usr/ports/security/stunnel
make

>Fix:

The following patch corrects the autoconf script (configure.in) from the source
distribution and re-runs autoconf.

This also means that for now this port depends on autoconf being installed
(this is verified by the patched port Makefile).



diff -ruN stunnel.orig/Makefile stunnel/Makefile
--- stunnel.orig/Makefile	Tue Aug 17 22:38:08 1999
+++ stunnel/Makefile	Tue Aug 17 17:06:47 1999
@@ -18,7 +18,8 @@
 
 BUILD_DEPENDS=	openssl:${PORTSDIR}/security/openssl \
 		${PREFIX}/lib/libssl.a:${PORTSDIR}/security/openssl \
-		${PREFIX}/lib/libcrypto.a:${PORTSDIR}/security/openssl
+		${PREFIX}/lib/libcrypto.a:${PORTSDIR}/security/openssl \
+		autoconf:${PORTSDIR}/devel/autoconf:install
 RUN_DEPENDS=	openssl:${PORTSDIR}/security/openssl
 
 .if defined(USA_RESIDENT) && ${USA_RESIDENT} == YES
@@ -31,6 +32,9 @@
 
 cert:
 	@(cd ${WRKSRC}; make cert)
+
+post-patch:
+	@(cd ${WRKSRC}; autoconf)
 
 post-build:
 	@${ECHO} ""
diff -ruN stunnel.orig/patches/patch-aa stunnel/patches/patch-aa
--- stunnel.orig/patches/patch-aa	Wed Dec 31 19:00:00 1969
+++ stunnel/patches/patch-aa	Tue Aug 17 17:01:32 1999
@@ -0,0 +1,11 @@
+--- configure.in.orig	Wed Jun  9 10:57:32 1999
++++ configure.in	Tue Aug 17 16:58:58 1999
+@@ -50,7 +50,7 @@
+ 
+ AC_MSG_CHECKING([for RSAref library])
+ saved_LIBS="$LIBS"
+-LIBS="-lRSAglue -lrsaref $saved_LIBS"
++LIBS="$saved_LIBS -lRSAglue -lrsaref"
+ AC_TRY_LINK([], [],
+ [AC_MSG_RESULT(yes); ],
+ [AC_MSG_RESULT(no)]; LIBS="$saved_LIBS")

>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?19990818024556.58570.qmail>