From nobody@FreeBSD.org  Tue Mar  2 15:22:17 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 24E8C106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  2 Mar 2010 15:22:17 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 147B68FC19
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  2 Mar 2010 15:22:17 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o22FMGYd003205
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 2 Mar 2010 15:22:16 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o22FMGcm003204;
	Tue, 2 Mar 2010 15:22:16 GMT
	(envelope-from nobody)
Message-Id: <201003021522.o22FMGcm003204@www.freebsd.org>
Date: Tue, 2 Mar 2010 15:22:16 GMT
From: Aleksey <ariksu@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Apache fails to install
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         144422
>Category:       ports
>Synopsis:       www/apache22 fails to install
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pgollucci
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 02 15:30:02 UTC 2010
>Closed-Date:    Wed Apr 28 21:07:53 UTC 2010
>Last-Modified:  Fri May  7 03:30:02 UTC 2010
>Originator:     Aleksey
>Release:        FreeBSD 7.2-RELEASE-p2
>Organization:
Herzen University
>Environment:
FreeBSD ph2061.local 7.2-RELEASE-p2 FreeBSD 7.2-RELEASE-p2 #1: Tue Jul  7 10:33:41 MSD 2009     root@devel.p8.ru:/usr/obj/usr/src/sys/P8-7_2_amd64  amd64

>Description:
I was trying to reinstall Apache with db4 support when I found it impossible. 
Last lines was:
____
config.status: include/ap_config_auto.h is unchanged
config.status: executing default commands
sed: 1: "s,%%FTPUSERS%%,$FreeBSD ...": bad flag in substitute command: 'v'
*** Error code 1

Stop in /usr/ports/www/apache22.
*** Error code 1

Stop in /usr/ports/www/apache22.
____

I googled it and found that there are some users with the same problem, but no solution. (http://www.google.com/search?hl=en&q=+bad+flag+in+substitute+command%3A+%27v%27 first five links). What's more interesting - they have different versions of apache (20 or 22) and doing things like updating ports, cleaning configurations and other things like this does not help.
Then I found this "solution": http://forums.freebsd.org/showthread.php?t=3081 , moved my /etc/ftpusers to /etc/ftpusers.old and apache installs perfectly.

Unfortunately, I don't have skills or ecpierience to find what is broken in script that is executing sed command (don't even know which script could that be) but there is definitely a bug which shows itself in some strange occasions. 


>How-To-Repeat:
unknown
>Fix:
remove the /etc/ftpusers file from its location

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->apache 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Mar 3 03:59:18 UTC 2010 
Responsible-Changed-Why:  
Fix synopsis and assign. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=144422 
State-Changed-From-To: open->feedback 
State-Changed-By: pgollucci 
State-Changed-When: Tue Apr 27 21:57:17 UTC 2010 
State-Changed-Why:  
pending feedback 

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

From: "Philip M. Gollucci" <pgollucci@ridecharge.com>
To: bug-followup@FreeBSD.org, ariksu@gmail.com
Cc:  
Subject: Re: ports/144422: www/apache22 fails to install
Date: Tue, 27 Apr 2010 21:56:52 +0000

 http://people.freebsd.org/~pgollucci/FreeBSD/diffs/www_apache22-2.2.14.diff
 
 Can you tell me if the above simple patch works for you ?
 
 I'm amazed most people aren't hit by this.
 
 -- 
 ------------------------------------------------------------------------
 Philip M. Gollucci (pgollucci@ridecharge.com)
 p: 703.549.2050x206, did: 703.579.6947
 Senior System Admin - RideCharge, Inc.  http://ridecharge.com
 1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70  3F8C 75B8 8FFB DB9B 8C1C
 
 Work like you don't need the money,
 love like you'll never get hurt,
 and dance like nobody's watching.
 
State-Changed-From-To: feedback->closed 
State-Changed-By: pgollucci 
State-Changed-When: Wed Apr 28 21:07:52 UTC 2010 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=144422 
Responsible-Changed-From-To: apache->pgollucci 
Responsible-Changed-By: pgollucci 
Responsible-Changed-When: Wed Apr 28 21:08:01 UTC 2010 
Responsible-Changed-Why:  
I'll take it. 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/144422: commit references a PR
Date: Wed, 28 Apr 2010 21:06:05 +0000 (UTC)

 pgollucci    2010-04-28 21:05:56 UTC
 
   FreeBSD ports repository
 
   Modified files:
     www/apache20         Makefile 
     www/apache22         Makefile 
   Log:
   - Fix typo preventing install/deinstall when /etc/ftpusers was present
   
   Note if you already have www/apache20 or www/apache22 installed this is
   not worth updating for; however, you should verify your  [if you use it]
   ${PREFIX}/etc/apacheXX/extra/httpd-userdir.conf:
     DisableUser dir setting correct lists the users you don't want
     to have the ~/dir visible via http requests.
   
   PR:             ports/144422
   Reported by:    several
   With hat:       apache@
   
   Revision  Changes    Path
   1.263     +2 -2      ports/www/apache20/Makefile
   1.251     +2 -2      ports/www/apache22/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: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/144422: commit references a PR
Date: Fri,  7 May 2010 03:22:18 +0000 (UTC)

 pgollucci    2010-05-07 03:22:09 UTC
 
   FreeBSD ports repository
 
   Modified files:
     www/apache20         Makefile 
   Log:
   - duplicate www/apache22 re-fix for /etc/ftpusers in www/apache20
   
   PR:             ports/144422
   Reported by:    several
   With hat:       apache@
   
   Revision  Changes    Path
   1.274     +2 -2      ports/www/apache20/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"
 
>Unformatted:
