Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 118485 - Java upgrades break java-enabled php installations
Summary: Java upgrades break java-enabled php installations
Status: RESOLVED DUPLICATE of bug 118531
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Other
: High normal
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-09 20:41 UTC by Jonathan Sailor
Modified: 2006-01-10 21:20 UTC (History)
1 user (show)

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 Jonathan Sailor 2006-01-09 20:41:57 UTC
If Java is upgraded and the old Java version is unmerged, php is unable to load the java extension and fails to start. I think this is because the path to the old Java version's libjava.so is hard-coded into /etc/php/*/php.ini; for me, re-emerging php updated the path in the configuration file (after an etc-update, of course), at which point php worked. It's worth noting that revdep-rebuild didn't rebuild PHP.

I'm not sure if PHP can be changed to not use absolute paths. It's probably impractical to expect Java to update paths in php.ini. If php is fixed to the library it compiles against, would is be possible to link some executable against libjava.so so revdep-rebuild would rebuild PHP?

(This seems like something obvious, so my apologies if it turns out that I missed an einfo message or something else obvious.)
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-01-10 06:45:40 UTC
revdep-rebuild is broken...

*** This bug has been marked as a duplicate of 118531 ***
Comment 2 Jonathan Sailor 2006-01-10 08:44:48 UTC
My bug was about the fact that Java breaks and mentioned that revdep-rebuild doesn't fix it; bug 118531 was about the fact that revdep-rebuild doesn't fix it and why.

These two bugs are about the same problem, but, even if 118531 is fixed, it's still wrong to assume users will know to run revdep-rebuild after a Java update. They'll need to find something broken, start searching for bugs, maybe find this one, ...

I'm reopening this bug because, once revdep-rebuild is fixed, einfo messages should still be added to the Java ebuild to tell people that they need to run it.

(Also, technically, wouldn't 118531 be a dup of mine, not the other way around?)
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-01-10 21:20:19 UTC
Tracking identical issue in two different places is a bad idea, duping again.

*** This bug has been marked as a duplicate of 118531 ***