Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] dev-php/pecl-apcu and PHP_TARGETS
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
hujuice
Apprentice
Apprentice


Joined: 16 Oct 2007
Posts: 198
Location: Rome, Italy

PostPosted: Sat Aug 17, 2013 1:49 pm    Post subject: [SOLVED] dev-php/pecl-apcu and PHP_TARGETS Reply with quote

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? 8O
Where am I wrong?

Regards,
HUjuice
_________________
Who haven'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
View user's profile Send private message
hujuice
Apprentice
Apprentice


Joined: 16 Oct 2007
Posts: 198
Location: Rome, Italy

PostPosted: Sun Aug 18, 2013 1:54 pm    Post subject: Reply with quote

Bug filed: https://bugs.gentoo.org/show_bug.cgi?id=481532
_________________
Who haven't a spine, should have a method.
Chi non ha carattere, deve pur avere un metodo.
Back to top
View user's profile Send private message
hdcg
n00b
n00b


Joined: 07 Apr 2013
Posts: 26

PostPosted: Sun Aug 18, 2013 2:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
hujuice
Apprentice
Apprentice


Joined: 16 Oct 2007
Posts: 198
Location: Rome, Italy

PostPosted: Mon Aug 19, 2013 11:01 am    Post subject: Reply with quote

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 haven'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
View user's profile Send private message
hujuice
Apprentice
Apprentice


Joined: 16 Oct 2007
Posts: 198
Location: Rome, Italy

PostPosted: Mon Aug 19, 2013 11:05 am    Post subject: Reply with quote

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 haven't a spine, should have a method.
Chi non ha carattere, deve pur avere un metodo.
Back to top
View user's profile Send private message
hagar-dunor
n00b
n00b


Joined: 26 Apr 2012
Posts: 18

PostPosted: Wed Aug 21, 2013 4:43 pm    Post subject: Reply with quote

other dev-php/* ebuild fail for the same reason see https://forums.gentoo.org/viewtopic-t-967618.html
Back to top
View user's profile Send private message
hujuice
Apprentice
Apprentice


Joined: 16 Oct 2007
Posts: 198
Location: Rome, Italy

PostPosted: Thu Aug 22, 2013 5:28 pm    Post subject: Reply with quote

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 haven't a spine, should have a method.
Chi non ha carattere, deve pur avere un metodo.
Back to top
View user's profile Send private message
TravisZ
n00b
n00b


Joined: 05 Aug 2013
Posts: 2

PostPosted: Tue Sep 17, 2013 11:40 am    Post subject: Reply with quote

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
View user's profile Send private message
guid0
Apprentice
Apprentice


Joined: 06 Jul 2003
Posts: 271
Location: The Netherlands / Nederland

PostPosted: Mon Mar 24, 2014 8:57 am    Post subject: Reply with quote

tnx. worked for me :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum