Gentoo Archives: gentoo-user

From: David Relson <relson@×××××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] eclipse portage package
Date: Thu, 26 Nov 2009 18:09:40
Message-Id: 20091126125526.551a0bb4@osage.osagesoftware.com
In Reply to: Re: [gentoo-user] eclipse portage package by Marcus Wanner
1 On Wed, 25 Nov 2009 13:14:39 -0500
2 Marcus Wanner wrote:
3
4 > On 11/25/2009 12:20 PM, Chuck Robey wrote:
5 > > Mark Knecht wrote:
6 > >
7 > >> mark@dragonfly ~/Desktop $ eix eclipse
8 > >> * dev-java/ant-eclipse-ecj
9 > >> Available versions:
10 > >> (3.3) 3.3.0-r1
11 > >> (3.4) 3.4
12 > >> (3.5) ~3.5.1
13 > >> {elibc_FreeBSD}
14 > >> Homepage: http://www.eclipse.org/
15 > >> Description: Ant Compiler Adapter for Eclipse Java
16 > >> Compiler
17 > >>
18 > >>
19 > This shows that 3.5.1 is available, but is masked by a ~arch keyword.
20 > This means that the ebuild for 3.5.1 is not stable yet, and is not
21 > guaranteed to work (though it most likely will).
22 > >> * dev-java/eclipse-ecj
23 > >> Available versions:
24 > >> (3.3) 3.3.0-r3
25 > >> (3.4) 3.4-r4
26 > >> (3.5) ~3.5.1
27 > >> {ant elibc_FreeBSD java6}
28 > >> Homepage: http://www.eclipse.org/
29 > >> Description: Eclipse Compiler for Java
30 > >>
31 > >>
32 > Same for eclipse-ecj...
33 > >> * dev-util/eclipse-sdk
34 > >> Available versions: (3.4) 3.4-r2
35 > >> {doc elibc_FreeBSD java6}
36 > >> Homepage: http://www.eclipse.org/
37 > >> Description: Eclipse Tools Platform
38 > >>
39 > >>
40 > But not eclipse-sdk.
41 > >> dragonfly ~ # emerge -pv eclipse-ecj
42 > >>
43 > >> These are the packages that would be merged, in order:
44 > >>
45 > >> Calculating dependencies... done!
46 > >> [ebuild N ] app-admin/eselect-ecj-0.3 0 kB
47 > >> [ebuild N ] dev-java/eclipse-ecj-3.4-r4 USE="-java6" 1,251 kB
48 > >>
49 > >> Total: 2 packages (2 new), Size of downloads: 1,251 kB
50 > >>
51 > Here, he shows what would be installed if you ran "emerge elipse-ecj".
52 > >> dragonfly ~ # ACCEPT_KEYWORDS="~x86" emerge -pv eclipse-ecj
53 > >>
54 > >> These are the packages that would be merged, in order:
55 > >>
56 > >> Calculating dependencies... done!
57 > >> [ebuild N ] dev-python/pyxml-0.8.4-r2 USE="-doc -examples" 0
58 > >> kB [ebuild N ] dev-java/javatoolkit-0.3.0-r3 17 kB
59 > >> [ebuild N ] dev-java/ant-core-1.7.1-r4 USE="-doc -source"
60 > >> 6,828 kB [ebuild N ] app-admin/eselect-ecj-0.3 0 kB
61 > >> [ebuild N ] dev-java/eclipse-ecj-3.5.1 USE="ant" 1,268 kB
62 > >> [ebuild N ] dev-java/ant-eclipse-ecj-3.5.1 0 kB
63 > >>
64 > >> Total: 6 packages (6 new), Size of downloads: 8,111 kB
65 > >>
66 > This is what would happen if you temporarily told the system to allow
67 > the installation of ~arch packages. Temporarily setting ~arch is a
68 > Bad Idea!
69 > > I need to get an up-to-date version of eclipse working on my gentoo
70 > > box. First question is, is there a Galileo (3.5+) version of
71 > > eclipse available as a portage package? I can't find it, so I'd
72 > > really appreciate a pointer. The only thing I can see is a fairly
73 > > old eclipse version (I think a year or more out of date).
74 > That is because the newer version is keyworded with ~arch. Emerge
75 > will not tell you that there is a newer, keyworded version available.
76 > > Second question, at the eclipse website, I see a binary version of
77 > > the latest Linux-eclipse (the version I'm after). If I *can't* get
78 > > a portage package version of Galileo-eclipse,
79 > Don't worry, I'll show you how in a little bit!
80 > > then if I install the binary package (non-portage)
81 > > from the eclipse website, can I get (and how can I get) portage to
82 > > consider this package as supplying any dependency which would be
83 > > otherwise supplied by the latest (ganymede, 3.4+) portage version
84 > > of the eclipse tool>
85 > As far as I know of, that is not possible without ugly hacks.
86 > > Unless I'm completely misreading your stuff, your examples tell me
87 > > how to install the (too old) portage version, which is in all cases
88 > > just too old for me, so my 2 questions boil down to (1) must I?,
89 > > and (2) How do I?
90 > I don't know what you mean by "must I?", but the answer to "How do
91 > I?" is right here:
92 > First, you need to create a folder called /etc/portage as root. Then,
93 > create a file called package.keywords in that directory. When you
94 > want to install a keyworded package (dev-java/eclipse-ecj-3.5.1 in
95 > this case), you run
96 >
97 > ACCEPT_KEYWORDS="~x86" emerge -pv eclipse-ecj
98 >
99 > to see what packages are needed for the keyworded version. Then, you
100 > copy the the package names mentioned to package.keywords. In the
101 > example above, the command outputted:
102 >
103 > [ebuild N ] dev-python/pyxml-0.8.4-r2 USE="-doc -examples" 0 kB
104 > [ebuild N ] dev-java/javatoolkit-0.3.0-r3 17 kB
105 > [ebuild N ] dev-java/ant-core-1.7.1-r4 USE="-doc -source" 6,828
106 > kB [ebuild N ] app-admin/eselect-ecj-0.3 0 kB
107 > [ebuild N ] dev-java/eclipse-ecj-3.5.1 USE="ant" 1,268 kB
108 > [ebuild N ] dev-java/ant-eclipse-ecj-3.5.1 0 kB
109 >
110 > So you would add this:
111 >
112 > dev-python/pyxml-0.8.4-r2
113 > dev-java/javatoolkit-0.3.0-r3
114 > dev-java/ant-core-1.7.1-r4
115 > app-admin/eselect-ecj-0.3
116 > dev-java/eclipse-ecj-3.5.1
117 > dev-java/ant-eclipse-ecj-3.5.1
118 >
119 > to the package.keywords file (note that this will probably be
120 > different for your system, you should run the command yourself and
121 > use that output to find out what you should put in the file). I would
122 > also put a note above the lines to say why and when they were added,
123 > in case I forget.
124 >
125 > Then you can run "emerge -av eclipse-ecj" and see if it lists the new
126 > versions of everything.
127 >
128 > Marcus
129
130 Alternatively, one can use the autounmask command, for example:
131
132 autounmask dev-java/eclipse-ecj-3.5.1
133
134 On my AMD64 system, which has /etc/portage/package.keywords (as a
135 directory, rather than a file) autounmask generated file:
136
137 /etc/portage/package.keywords/autounmask-eclipse-ecj
138
139 which contains:
140
141 # ---
142 # BEGIN: dev-java/eclipse-ecj-3.5.1
143 # ---
144 =dev-java/eclipse-ecj-3.5.1 ~amd64
145 =dev-java/ant-eclipse-ecj-3.5.1 ~amd64
146 # ---
147 # END: dev-java/eclipse-ecj-3.5.1
148 # ---
149
150 HTH,
151
152 David

Replies

Subject Author
Re: [gentoo-user] eclipse portage package Marcus Wanner <marcusw@×××.net>