Re: install default or latest version of php with pkg
Moin Rahman <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.ports |
|---|---|
| Message-ID | <[email protected]> |
> On Oct 14, 2025, at 18:50, Andriy Gapon <[email protected]> wrote: > > On 14/10/2025 19:45, Moin Rahman wrote: >>> On Oct 14, 2025, at 18:36, Andriy Gapon <[email protected]> wrote: >>> >>> >>> I am writing a recipe to configure a system for a particular purpose. >>> I need to install some version of PHP, doesn't matter much which, but it should be a recent one. E.g., the latest available in ports or the default version. >>> I do not want to hardcode any version / prefix like, say, "php83" (because it may be obsolete or unavailable in a few years). >>> >>> How could this be achieved with pkg? >> I do not know what actually you are trying to do or if I have understood >> you correctly. But let's say if I need dokuwiki and I do not want to add >> specific version I just do `pkg install www/dokuwiki` which will find >> out the required php version suffix and install all the php requirements. >> But if you need are using this for a custom application which is not in >> the tree and you need to install specific php versions for those then I >> believe you are out of options. > Yes, it's for something that's not in ports. > But maybe it could be put into ports with some effort... > > Maybe it would be a good idea to have some PHP meta-ports that just install default versions? > > E.g., for Python there is a python3 package that installs a current default python3.xx version as dependency and there is python package that installs a current default pythonX (python3 currently) as a dependency. > > -- > Andriy Gapon > This also brings some complexity like how are we going to handle different extensions. Or should we create different ports for each extensions. Not all extensions are common for all versions. Or should we just add the php and php-extensions? Let me think about it. Kind regards, Moin
signature.asc
(application/pgp-signature, 963 B)
-----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEETfdREoUGjQZKBS+fvbm1phfAvJEFAmjugDxfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDRE Rjc1MTEyODUwNjhEMDY0QTA1MkY5RkJEQjlCNUE2MTdDMEJDOTEACgkQvbm1phfA vJGlZg/+ObbX/uO8T/HNVqOiH5n0Hr8Az2EE07DKxvxw8lhHKF/VKpwr4MATFI8j osmV0nC6ULROgkNkTuaoBanPxFAUsp+N5jLNDq8/VvtmlrY9m5QdRCIC8kQLngZ9 OTQLqOONN499bE9oqkoNRTJeiUAv7aJkHhz+fR2OqKkANwPeTGqBlckDWmvruWcB cWppFsAYvK/B/amD/MwnHYzwh1eW0PG/WQLTaXMwZTsZ32LC6ywH92yTR8vQ5hhw Pv0SbmiFgEfAYFI3xVkQXY/iR1xacTRW8SY7QnOuiIt1dy8YB+B1VF2qSDNB/ETF XxOUmjE4IlZ1+ZMu/v761MSI4+ZhF2DzPNhVewkQwIhKJbiFQ8rgsnmXdwk1PwMH UTtipZBJdc+10js5/1lbwVtORz0GiTGfYQZ3cMQfOMbN3/flblxpXNM0gzmY/7Xm o1e3b95j4WAbATnSHeIOOLDcBEdBsAQsyubV/9Lcgmuo6hHK9kyHLPEnD40xfQH2 m67rrSASE89NVCYg6EIbhbb522/LIFI7FYk++Pu8UZM6lCI/gtsTHGCu4R5gatGm 547AqyFUqC1GBYmQPikhSoKCeQadUslZcuVvWL4c1D/eiEH0mf+xekY67TnjlOiA /cpruQ0YFaNSXoXU+ekJ0l3LtuLK4kK5aaGnPjhsQp/U9LBZADE= =f62O -----END PGP SIGNATURE-----