From nobody@FreeBSD.org  Mon Apr 10 10:41:54 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 07B7116A400
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 10 Apr 2006 10:41:54 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8CBF643D4C
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 10 Apr 2006 10:41:53 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k3AAfrwC084418
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 10 Apr 2006 10:41:53 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k3AAfrK3084417;
	Mon, 10 Apr 2006 10:41:53 GMT
	(envelope-from nobody)
Message-Id: <200604101041.k3AAfrK3084417@www.freebsd.org>
Date: Mon, 10 Apr 2006 10:41:53 GMT
From: Vitaliy Romanyuk <vitar@gmx.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: superfluous dependensies
X-Send-Pr-Version: www-2.3

>Number:         95580
>Category:       ports
>Synopsis:       superfluous dependensies
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    ale
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 10 10:50:15 GMT 2006
>Closed-Date:    Mon Apr 10 11:15:02 GMT 2006
>Last-Modified:  Mon Apr 17 10:30:18 GMT 2006
>Originator:     Vitaliy Romanyuk
>Release:        5-STABLE
>Organization:
Freelance ;-)
>Environment:
not needed
>Description:
There are too many superfluous dependencies onto software pieces that isn't true part of system but a part of "generic install" instead. In my case it's Apache but I'm sure that it isn't complete list.

AFAIK Apache installs during every install type (std/custom etc) when user says "enable httpd" but really it doesn't carries any system-level functions like sshd or inetd -- just "web-server", no more. And it can be easily replaced by number of  an alternates including ones that better for special cases (low-mem systems for example) -- like lighttpd or nginx.

But many ports (in my case it's PHP5) still refers to Apache modules-dir or Apache shared-dir or somewhat like that. And even tries to build Apache modules regardless of switches and parameters.
>How-To-Repeat:
#cd /usr/ports/lang/php5
#make -DWITHOUT_APACHE -EWITHOUT_APACHE -EWITH_APACHE=no {use as many variants as you like} install
#php -i
>Fix:
Review ports makefiles to avoid dependencies that really doesn't requred by original source
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->ale 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Apr 10 10:52:51 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=95580 
State-Changed-From-To: open->closed 
State-Changed-By: ale 
State-Changed-When: Mon Apr 10 11:14:04 UTC 2006 
State-Changed-Why:  
Install php5-cli if you don't want apache. 

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

From: Vitaliy Romanyuk <VitaliyRomanyuk@yahoo.com>
To: bug-followup@FreeBSD.org,
 vitar@gmx.net
Cc:  
Subject: Re: ports/95580: superfluous dependensies
Date: Mon, 17 Apr 2006 16:27:00 +0600

 > Audit-Trail
 >     State-Changed-From-To: open->closed 
 >     State-Changed-Why: Install php5-cli if you don't want apache.
 
 1. This way isn't clean (isn't intuitive).
 
 2. Even in case of "main" port (php, not php-cli) there is NO ANY clear
 reasons to be unreservedly depended on Apache -- why not any other from long
 list of supported SAPIs?. This unfortunate Apache, again, is NOT a part of
 system (while still be part of standard install)
 
 3. PHP was named just as good example of PR title.
 
 -- 
 Vitaliy Romanyuk <VitaR@gmx.net>
 
>Unformatted:
