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


Reply via email to