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