From yasu@home.utahime.org  Tue Feb 24 03:31:53 2009
Return-Path: <yasu@home.utahime.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 8AEC7106564A
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 24 Feb 2009 03:31:53 +0000 (UTC)
	(envelope-from yasu@home.utahime.org)
Received: from utahime.as.wakwak.ne.jp (utahime.as.wakwak.ne.jp [61.205.238.40])
	by mx1.freebsd.org (Postfix) with ESMTP id 1AB368FC14
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 24 Feb 2009 03:31:53 +0000 (UTC)
	(envelope-from yasu@home.utahime.org)
Received: from eastasia.home.utahime.org (eastasia.home.utahime.org [192.168.174.1])
	by utahime.as.wakwak.ne.jp (Postfix) with ESMTP id EF81F1701D;
	Tue, 24 Feb 2009 12:13:22 +0900 (JST)
Received: from eastasia.home.utahime.org (localhost [127.0.0.1])
	by localhost-backdoor.home.utahime.org (Postfix) with ESMTP id B7AC8178F7;
	Tue, 24 Feb 2009 12:13:22 +0900 (JST)
Received: by eastasia.home.utahime.org (Postfix, from userid 1000)
	id 84D74172CF; Tue, 24 Feb 2009 12:13:22 +0900 (JST)
Message-Id: <20090224031322.84D74172CF@eastasia.home.utahime.org>
Date: Tue, 24 Feb 2009 12:13:22 +0900 (JST)
From: Yasuhiro KIMURA <yasu@utahime.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] mail/maildrop: make fails with WITH_AUTHLIB=yes
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         132040
>Category:       ports
>Synopsis:       [PATCH] mail/maildrop: make fails with WITH_AUTHLIB=yes
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    garga
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 24 03:40:01 UTC 2009
>Closed-Date:    Tue Feb 24 13:49:57 UTC 2009
>Last-Modified:  Tue Feb 24 18:20:00 UTC 2009
>Originator:     Yasuhiro KIMURA
>Release:        FreeBSD 7.1-RELEASE-p3 i386
>Organization:
>Environment:
System: FreeBSD xxxx 7.1-RELEASE-p3 FreeBSD 7.1-RELEASE-p3 #0: Wed Feb 18 23:21:12 JST 2009 xxxx i386


	
>Description:
	Make fails when WITH_AUTHLIB is set to yes.

	
>How-To-Repeat:
	
>Fix:

	

--- patch-maildrop begins here ---
Index: Makefile
===================================================================
RCS file: /usr1/freebsd/cvsroot/ports/mail/maildrop/Makefile,v
retrieving revision 1.52
diff -u -r1.52 Makefile
--- Makefile	18 Feb 2009 07:00:44 -0000	1.52
+++ Makefile	24 Feb 2009 03:06:51 -0000
@@ -45,6 +45,14 @@
 .if exists(${.CURDIR}/../../security/courier-authlib/Makefile.opt)
 .include "${.CURDIR}/../../security/courier-authlib/Makefile.opt"
 .endif
+.if exists(${.CURDIR}/../../security/courier-authlib/Makefile.dep)
+.include "${.CURDIR}/../../security/courier-authlib/Makefile.dep"
+.endif
+BUILD_DEPENDS+=	courierauthconfig:${PORTSDIR}/security/courier-authlib-base
+RUN_DEPENDS+=	courierauthconfig:${PORTSDIR}/security/courier-authlib-base
+CONFIGURE_ARGS+=	--enable-authlib
+.else
+CONFIGURE_ARGS+=	--disable-authlib
 .endif
 
 .include <bsd.port.pre.mk>
@@ -80,17 +88,9 @@
 	@${REINPLACE_CMD} -e "s/l= 72 - szbuf.Length();/l= ${MAILDROP_LOG_COLUMNS} - szbuf.Length();/" \
 		${WRKSRC}/maildrop/log.C
 .if defined(WITH_AUTHLIB)
-.if exists(${.CURDIR}/../../security/courier-authlib/Makefile.dep)
-.include "${.CURDIR}/../../security/courier-authlib/Makefile.dep"
-.endif
 	@${REINPLACE_CMD} -e 's|@LIBS@|@LIBS@ \
 		-rpath=:${LOCALBASE}/lib/courier-authlib|' \
 		${WRKSRC}/maildrop/Makefile.in
-BUILD_DEPENDS+=	courierauthconfig:${PORTSDIR}/security/courier-authlib-base
-RUN_DEPENDS+=	courierauthconfig:${PORTSDIR}/security/courier-authlib-base
-CONFIGURE_ARGS+=	--enable-authlib
-.else
-CONFIGURE_ARGS+=	--disable-authlib
 .endif
 
 .if defined(NOPORTDOCS)
--- patch-maildrop ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->garga 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Feb 24 03:40:13 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132040 
State-Changed-From-To: open->feedback 
State-Changed-By: garga 
State-Changed-When: Tue Feb 24 11:05:20 UTC 2009 
State-Changed-Why:  
Ask for submitter information 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132040 

From: Renato Botelho <garga@FreeBSD.org>
To: bug-followup@FreeBSD.org, yasu@utahime.org
Cc:  
Subject: Re: ports/132040: [PATCH] mail/maildrop: make fails with
	WITH_AUTHLIB=yes
Date: Tue, 24 Feb 2009 08:04:54 -0300

 I tested it here on 8.0-current i386 and on 7.1-stable i386 and didn't find
 any problem, could you send me a complete buildlog and more information
 about you environment?
 
 Thanks
 -- 
 Renato Botelho <garga @ FreeBSD.org>
                <garga @ freebsdbrasil.com.br>
 GnuPG Key: http://www.FreeBSD.org/~garga/pubkey.asc
 
 	"Do you think there's a God?"
 	"Well, SOMEbody's out to get me!"
 		-- Calvin and Hobbs

From: Yasuhiro KIMURA <yasu@utahime.org>
To: garga@FreeBSD.org
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/132040: [PATCH] mail/maildrop: make fails with
 WITH_AUTHLIB=yes
Date: Tue, 24 Feb 2009 21:42:12 +0900 (JST)

 Hi.
 
 According to futher investigation, there is one more step required to
 reproduce this issue. Try following step:
 
 1. cd to /usr/ports/mail/maildrop 
 2. type 'env WITH_AUTHLIB=yes make rmconfig' 
 3. type 'env WITH_AUTHLIB=yes make'
 4. check 'AUTH_USERDB' in option setting
 5. type TAB to move to 'OK', and type RETURN key
 
 then following error will happen:
 
 "Makefile", line 88: Unassociated shell command "@${REINPLACE_CMD} -e 's|@LIBS@|@LIBS@  -rpath=:${LOCALBASE}/lib/courier-authlib|'  ${WRKSRC}/maildrop/Makefile.in"
 make: fatal errors encountered -- cannot continue
 *** Error code 1
 
 Stop in /usr/ports/mail/maildrop.
 
 It seems error doesn't happen if step 4 is skipped.
 
 Regards.
 
 
 
State-Changed-From-To: feedback->closed 
State-Changed-By: garga 
State-Changed-When: Tue Feb 24 13:49:56 UTC 2009 
State-Changed-Why:  
Fixed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132040 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/132040: commit references a PR
Date: Tue, 24 Feb 2009 13:49:46 +0000 (UTC)

 garga       2009-02-24 13:49:37 UTC
 
   FreeBSD ports repository
 
   Modified files:
     mail/maildrop        Makefile 
   Log:
   - Fix REINPLACE_CMD syntax when WITH_AUTHLIB=yes
   
   PR:             ports/132040 (based on)
   Submitted by:   Yasuhiro KIMURA <yasu@utahime.org>
   
   Revision  Changes    Path
   1.53      +1 -2      ports/mail/maildrop/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: Yasuhiro KIMURA <yasu@utahime.org>
To: garga@FreeBSD.org
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/132040: [PATCH] mail/maildrop: make fails with
 WITH_AUTHLIB=yes
Date: Wed, 25 Feb 2009 03:09:32 +0900 (JST)

 I'm afraid the issue is not fixed yet with rev. 1.53 of Makefile.
 
 > 1. cd to /usr/ports/mail/maildrop 
 > 2. type 'env WITH_AUTHLIB=yes make rmconfig' 
 > 3. type 'env WITH_AUTHLIB=yes make'
 > 4. check 'AUTH_USERDB' in option setting
 > 5. type TAB to move to 'OK', and type RETURN key
 
 Above steps cause following error:
 
 "Makefile", line 87: Unassociated shell command "${REINPLACE_CMD} -e 's|@LIBS@|@LIBS@ -rpath=:${LOCALBASE}/lib/courier-authlib|'  ${WRKSRC}/maildrop/Makefile.in"
 make: fatal errors encountered -- cannot continue
 *** Error code 1
 
 Stop in /usr/ports/mail/maildrop.
 eastasia#
 
 Regards.
>Unformatted:
