NetBSD Problem Report #45825

From www@NetBSD.org  Thu Jan 12 11:43:30 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 9A11263BDC0
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 12 Jan 2012 11:43:30 +0000 (UTC)
Message-Id: <20120112114329.AE91B63BDA7@www.NetBSD.org>
Date: Thu, 12 Jan 2012 11:43:29 +0000 (UTC)
From: kretschm@cs.uni-bonn.de
Reply-To: kretschm@cs.uni-bonn.de
To: gnats-bugs@NetBSD.org
Subject: net/vpnc does link against pkgsrc's openssl if PREFER.openssl=pkgsrc is given
X-Send-Pr-Version: www-1.0

>Number:         45825
>Category:       pkg
>Synopsis:       net/vpnc does link against pkgsrc's openssl if PREFER.openssl=pkgsrc is given
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 12 11:45:00 +0000 2012
>Closed-Date:    Wed Feb 15 13:03:12 +0000 2012
>Last-Modified:  Wed Feb 15 13:05:02 +0000 2012
>Originator:     Matthias Kretschmer
>Release:        NetBSD 5.1_STABLE
>Organization:
>Environment:
NetBSD cat.cs.uni-bonn.de 5.1_STABLE NetBSD 5.1_STABLE (CAT) #1: Fri Apr  8 09:38:30 CEST 2011  root@fourier.hangelar.local:/home/src/sys/arch/i386/compile/obj/CAT i386
>Description:
net/vpnc does link against pkgsrc's openssl if PREFER.openssl=pkgsrc is given.

See (PREFER.openssl=pkgsrc was set in mk.conf):
# ldd /usr/pkg/sbin/vpnc
/usr/pkg/sbin/vpnc:
        -lgcrypt.11 => /usr/pkg/lib/libgcrypt.so.11
        -lgpg-error.0 => /usr/pkg/lib/libgpg-error.so.0
        -lintl.0 => /usr/lib/libintl.so.0
        -lc.12 => /usr/lib/libc.so.12
        -lcrypto.4 => /usr/lib/libcrypto.so.4
        -lcrypt.0 => /lib/libcrypt.so.0
>How-To-Repeat:
Just compile net/vpnc with PREFER.openssl=pkgsrc.
>Fix:
When choosing openssl option in net/vpnc there is a missing include of security/openssl/buildlink3.mk.  The following patch fixes that.

Index: options.mk
===================================================================
RCS file: /cvsroot/pkgsrc/net/vpnc/options.mk,v
retrieving revision 1.2
diff -u -r1.2 options.mk
--- options.mk  4 Feb 2009 21:51:27 -0000       1.2
+++ options.mk  12 Jan 2012 11:33:20 -0000
@@ -7,6 +7,7 @@
 .include "../../mk/bsd.prefs.mk"
 .include "../../mk/bsd.options.mk"
 .if !empty(PKG_OPTIONS:Mopenssl)
+.include "../../security/openssl/buildlink3.mk"
 SUBST_CLASSES+=                openssl
 SUBST_MESSAGE.openssl= adding openssl option
 SUBST_STAGE.openssl=   post-patch

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Wed, 15 Feb 2012 13:03:12 +0000
State-Changed-Why:
Commited the fix.  Thanks!


From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/45825 CVS commit: pkgsrc/net/vpnc
Date: Wed, 15 Feb 2012 13:02:31 +0000

 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Wed Feb 15 13:02:31 UTC 2012

 Modified Files:
 	pkgsrc/net/vpnc: options.mk

 Log Message:
 buildlink with security/openssl if openssl option is enabled.
 PR#45825 by Matthias Kretschmer.


 To generate a diff of this commit:
 cvs rdiff -u -r1.2 -r1.3 pkgsrc/net/vpnc/options.mk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.