On 20/10/2025 10:49, Bjarne D Mathiesen via macports-dev wrote:
I can see, what the intension is:
- for the languages proper (eg php84) you want (lang, www)
- for SAPI (eg php84-fpm) you want (lang, www)
- for proper extensions (eg php84-curl) you want (php, <ext-specific>)
like you get for extensions not in the portfile (eg php84-mongodb)
that is without the (lang) part
I don't think it's a problem to have an extra category for the
extensions that are defined in lang/php.
Problem is, that at some time lint now !REQUIRES! the primary category
to be the name of the parent folder. Thus, it's no longer possible to
exclude the (lang) part from extensions in the php Portfile.
This has been the case since MacPorts 1.6.0 in 2007, BTW.
If I change the categories definition in the portgroup php-1.1.tcl file to :
default categories lang
categories-append php
it fixes the extensions in the php Portfile;
!BUT! it breaks the "port lint" for every php<ver>-<extension> in the
php parent folder
Seems like the easier fix is to set 'categories lang' at the top level
in the php Portfile, then, and append as appropriate based on the subport.
- Josh