Date: Sat, 2 Dec 2023 21:37:40 +0100 From: Michael Grimm <trashcan@ellael.org> To: ports@freebsd.org Subject: Setting of DEFAULT_VERSIONS of php and poudriere's ports compilation woes in my setup Message-ID: <420DE888-DFEC-417F-B557-50FFCB416FB8@ellael.org>
next in thread | raw e-mail | index | archive | help
Hi, I am following the git repository for ports and using poudriere to = compile those. Today I stumbled over: 20231125: AFFECTS: users of lang/php81 AUTHOR: bofh@FreeBSD.org The default version of PHP has been switched from 8.1 to 8.2. [=E2=80=A6] I had had the following definition for default php version in my = poudriere make.conf: DEFAULT_VERSIONS+=3D php=3D81 [=E2=80=A6] Now, I *removed* 'php=3D81' from DEFAULT_VERSIONS and ended up with the = following errors from poudriere: Warning: (local/wpm): Error: local/wpm depends on nonexistent = origin 'lang/php8.2-extensions';=20 Please contact maintainer of the port to = fix this. Warning: (mail/roundcube@php8.2): Error: Invalid FLAVOR 'php8.2' = for mail/roundcube Error: Fatal errors encountered gathering ports metadata Understandable to me because all relevant ports are named as 'php82'... I do have that local port local/wpm defined as follows: [=E2=80=A6] RUN_DEPENDS+=3D = php${PHP_DEFAULT}-extensions>0:${PORTSDIR}/lang/php${PHP_DEFAULT}-extensio= ns RUN_DEPENDS+=3D = roundcube-php${PHP_DEFAULT}>0:${PORTSDIR}/mail/roundcube@php${PHP_DEFAULT}= [=E2=80=A6] Adding 'DEFAULT_VERSIONS+=3D php=3D82 [=E2=80=A6]' to my poudriere = make.conf resolves this issue. It looks like $PHP_DEFAULT in port definition without = 'DEFAULT_VERSIONS+=3D php=3D82' in make.conf translates to an erroneous = 'php8.2' and runs into errors. Whereas the explicit definition of 'DEFAULT_VERSIONS+=3D php=3D82' in = make.conf is resulting in a $PHP_DEFAULT translating to 'php82' which = successfully compiles those ports without complaints. I really don't understand what I am doing wrong. And I would appreciate = if someone could explain it to me. Thanks in advance and regards, Michael
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?420DE888-DFEC-417F-B557-50FFCB416FB8>