Gentoo Archives: gentoo-user

From: Rich Freeman <rich0@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] oracle-jdk-bin 1.8.0.20 ebuild
Date: Sat, 06 Sep 2014 10:29:46
Message-Id: CAGfcS_nMQAjJutMf913R+=jDhMfejdxsUzS-SBv44eUNUSeP6Q@mail.gmail.com
In Reply to: Re: [gentoo-user] oracle-jdk-bin 1.8.0.20 ebuild by Saifi Khan
1 On Sat, Sep 6, 2014 at 12:50 AM, Saifi Khan <saifikhan@×××××××××××.org> wrote:
2 >
3
4 It looks like sping already bumped 1.8.0.20 in the tree, by simply
5 renaming the existing 1.8.0.11 ebuild. I'll explain a bit more since
6 you're interested and are simply not doing it right...
7
8 > Here are things i explored:
9 >
10 > 1. simply renaming did not work
11 > (it should not since the md5 hashes would not match)
12
13 The hashes are not stored in the ebuild, so simply copying the
14 existing ebuild is fine. You just need to regenerate the hashes.
15 Repoman manifest or ebuild oracle-jdk-bin-1.8.0.20.ebuild manifest
16 would be the easiest ways to do that.
17
18 >
19 > 3. next i attempted creating a separate file in
20 > /usr/portage/metadata/md5-cache/dev-java for oracle-jdk-bin-1.8.0.20 file
21 >
22 > with 'repoman manifest' it did not work
23
24 Don't mess with the metadata cache. It is not necessary. All you
25 need to do is update the Manifest file in the package directory. When
26 portage finds a bad/missing hash it always checks it before bailing
27 out, and portage can generally detect an outdated cache anyway.
28
29 >
30 > however emerge started complaining about missing jdk's for i586, solaris
31 > etc.
32 >
33 > Meanwhile i took a close look at the /usr/portage/eclass directory
34 > and also tried to locate where 'inherit' is defined.
35 >
36 > 'inherit' is a function defined in /usr/lib/portage/bin/ebuild.sh file with
37 > its bucket full of 'bash'isms.
38
39 Before reverse-engineering PMS, you might just start with:
40 http://devmanual.gentoo.org/ebuild-writing/using-eclasses/index.html
41
42 Or, if you're really brave:
43 http://dev.gentoo.org/~ulm/pms/head/pms.html
44
45 Tweaking ebuilds isn't hard - you just need to go about it the right
46 way and make the tools work for you. Actually, one thing I didn't see
47 in the docs is more user-centric ebuild 101 stuff like "how do I bump
48 an ebuild myself?" All the info is there, but not at that level.
49
50 --
51 Rich