Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 492996 - dev-java/oracle-jdk-bin: add support for OSX 64bit
Summary: dev-java/oracle-jdk-bin: add support for OSX 64bit
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-01 03:52 UTC by yegle
Modified: 2013-12-25 13:37 UTC (History)
1 user (show)

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


Attachments
adapted ebuild (oracle-jdk-bin-1.7.0.45.ebuild,8.85 KB, text/plain)
2013-12-01 21:32 UTC, Fabian Groffen
Details
adapted ebuild v2 (oracle-jdk-bin-1.7.0.45.ebuild,10.12 KB, text/plain)
2013-12-17 18:28 UTC, Fabian Groffen
Details
1.7.0.45 ebuild patch (oracle-jdk-bin.patch,5.65 KB, patch)
2013-12-22 14:43 UTC, Fabian Groffen
Details | Diff
oracle-jdk-bin-1.7.0.45.ebuild patch (oracle-jdk-bin.patch,6.00 KB, patch)
2013-12-22 14:52 UTC, Fabian Groffen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description yegle 2013-12-01 03:52:50 UTC
Oracle releases JDK/JRE for OSX 64bit now and it'll be good to be able to install it via gentoo-prefix.

http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

Reproducible: Always
Comment 1 Fabian Groffen gentoo-dev 2013-12-01 19:54:02 UTC
I'd love to, but it's a dmg with an installer, which I don't know how to extract the files from.
Comment 2 yegle 2013-12-01 20:22:25 UTC
Mounting DMG file
hdiutil attach jdk-7u45-macosx-x64.dmg -mountpoint /path/to/be/mounted

Extracting content from .pkg file, unfortunately I can't find a way to extract single file from xar archive.
xar -C /path/of/extracted/files -x -f /path/to/pkg/file

Extract the actual JDK files
zcat jdk17045.pkg/Payload |cpio -idv

Hope this helps.
Comment 3 Fabian Groffen gentoo-dev 2013-12-01 20:54:21 UTC
Hmmm, thanks, interesting.  It seems to work on my 10.6/Snow Leopard machine as well even though the installer claims it needs 10.7.3.
Comment 4 Fabian Groffen gentoo-dev 2013-12-01 21:32:29 UTC
Created attachment 364386 [details]
adapted ebuild

This needs some love for install_names, but I can't work on it further right now, so I'll give you what apears to be promising.
Comment 5 Fabian Groffen gentoo-dev 2013-12-17 18:28:06 UTC
Created attachment 365542 [details]
adapted ebuild v2

I resolved a bunch of problems, seems we cannot get much further
Comment 6 Fabian Groffen gentoo-dev 2013-12-22 14:43:10 UTC
Created attachment 365884 [details, diff]
1.7.0.45 ebuild patch

This needs portage-2.2.7-r2 on Prefix.
Comment 7 Fabian Groffen gentoo-dev 2013-12-22 14:52:08 UTC
Created attachment 365886 [details, diff]
oracle-jdk-bin-1.7.0.45.ebuild patch

updated deps in patch
Comment 8 Fabian Groffen gentoo-dev 2013-12-22 14:53:25 UTC
@java: I'd like to have your opinion on this ebuild change, would you be open to add support for OSX this way, or would you prefer a separate ebuild somehow?
Comment 9 Ralph Sennhauser (RETIRED) gentoo-dev 2013-12-22 15:44:08 UTC
(In reply to Fabian Groffen from comment #8)
> @java: I'd like to have your opinion on this ebuild change, would you be
> open to add support for OSX this way, or would you prefer a separate ebuild
> somehow?

Maybe it's time to split out "domenu ..." and "fix misc rpath issues" into its own functions and call it in src_install as appropriate. It's getting crowed.
Tho no objections from me.
Comment 10 Fabian Groffen gentoo-dev 2013-12-25 13:37:15 UTC
I've committed as is, cleaning up, is fine with me, not sure what the win is, so I'll leave it up to you.