Subject: Re: how to make a package depend on openssl?
To: Jeremy C. Reed <reed@reedmedia.net>
From: Pavel Cahyna <pcah8322@artax.karlin.mff.cuni.cz>
List: tech-pkg
Date: 07/06/2004 21:16:01
> On Tue, 6 Jul 2004, Pavel Cahyna wrote:
> 
> > in pkgsrc/net/speakfreely/Makefile
> > there is the following line:
> > .include "../../security/openssl/buildlink3.mk"
> >
> > But openssl is not built when I build speakfreely. Why?
> 
> Have a look at the speakfreely building instructions. Does it have any

Building instructions for the original sw or for the package?

> switches or options that need to be configured to enable use of openssl or

The package has  USE_CRYPTO, which defaults to YES.

From the package 's Makefile:
.if defined(USE_CRYPTO) && ${USE_CRYPTO} == "YES"
HAVE_LIBCRYPTO=         YES
.include "../../security/openssl/buildlink3.mk"

If I set it to NO, the package builds fine, but without crypto support
(obviously). If it is set to YES, it fails.




> to indicate where the openssl headers and/or libraries are located?

The original software may have such switch but I do not understand why
it would help, because openssl is not built at all.

(There is an openssl coming with the base system but it's useless,
because it is source-incompatible with the version which speakfreely
uses. See openssl_des(3), the HISTORY section, especially the phrase "In
OpenSSL 0.9.7, all des_ functions were renamed to DES_ ...". I believe
openssl from pkgsrc should be fine, because it is at version 0.9.6m .)

> 
> > The build of speakfreely then fails, because it cannot find some crypto
> > functions.
> 
> What is the exact error?

See
ftp://ftp.netbsd.org/pub/NetBSD/misc/kristerw/pkgstat/i386-2.0/20040704.0438/net/speakfreely/.broken.html


Thanks for your help.

Bye	Pavel