From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id BA6291388BF for ; Sat, 9 Jan 2016 17:39:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 096BAE0866; Sat, 9 Jan 2016 17:39:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BA0C2E0856 for ; Sat, 9 Jan 2016 17:39:12 +0000 (UTC) Received: from [192.168.1.100] (c-98-218-46-55.hsd1.md.comcast.net [98.218.46.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mjo) by smtp.gentoo.org (Postfix) with ESMTPSA id 72D44340923 for ; Sat, 9 Jan 2016 17:39:11 +0000 (UTC) Subject: Re: [gentoo-dev] News item: Apache "-D PHP5" needs update to "-D PHP" To: gentoo-dev@lists.gentoo.org References: <20160104154245.27599.qmail@stuge.se> <568A9592.5090401@gentoo.org> <20160104161153.30168.qmail@stuge.se> <568AA12D.7090807@gentoo.org> <568AAA13.8080006@gentoo.org> <568AC798.3040008@gentoo.org> <568C1B1A.6050703@gentoo.org> <568D6CC7.8030809@gentoo.org> <568D70C7.5080007@gentoo.org> <20160108005219.GN11262@schiffbauer.net> From: Michael Orlitzky Message-ID: <569145BD.7000607@gentoo.org> Date: Sat, 9 Jan 2016 12:39:09 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 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 MIME-Version: 1.0 In-Reply-To: <20160108005219.GN11262@schiffbauer.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: a0311503-5e13-44b2-9da3-e5339a24e412 X-Archives-Hash: 7b9749cfa2790fc029ae3a3c769bdbfb On 01/07/2016 07:52 PM, Marc Schiffbauer wrote: >> >> 3. I could try to hack some magic into eselect-php to detect whether or >> not you have -DPHP5 set. Something simple, like grepping /etc/conf.d >> /apache2 for "PHP5". In that case we could omit a notice. >> This one simultaneously makes the most sense and feels like the >> biggest hack. > > +1 for 3. > > You can remove the hack in a year or so. I think most important is a > good user experience. If this requires a hack because the design of the > tools give you no other choice than be it. > Done in recent eselect-php: $ sudo eselect php set apache2 1 !!! Warning: The apache2 configuration has changed in this !!! Warning: version of eselect-php. You should define "-D PHP" !!! Warning: and not "-D PHP5" for apache. The module is now !!! Warning: loaded by 70_mod_php.conf (was 70_mod_php5.conf). !!! Warning: After you have changed "-D PHP5" to "-D PHP", !!! Warning: you should remove 70_mod_php5.conf to eliminate !!! Warning: this warning. Until you have done so, your eselect !!! Warning: choices for apache2 will have no effect. Please restart apache for the changes to take effect. Users may get that warning more than once if we reinstall 70_mod_php5.conf, but it's harmless and less hacky than grepping /etc/conf.d/apache2. I think we can forego the news item? Thanks for the suggestions.