1 |
1 day, 1 emerge --sync, 1 update later: php-7.4 is additionally |
2 |
installed. for a php application i would expect that 1 php version is |
3 |
enough. but depending on the use flag this is not the case for |
4 |
nextcloud and roundcube, 2 versions are installed each. |
5 |
|
6 |
|
7 |
On Wed, 20 Oct 2021 15:44:27 -0400 |
8 |
Michael Orlitzky <mjo@g.o> wrote: |
9 |
|
10 |
> On 2021-10-20 19:23:09, zcampe@×××××.com wrote: |
11 |
> > |
12 |
> > when i install nextcloud it also installs php-7.3.31 and php-7.4.24, |
13 |
> > this is probably due to dev-php/imagick-3.5.1 |
14 |
> > |
15 |
> |
16 |
> PHP is slotted, so it's not too unusual for multiple versions to be |
17 |
> installed at the same time. An "emerge --depclean" may later remove |
18 |
> the older one. But this alone is no cause for alarm. |
19 |
> |
20 |
> |
21 |
> > if i install roundcube with use="change-password" php-8.0.11 is |
22 |
> > needed. |
23 |
> > |
24 |
> > i used use="-imagemagick" for nextcloud, and |
25 |
> > all packages could agree on php-8.0.11. |
26 |
> > |
27 |
> > 1.if an application requires 2 different versions this can't work, |
28 |
> > apache only uses one or? |
29 |
> |
30 |
> No, you're right. Whichever one you've eselected (if you're using |
31 |
> apache's mod_php) is the one that will be used, and not all of the |
32 |
> options will work with every installed PHP application. It doesn't |
33 |
> make a ton of sense, but PHP is relatively stable these days. So, uh, |
34 |
> good luck. |
35 |
> |
36 |
> |
37 |
> > 2.if in the ebuild of dev-php/imagick-3.5.1 |
38 |
> > USE_PHP="php7-3 php7-4 php8-0" |
39 |
> > what does that mean? |
40 |
> |
41 |
> C-language extensions like pecl-imagick are compiled against PHP. The |
42 |
> USE_PHP variable declares which versions they may be compiled |
43 |
> against. Then the user-facing variable PHP_TARGETS says which ones you |
44 |
> want. What you ultimately get is the intersection of USE_PHP and |
45 |
> PHP_TARGETS. |
46 |
> |