Summary: | dev-java/oracle-jre-bin-1.8.0.40 - preserved libs loops | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Thomas Deutschmann (RETIRED) <whissi> |
Component: | Current packages | Assignee: | Java team <java> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dev-portage, hyedad, russell |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=460468 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Console output / build log |
Description
Thomas Deutschmann (RETIRED)
2015-03-17 22:17:55 UTC
I was going to try this out but then fell into a very similar hole by mistake. I had both icedtea and icedtea-bin installed. I removed icedtea and was left with this.
!!! existing preserved libs:
>>> package: dev-java/icedtea-7.2.5.4
* - /usr/lib64/icedtea7/jre/lib/amd64/libjava.so
* used by /opt/icedtea-bin-7.2.5.3/jre/lib/amd64/headless/libmawt.so (dev-java/icedtea-bin-7.2.5.3)
* used by /opt/icedtea-bin-7.2.5.3/jre/lib/amd64/xawt/libmawt.so (dev-java/icedtea-bin-7.2.5.3)
* - /usr/lib64/icedtea7/jre/lib/amd64/libawt.so
* used by /opt/icedtea-bin-7.2.5.3/jre/lib/amd64/headless/libmawt.so (dev-java/icedtea-bin-7.2.5.3)
* used by /opt/icedtea-bin-7.2.5.3/jre/lib/amd64/xawt/libmawt.so (dev-java/icedtea-bin-7.2.5.3)
* - /usr/lib64/icedtea7/jre/lib/amd64/libverify.so
It's even more stupid in this case because all three of those files are also provided by icedtea-bin anyway! I'm thinking that the preserved lib checks need to exclude directories given in QA_PREBUILT. I'll try to look into this more soon.
Another way around this that already works would be to add RESTRICT="preserve-libs". It's a bit more heavy-handed than my earlier suggestion but is still appropriate for Oracle and icedtea-bin. Unfortunately the Oracle ebuilds have already just been bumped and marked stable. I'll think about whether I could add this line anyway. icedtea-bin is due a bump so I'll definitely add it there ASAP. (In reply to James Le Cuirot from comment #1) > !!! existing preserved libs: > >>> package: dev-java/icedtea-7.2.5.4 > * - /usr/lib64/icedtea7/jre/lib/amd64/libjava.so > * used by /opt/icedtea-bin-7.2.5.3/jre/lib/amd64/headless/libmawt.so > (dev-java/icedtea-bin-7.2.5.3) > * used by /opt/icedtea-bin-7.2.5.3/jre/lib/amd64/xawt/libmawt.so > (dev-java/icedtea-bin-7.2.5.3) > * - /usr/lib64/icedtea7/jre/lib/amd64/libawt.so > * used by /opt/icedtea-bin-7.2.5.3/jre/lib/amd64/headless/libmawt.so > (dev-java/icedtea-bin-7.2.5.3) > * used by /opt/icedtea-bin-7.2.5.3/jre/lib/amd64/xawt/libmawt.so > (dev-java/icedtea-bin-7.2.5.3) > * - /usr/lib64/icedtea7/jre/lib/amd64/libverify.so Using patchelf --set-rpath could allow these links to resolve properly without triggering preserve-libs. This is fixed in 1.8.0.51. I was going to backport the fix to 1.7 but we need to drop this as it's vulnerable. Note that the X flag has changed to awt to better reflect what it actually does. Also note the new javafx flag. |