View previous topic :: View next topic |
Author |
Message |
hujuice Guru
Joined: 16 Oct 2007 Posts: 336 Location: Rome, Italy
|
Posted: Sat Aug 17, 2013 1:49 pm Post subject: [SOLVED] dev-php/pecl-apcu and PHP_TARGETS |
|
|
Hello everybody,
I'm trying to emerge dev-php/pecl-apcu, but I'm blocked with a weird problem, relating to portage.
I set PHP_TARGETS in make,conf, so:
emerge --info dev-php/pecl-apcu | grep ^PHP_TARGETS: | PHP_TARGETS="php5-5" |
but when I try to emerge I fall in this message:
emerge dev-php/pecl-apcu: | These are the packages that would be merged, in order:
Calculating dependencies a
!!! Problem resolving dependencies for dev-php/pecl-apcu
... done!
!!! The ebuild selected to satisfy "dev-php/pecl-apcu" has unmet requirements.
- dev-php/pecl-apcu-4.0.1-r1::gentoo USE="lock_pthreadrw mmap -lock_pthreadmutex -lock_semaphore -lock_spinlock" PHP_TARGETS="-php5-3 -php5-4 -php5-5"
The following REQUIRED_USE flag constraints are unsatisfied:
any-of ( php_targets_php5-5 php_targets_php5-3 php_targets_php5-4 )
The above constraints are a subset of the following complete expression:
exactly-one-of ( lock_pthreadmutex lock_pthreadrw lock_spinlock lock_semaphore ) any-of ( php_targets_php5-5 php_targets_php5-3 php_targets_php5-4 ) |
The unsatisfied REQUIRED_USE that emerge talk about is exactly what I have, for my knowledge.
Do I lack some portage basics?
Am I stupid?
Where am I wrong?
Regards,
HUjuice _________________ Who hasn't a spine, should have a method.
Chi non ha carattere, deve pur avere un metodo.
Last edited by hujuice on Wed Aug 28, 2013 10:20 pm; edited 1 time in total |
|
Back to top |
|
|
hujuice Guru
Joined: 16 Oct 2007 Posts: 336 Location: Rome, Italy
|
|
Back to top |
|
|
hdcg Tux's lil' helper
Joined: 07 Apr 2013 Posts: 120
|
Posted: Sun Aug 18, 2013 2:20 pm Post subject: |
|
|
Hi,
beginning with PHP 5.5, Zend Optimizer+ is integral part of PHP (https://wiki.php.net/rfc/optimizerplus). Hence PHP 5.5 compability of APC might not be given and the restriction of the ebuild might be by intention.
Best Regards,
Holger |
|
Back to top |
|
|
hujuice Guru
Joined: 16 Oct 2007 Posts: 336 Location: Rome, Italy
|
Posted: Mon Aug 19, 2013 11:01 am Post subject: |
|
|
hdcg wrote: | beginning with PHP 5.5, Zend Optimizer+ is integral part of PHP (https://wiki.php.net/rfc/optimizerplus). Hence PHP 5.5 compability of APC might not be given and the restriction of the ebuild might be by intention. |
That's why the dev-php/pecl-apcu package exists.
APCu != APC
APCu provides the same user level functions for existing applications.
http://pecl.php.net/package/APCu
https://github.com/krakjoe/apcu
Regards,
HUjuice _________________ Who hasn't a spine, should have a method.
Chi non ha carattere, deve pur avere un metodo.
Last edited by hujuice on Mon Aug 19, 2013 11:06 am; edited 1 time in total |
|
Back to top |
|
|
hujuice Guru
Joined: 16 Oct 2007 Posts: 336 Location: Rome, Italy
|
Posted: Mon Aug 19, 2013 11:05 am Post subject: |
|
|
More, as I wrote in the bug, the dev-php/pecl-apcu-4.0.1 version (not rc1) is perfectly working, both in the portage perspective and in the application purpose.
The rc1 version, I believe with my poor knowledge of the ebuild syntax, is for a different management of the mmap USE key, that I managed manually.
Regards,
HUjuice _________________ Who hasn't a spine, should have a method.
Chi non ha carattere, deve pur avere un metodo. |
|
Back to top |
|
|
hagar-dunor n00b
Joined: 26 Apr 2012 Posts: 39
|
|
Back to top |
|
|
hujuice Guru
Joined: 16 Oct 2007 Posts: 336 Location: Rome, Italy
|
Posted: Thu Aug 22, 2013 5:28 pm Post subject: |
|
|
It is, at glance, a little jam in messages.
dev-pecl/apcu is marked as testing (~) if php_targets_php5-5.
So, even if the messages are not explicit, you need to add
/etc/portage/package.accept_keyword: | =dev-php/pecl-apcu-4.0.1-r1 |
This trick resolved for me.
Regards,
HUjuice _________________ Who hasn't a spine, should have a method.
Chi non ha carattere, deve pur avere un metodo. |
|
Back to top |
|
|
TravisZ n00b
Joined: 05 Aug 2013 Posts: 2
|
Posted: Tue Sep 17, 2013 11:40 am Post subject: |
|
|
Thanks for the tip hujuice. I was having the same issue with memcached and putting "=dev-php/pecl-memcache-3.0.8 ~amd64" in /etc/portage/package.keywords allowed me to install it correctly. |
|
Back to top |
|
|
guid0 Guru
Joined: 06 Jul 2003 Posts: 371 Location: The Netherlands / Nederland
|
Posted: Mon Mar 24, 2014 8:57 am Post subject: |
|
|
tnx. worked for me |
|
Back to top |
|
|
Syl20 l33t
Joined: 04 Aug 2005 Posts: 619 Location: France
|
Posted: Tue Feb 21, 2017 8:20 pm Post subject: |
|
|
Old thread, but same problem with newly stabilized PHP 7.0.
I solved it by keywording dev-php/pecl-apcu-5.1.8.
Bug filled. |
|
Back to top |
|
|
|