Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 778194 - dev-php/pecl-apcu-5.1.20 installs apc.php file into wrong directory
Summary: dev-php/pecl-apcu-5.1.20 installs apc.php file into wrong directory
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-25 16:41 UTC by EK
Modified: 2021-03-25 16:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description EK 2021-03-25 16:41:09 UTC
Upgrading to php-8.0, have PHP_TARGETS="php8-0" in make.conf already, php-8 installed but still using 7.4 for cli (haven't changed by eselect). While emerge reported use flag changed:
[ebuild     U ~] dev-php/pecl-apcu-5.1.20 [5.1.19] PHP_TARGETS="php8-0* -php7-4*"
after installation got message printed:

>>> Messages generated by process 25620 on 2021-03-25 16:09:13 CET for package dev-php/pecl-apcu-5.1.20:

LOG: postinst
The apc.php file shipped with this release of pecl-apcu was
installed to /usr/share/php7/apcu/.

indeed, /usr/share/php8 directory is empty, file resides in /usr/share/php7.

Reproducible: Didn't try

Steps to Reproduce:
1. put "dev-php/pecl-apcu" in /etc/portage/package.accept_keywords
2. set PHP_TARGETS="php8-0" in /etc/portage/make.conf
3. emerge dev-php/pecl-apcu
Actual Results:  
apc.php file installed into /usr/share/php7/

Expected Results:  
apc.php file installed into /usr/share/php8/
Comment 1 Brian Evans (RETIRED) gentoo-dev 2021-03-25 16:48:57 UTC
(In reply to EK from comment #0)
> Upgrading to php-8.0, have PHP_TARGETS="php8-0" in make.conf already, php-8
> installed but still using 7.4 for cli (haven't changed by eselect). While
> emerge reported use flag changed:
> [ebuild     U ~] dev-php/pecl-apcu-5.1.20 [5.1.19] PHP_TARGETS="php8-0*
> -php7-4*"
> after installation got message printed:
> 
> >>> Messages generated by process 25620 on 2021-03-25 16:09:13 CET for package dev-php/pecl-apcu-5.1.20:
> 
> LOG: postinst
> The apc.php file shipped with this release of pecl-apcu was
> installed to /usr/share/php7/apcu/.
> 
> indeed, /usr/share/php8 directory is empty, file resides in /usr/share/php7.

The only reason why it was placed where it is corresponds to the SLOT not version.

The previous slot took up the /usr/share/php/apcu and therefore conflicted.