From nobody@FreeBSD.org  Sun Dec  2 12:19:28 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 03B8C9FC
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  2 Dec 2012 12:19:28 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id DC6938FC16
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  2 Dec 2012 12:19:27 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id qB2CJR8s031187
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 2 Dec 2012 12:19:27 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id qB2CJRd0031186;
	Sun, 2 Dec 2012 12:19:27 GMT
	(envelope-from nobody)
Message-Id: <201212021219.qB2CJRd0031186@red.freebsd.org>
Date: Sun, 2 Dec 2012 12:19:27 GMT
From: Garrett Cooper <yaneurabeya@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] libssh should not depend upon gssapi libraries in Makefile.inc1 if MK_GSSAPI == no
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         174052
>Category:       conf
>Synopsis:       [build] [patch] libssh should not depend upon gssapi libraries in Makefile.inc1 if MK_GSSAPI == no
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 02 12:20:01 UTC 2012
>Closed-Date:    
>Last-Modified:  Sun Feb 03 22:31:41 UTC 2013
>Originator:     Garrett Cooper
>Release:        n/a
>Organization:
EMC Isilon
>Environment:
n/a
>Description:
I've run into build errors in the past because (for whatever reason) I defined WITH_KERBEROS_SUPPORT and WITHOUT_GSSAPI.

The attached patch fixes the beforementioned issue.
>How-To-Repeat:
cd /usr/src; make buildworld -DWITHOUT_GSSAPI -DWITH_KERBEROS_SUPPORT
>Fix:


Patch attached with submission follows:

Index: Makefile.inc1
===================================================================
--- Makefile.inc1	(revision 243747)
+++ Makefile.inc1	(working copy)
@@ -1335,7 +1335,7 @@
 .if ${MK_OPENSSH} != "no"
 _secure_lib_libssh= secure/lib/libssh
 secure/lib/libssh__L: lib/libz__L secure/lib/libcrypto__L lib/libcrypt__L
-.if ${MK_KERBEROS_SUPPORT} != "no"
+.if ${MK_GSSAPI} == "no" || ${MK_KERBEROS_SUPPORT} == "no"
 secure/lib/libssh__L: lib/libgssapi__L kerberos5/lib/libkrb5__L \
     kerberos5/lib/libhx509__L kerberos5/lib/libasn1__L lib/libcom_err__L \
     lib/libmd__L kerberos5/lib/libroken__L


>Release-Note:
>Audit-Trail:
>Unformatted:
