NetBSD Problem Report #26170

Received: (qmail 4877 invoked by uid 605); 5 Jul 2004 23:28:37 -0000
Message-Id: <20040705232833.B06FC54EC@himo.salmi.ch>
Date: Tue,  6 Jul 2004 01:28:33 +0200 (CEST)
From: j+nbsd@2004.salmi.ch
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: j+nbsd@2004.salmi.ch
To: gnats-bugs@gnats.NetBSD.org
Subject: mail/fetchmail doesn't make use of Kerberos / GSSAPI code
X-Send-Pr-Version: 3.95

>Number:         26170
>Category:       pkg
>Synopsis:       mail/fetchmail doesn't make use of Kerberos / GSSAPI code
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    frueauf
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 05 23:29:00 +0000 2004
>Closed-Date:    Fri Jan 21 20:47:34 +0000 2005
>Last-Modified:  Fri Jan 21 20:47:34 +0000 2005
>Originator:     Jukka Salmi
>Release:        NetBSD 2.0F
>Organization:
>Environment:
System: NetBSD himo.salmi.ch 2.0F NetBSD 2.0F (GENERIC) #1: Mon Jun 28 10:15:38 CEST 2004 build@himo.salmi.ch:/build/nbsd/usr/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
Fetchmail 6.2.5 has Kerberos / GSSAPI support which is not used when building
the package from pkgsrc (if KERBEROS is defined, only Kerberos IV support is
built).
I patched configure to successfully detect the (Heimdal) Kerberos installation
on my NetBSD-current i386 system and built fetchmail with GSSAPI support.
Works fine.
>How-To-Repeat:
Build mail/fetchmail and try to use GSSAPI authentication.
>Fix:
(I'm not very familiar with pkgsrc, so I'll just state how I built the
package manually.)

I patched configure (I'll attach the diff in a minute), configured fetchmail

./configure --without-hesiod --disable-nls --with-ssl=/usr
  --with-kerberos5=/usr --with-gssapi=/usr

and built (gmake) and installed (gmake install) it.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->frueauf 
Responsible-Changed-By: recht 
Responsible-Changed-When: Mon Jul 5 23:35:56 UTC 2004 
Responsible-Changed-Why:  
over to maintainer 

From: Jukka Salmi <j+nbsd@2004.salmi.ch>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: Re: pkg/26170: mail/fetchmail doesn't make use of Kerberos / GSSAPI code
Date: Tue, 6 Jul 2004 01:39:38 +0200

 --OgqxwSJOaUobr8KG
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline

 j+nbsd@2004.salmi.ch wrote:
 > 
 > >Number:         26170
 > >Category:       pkg
 > >Synopsis:       mail/fetchmail doesn't make use of Kerberos / GSSAPI code
 [...]
 > >Fix:
 [...]
 > I patched configure (I'll attach the diff in a minute)

 The diff is attached with this message.

 -- 
 bashian roulette:
 $ ((RANDOM%6)) || rm -rf ~

 --OgqxwSJOaUobr8KG
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="fetchmail-6.2.5_gssapi.patch"

 diff -ur configure.orig configure
 --- configure.orig	2003-10-10 10:39:54.000000000 +0200
 +++ configure	2004-07-06 00:45:06.000000000 +0200
 @@ -12808,12 +12808,12 @@
    for dir in $searchdirs
    do echo "$as_me:$LINENO: checking for Kerberos V in $dir" >&5
  echo $ECHO_N "checking for Kerberos V in $dir... $ECHO_C" >&6
 -     if test -f "$dir/include/krb5.h"
 +     if test -f "$dir/include/krb5/krb5.h"
       then
          ac_krblibs=
 -        if test -f "$dir/include/roken.h"
 +        if test -f "$dir/include/krb5/roken.h"
          then
 -           ac_krblibs="-lasn1 -lroken -lcom_err"
 +           ac_krblibs="-lasn1 -lroken -lcom_err -lkrb5 -lcrypto"
             echo "$as_me:$LINENO: result: Heimdal found" >&5
  echo "${ECHO_T}Heimdal found" >&6
                                 echo "$as_me:$LINENO: checking for db_open in -ldb2" >&5
 @@ -13628,7 +13628,7 @@
      ### In Red Hat 9, this file includes a reference to <krb5.h>, so we
      ### force the Kerberos direcory onto the include path so it will build.
      echo "Enabling OpenSSL support in $with_ssl"
 -    CEFLAGS="$CEFLAGS -I$with_ssl/include -I/usr/kerberos/include"
 +    CEFLAGS="$CEFLAGS -I$with_ssl/include -I/usr/include/krb5"
      ###	OpenBSD comes with ssl headers
    elif test -r /usr/include/ssl/ssl.h
    then
 @@ -13953,13 +13953,13 @@
    fi
    if test "$with_gssapi" != "yes" -a -n "$with_gssapi"
    then
 -    CFLAGS="$CFLAGS -I$with_gssapi/include"
 +    CFLAGS="$CFLAGS -I$with_gssapi/include/gssapi"
      LDFLAGS="$LDFLAGS -L$with_gssapi/lib"
    fi

 -  if test -f "$with_gssapi/include/roken.h"
 +  if test -f "$with_gssapi/include/krb5/roken.h"
    then
 -     LIBS="$LIBS -lkrb5 -lasn1 -ldes -lroken -ldb -ldl"
 +     LIBS="$LIBS -lkrb5 -lasn1 -ldes -lroken"
       echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
  echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6
  if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then

 --OgqxwSJOaUobr8KG--
From: Thorsten Frueauf <frueauf@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/26170 CVS commit: pkgsrc/mail/fetchmail
Date: Thu, 20 Jan 2005 12:59:11 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	frueauf
 Date:		Thu Jan 20 12:59:11 UTC 2005

 Modified Files:
 	pkgsrc/mail/fetchmail: distinfo options.mk
 Added Files:
 	pkgsrc/mail/fetchmail/patches: patch-ae

 Log Message:
 Add option for kerberos5 like suggested in pr pkg/26170.
 Since I have no kerberos server I just verified it compiled.


 To generate a diff of this commit:
 cvs rdiff -r1.26 -r1.27 pkgsrc/mail/fetchmail/distinfo
 cvs rdiff -r1.5 -r1.6 pkgsrc/mail/fetchmail/options.mk
 cvs rdiff -r0 -r1.13 pkgsrc/mail/fetchmail/patches/patch-ae

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

State-Changed-From-To: open->feedback
State-Changed-By: frueauf@netbsd.org
State-Changed-When: Thu, 20 Jan 2005 13:06:48 +0000
State-Changed-Why:
Can you please try to use current pkgsrc/mail/fetchmail - make sure you have
$NetBSD: distinfo,v 1.27 2005/01/20 12:59:11 frueauf Exp $
# $NetBSD: options.mk,v 1.6 2005/01/20 12:59:11 frueauf Exp $
$NetBSD: patch-ae,v 1.13 2005/01/20 12:59:11 frueauf Exp $
and set the following in /etc/mk.conf:
PKG_OPTIONS.fetchmail=ssl kerberos5
and report back if fetchmail works for you together with kerberos5?
I have no kerberos server, so I could just verify that everything compiles.
And I could only test under NetBSD/i386 1.5.4_ALPHA.
Thanx in advance and sorry that it took quite some time to react on this pr.

Greets
       Thorsten


From: Lubomir Sedlacik <salo@Xtrmntr.org>
To: frueauf@netbsd.org
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/26170
Date: Thu, 20 Jan 2005 15:01:48 +0100

 --zhXaljGHf11kAtnf
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable

 hi,

 On Thu, Jan 20, 2005 at 01:06:49PM +0000, frueauf@netbsd.org wrote:
 > Synopsis: mail/fetchmail doesn't make use of Kerberos / GSSAPI code
 >=20
 > State-Changed-From-To: open->feedback
 > State-Changed-By: frueauf@netbsd.org
 > State-Changed-When: Thu, 20 Jan 2005 13:06:48 +0000
 > State-Changed-Why:
 > Can you please try to use current pkgsrc/mail/fetchmail - make sure you h=
 ave
 > $NetBSD: distinfo,v 1.27 2005/01/20 12:59:11 frueauf Exp $
 > # $NetBSD: options.mk,v 1.6 2005/01/20 12:59:11 frueauf Exp $
 > $NetBSD: patch-ae,v 1.13 2005/01/20 12:59:11 frueauf Exp $
 > and set the following in /etc/mk.conf:
 > PKG_OPTIONS.fetchmail=3Dssl kerberos5
 > and report back if fetchmail works for you together with kerberos5?
 > I have no kerberos server, so I could just verify that everything compile=
 s.
 > And I could only test under NetBSD/i386 1.5.4_ALPHA.
 > Thanx in advance and sorry that it took quite some time to react on this =
 pr.

 the option should be called "kerberos", not "kerberos5" to be consistent
 with the rest of pkgsrc.

 regards,

 --=20
 -- Lubomir Sedlacik <salo@{NetBSD,Xtrmntr,silcnet}.org>   --

 --zhXaljGHf11kAtnf
 Content-Type: application/pgp-signature
 Content-Disposition: inline

 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.6 (NetBSD)

 iD8DBQFB77nMiwjDDlS8cmMRAs9xAJwP8x+QWgxKL2Z2J3/p7CTJJNGHWQCfcDqK
 lMXvfLJjVOPXkKryc3T0gNg=
 =UVML
 -----END PGP SIGNATURE-----

 --zhXaljGHf11kAtnf--

From: Thorsten Frueauf <milano@zhadum.de>
To: Lubomir Sedlacik <salo@Xtrmntr.org>
Cc: frueauf@netbsd.org, gnats-bugs@netbsd.org
Subject: Re: pkg/26170
Date: Thu, 20 Jan 2005 15:30:15 +0100

 Hi Lubomir,

 > the option should be called "kerberos", not "kerberos5" to be consistent
 > with the rest of pkgsrc.

 Well, there was already an entry for kerberos4 (not coming from me) in
 options.mk for fetchmail. So for me it is more consistent to then
 use kerberos5 - not kerberos, since the version matters?

 Greets
       Thorsten

From: Lubomir Sedlacik <salo@Xtrmntr.org>
To: Thorsten Frueauf <milano@zhadum.de>
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/26170
Date: Thu, 20 Jan 2005 15:35:28 +0100

 --IiVenqGWf+H9Y6IX
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable

 hi,

 On Thu, Jan 20, 2005 at 03:30:15PM +0100, Thorsten Frueauf wrote:
 > > the option should be called "kerberos", not "kerberos5" to be
 > > consistent with the rest of pkgsrc.
 >=20
 > Well, there was already an entry for kerberos4 (not coming from me) in
 > options.mk for fetchmail. So for me it is more consistent to then use
 > kerberos5 - not kerberos, since the version matters?

 the current practice is:

  kerberos4 for Kerberos 4
  kerberos  for Kerberos 5

 i don't recall any discusion about it, perhaps ask jlam@.


 regards,

 --=20
 -- Lubomir Sedlacik <salo@{NetBSD,Xtrmntr,silcnet}.org>   --

 --IiVenqGWf+H9Y6IX
 Content-Type: application/pgp-signature
 Content-Disposition: inline

 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.6 (NetBSD)

 iD8DBQFB78GwiwjDDlS8cmMRAr/BAJ9alD68KowFhZVlTqtBXVhRYrtWDwCfe0bI
 uApo6Kzbp5JRYiOnvdvUo/Q=
 =8G2h
 -----END PGP SIGNATURE-----

 --IiVenqGWf+H9Y6IX--

From: Thorsten Frueauf <frueauf@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/26170 CVS commit: pkgsrc/mail/fetchmail
Date: Fri, 21 Jan 2005 15:46:39 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	frueauf
 Date:		Fri Jan 21 15:46:39 UTC 2005

 Modified Files:
 	pkgsrc/mail/fetchmail: distinfo options.mk
 	pkgsrc/mail/fetchmail/patches: patch-ae

 Log Message:
 Rework kerberos V support:
 	- use kerberos instead of kerberos5 as PKG_SUPPORTED_OPTIONS
 	  to keep compliance with other kerberos aware packages in pkgsrc
 	- use the krb5 buildlink environment
 Introduce support for gssapi which was also requested in pr pkg/26170 with
 the according PKG_SUPPORTED_OPTIONS. gssapi will imply kerberos5.


 To generate a diff of this commit:
 cvs rdiff -r1.27 -r1.28 pkgsrc/mail/fetchmail/distinfo
 cvs rdiff -r1.6 -r1.7 pkgsrc/mail/fetchmail/options.mk
 cvs rdiff -r1.13 -r1.14 pkgsrc/mail/fetchmail/patches/patch-ae

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

State-Changed-From-To: feedback->closed
State-Changed-By: frueauf@netbsd.org
State-Changed-When: Fri, 21 Jan 2005 20:47:34 +0000
State-Changed-Why:
Jukka Salmi acknowledged that the recent changes make Kerberos V and
gssapi support work with fetchmail.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.