Gentoo Archives: gentoo-user

From: walt <w41ter@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Java problem
Date: Mon, 24 May 2010 11:08:36
Message-Id: htdmlf$k39$1@dough.gmane.org
In Reply to: Re: [gentoo-user] Re: Java problem by David Relson
1 On 05/23/2010 06:26 PM, David Relson wrote:
2 > On Sun, 23 May 2010 11:01:53 -0700
3 > walt wrote:
4 >
5 >> On 05/23/2010 09:56 AM, David Relson wrote:
6 >>
7 >>> Output of "emerge -d ant-junit" is attached, though I don't
8 >>> understand what the additional info means.
9 >>
10 >> The 'build.log' should contain the actual error message following the
11 >> test for the system-vm. The test code will look something like this:
12 >>
13 >> + java-pkg_switch-vm
14 >> + debug-print-function java-pkg_switch-vm
15 >> + str='java-pkg_switch-vm: entering function'
16 >> + shift
17 >> + debug-print 'java-pkg_switch-vm: entering function, parameters: '
18 >> + '[' '!' -d /media/d/portage/dev-java/ant-junit-1.7.1/temp ']'
19 >> + '[' 'java-pkg_switch-vm: entering function, parameters: ' ']'
20 >> + '[' '' == on ']'
21 >> + '[' -n '' ']'
22 >> + echo 'java-pkg_switch-vm: entering function, parameters: '
23 >> + chmod
24 >> g+w /media/d/portage/dev-java/ant-junit-1.7.1/temp/eclass-debug.log
25 >> + shift
26 >> + '[' '' ']'
27 >> + java-pkg_needs-vm
28 >> + debug-print-function java-pkg_needs-vm
29 >> <lots of snippage>
30 >>
31 >> There are no error messages in my build.log but I expect there will
32 >> be some obvious ones in yours.
33 >>
34 >
35 > Hi Walt,
36 >
37 > What build.log file do you mean?
38
39 /var/tmp/portage/dev-java/ant-junit-1.7.1/temp/build.log (unless you
40 changed the default $PORTAGE_TMPDIR in make.conf). The eclass-debug.log
41 is in the same directory.
42
43 > Running "emerge -d ant-junit" produces files:
44 >
45 > /var/log/portage/dev-java:ant-junit-1.7.1:20100524-010955.log
46 > /var/log/portage/elog/dev-java:ant-junit-1.7.1:20100524-010957.log
47
48 Thanks, I never knew about those logs. Maybe they only appear if the
49 build fails because I don't have them on my machine.
50
51 > I found java-pkg_needs-vm in /usr/portage/eclass/java-utils-2.eclass.
52 > However "equery belongs /usr/portage/eclass/java-utils-2.eclass"
53 > doesn't find an owning package for this file. Do you have this file?
54 > What package owns it?
55
56 As Kenneth said, it doesn't belong to any one package, but eclass files
57 are useful for storing code that can be shared by several similar packages,
58 like a group of related java packages.
59
60 The ant-junit-1.7.1.ebuild file says "inherit ant-tasks", which means
61 that the ant-tasks.eclass file is read before beginning the actual build.
62 You can see the sequence of events in the eclass-debug.log.

Replies

Subject Author
Re: [gentoo-user] Re: Java problem David Relson <relson@×××××××××××××.com>