Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Aug 2014 18:29:02 +0200 (CEST)
From:      Melvyn Sopacua <melvyn@magemana.nl>
To:        Matthew Pounsett <matt@conundrum.com>
Cc:        ports@FreeBSD.org
Subject:   Re: WANT_PHP_WEB is just a synonym for WANT_PHP_CGI in automated build environments
Message-ID:  <alpine.BSF.2.00.1408031806090.740@fire.magemana.nl>
In-Reply-To: <C11DB032-E822-4C6B-A93B-7A62B242CC6B@conundrum.com>
References:  <F00B4361-E712-4E1D-B95F-E11C41BDA3C6@conundrum.com> <alpine.BSF.2.00.1408030749570.96074@fire.magemana.nl> <C11DB032-E822-4C6B-A93B-7A62B242CC6B@conundrum.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Matthew,

On Sun, 3 Aug 2014, Matthew Pounsett wrote:

> On Aug 3, 2014, at 02:07 , Melvyn Sopacua <melvyn@magemana.nl> wrote:

>> For automated builds use the OPTIONS framework. Tinderbox can handle
>> that just fine.
>
> Right, and I’m speaking from the perspective of the admin building the
> port, not the maintainer.  The maintainer can set that the port will
> work with either .. but in an automated build environment it looks
> like there is no knob for the administrator to tell the ports system
> which to use.

Unless that changed in recent years, you can have Tinderbox mount your
options database in /var/db/ports into the build jail. So you can do one
configure run and set it.

A second possibility is to simply add www/mod_php5 to ports to be built,
since it's no longer part of lang/php5. This won't work for the
upstream-abandoned php 5.3.

A third is to set php53_SET=APACHE in /etc/make.conf.

> Again.. unless I’m missing some knob that exists to give guidance to
> the ports system.   I’m familiar with the options framework, but I
> can’t find anything in bsd.php.mk that could be used to give guidance
> to the ports system that mod_php5 is desired when WANT_PHP_WEB is
> defined.

WANT_PHP_WEB actually pulls in the apache module if php is installed
only with the CLI or EMBED backend. See this bit:

if defined(WANT_PHP_MOD) || (defined(WANT_PHP_WEB) && defined(PHP_VERSION) && ${PHP_SAPI:Mcgi} == "" && ${PHP_SAPI:Mfpm} == "")
USE_APACHE_RUN= 22+
.include "${PORTSDIR}/Mk/bsd.apache.mk"
RUN_DEPENDS+=   ${PHPBASE}/${APACHEMODDIR}/libphp5.so:${PORTSDIR}/${MOD_PHP_PORT}
.endif

--
Melvyn
From owner-freebsd-ports@FreeBSD.ORG  Sun Aug  3 17:33:31 2014
Return-Path: <owner-freebsd-ports@FreeBSD.ORG>
Delivered-To: freebsd-ports@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTPS id 1DF2F504
 for <freebsd-ports@freebsd.org>; Sun,  3 Aug 2014 17:33:31 +0000 (UTC)
Received: from qmta02.westchester.pa.mail.comcast.net
 (qmta02.westchester.pa.mail.comcast.net [IPv6:2001:558:fe14:43:76:96:62:24])
 by mx1.freebsd.org (Postfix) with ESMTP id C3635288B
 for <freebsd-ports@freebsd.org>; Sun,  3 Aug 2014 17:33:30 +0000 (UTC)
Received: from omta14.westchester.pa.mail.comcast.net ([76.96.62.60])
 by qmta02.westchester.pa.mail.comcast.net with comcast
 id aHAM1o0041HzFnQ51HZUJh; Sun, 03 Aug 2014 17:33:28 +0000
Received: from kirby.cyberbotx.com ([107.5.48.95])
 by omta14.westchester.pa.mail.comcast.net with comcast
 id aHZT1o00h23DSHF3aHZUwy; Sun, 03 Aug 2014 17:33:28 +0000
Message-ID: <53DE7266.5000606@cyberbotx.com>
Date: Sun, 03 Aug 2014 13:33:26 -0400
From: Naram Qashat <cyberbotx@cyberbotx.com>
User-Agent: Mozilla/5.0 (X11; FreeBSD amd64;
 rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: freebsd-ports@FreeBSD.org
Subject: Does pkg automatically download INDEX?
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;
 s=q20140121; t=1407087208;
 bh=lbxcIQDSQOjVmVbZ9o/Viy/j3Tgo1F4pBp97UvkS/Tw=;
 h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject:
 Content-Type;
 b=vSdadmNemjbksgLoJoUyavoXIX+Q6ri+Wj0Fy1t6eext7vfA4Ss3vUgk1OqBiEfsz
 uAXdo8k8HFwKBn3JF6+cDVz09SSW5xP38XfQREccUemSxAZzE6lb4MwAQzjMbo531o
 5IXGCL1dtU9wJp29d1ffkv/BUMqpPXunRYzTFoylXjRexRbROHblCvKprKZT0s700P
 gJc7XURIHQLClYNH+LHMJWO/GoRS0lifjTXOvnEATIgqxH5+UzPQ1heRSbPTQkH1by
 +3w71MVIyolevSAdc+Wm2FIa6oEtKBeYP6+myXVJUy6n5U2YnNuyULkvckQCPRvPbS
 lv7NQHu5M23oQ==
X-BeenThere: freebsd-ports@freebsd.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: Porting software to FreeBSD <freebsd-ports.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-ports>,
 <mailto:freebsd-ports-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-ports/>;
List-Post: <mailto:freebsd-ports@freebsd.org>
List-Help: <mailto:freebsd-ports-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports>,
 <mailto:freebsd-ports-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sun, 03 Aug 2014 17:33:31 -0000

I've been noticing this whenever I do a 'pkg version -v', it shows some ports as 
being different from the INDEX, but when I check the actual port, it isn't the 
same version that 'pkg version' shows. I usually rebuild my INDEX manually after 
doing an svn update, so I'm wondering if this is pkg doing something or if I 
have something else doing it. I am running FreeBSD 9.2.

Thanks,
Naram Qashat



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1408031806090.740>