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 BA9AF158086 for ; Wed, 20 Oct 2021 22:55:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C0C68E08FE; Wed, 20 Oct 2021 22:54:59 +0000 (UTC) Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 49032E08EB for ; Wed, 20 Oct 2021 22:54:59 +0000 (UTC) Received: by mail-wm1-f51.google.com with SMTP id m42so21087878wms.2 for ; Wed, 20 Oct 2021 15:54:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=P1LOEl5GHOvU+hfetthyKwWrO89dz7sr+NqORLTRBRQ=; b=W5bsS208EjXx1qZ9XS9vgFuN3ggVuqNsxq+wabhxY0pCyJWded2ELWsGIRYLIUIlYR eMdl4wsVNvNCRFveaPIsoJvbT5rQzkMBIbb+v3nrk+jzqtRAGlQwZVMivQYxzHmijBNu EX2cYdpkQisrDN93AuuaImXdzT765+62K3+9n4669hFy/aVy7F/pdBtH+PvEreU9Fl3C 0cCuIW+T9It/EMzqBBjfjKl+wxn9qsh/5ANtQy1P9NRo2TjsGFz0rdyAAg77TMMWOSDt aL3TCt6yoqRIlAiFrSUthxlrd8xraXALfGT++QmEFRSGx2BoA/ryoetHXsJIzf12VoW/ y6ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=P1LOEl5GHOvU+hfetthyKwWrO89dz7sr+NqORLTRBRQ=; b=Up1iItvLLeLxvPoK9z6+qgRCJKmA3IZObJY6mJFP1nWf3VbkjW+7OxcpjJ6gC/Mrrj SmSAi6/k5b6QtG214PwkH0vaoa6KsVM8lHhYp0ttNU9EkwFcw8ErIH7mMPCWgIlWULoP v3rHdHF2rBZT4wAeHIGhod63S6hdYO7vq+euA3f3jNaG6IARBJ36RtGguWzNgMvoS7sX HMFO15aHSdeZUhyl8n8eLcuXpqP4yxm2dt7LqeldEbmyCtTYTHe62tZ+axkEl73G0yzd 936gQm2/auFv5fRvxQJpajLs9wAQY8qTJyh0KmorTQZy+ynHWU3AJnv02hljALq/oGcV CF5g== X-Gm-Message-State: AOAM532soH/Z2uIN43A0E8f4vZE5BRi6n6m8mumkYhd/sCkSbSLusWbi m2keBS5L3lvEO7QHGwdL52cBrkRxEjs= X-Google-Smtp-Source: ABdhPJzvfvS2l1JgrPsC2ETq0UYlhXM4c7wORwb73ImMguya/L7Im9CNELjTMC6jTfMfh5xDegU9pg== X-Received: by 2002:a7b:c359:: with SMTP id l25mr16769769wmj.84.1634770438087; Wed, 20 Oct 2021 15:53:58 -0700 (PDT) Received: from melika.host77.tld ([2a06:8782:ffbb:1337:1f4d:b67c:3f1a:259f]) by smtp.gmail.com with ESMTPSA id z5sm7754041wmp.26.2021.10.20.15.53.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Oct 2021 15:53:57 -0700 (PDT) Date: Thu, 21 Oct 2021 00:53:55 +0200 From: To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] php different version Message-ID: <20211021005355.6055bec7@melika.host77.tld> In-Reply-To: References: <20211020192309.2808f78e@melika.host77.tld> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) 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=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: 341de2b9-f7ff-4aba-8773-bb631f888248 X-Archives-Hash: 949f64bfc618c344ffd618ef387f00e1 1 day, 1 emerge --sync, 1 update later: php-7.4 is additionally installed. for a php application i would expect that 1 php version is enough. but depending on the use flag this is not the case for nextcloud and roundcube, 2 versions are installed each. On Wed, 20 Oct 2021 15:44:27 -0400 Michael Orlitzky wrote: > 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. >