Mon Nov 5 09:06:58 2012 UTC ()
Pullup ticket #3959 - requested by tron
mail/fetchmail: build fix

Revisions pulled up:
- mail/fetchmail/options.mk                                     1.16

-------------------------------------------------------------------
   Module Name:	pkgsrc
   Committed By:	tron
   Date:		Sun Nov  4 23:06:23 UTC 2012

   Modified Files:
   	pkgsrc/mail/fetchmail: options.mk

   Log Message:
   Force use of "openssl" package from pkgsrc under NetBSD 5.* and older
   to fix the build. As the "fetchmail" package doesn't provide any
   shared libraries this shouldn't cause problems caused by mixing two
   versions of OpenSSL.

   To generate a diff of this commit:
   cvs rdiff -u -r1.15 -r1.16 pkgsrc/mail/fetchmail/options.mk


(spz)
diff -r1.15 -r1.15.44.1 pkgsrc/mail/fetchmail/options.mk

cvs diff -r1.15 -r1.15.44.1 pkgsrc/mail/fetchmail/options.mk (expand / switch to context diff)
--- pkgsrc/mail/fetchmail/options.mk 2007/11/07 08:57:10 1.15
+++ pkgsrc/mail/fetchmail/options.mk 2012/11/05 09:06:58 1.15.44.1
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.15 2007/11/07 08:57:10 tron Exp $
+# $NetBSD: options.mk,v 1.15.44.1 2012/11/05 09:06:58 spz Exp $
 
 PKG_OPTIONS_VAR=	PKG_OPTIONS.fetchmail
 PKG_SUPPORTED_OPTIONS=	kerberos4 kerberos gssapi ssl
@@ -46,6 +46,13 @@
 ### Support POP3 and IMAP over SSL.
 ###
 .if !empty(PKG_OPTIONS:Mssl)
+.  if !empty(MACHINE_PLATFORM:MNetBSD-[1-5].*-*)
+# "fetchmail" requires the "SSL_CTX_clear_options" library function which
+# was added in OpenSSL 0.9.8m. NetBSD 5.* ships with a snapshot that
+# claims to be OpenSSL 0.9.9 but doesn't provide this function. Force
+# the use of the "openssl" package to fix the build.
+USE_BUILTIN.openssl=	no
+.  endif
 .  include "../../security/openssl/buildlink3.mk"
 CONFIGURE_ARGS+=	--with-ssl=${SSLBASE:Q}
 .else