1 |
Am Dienstag, 18. April 2006 19:36 schrieb Joshua Nichols: |
2 |
> Ivan Yosifov wrote: |
3 |
> > Hello, |
4 |
> > |
5 |
> > Happens while emergeing eclipse: |
6 |
> > |
7 |
> > home ~ # emerge -1 eclipse-sdk |
8 |
> > Calculating dependencies... done! |
9 |
> > |
10 |
> >>>> Emerging (1 of 1) dev-util/eclipse-sdk-3.1.2 to / |
11 |
> >>>> checksums files .... |
12 |
> >>>> checksums src_uri ;-) eclipse-sourceBuild-srcIncluded-3.1.2.zip |
13 |
> > |
14 |
> > * Checking for sufficient physical RAM |
15 |
> > * Checking for bad CFLAGS |
16 |
> > * Found offending option -fomit-frame-pointer in your CFLAGS |
17 |
> > .... |
18 |
> > * Tip: use equery depgraph "=eclipse-sdk-3.1.2" to list all |
19 |
> > dependencies. |
20 |
> > |
21 |
> > /usr/local/portage/migration/migration/eclass/java-utils.eclass: line 97: |
22 |
> > [: -ge: unary operator expected |
23 |
> > Detected a JDK < 1.5.0 |
24 |
> > Detected a JDK >= 1.4.2 |
25 |
> > |
26 |
> >>>> Unpacking source... |
27 |
> > |
28 |
> > /usr/local/portage/migration/migration/ is where I've put the migration |
29 |
> > overlay revision 2114. Bash is 3.1_p17. Is this an eclass bug or |
30 |
> > something else ? |
31 |
> |
32 |
> Something else, I think. I've been working on the eclipse ebuilds (while |
33 |
> using migration-overlay, obviously), and hadn't noticed any problems. |
34 |
> |
35 |
> It might have something to do with the ebuild itself. Someone went and |
36 |
> committed a bump to 3.1.2 without consulting with us Java folks, so I'm |
37 |
> not sure what condition it is. Expect to see a new revision in a day or |
38 |
> so... |
39 |
> |
40 |
> Josh |
41 |
|
42 |
I am getting the same with the new eclipse-sdk-3.1.2-r1. I added some |
43 |
debugging output to the eclass in java-utils_is-vm-version-ge(): |
44 |
|
45 |
--- ./java-utils.eclass 2006-04-19 10:58:43.000000000 +0300 |
46 |
+++ /usr/local/portage/migration/migration/eclass/java-utils.eclass |
47 |
2006-04-19 11:00:25.000000000 +0300 |
48 |
@@ -91,6 +91,12 @@ |
49 |
local vm_patch=$(echo ${vm_version} | cut -d. -f3) |
50 |
local vm_extra=$(echo ${vm_version} | cut -d. -f4) |
51 |
|
52 |
+ echo ${vm_major} |
53 |
+ echo ${vm_minor} |
54 |
+ echo ${user_major} |
55 |
+ echo ${user_minor} |
56 |
+ echo ${vm_patch} |
57 |
+ echo ${user_patch} |
58 |
if [ ${vm_major} -ge ${user_major} ] && [ ${vm_minor} -gt |
59 |
${user_minor} ] ; then |
60 |
echo "Detected a JDK >= ${user_version}" |
61 |
return 0 |
62 |
|
63 |
and the output is: |
64 |
|
65 |
* Tip: use equery depgraph "=eclipse-sdk-3.1.2-r1" to list all dependencies. |
66 |
|
67 |
1 |
68 |
5 |
69 |
1 |
70 |
5 |
71 |
|
72 |
0 |
73 |
/usr/local/portage/migration/migration/eclass/java-utils.eclass: line 103: |
74 |
[: -ge: unary operator expected |
75 |
Detected a JDK < 1.5.0 |
76 |
1 |
77 |
5 |
78 |
1 |
79 |
4 |
80 |
|
81 |
2 |
82 |
Detected a JDK >= 1.4.2 |
83 |
>>> Unpacking source... |
84 |
|
85 |
,meaning that vm_patch is ending up empty and that seems to confuse -ge |
86 |
conditionals using it. |
87 |
|
88 |
-- |
89 |
Cheers, |
90 |
Ivan Yosifov. |
91 |
-- |
92 |
gentoo-java@g.o mailing list |