1 |
Am Donnerstag, 20. April 2006 19:03 schrieb Ivan Yosifov: |
2 |
> Am Mittwoch, 19. April 2006 18:15 schrieb Joshua Nichols: |
3 |
> > Ivan Yosifov wrote: |
4 |
> > > Am Dienstag, 18. April 2006 19:36 schrieb Joshua Nichols: |
5 |
> > >> Ivan Yosifov wrote: |
6 |
> > >>> Hello, |
7 |
> > >>> |
8 |
> > >>> Happens while emergeing eclipse: |
9 |
> > >>> |
10 |
> > >>> home ~ # emerge -1 eclipse-sdk |
11 |
> > >>> Calculating dependencies... done! |
12 |
> > >>> |
13 |
> > >>>>>> Emerging (1 of 1) dev-util/eclipse-sdk-3.1.2 to / |
14 |
> > >>>>>> checksums files .... |
15 |
> > >>>>>> checksums src_uri ;-) eclipse-sourceBuild-srcIncluded-3.1.2.zip |
16 |
> > >>> |
17 |
> > >>> * Checking for sufficient physical RAM |
18 |
> > >>> * Checking for bad CFLAGS |
19 |
> > >>> * Found offending option -fomit-frame-pointer in your CFLAGS |
20 |
> > >>> .... |
21 |
> > >>> * Tip: use equery depgraph "=eclipse-sdk-3.1.2" to list all |
22 |
> > >>> dependencies. |
23 |
> > >>> |
24 |
> > >>> /usr/local/portage/migration/migration/eclass/java-utils.eclass: line |
25 |
> > >>> 97: [: -ge: unary operator expected |
26 |
> > >>> Detected a JDK < 1.5.0 |
27 |
> > >>> Detected a JDK >= 1.4.2 |
28 |
> > >>> |
29 |
> > >>>>>> Unpacking source... |
30 |
> > >>> |
31 |
> > >>> /usr/local/portage/migration/migration/ is where I've put the |
32 |
> > >>> migration overlay revision 2114. Bash is 3.1_p17. Is this an eclass |
33 |
> > >>> bug or something else ? |
34 |
> > >> |
35 |
> > >> Something else, I think. I've been working on the eclipse ebuilds |
36 |
> > >> (while using migration-overlay, obviously), and hadn't noticed any |
37 |
> > >> problems. |
38 |
> > >> |
39 |
> > >> It might have something to do with the ebuild itself. Someone went and |
40 |
> > >> committed a bump to 3.1.2 without consulting with us Java folks, so |
41 |
> > >> I'm not sure what condition it is. Expect to see a new revision in a |
42 |
> > >> day or so... |
43 |
> > >> |
44 |
> > >> Josh |
45 |
> > > |
46 |
> > > I am getting the same with the new eclipse-sdk-3.1.2-r1. I added some |
47 |
> > > debugging output to the eclass in java-utils_is-vm-version-ge(): |
48 |
> > > |
49 |
> > > --- ./java-utils.eclass 2006-04-19 10:58:43.000000000 +0300 |
50 |
> > > +++ /usr/local/portage/migration/migration/eclass/java-utils.eclass |
51 |
> > > 2006-04-19 11:00:25.000000000 +0300 |
52 |
> > > @@ -91,6 +91,12 @@ |
53 |
> > > local vm_patch=$(echo ${vm_version} | cut -d. -f3) |
54 |
> > > local vm_extra=$(echo ${vm_version} | cut -d. -f4) |
55 |
> > > |
56 |
> > > + echo ${vm_major} |
57 |
> > > + echo ${vm_minor} |
58 |
> > > + echo ${user_major} |
59 |
> > > + echo ${user_minor} |
60 |
> > > + echo ${vm_patch} |
61 |
> > > + echo ${user_patch} |
62 |
> > > if [ ${vm_major} -ge ${user_major} ] && [ ${vm_minor} -gt |
63 |
> > > ${user_minor} ] ; then |
64 |
> > > echo "Detected a JDK >= ${user_version}" |
65 |
> > > return 0 |
66 |
> > > |
67 |
> > > and the output is: |
68 |
> > > |
69 |
> > > * Tip: use equery depgraph "=eclipse-sdk-3.1.2-r1" to list all |
70 |
> > > dependencies. |
71 |
> > > |
72 |
> > > 1 |
73 |
> > > 5 |
74 |
> > > 1 |
75 |
> > > 5 |
76 |
> > > |
77 |
> > > 0 |
78 |
> > > /usr/local/portage/migration/migration/eclass/java-utils.eclass: line |
79 |
> > > 103: [: -ge: unary operator expected |
80 |
> > > Detected a JDK < 1.5.0 |
81 |
> > > 1 |
82 |
> > > 5 |
83 |
> > > 1 |
84 |
> > > 4 |
85 |
> > > |
86 |
> > > 2 |
87 |
> > > Detected a JDK >= 1.4.2 |
88 |
> > > |
89 |
> > >>>> Unpacking source... |
90 |
> > > |
91 |
> > > ,meaning that vm_patch is ending up empty and that seems to confuse -ge |
92 |
> > > conditionals using it. |
93 |
> > |
94 |
> > I'll have to look into this, but it probably just needs to sanity |
95 |
> > checking for the vm_extra and company. |
96 |
> > |
97 |
> > Aside from that, what is the original of the ebuild for eclipse that you |
98 |
> > are using? Also, which VM are you using? I haven't been able to quite |
99 |
> > reproduce this problem... |
100 |
> > |
101 |
> > Josh |
102 |
> |
103 |
> I am using the eclipse-sdk-3.1.2-r1 ebuild from the main tree, attached |
104 |
> here for reference. I have sun-jdk 1.4.2.10-r13 and 1.5.0.06-r13 installed. |
105 |
> The problem with vm_patch seems to be that |
106 |
> |
107 |
> java-config -f | sed -e "s/.*-\([0-9.]\+\).*/\1/" ( in |
108 |
> java-utils_get-vm-version ) |
109 |
> |
110 |
> returns just "1.5" and so |
111 |
> |
112 |
> vm_patch=$(echo ${vm_version} | cut -d. -f3) ( in |
113 |
> java-utils_is-vm-version-ge ) ends up being an empty string. There is no |
114 |
> third field to cut. |
115 |
|
116 |
Still an issue with eclipse-sdk-3.1.2-r2 and migration overlay revision 2129. |
117 |
|
118 |
-- |
119 |
Cheers, |
120 |
Ivan Yosifov. |
121 |
-- |
122 |
gentoo-java@g.o mailing list |