From nobody Sun Sep 12 12:56:47 2021 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 5DF8817A6F4D for ; Sun, 12 Sep 2021 12:56:56 +0000 (UTC) (envelope-from freebsd@omnilan.de) Received: from mx0.gentlemail.de (mx0.gentlemail.de [IPv6:2a00:e10:2800::a130]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4H6qPg3B12z4WbJ for ; Sun, 12 Sep 2021 12:56:55 +0000 (UTC) (envelope-from freebsd@omnilan.de) Received: from mh0.gentlemail.de (ezra.dcm1.omnilan.net [78.138.80.135]) by mx0.gentlemail.de (8.15.2/8.15.2) with ESMTP id 18CCumkZ014919; Sun, 12 Sep 2021 14:56:48 +0200 (CEST) (envelope-from freebsd@omnilan.de) X-Authentication-Warning: mx0.gentlemail.de: Host ezra.dcm1.omnilan.net [78.138.80.135] claimed to be mh0.gentlemail.de Received: from titan.inop.mo1.omnilan.net (s1.omnilan.de [217.91.127.234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mh0.gentlemail.de (Postfix) with ESMTPSA id 16DFAD84; Sun, 12 Sep 2021 14:56:48 +0200 (CEST) Subject: Re: How do I depend on a flavoured PHP port? The Handbook is wrong?? To: Mel Pilgrim , freebsd-ports@freebsd.org References: <7baa71b4-1459-83ae-a532-56e33956dd3a@bluerosetech.com> <776bba3c-0bc1-85a9-8a06-b8ed5ffeb19f@bluerosetech.com> From: Harry Schmalzbauer Organization: OmniLAN Message-ID: Date: Sun, 12 Sep 2021 14:56:47 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 In-Reply-To: <776bba3c-0bc1-85a9-8a06-b8ed5ffeb19f@bluerosetech.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4H6qPg3B12z4WbJ X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@omnilan.de designates 2a00:e10:2800::a130 as permitted sender) smtp.mailfrom=freebsd@omnilan.de X-Spamd-Result: default: False [-2.30 / 15.00]; RCVD_TLS_LAST(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; DMARC_NA(0.00)[omnilan.de]; HAS_ORG_HEADER(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:61157, ipnet:2a00:e10:2800::/38, country:DE]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Am 07.09.2021 um 04:15 schrieb Mel Pilgrim: > On 2021-09-06 17:35, Tatsuki Makino wrote: >> Mel Pilgrim wrote on 2021/09/04 09:36: >>> I'm trying to add a dependency on a flavoured PHP application, but >>> the Porter's Handbook (section 7.3.1) instructions don't work.  It >>> says to just add "@${PHP_FLAVOR}" but that's an empty variable. >>> >>> I can't add php:flavors to the USES line because that then requires >>> this port be flavoured as if it were itself a PHP application (it's >>> not, it's just a metaport). >>> >>> Adding "php" to USES works, but adds an unnecessary lang/php?? >>> dependency. >>> >>> What I need is the PHP counterpart to python:env, but I can't seem >>> to find it? >>> >> >> The RUN_DEPENDS+= near line 271 of Mk/Uses/php.mk seems to always be >> executed. >> It would be an excessive dependency if PHP was used as a script just >> for building. >> >> That's what this is about, isn't it? :) > > It's for a metaport that wants to add a flavored PHP port to > RUN_DEPENDS; but yes, needing PHP as a BUILD_DEPEND would probably be > another example. > I can't remember if this still is undocumented... and if I already reported that this is missing to be documented. Also can't remember where I found that it can look like this, most likely underneith ports/Mk: .if ${PORT_OPTIONS:MGITT} RUN_DEPENDS=    git:${PORTSDIR}/devel/git@tiny .endif It's from one of my local meta-ports. As far as I remember, it worked as intended. Best, -harry