1 |
Well, it looks like the cat is out of the bag :-X |
2 |
|
3 |
We hadn't announced migration-overlay because we are actively (and |
4 |
zealously) working on, in order to integrate it into the main portage |
5 |
tree soon (time period intentionally left vague). |
6 |
|
7 |
As Wiktor said, the information about using this overlay and the |
8 |
migration in general is at https://projects.gentooexperimental.org/expj/wiki |
9 |
|
10 |
It is also worth noting that axxo-overlay is no longer being maintained. |
11 |
This is because it takes time and energy to keep in sync with the main |
12 |
tree, which would better be put towards getting migration-overlay into |
13 |
the main tree. |
14 |
|
15 |
For those who do end up using the overlay... please join #gentoo-java on |
16 |
irc.freenode.net. This will likely be the best way to coordinate |
17 |
squashing bugs that might crop up. (For those not familar with the |
18 |
channel, just ask your question/state your problem, and then just chill |
19 |
in the channel. Most of us idle in there, so it may take a bit get back |
20 |
to you.) Alternatively, using this list for this purpose is probably |
21 |
acceptable. |
22 |
|
23 |
Wiktor Wandachowicz wrote: |
24 |
> Hello group! |
25 |
> |
26 |
> During several last months I was testing axxo-overlay in hope to see |
27 |
> what is |
28 |
> interesting in there. But the gentooexperimental outage stopped me for |
29 |
> a while. |
30 |
> Now I've found out that the new, migration-overlay is recommended: |
31 |
> |
32 |
> https://projects.gentooexperimental.org/expj/wiki/ |
33 |
> https://projects.gentooexperimental.org/expj/wiki/Using_migration-overlay |
34 |
> |
35 |
> Anyway, I was trying for two straight days to switch to this overlay, |
36 |
> but without success. And today I've found the solution! |
37 |
> I thought that this may be beneficial to some users/testers, so below |
38 |
> I described roughly the steps that helped me overcome the dreadful |
39 |
> warning |
40 |
> while emerging sun-jdk: |
41 |
> |
42 |
> /usr/local/overlays/migration-overlay/dev-java/sun-jdk/sun-jdk-1.4.2.10-r11.ebuild:\ |
43 |
> line 164: java_pkg_postinst: command not found |
44 |
> |
45 |
> and continuous recommendation to rebuild that package ad infinitum. |
46 |
> Here's what I did finally. |
47 |
> |
48 |
> |
49 |
> ### Update the migration-overlay using SVN ( it needs to be checked |
50 |
> out first) |
51 |
> # svn up /usr/local/overlays/migration-overlay |
52 |
> |
53 |
> ### Make sure that sun-jdk is unmasked: |
54 |
> # grep sun-jdk /etc/portage/package.keywords |
55 |
> =dev-java/sun-jdk-1.4* ~x86 |
56 |
> |
57 |
> ### Correct the ebuild: java_pkg_postinst --> java-vm-2_pkg_postinst |
58 |
> # cd /usr/local/overlays/migration-overlay/dev-java/sun-jdk |
59 |
> # sed 's/java_pkg_postinst/java-vm-2_pkg_postinst/' |
60 |
> sun-jdk-1.4.2.10-r11.ebuild > sun-jdk-1.4.2.10-r12.ebuild |
61 |
> # ebuild sun-jdk-1.4.2.10-r12.ebuild digest |
62 |
> |
63 |
|
64 |
You really should have just said something earlier, could have saved you |
65 |
those few days. Didn't test this particular ebuild because I was running |
66 |
on amd64 at the time I thought I fixed it, and with it masked on amd64, |
67 |
I obviously didn't catch it. |
68 |
|
69 |
Should be fixed in svn now. |
70 |
|
71 |
> ### Emerge Generation-1 JDK: |
72 |
> # emerge -av =sun-jdk-1.4.2.10* |
73 |
> # env-update && . /etc/profile |
74 |
> |
75 |
> ### Emerge Generation-2 JDK: |
76 |
> # rm /etc/env.d/java/20sun-jdk-1.4.2.10 |
77 |
> # emerge -av =sun-jdk-1.4.2.10* |
78 |
> # env-update && . /etc/profile |
79 |
> |
80 |
> ### Add required environment variables: |
81 |
> # grep PROVIDES files/sun-jdk-1.4 >> /etc/env.d/java/20sun- jdk-1.4.2.10 |
82 |
> # grep BOOTCLASSPATH files/sun-jdk-1.4 >> |
83 |
> /etc/env.d/java/20sun-jdk-1.4.2.10 |
84 |
> # echo "GENERATION=2" >> /etc/env.d/java/20sun-jdk-1.4.2.10 |
85 |
> # env-update && . /etc/profile |
86 |
You should probably remerge =sun-jdk-1.4.2* noe that it's fixed. You |
87 |
should get the correct env file this time. |
88 |
> >>> Regenerating /etc/ld.so.cache... |
89 |
> * === Java Environment Checker === |
90 |
> * The purpose of this script is to check the sanity of your Java |
91 |
> Environment. |
92 |
> |
93 |
> * We have significantly changed and improved the way Java is handled |
94 |
> in many respects. |
95 |
> * Please refer to https://projects.gentooexperimental.org/expj/wiki/ |
96 |
> for details |
97 |
> |
98 |
> |
99 |
> Performing the following checks: vm_environment_files user_settings |
100 |
> generation_1_system_vm |
101 |
> |
102 |
> Checking vm_environment_files |
103 |
> Checking user_settings |
104 |
> * Running as root. Don't need to check user settings. |
105 |
> Checking generation_1_system_vm |
106 |
> * Java environment is sane. Congratulations! |
107 |
> |
108 |
> ### Make sure everything is okay: |
109 |
> # java -version |
110 |
> java version "1.4.2_10" |
111 |
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b03) |
112 |
> Java HotSpot(TM) Client VM (build 1.4.2_10-b03, mixed mode) |
113 |
> # which java |
114 |
> /usr/bin/java |
115 |
> # java-config-1 -L |
116 |
> [sun-jdk-1.4.2.10] "Sun JDK 1.4.2.10 <http://1.4.2.10>" |
117 |
> (/etc/env.d/java/20sun-jdk-1.4.2.10) * |
118 |
> # java-config-2 -L |
119 |
> *) Sun JDK 1.4.2.10 <http://1.4.2.10> [sun-jdk-1.4.2.10] |
120 |
> (/etc/env.d/java/20sun-jdk-1.4.2.10) |
121 |
> |
122 |
> |
123 |
> I guess that the small problems (java -> java-vm-2 renaming, missing |
124 |
> env vars) will be resolved soon. I hope to see more interesting things |
125 |
> in migration-overlay and finally in official portage tree. :-D |
126 |
> |
127 |
> Friendly, |
128 |
> Wiktor Wandachowicz |
129 |
> |
130 |
> -- |
131 |
> Registered Linux user #390131 (http://counter.li.org) |
132 |
|
133 |
Your friendly Gentoo Java Team, |
134 |
- Josh |
135 |
-- |
136 |
gentoo-java@g.o mailing list |