public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] default php-ext status
@ 2024-04-22 14:46 Jaco Kroon
  2024-04-22 16:49 ` Michael Orlitzky
  0 siblings, 1 reply; 4+ messages in thread
From: Jaco Kroon @ 2024-04-22 14:46 UTC (permalink / raw)
  To: gentoo development

Hi All,

For PHP modules that's getting installed, by default they all link 
ext/${modulename}.ini into ext-active/ such that all modules by default 
is active for all SAPIs.

Short of INSTALL_MASK, is there way to better control for sysadmins?

If I rm the symlinks, on next remerge they restore themselves:

plastiekpoot [16:43:09] /etc/php (master) # ls -lah */ext-active/xdebug.ini
lrwxrwxrwx 1 root root 17 Apr 22 15:36 
apache2-php8.1/ext-active/xdebug.ini -> ../ext/xdebug.ini
lrwxrwxrwx 1 root root 17 Apr 22 15:36 cli-php8.1/ext-active/xdebug.ini 
-> ../ext/xdebug.ini
lrwxrwxrwx 1 root root 17 Apr 22 15:36 fpm-php8.1/ext-active/xdebug.ini 
-> ../ext/xdebug.ini
plastiekpoot [16:43:15] /etc/php (master) # rm 
apache2-php8.1/ext-active/xdebug.ini
plastiekpoot [16:43:21] /etc/php (master) # emerge -av xdebug
...
plastiekpoot [16:43:52] /etc/php (master) # ls -lah */ext-active/xdebug.ini
lrwxrwxrwx 1 root root 17 Apr 22 16:43 
apache2-php8.1/ext-active/xdebug.ini -> ../ext/xdebug.ini
lrwxrwxrwx 1 root root 17 Apr 22 16:43 cli-php8.1/ext-active/xdebug.ini 
-> ../ext/xdebug.ini
lrwxrwxrwx 1 root root 17 Apr 22 16:43 fpm-php8.1/ext-active/xdebug.ini 
-> ../ext/xdebug.ini

Which in my *opinion* is not desirable behaviour, but I'm open for 
discussion.

xdebug.mode = off by default, but the extension still gets loaded.

Not sure if there is a sensible "solution", further expanding USE flags 
certainly is not a desirable option, so perhaps INSTALL_MASK 
(per-package env) is the best solution ... ?

Kind regards,
Jaco



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-04-25 12:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-22 14:46 [gentoo-dev] default php-ext status Jaco Kroon
2024-04-22 16:49 ` Michael Orlitzky
2024-04-23 11:05   ` Jaco Kroon
2024-04-25 12:27     ` Michael Orlitzky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox