Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 341817 - pnp4nagios 0.6.5-r1 requires php to be compiled non existing use flag
Summary: pnp4nagios 0.6.5-r1 requires php to be compiled non existing use flag
Status: VERIFIED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Tobias Scherbaum (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-19 22:03 UTC by David Dewbre
Modified: 2010-10-31 15:15 UTC (History)
1 user (show)

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


Attachments
emerge --info output (info.txt,3.79 KB, text/plain)
2010-10-19 22:05 UTC, David Dewbre
Details
pnp4nagios emerge output (pnp.txt,3.08 KB, text/plain)
2010-10-19 22:06 UTC, David Dewbre
Details
php emerge -pv output showing use flags (php.txt,1.03 KB, text/plain)
2010-10-19 22:06 UTC, David Dewbre
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Dewbre 2010-10-19 22:03:13 UTC
pnp4nagios fails to emerge citing a requirement for php to be emerged with pcre use flag enabled. PHP verison 5.3.3.-r1 does not have a pcre use flag

Reproducible: Always

Steps to Reproduce:
1. emerge pnp4nagios


Actual Results:  
Fails

Expected Results:  
pnp4nagios to install
Comment 1 David Dewbre 2010-10-19 22:05:52 UTC
Created attachment 251293 [details]
emerge --info output
Comment 2 David Dewbre 2010-10-19 22:06:15 UTC
Created attachment 251295 [details]
pnp4nagios emerge output
Comment 3 David Dewbre 2010-10-19 22:06:45 UTC
Created attachment 251297 [details]
php emerge -pv output showing use flags
Comment 4 David Dewbre 2010-10-20 16:34:34 UTC
ldd /usr/bin/php | grep pcre shows php is using libpcre.so.0 ... a check of php shows the pcre use flag has not been present since version 5.2.14.

Removing pcre from the required use flag on line 29 allowed the package to build; however, when run multiple php errors occur related depreciated and bad functions.

Unmasking pnp4nagios versions 0.6.4 or 0.6.5 will force a php version downgrade to version 5.2.14 at emerge.  

I don't know why pnp4nagios version 0.6.5-r1 was pulled in as part of an emerge --update without unmasking it.  
Comment 5 Tobias Scherbaum (RETIRED) gentoo-dev 2010-10-22 17:27:15 UTC
I fail to reproduce this with 0.6.7, please test and report back.
Comment 6 David Dewbre 2010-10-24 22:36:26 UTC
Fresh install of pnp4nagios version 0.6.7 installs without complaint; however, attempting to access the pnp web interface results in a 404 looking for "graph" in the root of /usr/share/pnp.

This appears to be due to the default config assuming url rewriting is configured for apache.  Perhaps a post-install message can be added warning of this?

Please note that this test was run on gentoo x86_64 and I will test again on the x86 system this bug was filed on when I get to work on Monday.
Comment 7 Tobias Scherbaum (RETIRED) gentoo-dev 2010-10-25 07:47:36 UTC
(In reply to comment #6)
> This appears to be due to the default config assuming url rewriting is
> configured for apache.  Perhaps a post-install message can be added warning of
> this?

Sounds like a plan.

> Please note that this test was run on gentoo x86_64 and I will test again on
> the x86 system this bug was filed on when I get to work on Monday.
> 

Okies :)
Comment 8 David Dewbre 2010-10-25 15:40:04 UTC
Tested on x86 ... installed and working.  XML files under /var/nagios/perfdata also had to be removed as per the upgrade guide.

Marking this bug as closed.
Comment 9 Tobias Scherbaum (RETIRED) gentoo-dev 2010-10-31 15:15:12 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > This appears to be due to the default config assuming url rewriting is
> > configured for apache.  Perhaps a post-install message can be added warning of
> > this?
> 
> Sounds like a plan.

Fixed in CVS.