From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4F009158086 for ; Wed, 20 Oct 2021 19:44:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8C759E089C; Wed, 20 Oct 2021 19:44:30 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 29675E0884 for ; Wed, 20 Oct 2021 19:44:30 +0000 (UTC) Received: by stitch (Postfix, from userid 1000) id 29BE2CB3B1; Wed, 20 Oct 2021 15:44:28 -0400 (EDT) Date: Wed, 20 Oct 2021 15:44:27 -0400 From: Michael Orlitzky To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] php different version Message-ID: References: <20211020192309.2808f78e@melika.host77.tld> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20211020192309.2808f78e@melika.host77.tld> X-Archives-Salt: 9d92313b-d433-4454-8aa5-41bfda738a2e X-Archives-Hash: 53d1fd707dec97ebe686421aa7654a54 On 2021-10-20 19:23:09, zcampe@gmail.com wrote: > > when i install nextcloud it also installs php-7.3.31 and php-7.4.24, > this is probably due to dev-php/imagick-3.5.1 > PHP is slotted, so it's not too unusual for multiple versions to be installed at the same time. An "emerge --depclean" may later remove the older one. But this alone is no cause for alarm. > if i install roundcube with use="change-password" php-8.0.11 is needed. > > i used use="-imagemagick" for nextcloud, and > all packages could agree on php-8.0.11. > > 1.if an application requires 2 different versions this can't work, > apache only uses one or? No, you're right. Whichever one you've eselected (if you're using apache's mod_php) is the one that will be used, and not all of the options will work with every installed PHP application. It doesn't make a ton of sense, but PHP is relatively stable these days. So, uh, good luck. > 2.if in the ebuild of dev-php/imagick-3.5.1 > USE_PHP="php7-3 php7-4 php8-0" > what does that mean? C-language extensions like pecl-imagick are compiled against PHP. The USE_PHP variable declares which versions they may be compiled against. Then the user-facing variable PHP_TARGETS says which ones you want. What you ultimately get is the intersection of USE_PHP and PHP_TARGETS.