From vd@datamax.bg  Fri Oct 21 08:02:53 2005
Return-Path: <vd@datamax.bg>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D378816A41F;
	Fri, 21 Oct 2005 08:02:53 +0000 (GMT)
	(envelope-from vd@datamax.bg)
Received: from jengal.datamax.bg (jengal.datamax.bg [82.103.104.21])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6F38C43D46;
	Fri, 21 Oct 2005 08:02:53 +0000 (GMT)
	(envelope-from vd@datamax.bg)
Received: from qlovarnika.bg.datamax (qlovarnika.bg.datamax [192.168.10.2])
	by jengal.datamax.bg (Postfix) with SMTP id 3EF9FB83B;
	Fri, 21 Oct 2005 11:02:52 +0300 (EEST)
Received: (nullmailer pid 46145 invoked by uid 1002);
	Fri, 21 Oct 2005 08:02:52 -0000
Message-Id: <20051021080251.GA46069@qlovarnika.bg.datamax>
Date: Fri, 21 Oct 2005 11:02:51 +0300
From: Vasil Dimov <vd@datamax.bg>
Reply-To: vd@datamax.bg
To: FreeBSD-gnats-submit@freebsd.org
Cc: apache@FreeBSD.org
Subject: duplicate INDEX entry: www/mod_rpaf*
X-Send-Pr-Version: 3.113

>Number:         87773
>Category:       ports
>Synopsis:       duplicate INDEX entry: www/mod_rpaf*
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    apache
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 21 08:10:16 GMT 2005
>Closed-Date:    Mon Dec 05 13:16:28 GMT 2005
>Last-Modified:  Mon Dec  5 14:00:12 GMT 2005
>Originator:     Vasil Dimov
>Release:        FreeBSD 6.0-RC1 amd64
>Organization:
DataMax
>Environment:

>Description:

If apache2 is installed then www/mod_rpaf and www/mod_rpaf2 get
the same name: mod_rpaf-ap2-0.5, which causes warning to be emitted
during "make index" and incorrect "make search" results.

Btw AP_FAST_BUILD is defined twice with the same value...

>How-To-Repeat:

# cd /usr/ports/www/apache2 && make install clean
# cd /usr/ports/www/mod_rpaf && make describe
# cd /usr/ports/www/mod_rpaf2 && make describe

>Fix:

I invented 2 other fixes, but this one is the simplest.

--- mod_rpaf.diff begins here ---
diff -urN mod_rpaf.orig/Makefile mod_rpaf/Makefile
--- mod_rpaf.orig/Makefile	Mon Nov  8 18:17:20 2004
+++ mod_rpaf/Makefile	Fri Oct 21 10:48:33 2005
@@ -14,10 +14,8 @@
 COMMENT=	Make proxied requests appear with client IP
 
 AP_FAST_BUILD=	YES
-AP_FAST_BUILD=	YES
 AP_GENPLIST=	YES
 AP2_SRC_FILE=	mod_rpaf-2.0.c
-AP2_PKGNAMESUFFIX=	-ap2
 
 .include <bsd.port.pre.mk>
 .include "${PORTSDIR}/www/apache2/Makefile.modules.3rd"
--- mod_rpaf.diff ends here ---

--- mod_rpaf2.diff begins here ---
diff -urN mod_rpaf2.orig/Makefile mod_rpaf2/Makefile
--- mod_rpaf2.orig/Makefile	Mon Apr 26 16:09:45 2004
+++ mod_rpaf2/Makefile	Fri Oct 21 10:48:49 2005
@@ -6,6 +6,7 @@
 #
 
 WANT_APACHE=	2
+AP2_PKGNAMESUFFIX=	-ap2
 LATEST_LINK=	mod_rpaf2
 MASTERDIR=	${.CURDIR}/../mod_rpaf
 
--- mod_rpaf2.diff ends here ---
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->apache 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri Oct 21 08:21:21 GMT 2005 
Responsible-Changed-Why:  
Over to maintainer(s) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=87773 
State-Changed-From-To: open->closed 
State-Changed-By: clement 
State-Changed-When: Mon Dec 5 13:15:33 GMT 2005 
State-Changed-Why:  
It's the correct behavior. Because you have WITH_APACHE2 defined. 
BTW, it's harmless in this case. 

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

From: Vasil Dimov <vd@datamax.bg>
To: Clement Laforet <clement@FreeBSD.org>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/87773: duplicate INDEX entry: www/mod_rpaf*
Date: Mon, 5 Dec 2005 15:55:59 +0200

 --G4iJoqBmSsgzjUCe
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Mon, Dec 05, 2005 at 01:16:27PM +0000, Clement Laforet wrote:
 > Synopsis: duplicate INDEX entry: www/mod_rpaf*
 >
 > It's the correct behavior. Because you have WITH_APACHE2 defined.
 > BTW, it's harmless in this case.
 >=20
 
 No, I don't have WITH_APACHE2 defined:
 
 # make -C /usr/ports/www/mod_rpaf -V WITH_APACHE2
 
 # make -C /usr/ports/www/mod_rpaf2 -V WITH_APACHE2
 
 #
 
 I am not sure if this is harmless:
 
 # make -C /usr/ports/www/mod_rpaf -V PKGNAME
 mod_rpaf-ap20-0.5
 # make -C /usr/ports/www/mod_rpaf2 -V PKGNAME
 mod_rpaf-ap20-0.5
 #
 
 but it is surely tumultuous during ``make index''.
 
 --=20
 Vasil Dimov
 
 --G4iJoqBmSsgzjUCe
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 
 iD8DBQFDlEbtFw6SP/bBpCARAnD+AJ9vBiHbMXRcXh0tvjpbT3d7V5pU5gCfaQ2P
 EPOgNs1eJ/je4BAZ2llR+gs=
 =wEIg
 -----END PGP SIGNATURE-----
 
 --G4iJoqBmSsgzjUCe--
>Unformatted:
