Gentoo Archives: gentoo-user

From: Saifi Khan <saifikhan@×××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] oracle-jdk-bin 1.8.0.20 ebuild
Date: Sat, 06 Sep 2014 04:49:21
Message-Id: alpine.LNX.2.00.1409061002230.2339@localhost
In Reply to: Re: [gentoo-user] oracle-jdk-bin 1.8.0.20 ebuild by "J. Roeleveld"
1 On Wed, 3 Sep 2014, J. Roeleveld wrote:
2
3 > On 3 September 2014 06:07:46 CEST, Saifi Khan <saifikhan@×××××××××××.org> wrote:
4 >> Hi:
5 >>
6 >> portage has ebuild for oracle-jdk-bin-1.8.0.11 whereas oracle
7 >> website has update 20 ie. oracle-jdk-bin-1.8.0.20
8 >>
9 >> i am interested in tweaking the ebuild in order to install 1.8.0.20
10 >>
11 >> Can somebody explain
12 >>
13 >> . how 'inherits eutils java-vm-2 prefix versionator' line works.
14 >> what exactly does 'inherits' clause/function do ?
15 >>
16 >> . where is the function 'get_version_component_range' defined ?
17 >>
18 >> Additionally, how do i get 'emerge' to ignore/suppress the 'missing
19 >> digest' for a given ebuild ?
20 >>
21 >> Thanks in advance.
22 >>
23 >>
24 >> thanks
25 >> Saifi.
26 >
27 > Did you try simply renaming the ebuild?
28 > That normally works.
29 >
30
31 Thanks for your reply.
32
33 Here are things i explored:
34
35 1. simply renaming did not work
36 (it should not since the md5 hashes would not match)
37
38 2. making a separate copy with ebuild did not work out as 'emerge'
39 kept complaining about the missing digest.
40
41 3. next i attempted creating a separate file in
42 /usr/portage/metadata/md5-cache/dev-java for
43 oracle-jdk-bin-1.8.0.20 file
44
45 with 'repoman manifest' it did not work
46
47 however emerge started complaining about missing jdk's for i586,
48 solaris etc.
49
50 Meanwhile i took a close look at the /usr/portage/eclass directory
51 and also tried to locate where 'inherit' is defined.
52
53 'inherit' is a function defined in /usr/lib/portage/bin/ebuild.sh
54 file with its bucket full of 'bash'isms.
55
56 Oh well !
57
58 As a simple solution i did the following:
59
60 . create directory /home/saifi/jdk180u20
61 . extract the jdk and place the jce file
62 . create a script file to setup the
63 PATH, LD_LIBRARY_PATH and CLASSPATH
64
65 This works absolutely fine since i can work with multiple versions
66 of JDK including JDK9 (dev) without worrying about 'pythonic
67 scriptilicious' emerge, ebuild, equery, eix, euse, epkg, eclean ..!
68
69 Thanks to everybody who helped me out.
70
71
72 thanks
73 Saifi.

Replies

Subject Author
Re: [gentoo-user] oracle-jdk-bin 1.8.0.20 ebuild Rich Freeman <rich0@g.o>