tech-pkg archive

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

Re: make php to multi packages



Takahiro Kambe <taca%NetBSD.org@localhost> writes:

> In message <rmijz9w658j.fsf%s1.lexort.com@localhost>
> 	on Tue, 11 Feb 2025 07:22:20 -0500,
> 	Greg Troxel <gdt%lexort.com@localhost> wrote:
>> It sounds like you are trying to have php detect if there is a version
>> installed, and essentially treat that as if the user had defined
>> PHP_VERSION_DEFAULT.
> Yes.
>
>> I see this as adding a way to work around not setting
>> PHP_VERSION_DEFAULT, when really it's easy to set.   And, it is
>> different from how python works.
> lang/php?? packages were previously only one pacakge can be installed,
> so it would help migration adding support for checking installed php.
> Of course, it is transient technique.

I don't think it really helps, as it will cause more confusion than it
solves.

On the other hand, how about:

  If there is exactly one installed version and it does not match
  PHP_VERSION_DEFAULT, emit a loud warning and sleep for 60s.  Do not
  attempt to do anythig different.

But I don't really see this as a big problem; it's easy for people to
set PHP_VERSION_DEFAULT.


Home | Main Index | Thread Index | Old Index