Linux – How to emerge different versions , ebuilds of php

gentoolinuxPHP

I'm trying to compile a lower version of php (5.2) as gentoo is selecting 5.3 and i'm having some coding issues with the new version

nano /etc/portage/package.use

=dev-lang/php-5.2.14 ~amd64

still when I emerge emerge -av php

is stil selecting version 5.3 which is by default

how else can I force emerge to select the version I want

ls /usr/portage/dev-lang/php/
ChangeLog php-5.2.14.ebuild php-5.3.4.ebuild
Manifest php-5.2.16.ebuild php-5.3.5.ebuild
files/ php-5.2.17.ebuild
metadata.xml php-5.3.3-r1.ebuild

Best Answer

You should find the old ebuild package, it should be in portage directory.

Then, if I remember correctly, the comand to run was "ebuild old-package.ebuild" and it will compile it.