From toor@zeus.lpa.com  Thu Jun  7 12:08:27 2001
Return-Path: <toor@zeus.lpa.com>
Received: from zeus.lpa.com (mail.lpa.com [12.3.233.134])
	by hub.freebsd.org (Postfix) with ESMTP id 5585A37B403
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  7 Jun 2001 12:08:27 -0700 (PDT)
	(envelope-from toor@zeus.lpa.com)
Received: from nightrain.xelus.com ([10.4.4.19]) by zeus.lpa.com
          (Netscape Messaging Server 4.15) with ESMTP id GEKQDA00.BH4 for
          <FreeBSD-gnats-submit@freebsd.org>; Thu, 7 Jun 2001 15:05:34 -0400 
Message-Id: <GEKQDA00.BH4@zeus.lpa.com>
Date: Thu, 7 Jun 2001 15:05:34 -0400
From: Shawn Halpenny <malachai@iname.com>
Sender: Shawn Halpenny <malachai@iname.com>
Reply-To: Shawn Halpenny <malachai@iname.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] configure fails for fetchmail-5.8.5 with kerberos
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         27941
>Category:       ports
>Synopsis:       [PATCH] configure fails for fetchmail-5.8.5 with kerberos
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    roam
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 07 12:10:02 PDT 2001
>Closed-Date:    Fri Jun 15 00:52:06 PDT 2001
>Last-Modified:  Fri Jun 15 00:52:33 PDT 2001
>Originator:     Shawn Halpenny
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD nightrain.xelus.com 4.3-STABLE FreeBSD 4.3-STABLE #0: Thu Jun 7 10:00:44 EDT 2001 toor@nightrain.xelus.com:/usr/obj/usr/src/sys/NIGHTRAIN i386


	
>Description:

When configuring fetchmail-5.8.5, if you have kerberos installed on your
system the configure script fails to find it.

From the output of:  cd /usr/ports/mail/fetchmail && make

checking for getaddrinfo... yes
checking for inner_connect... no
checking for Kerberos IV in /usr/include... not found
configure: error: Kerberos 4 libraries not found
===>  Script "configure" failed: here are the contents of "config.log"
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

The problem is that the path to the kerberos files is incorrectly specified
in the arguments to configure (or that the configure script incorrectly
processes the path given for kerberos).

Patch included to fix it by changing the port's Makefile to point to the
correct directory (assuming the default kerberos installation location of
/usr).


>How-To-Repeat:
        cd /usr/ports/mail/fetchmail && make
>Fix:

--- Makefile~	Fri Jun  1 19:49:35 2001
+++ Makefile	Thu Jun  7 14:50:27 2001
@@ -47,7 +47,7 @@
 .endif
 
 .if exists(/usr/lib/libkrb.a) && defined(MAKE_KERBEROS4)
-CONFIGURE_ARGS += --with-kerberos=/usr/include
+CONFIGURE_ARGS += --with-kerberos=/usr
 .endif
 
 .if defined(KRB5_HOME) && exists(${KRB5_HOME}/lib/libkrb5.a)
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->roam 
Responsible-Changed-By: roam 
Responsible-Changed-When: Thu Jun 7 23:43:27 PDT 2001 
Responsible-Changed-Why:  
I know Kerberos fails for fetchmail > 5.8.1 on recent fbsd versions; 
let me see if this helps any. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=27941 
State-Changed-From-To: open->analyzed 
State-Changed-By: roam 
State-Changed-When: Tue Jun 12 10:38:01 PDT 2001 
State-Changed-Why:  
The attached patch was sent to the port maintainer for approval. 
It fixes the Kerberos 4 build and updates the port to 5.8.6. 

Index: ports/mail/fetchmail/Makefile 
=================================================================== 
RCS file: /home/ncvs/ports/mail/fetchmail/Makefile,v 
retrieving revision 1.124 
diff -u -r1.124 Makefile 
--- ports/mail/fetchmail/Makefile	2001/05/31 07:08:13	1.124 
+++ ports/mail/fetchmail/Makefile	2001/06/12 17:34:30 
@@ -10,7 +10,7 @@ 
# want fetchmailconf to work, define WITH_X11 

PORTNAME=	fetchmail 
-PORTVERSION=	5.8.5 
+PORTVERSION=	5.8.6 
CATEGORIES=	mail ipv6 
MASTER_SITES=	http://www.tuxedo.org/~esr/fetchmail/  
ftp://ftp.ccil.org/pub/esr/fetchmail/ 
@@ -47,7 +47,7 @@ 
.endif 

.if exists(/usr/lib/libkrb.a) && defined(MAKE_KERBEROS4) 
-CONFIGURE_ARGS += --with-kerberos=/usr/include 
+CONFIGURE_ARGS += --with-kerberos=/usr 
.endif 

.if defined(KRB5_HOME) && exists(${KRB5_HOME}/lib/libkrb5.a) 
Index: ports/mail/fetchmail/distinfo 
=================================================================== 
RCS file: /home/ncvs/ports/mail/fetchmail/distinfo,v 
retrieving revision 1.102 
diff -u -r1.102 distinfo 
--- ports/mail/fetchmail/distinfo	2001/05/31 07:08:13	1.102 
+++ ports/mail/fetchmail/distinfo	2001/06/12 17:34:30 
@@ -1 +1 @@ 
-MD5 (fetchmail-5.8.5.tar.gz) = 980e67fedcd02578d45fd939fe1c1643 
+MD5 (fetchmail-5.8.6.tar.gz) = 576a9fd8d092706cd74d74d742c7d543 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=27941 
State-Changed-From-To: analyzed->feedback 
State-Changed-By: roam 
State-Changed-When: Tue Jun 12 10:39:12 PDT 2001 
State-Changed-Why:  
Errrr... this was supposed to be 'feedback', not 'analyzed' - 
this PR is now awaiting maintainer approval, which is a kind 
of feedback :) 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=27941 
State-Changed-From-To: feedback->closed 
State-Changed-By: roam 
State-Changed-When: Fri Jun 15 00:52:06 PDT 2001 
State-Changed-Why:  
The port update to 5.8.6 contains this fix.  Thanks! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=27941 
>Unformatted:
