On Mon, 24 May 2010 04:11:45 -0700
walt wrote:

> On 05/23/2010 06:26 PM, David Relson wrote:
> > On Sun, 23 May 2010 11:01:53 -0700
> > walt wrote:
> >
> >> On 05/23/2010 09:56 AM, David Relson wrote:
> >>
> >>> Output of "emerge -d ant-junit" is attached, though I don't
> >>> understand what the additional info means.
> >>
> >> The 'build.log' should contain the actual error message following
> >> the test for the system-vm.  The test code will look something
> >> like this:
> >>
> >> + java-pkg_switch-vm
> >> + debug-print-function java-pkg_switch-vm
> >> + str='java-pkg_switch-vm: entering function'
> >> + shift
> >> + debug-print 'java-pkg_switch-vm: entering function, parameters: '
> >> + '[' '!' -d /media/d/portage/dev-java/ant-junit-1.7.1/temp ']'
> >> + '[' 'java-pkg_switch-vm: entering function, parameters: ' ']'
> >> + '[' '' == on ']'
> >> + '[' -n '' ']'
> >> + echo 'java-pkg_switch-vm: entering function, parameters: '
> >> + chmod
> >> g+w /media/d/portage/dev-java/ant-junit-1.7.1/temp/eclass-debug.log
> >> + shift
> >> + '[' '' ']'
> >> + java-pkg_needs-vm
> >> + debug-print-function java-pkg_needs-vm
> >> <lots of snippage>
> >>
> >> There are no error messages in my build.log but I expect there will
> >> be some obvious ones in yours.
> >>
> >
> > Hi Walt,
> >
> > What build.log file do you mean?
> 
> /var/tmp/portage/dev-java/ant-junit-1.7.1/temp/build.log (unless you
> changed the default $PORTAGE_TMPDIR in make.conf).  The
> eclass-debug.log is in the same directory.
> 
> > Running "emerge -d ant-junit" produces files:
> >
> >    /var/log/portage/dev-java:ant-junit-1.7.1:20100524-010955.log
> >    /var/log/portage/elog/dev-java:ant-junit-1.7.1:20100524-010957.log
> 
with "PORT_LOGDIR=/var/log/portage" in /etc/make.conf, the build.log
files go into /var/log/portage (as reported above).

> Thanks, I never knew about those logs.  Maybe they only appear if the
> build fails because I don't have them on my machine.
> 
> > I found java-pkg_needs-vm
> > in /usr/portage/eclass/java-utils-2.eclass. However "equery
> > belongs /usr/portage/eclass/java-utils-2.eclass" doesn't find an
> > owning package for this file.  Do you have this file? What package
> > owns it?
> 
> As Kenneth said, it doesn't belong to any one package, but eclass
> files are useful for storing code that can be shared by several
> similar packages, like a group of related java packages.
> 
> The ant-junit-1.7.1.ebuild file says "inherit ant-tasks", which means
> that the ant-tasks.eclass file is read before beginning the actual
> build. You can see the sequence of events in the eclass-debug.log.
> 

I've had an initial response from b.g.o. and will follow along with
that as well as this thread.

Attached is the eclass-debug.log file which contains:

  java-pkg_switch-vm: entering function, parameters: 
  java-pkg_needs-vm: entering function, parameters: 
  depend-java-query:  NV_DEPEND:        dev-java/junit:0
   >=dev-java/java-config-2.1.9-r1 >=sys-apps/portage-2.1.2.7

It seems wrong that the parameter list is empty.
inherit: ant-tasks -> /usr/portage/eclass/ant-tasks.eclass
*** Multiple Inheritence (Level: 2)
inherit: versionator -> /usr/portage/eclass/versionator.eclass
inherit: java-pkg-2 -> /usr/portage/eclass/java-pkg-2.eclass
*** Multiple Inheritence (Level: 3)
inherit: java-utils-2 -> /usr/portage/eclass/java-utils-2.eclass
*** Multiple Inheritence (Level: 4)
inherit: eutils -> /usr/portage/eclass/eutils.eclass
*** Multiple Inheritence (Level: 5)
inherit: multilib -> /usr/portage/eclass/multilib.eclass
*** Multiple Inheritence (Level: 6)
inherit: toolchain-funcs -> /usr/portage/eclass/toolchain-funcs.eclass
inherit: portability -> /usr/portage/eclass/portability.eclass
inherit: versionator -> /usr/portage/eclass/versionator.eclass
inherit: multilib -> /usr/portage/eclass/multilib.eclass
EXPORT_FUNCTIONS: pkg_setup -> java-pkg-2_pkg_setup
EXPORT_FUNCTIONS: src_compile -> java-pkg-2_src_compile
EXPORT_FUNCTIONS: pkg_preinst -> java-pkg-2_pkg_preinst
inherit: java-ant-2 -> /usr/portage/eclass/java-ant-2.eclass
*** Multiple Inheritence (Level: 3)
inherit: java-utils-2 -> /usr/portage/eclass/java-utils-2.eclass
*** Multiple Inheritence (Level: 4)
inherit: eutils -> /usr/portage/eclass/eutils.eclass
*** Multiple Inheritence (Level: 5)
inherit: multilib -> /usr/portage/eclass/multilib.eclass
inherit: portability -> /usr/portage/eclass/portability.eclass
inherit: versionator -> /usr/portage/eclass/versionator.eclass
inherit: multilib -> /usr/portage/eclass/multilib.eclass
java-pkg_ant-tasks-depend: entering function, parameters: 
EXPORT_FUNCTIONS: src_unpack -> ant-tasks_src_unpack
EXPORT_FUNCTIONS: src_compile -> ant-tasks_src_compile
EXPORT_FUNCTIONS: src_install -> ant-tasks_src_install
RDEPEND: not set... Setting to: dev-java/junit:0
java-pkg_init: entering function, parameters: 
java-pkg_init_paths_: entering function, parameters: 
JAVA_PKG_SHAREPATH: /usr/share/ant-junit
JAVA_PKG_ENV: /var/tmp/portage/dev-java/ant-junit-1.7.1/image//usr/share/ant-junit/package.env
JAVA_PKG_JARDEST: /usr/share/ant-junit/lib
JAVA_PKG_LIBDEST: /usr/lib64/ant-junit
JAVA_PKG_WARDEST: /usr/share/ant-junit/webapps
java-pkg_switch-vm: entering function, parameters: 
java-pkg_needs-vm: entering function, parameters: 
depend-java-query:  NV_DEPEND:	dev-java/junit:0  >=dev-java/java-config-2.1.9-r1 >=sys-apps/portage-2.1.2.7 
	
	>=sys-apps/portage-2.1.2.7
	>=dev-java/javatoolkit-0.3.0-r2 >=virtual/jdk-1.4
	>=virtual/jre-1.4
	~dev-java/ant-core-1.7.1
		!dev-java/ant-tasks
inherit: ant-tasks -> /usr/portage/eclass/ant-tasks.eclass
*** Multiple Inheritence (Level: 2)
inherit: versionator -> /usr/portage/eclass/versionator.eclass
inherit: java-pkg-2 -> /usr/portage/eclass/java-pkg-2.eclass
*** Multiple Inheritence (Level: 3)
inherit: java-utils-2 -> /usr/portage/eclass/java-utils-2.eclass
*** Multiple Inheritence (Level: 4)
inherit: eutils -> /usr/portage/eclass/eutils.eclass
*** Multiple Inheritence (Level: 5)
inherit: multilib -> /usr/portage/eclass/multilib.eclass
*** Multiple Inheritence (Level: 6)
inherit: toolchain-funcs -> /usr/portage/eclass/toolchain-funcs.eclass
inherit: portability -> /usr/portage/eclass/portability.eclass
inherit: versionator -> /usr/portage/eclass/versionator.eclass
inherit: multilib -> /usr/portage/eclass/multilib.eclass
EXPORT_FUNCTIONS: pkg_setup -> java-pkg-2_pkg_setup
EXPORT_FUNCTIONS: src_compile -> java-pkg-2_src_compile
EXPORT_FUNCTIONS: pkg_preinst -> java-pkg-2_pkg_preinst
inherit: java-ant-2 -> /usr/portage/eclass/java-ant-2.eclass
*** Multiple Inheritence (Level: 3)
inherit: java-utils-2 -> /usr/portage/eclass/java-utils-2.eclass
*** Multiple Inheritence (Level: 4)
inherit: eutils -> /usr/portage/eclass/eutils.eclass
*** Multiple Inheritence (Level: 5)
inherit: multilib -> /usr/portage/eclass/multilib.eclass
inherit: portability -> /usr/portage/eclass/portability.eclass
inherit: versionator -> /usr/portage/eclass/versionator.eclass
inherit: multilib -> /usr/portage/eclass/multilib.eclass
java-pkg_ant-tasks-depend: entering function, parameters: 
EXPORT_FUNCTIONS: src_unpack -> ant-tasks_src_unpack
EXPORT_FUNCTIONS: src_compile -> ant-tasks_src_compile
EXPORT_FUNCTIONS: src_install -> ant-tasks_src_install
RDEPEND: not set... Setting to: dev-java/junit:0

Reply via email to