tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: make php to multi packages



oskar%fessel.org@localhost writes:

>>> 	ftp://www.back-street.net/pub/pkgsrc/pkgsrc-php-2025012000.diff.xz

> PHP_VERSION_DEFAULT now takes precedence over the installed PHP, breaking nearly all of my builds.
> While this is possibly self-inflicted by building and installing php83 from lang/php83, it is somewhat unexpected.
> Previously phpversion.mk checked what version was installed and selected the appropriate DEFAULT, it is now set to 82.
> From the cvs log it is clear, that the version check is not happening anymore.

I understand where you are coming from, but I don't see how detecting
the installed version makes sense in a multi-version world.

I would expect php to work like python; each package has a variable  of
what's accepted, and there's a configured default.

By installing php83, you were in the old method saying you wanted 83.
What happens if you just set PHP_VERSION_DEFAULT in mk.conf?

> That leaves me personally with the question on how to build other php
> versions in case the need arises when i have to set DEFAULT to 83 to
> keep my system unfragmented (and not build php82 and be unable to
> install that because it conflicts with php83…)

In python we have PYTHON_VERSION_REQD which you can pass to any
particular package.

I don't follow "not build 82".


Home | Main Index | Thread Index | Old Index