Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 349423 - dev-php5/pecl-apc-3.1.6-r1: compiled with mmap although USE="-mmap"
Summary: dev-php5/pecl-apc-3.1.6-r1: compiled with mmap although USE="-mmap"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-22 22:23 UTC by Daniel
Modified: 2010-12-25 17:26 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge_info.txt,4.58 KB, text/plain)
2010-12-22 22:25 UTC, Daniel
Details
emerge -v pecl-apc > build.log (build.log,57.16 KB, text/plain)
2010-12-22 22:27 UTC, Daniel
Details
real build.log (dev-php5_pecl-apc-3.1.6-r1_20101223-095755.log,55.73 KB, text/plain)
2010-12-23 10:04 UTC, Daniel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel 2010-12-22 22:23:17 UTC
When I compile the latest dev-php5/pecl-apc it gets compiled with mmap as var as I can see. But the strange thing is my USE-flag is -mmap.

What i see while compilation:

checking whether we should use mmap... yes

This leads to the idea that --enable-apc-mmap was passed to configure, but I'm not a gentoo-ebuild-developer so I'm not sure. 
Maybe it's a upstream bug.

I found this bug, beacause my apache returned some errors, although I was sure mmap was turned off:
"PHP Startup: apc.shm_segments setting ignored in MMAP mode in Unknown on line 0"

Reproducible: Always

Steps to Reproduce:
1. Compile pecl-apc with -mmap useflag and look at the configure script.

Actual Results:  
...
checking whether we should use mmap... yes
...

Expected Results:  
...
checking whether we should use mmap... no
...
Comment 1 Daniel 2010-12-22 22:25:17 UTC
Created attachment 257803 [details]
emerge --info
Comment 2 Daniel 2010-12-22 22:27:43 UTC
Created attachment 257805 [details]
emerge -v pecl-apc > build.log
Comment 3 Daniel 2010-12-22 22:37:25 UTC
(In reply to comment #0)
> .. with mmap as var as I can see....

"as far as i can see" of course
Comment 4 Rafał Mużyło 2010-12-23 01:25:10 UTC
The build.log seems incomplete - there should be one in /var/log/portage/.
Comment 5 Daniel 2010-12-23 10:04:08 UTC
Created attachment 257843 [details]
real build.log

(In reply to comment #4)
> The build.log seems incomplete - there should be one in /var/log/portage/.
> 
I finally found the way to generate a real build log.
Comment 6 Rafał Mużyło 2010-12-23 17:24:52 UTC
OK, I think I know what the problem is.
It should be easy to fix...here.
The catch is that it's a mostly silent bug, that may affect many more packages.
php-ext-source-r1.eclass is EAPI=0, php-ext-source-r1.eclass is EAPI=2.
This ebuild was not properly adjusted to this fact.
'my_conf="--enable-apc" enable_extension_enable "apc-mmap" "mmap" 0' belongs to src_configure now.

But, as I said, I wouldn't be surprised, if there were other packages affected by this change.
Comment 7 Ole Markus With (RETIRED) gentoo-dev 2010-12-24 23:25:21 UTC
Good catch! Fix should be available in CVS.
Comment 8 Daniel 2010-12-25 17:26:20 UTC
I think the same applies to pecl-memcache-3.0.5-r1...although i do not have problems with it.