NetBSD Problem Report #48228

From www@NetBSD.org  Sun Sep 22 07:58:34 2013
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id AC510725EA
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 22 Sep 2013 07:58:34 +0000 (UTC)
Message-Id: <20130922075832.7E97B725EB@mollari.NetBSD.org>
Date: Sun, 22 Sep 2013 07:58:32 +0000 (UTC)
From: richard@netbsd.org
Reply-To: richard@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: mit-krb5/builtin.mk problems on solaris
X-Send-Pr-Version: www-1.0

>Number:         48228
>Category:       pkg
>Synopsis:       mit-krb5/builtin.mk problems on solaris
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    solaris-pkg-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 22 08:00:00 +0000 2013
>Last-Modified:  Sun Sep 22 15:54:05 +0000 2013
>Originator:     Richard PALO
>Release:        pkgsrc trunk
>Organization:
>Environment:
SunOS x3200 5.11 illumos-gate i86pc i386 i86pc Solaris

>Description:
I've noticed difficulties getting native mit-krb5 detected on the SunOS 
I'm running...

Already, by inspection there is one problem in getting the version
because of solaris putting the version indication between parens...

On this version of OI:
> richard@x3200:~/src/pkgsrc/mk$ krb5-config --version
> Solaris Kerberos (based on MIT Kerberos 5 release 1.6.3)

I believe this patch fixes that:
> richard@x3200:~/src/pkgsrc/security/mit-krb5$ git diff .
> diff --git a/security/mit-krb5/builtin.mk b/security/mit-krb5/builtin.mk
> index c31837d..c3e754e 100644
> --- a/security/mit-krb5/builtin.mk
> +++ b/security/mit-krb5/builtin.mk
> @@ -39,7 +39,7 @@ MAKEVARS+=    IS_BUILTIN.mit-krb5
>      !empty(IS_BUILTIN.mit-krb5:M[yY][eE][sS])
>  .  if empty(SH_KRB5_CONFIG:M__nonexistent__)
>  BUILTIN_VERSION.mit-krb5!=     ${SH_KRB5_CONFIG} --version | \
> -                               ${SED} -e 's/.*release //' -e 's/-.*//'
> +               ${SED} -e 's/.*release //' -e 's/-.*//' -e 's/).*//'
>  .  endif
>  BUILTIN_VERSION.mit-krb5?=     1.4.0
>  BUILTIN_PKG.mit-krb5=          mit-krb5-${BUILTIN_VERSION.mit-krb5}

But that isn't the problem...

Even though it should be on by default on SunOS, I also added 'mit-krb5' to PREFER_NATIVE= and even added KRB5_DEFAULT=mit-krb5

nada...

Is there a handy means to debug these scripts a bit more easily?

Is there anybody running trunk on solaris that successfully gets native kerberos?
>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: hauke@NetBSD.org
Responsible-Changed-When: Sun, 22 Sep 2013 15:54:05 +0000
Responsible-Changed-Why:
A Solaris issue.


>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.