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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7B732159C96 for ; Tue, 23 Jul 2024 10:42:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3E6DBE29D6; Tue, 23 Jul 2024 10:42:53 +0000 (UTC) Received: from tauri.iewc.co.za (tauri.iewc.co.za [154.73.32.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F05C4E29CD for ; Tue, 23 Jul 2024 10:42:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=uls.co.za; s=20240625.tauri; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date: Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=v6Yk9+sxeq41sycbH27jQa5Ajb+KWs0E5voFTgJWWbg=; b=VrrMd2ZsnBY7cdkZErNU3KbYNY qXOGLjSQQMtiD9MdXXVjv8kXOXL4aQESjrS1dfGgnk7RKTJH34Ukelcx8Ujxp2OMyzyvB22MnKl+j glI6rewtK0iUph3VyL8Te2dMeKWjX6BaLfrK/tDxq9UrBXZQEraFwDsabTwpIyg9uGbJqsvK8BVGo IFvDNmR7GmIuxA6Gp7kPlXQh93aBHvAvziaGqHSOY1ag5NHqhoxi9TMIAndSCNmS0fXjhWjkLHbpD Usg2BHw4/8ykR7lqhaHA7Kx0fgXikMpgLVFf506j1qyA1WV/Y5FWsqEvo5c3QjkCtp05sPsIf8Iw2 lxXyu1AA==; Received: from [192.168.42.202] (helo=plastiekpoot) by tauri.iewc.co.za with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.97.1) (envelope-from ) id 1sWCym-000000002ZD-0bkJ; Tue, 23 Jul 2024 12:42:48 +0200 Received: from jkroon by plastiekpoot with local (Exim 4.97.1) (envelope-from ) id 1sWCyk-000000002CF-2VIx; Tue, 23 Jul 2024 12:42:46 +0200 From: Jaco Kroon To: gentoo-dev@lists.gentoo.org Cc: Jaco Kroon Subject: [gentoo-dev] [PATCH] php-ext-source-r3.eclass: Rebuild exts should dev-lang/php[threads,debug] change. Date: Tue, 23 Jul 2024 12:42:44 +0200 Message-ID: <20240723104244.8432-1-jaco@uls.co.za> X-Mailer: git-send-email 2.44.2 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: 5ff4180c-c35a-4de6-b147-4608cd718357 X-Archives-Hash: ea500aaede25e9ba8e25d7b893ec25a6 If these use flags change then the extension dir changes too, requiring extensions to be rebuilt. The downside of this change is that different versions of PHP can no longer have different USE values for threads and debug. Signed-off-by: Jaco Kroon --- eclass/php-ext-source-r3.eclass | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/eclass/php-ext-source-r3.eclass b/eclass/php-ext-source-r3.eclass index 0d58db5031c9..771481ca7d3d 100644 --- a/eclass/php-ext-source-r3.eclass +++ b/eclass/php-ext-source-r3.eclass @@ -100,6 +100,11 @@ esac # php_targets_php7-0? ( dev-lang/php:7.0[mysql?,pdo,pcre(+)] ) # @CODE +# Whenever certain PHP USE flags change, we need to also rebuild all +# extensions. +IUSE+="threads debug" +[ -n "${PHP_EXT_NEEDED_USE}" ] && PHP_EXT_NEEDED_USE+=, +PHP_EXT_NEEDED_USE+=threads=,debug= # Make sure at least one target is installed. First, start a USE # conditional like "php?", but only when PHP_EXT_OPTIONAL_USE is @@ -113,9 +118,7 @@ for _php_target in ${USE_PHP}; do REQUIRED_USE+="php_targets_${_php_target} " _php_slot=${_php_target/php} _php_slot=${_php_slot/-/.} - if [[ ${PHP_EXT_NEEDED_USE} ]] ; then - _php_slot+=[${PHP_EXT_NEEDED_USE}] - fi + _php_slot+=[${PHP_EXT_NEEDED_USE}] PHPDEPEND+=" php_targets_${_php_target}? ( dev-lang/php:${_php_slot} )" done -- 2.44.2