Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 460468 - dev-java/oracle-jdk-bin - preserved libs loops
Summary: dev-java/oracle-jdk-bin - preserved libs loops
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal with 2 votes (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
: 549896 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-03-06 00:16 UTC by Martin von Gagern
Modified: 2015-07-30 10:17 UTC (History)
20 users (show)

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


Attachments
/var/db/pkg/dev-java/oracle-jdk-bin-1.8.0.25/NEEDED.ELF.2 (NEEDED.ELF.2,18.85 KB, text/plain)
2014-11-08 02:53 UTC, Zac Medico
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2013-03-06 00:16:35 UTC
!!! existing preserved libs:
>>> package: media-video/ffmpeg-1.0.5
 *  - /usr/lib64/libavformat.so.53
 *  - /usr/lib64/libavformat.so.53.32.100
 *      used by /opt/oracle-jdk-bin-1.7.0.15/jre/lib/amd64/fxavcodecplugin-53.so (dev-java/oracle-jdk-bin-1.7.0.15)
 *  - /usr/lib64/libavcodec.so.53
 *  - /usr/lib64/libavcodec.so.53.61.100
 *      used by /opt/oracle-jdk-bin-1.7.0.15/jre/lib/amd64/fxavcodecplugin-53.so (dev-java/oracle-jdk-bin-1.7.0.15)

Remerging the package does not fix this, which is not surprising for a binary package.
Comment 1 Mike Gilbert gentoo-dev 2013-03-06 00:31:47 UTC
That's not surprising at all, actually.
Comment 2 Michael Perlov 2013-04-05 15:42:32 UTC
(In reply to comment #0)

> Remerging the package does not fix this, which is not surprising for a
> binary package.

Try emerge -C oracle-jdk-bin && emerge oracle-jdk-bin
Comment 3 Ole Langbehn 2013-04-15 20:32:02 UTC
(In reply to comment #2)
> Try emerge -C oracle-jdk-bin && emerge oracle-jdk-bin

That will work (remove the preserved lib), but will install the binary package libraries with missing deps. Since fxavcodecplugin-53.so is for javafx only, this will at least give us a working base JDK.
Comment 4 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2013-07-31 03:07:55 UTC
Annoyingly, this bug suggests that anyone who installs oracle-jdk-bin on a clean install will be installing a broken oracle-jdk-bin ( because the .so's it depends on wont be present at installtime )
Comment 5 Robert Golding 2014-04-07 11:40:16 UTC
!!! existing preserved libs:
>>> package: media-video/libav-0.8.7
 *  - /usr/lib64/libavformat.so.53
 *  - /usr/lib64/libavformat.so.53.21.1
 *      used by /opt/oracle-jdk-bin-1.7.0.51/jre/lib/amd64/fxavcodecplugin-53.so (dev-java/oracle-jdk-bin-1.7.0.51-r1)
 *  - /usr/lib64/libavcodec.so.53
 *  - /usr/lib64/libavcodec.so.53.35.0
 *      used by /opt/oracle-jdk-bin-1.7.0.51/jre/lib/amd64/fxavcodecplugin-53.so (dev-java/oracle-jdk-bin-1.7.0.51-r1)

Fixed it by unmerging and remerging oracle java, but note that I do not have libav installed on this system, I'm using ffmpeg.

I was using libav until about a week ago, when a block (N ffmpeg blocked by libav) required me to replace it with ffmpeg to fix it.
Comment 6 Zac Medico gentoo-dev 2014-11-08 02:53:42 UTC
Created attachment 388812 [details]
/var/db/pkg/dev-java/oracle-jdk-bin-1.8.0.25/NEEDED.ELF.2

Here is the relevant line:

X86_64;/opt/oracle-jdk-bin-1.8.0.25/jre/lib/amd64/libavplugin.so;;;libgstreamer-lite.so,libgobject-2.0.so.0,libgthread-2.0.so.0,librt.so.1,libglib-2.0.so.0,libavcodec.so.53,libavformat.so.53,libpthread.so.0,libc.so.6
Comment 7 N. Andrew Walsh 2015-02-23 12:57:05 UTC
I should note: this is also the case with oracle-jdk-bin-1.8.0.31 (preserves all the same libraries from ffmpeg-0.10.12). remerging or running @preserved-rebuild does not fix the issue.
Comment 8 Andrei Voropaev 2015-03-31 14:41:02 UTC
One should also note, that this package depends on libgstreamer-lite.so which is not listed in dependencies, so the gstreamer is not pulled in when oracle-jdk-bin is installed. As result, some features are broken anyway.
Comment 9 Small_Penguin 2015-04-07 12:48:53 UTC
Same for oracle-jdk-bin-1.8.0.40.
Comment 10 Ben Sagal 2015-04-12 09:05:06 UTC
!!! existing preserved libs:
>>> package: media-video/ffmpeg-2.2.14
 *  - /usr/lib64/libavformat.so.54
 *  - /usr/lib64/libavformat.so.54.63.104
 *      used by /opt/oracle-jdk-bin-1.8.0.40/jre/lib/amd64/libavplugin-54.so (dev-java/oracle-jdk-bin-1.8.0.40-r1)
 *  - /usr/lib64/libavcodec.so.54
 *  - /usr/lib64/libavcodec.so.54.92.100
 *      used by /opt/oracle-jdk-bin-1.8.0.40/jre/lib/amd64/libavplugin-54.so (dev-java/oracle-jdk-bin-1.8.0.40-r1)
Comment 11 ChaosEngine 2015-04-19 19:38:37 UTC
(In reply to Ben Sagal from comment #10)
> !!! existing preserved libs:
> >>> package: media-video/ffmpeg-2.2.14
>  *  - /usr/lib64/libavformat.so.54
>  *  - /usr/lib64/libavformat.so.54.63.104
>  *      used by /opt/oracle-jdk-bin-1.8.0.40/jre/lib/amd64/libavplugin-54.so
> (dev-java/oracle-jdk-bin-1.8.0.40-r1)
>  *  - /usr/lib64/libavcodec.so.54
>  *  - /usr/lib64/libavcodec.so.54.92.100
>  *      used by /opt/oracle-jdk-bin-1.8.0.40/jre/lib/amd64/libavplugin-54.so
> (dev-java/oracle-jdk-bin-1.8.0.40-r1)

and racle-jdk-bin-1.8.0.45

!!! existing preserved libs:
>>> package: media-video/ffmpeg-2.2.14
 *  - /usr/lib64/libavcodec.so.54
 *  - /usr/lib64/libavcodec.so.54.92.100
 *      used by /opt/oracle-jdk-bin-1.8.0.45/jre/lib/amd64/libavplugin-54.so (dev-java/oracle-jdk-bin-1.8.0.45)
 *  - /usr/lib64/libavformat.so.54
 *  - /usr/lib64/libavformat.so.54.63.104
 *      used by /opt/oracle-jdk-bin-1.8.0.45/jre/lib/amd64/libavplugin-54.so (dev-java/oracle-jdk-bin-1.8.0.45)
Comment 12 ChaosEngine 2015-04-21 07:39:56 UTC
(In reply to ChaosEngine from comment #11)
> (In reply to Ben Sagal from comment #10)
> > !!! existing preserved libs:
> > >>> package: media-video/ffmpeg-2.2.14
> >  *  - /usr/lib64/libavformat.so.54
> >  *  - /usr/lib64/libavformat.so.54.63.104
> >  *      used by /opt/oracle-jdk-bin-1.8.0.40/jre/lib/amd64/libavplugin-54.so
> > (dev-java/oracle-jdk-bin-1.8.0.40-r1)
> >  *  - /usr/lib64/libavcodec.so.54
> >  *  - /usr/lib64/libavcodec.so.54.92.100
> >  *      used by /opt/oracle-jdk-bin-1.8.0.40/jre/lib/amd64/libavplugin-54.so
> > (dev-java/oracle-jdk-bin-1.8.0.40-r1)
> 
> and racle-jdk-bin-1.8.0.45
> 
> !!! existing preserved libs:
> >>> package: media-video/ffmpeg-2.2.14
>  *  - /usr/lib64/libavcodec.so.54
>  *  - /usr/lib64/libavcodec.so.54.92.100
>  *      used by /opt/oracle-jdk-bin-1.8.0.45/jre/lib/amd64/libavplugin-54.so
> (dev-java/oracle-jdk-bin-1.8.0.45)
>  *  - /usr/lib64/libavformat.so.54
>  *  - /usr/lib64/libavformat.so.54.63.104
>  *      used by /opt/oracle-jdk-bin-1.8.0.45/jre/lib/amd64/libavplugin-54.so
> (dev-java/oracle-jdk-bin-1.8.0.45)


For me it helped to:

# emerge -C oracle-jdk-bin ffmpeg && emerge oracle-jdk-bin ffmpeg
Comment 13 Valentin Avram 2015-05-18 12:45:31 UTC
Issue still there with oracle-jdk-bin-1.8.0.45/oracle-jre-bin-1.8.0.45.

/usr/lib64/libavformat.so.54
/usr/lib64/libavformat.so.54.20.4
/usr/lib64/libavcodec.so.54
/usr/lib64/libavcodec.so.54.35.0

still needed by

/opt/oracle-jre-bin-1.8.0.45/lib/amd64/libavplugin-54.so
/opt/oracle-jdk-bin-1.8.0.45/jre/lib/amd64/libavplugin-54.so

As reported before, but this time from /var/db/pkg/dev-java/oracle-jdk-bin-1.8.0.45/NEEDED.ELF.2

X86_64;/opt/oracle-jdk-bin-1.8.0.45/jre/lib/amd64/libavplugin-54.so;;;libgstreamer-lite.so,libgobject-2.0.so.0,libgthread-2.0.so.0,librt.so.1,libglib-2.0.so.0,libavcodec.so.54,libavformat.so.54,libpthread.so.0,libc.so.6;x86_64
X86_64;/opt/oracle-jdk-bin-1.8.0.45/jre/lib/amd64/libavplugin-53.so;;;libgstreamer-lite.so,libgobject-2.0.so.0,libgthread-2.0.so.0,librt.so.1,libglib-2.0.so.0,libavcodec.so.53,libavformat.so.53,libpthread.so.0,libc.so.6;x86_64

X86_64;/opt/oracle-jre-bin-1.8.0.45/lib/amd64/libavplugin-54.so;;;libgstreamer-lite.so,libgobject-2.0.so.0,libgthread-2.0.so.0,librt.so.1,libglib-2.0.so.0,libavcodec.so.54,libavformat.so.54,libpthread.so.0,libc.so.6;x86_64
X86_64;/opt/oracle-jre-bin-1.8.0.45/lib/amd64/libavplugin-53.so;;;libgstreamer-lite.so,libgobject-2.0.so.0,libgthread-2.0.so.0,librt.so.1,libglib-2.0.so.0,libavcodec.so.53,libavformat.so.53,libpthread.so.0,libc.so.6;x86_64

ffmpeg at this moment comes with libavcodec.so.55 and libavformat.so.55.
libav at this moment comes with libavcodec.so.56 and libavformat.so.56.
Comment 14 James Le Cuirot gentoo-dev 2015-05-18 12:56:56 UTC
Please stop +1'ing here, I know the issue is still there because I haven't had time to fix it yet.
Comment 15 James Le Cuirot gentoo-dev 2015-05-19 12:18:08 UTC
*** Bug 549896 has been marked as a duplicate of this bug. ***
Comment 16 James Le Cuirot gentoo-dev 2015-07-30 10:17:20 UTC
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.