From nobody Tue Sep 7 02:15:26 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 1D4E317B8FFA for ; Tue, 7 Sep 2021 02:15:29 +0000 (UTC) (envelope-from list_freebsd@bluerosetech.com) Received: from echo.brtsvcs.net (echo.brtsvcs.net [208.111.40.118]) (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 4H3TPr6jMCz4SqV for ; Tue, 7 Sep 2021 02:15:28 +0000 (UTC) (envelope-from list_freebsd@bluerosetech.com) Received: from chombo.houseloki.net (65-100-43-2.dia.static.qwest.net [65.100.43.2]) by echo.brtsvcs.net (Postfix) with ESMTPS id 704B238D01; Tue, 7 Sep 2021 02:15:27 +0000 (UTC) Received: from [IPv6:2602:41:642b:630:41d5:e8d1:d896:2e26] (unknown [IPv6:2602:41:642b:630:41d5:e8d1:d896:2e26]) by chombo.houseloki.net (Postfix) with ESMTPSA id 97C059FFC; Mon, 6 Sep 2021 19:15:26 -0700 (PDT) Subject: Re: How do I depend on a flavoured PHP port? The Handbook is wrong?? To: Tatsuki Makino , freebsd-ports@freebsd.org References: <7baa71b4-1459-83ae-a532-56e33956dd3a@bluerosetech.com> From: Mel Pilgrim Message-ID: <776bba3c-0bc1-85a9-8a06-b8ed5ffeb19f@bluerosetech.com> Date: Mon, 6 Sep 2021 19:15:26 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4H3TPr6jMCz4SqV X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N 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.