* Re: [gentoo-user] PHP slots
2015-08-19 17:05 [gentoo-user] PHP slots Ajai Khattri
@ 2015-08-19 19:00 ` Alan McKinnon
0 siblings, 0 replies; 2+ messages in thread
From: Alan McKinnon @ 2015-08-19 19:00 UTC (permalink / raw
To: gentoo-user
On 19/08/2015 19:05, Ajai Khattri wrote:
>
> Are packages of major versions of PHP all slotted now?
Yes
> In trying to upgrade from 5.3 to 5.6 I get the following query:
>
> # emerge -uDatvk dev-lang/php
>
> * IMPORTANT: 8 news items need reading for repository 'gentoo'.
> * Use eselect news read to view new items.
Um, you should probably read those
>
>
> These are the packages that would be merged, in reverse order:
>
> Calculating dependencies... done!
>
> Total: 0 packages, Size of downloads: 0 KiB
>
> !!! The following installed packages are masked:
> - dev-lang/php-5.3.28-r3::gentoo (masked by: package.mask)
> /usr/portage/profiles/package.mask:
> # Brian Evans <grknight@gentoo.org> (22 Mar 2015)
> # PHP 5.3.x is vulnerable to several security bugs and has
> # reached EOL status. (Bugs #533998, #537586, #537590, #538822, #541098)
> # Masked pending resolution to bug #538756
>
> For more information, see the MASKED PACKAGES section in the emerge
> man page or refer to the Gentoo Handbook.
>
>
>
> * dev-lang/php:5.3
> * dev-lang/php:5.4
> * dev-lang/php:5.5
>
> Would you like to add these packages to your world favorites? [Yes/No]
>
>
> I always thought the idea of adding specific slots to my world file a
> bad idea ?
No, adding random crap to world is a bad idea. You add to world things
YOU want to have, things that are not deps.
If you want package X and that package needs php version Y, then php-Y
will be installed.
If you know for sure you need say php-5.4 for some purpose, then add it
to world, otherwise depclean will start removing it.
If you just want the latest php, then simply emerge php
One of the purposes of slots is to give YOU, the user, finer control
over packages that you may well need several versions of (interpreters,
libs, kernel sources, and more). To control that, you need to add them
to world.
What you should not do is try add specific versions of packages to
world. That can go horribly wrong. SLOTs for apps you will emerge are
generally OK
--
Alan McKinnon
alan.mckinnon@gmail.com
^ permalink raw reply [flat|nested] 2+ messages in thread