You are not logged in.

#1 2024-10-15 10:01:28

toft6633
Member
Registered: 2024-10-15
Posts: 5

Migrate to php-legacy

Hello,

I use Drupal as CMS. It seems that I will have to stay with php 8.3 for a while after php 8.4 has been released since Drupal does not yet support 8.4.

In this link is described how to migrate to php-legacy: https://wiki.archlinux.org/title/Nextcl … php-legacy. However the current version number of php-legacy is 8.2.24-2, and php 8.2 is too low. I need 8.3. Will php-legacy be upgraded when php 8.4 is released?

I am a bit confused. Is php-legacy always one version below php?

Fred

Offline

#2 2024-10-15 10:10:20

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,319

Re: Migrate to php-legacy

See https://wiki.archlinux.org/title/PHP#Installation for what php-legacy is and relevant other options.

If you then spin the AUR packaging examples further and assume there's an active legacy php maintainer in the AUR you'll land at https://aur.archlinux.org/packages/php83 and php-legacy will move to php 8.3 next year as 8.2 will be EOL in December:

Last edited by V1del (2024-10-15 10:12:19)

Offline

#3 2024-10-15 11:43:45

toft6633
Member
Registered: 2024-10-15
Posts: 5

Re: Migrate to php-legacy

Thanks V1del,

I installed and configured php-legacy. Will there be a gap between php 8.4 and php-legacy 8.3?

My experience with AUR is that it often ends with a build error!

Last edited by toft6633 (2024-10-15 11:44:14)

Offline

#4 2024-10-15 12:16:03

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,319

Re: Migrate to php-legacy

If 8.4 releases before the end of the year chances there's going to be a gap, since 8.2 only becomes EOL in december/at the end of the year.

Offline

#5 2024-10-15 12:30:30

toft6633
Member
Registered: 2024-10-15
Posts: 5

Re: Migrate to php-legacy

Thanks, AUR seems to be the way then!

https://wiki.php.net/todo/php84

Offline

#6 2024-10-15 13:03:51

toft6633
Member
Registered: 2024-10-15
Posts: 5

Re: Migrate to php-legacy

No, it was not... php83 depends on garbage that I don't need, like apache (use nginx). Now I don't know what to do... sad

Offline

#7 2024-10-16 09:38:11

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,999

Re: Migrate to php-legacy

apache is only a makedepend for php83 which means it can be removed after building .

makepkg does have the -s, --syncdeps and -r, --rmdeps options to install & remove such deps for you.
(requires some configuring of the sudo package)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#8 2024-10-16 13:32:12

toft6633
Member
Registered: 2024-10-15
Posts: 5

Re: Migrate to php-legacy

Thanks Lone_Wolf,

I saw that after my post. However I tried with makepkg -sicr, but got an error that dependencies could not be solved or something.

Offline

#9 2024-10-17 07:34:28

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,999

Re: Migrate to php-legacy

Looking at the deps for php83 there are atleast 3 that aren't in repos.
You'll have to build them (and their aur deps if they have any) first .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB