-r3 and earlier are fine with USE=-java, but -r4 regresses (bug #240334). [32;01m*[0m CPV: app-benchmarks/bootchart-0.9-r4 [32;01m*[0m REPO: gentoo [32;01m*[0m USE: acct elibc_glibc hppa kernel_linux test userland_GNU >>> Unpacking source... >>> Unpacking bootchart-0.9.tar.bz2 to /mnt/alt/portage/app-benchmarks/bootchart-0.9-r4/work >>> Source unpacked in /mnt/alt/portage/app-benchmarks/bootchart-0.9-r4/work >>> Preparing source in /mnt/alt/portage/app-benchmarks/bootchart-0.9-r4/work/bootchart-0.9 ... [32;01m*[0m Applying bootchart-0.9-gentoo.patch ... [A[80C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m Applying bootchart-0.9-sh.patch ... [A[80C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m Applying bootchart-0.9-dev-null.patch ... [A[80C [34;01m[ [32;01mok[34;01m ][0m [32;01m*[0m Applying accton.patch ... [A[80C [34;01m[ [32;01mok[34;01m ][0m >>> Source prepared. >>> Configuring source in /mnt/alt/portage/app-benchmarks/bootchart-0.9-r4/work/bootchart-0.9 ... /mnt/alt/portage/app-benchmarks/bootchart-0.9-r4/temp/environment: line 781: /usr/bin/depend-java-query: No such file or directory /mnt/alt/portage/app-benchmarks/bootchart-0.9-r4/temp/environment: line 781: /usr/bin/depend-java-query: No such file or directory [31;01m*[0m Could not find valid -source/-target values [31;01m*[0m Please file a bug about this on bugs.gentoo.org [31;01m*[0m ERROR: app-benchmarks/bootchart-0.9-r4 failed: [31;01m*[0m Could not find valid -source/-target values [31;01m*[0m [31;01m*[0m Call stack: [31;01m*[0m ebuild.sh, line 54: Called src_configure [31;01m*[0m environment, line 4317: Called java-ant-2_src_configure [31;01m*[0m environment, line 2167: Called java-ant_bsfix [31;01m*[0m environment, line 2189: Called java-ant_bsfix_files './build.xml' [31;01m*[0m environment, line 2202: Called die [31;01m*[0m The specific snippet of code: [31;01m*[0m die "Could not find valid -source/-target values"; [31;01m*[0m [31;01m*[0m If you need support, post the output of 'emerge --info =app-benchmarks/bootchart-0.9-r4', [31;01m*[0m the complete build log and the output of 'emerge -pqv =app-benchmarks/bootchart-0.9-r4'. !!! When you file a bug report, please include the following information: GENTOO_VM= CLASSPATH="" JAVA_HOME="" JAVACFLAGS="" COMPILER="" and of course, the output of emerge --info [31;01m*[0m The complete build log is located at '/keeps/gentoo/emergelogs/elmer/app-benchmarks:bootchart-0.9-r4:20100428-213158.log'. [31;01m*[0m The ebuild environment file is located at '/mnt/alt/portage/app-benchmarks/bootchart-0.9-r4/temp/environment'. [31;01m*[0m S: '/mnt/alt/portage/app-benchmarks/bootchart-0.9-r4/work/bootchart-0.9'
It's caused by the EAPI bump and I think this would adequately fix it: Index: bootchart-0.9-r4.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/app-benchmarks/bootchart/bootchart-0.9-r4.ebuild,v retrieving revision 1.1 diff -u -B -r1.1 bootchart-0.9-r4.ebuild --- bootchart-0.9-r4.ebuild 27 Apr 2010 13:10:55 -0000 1.1 +++ bootchart-0.9-r4.ebuild 28 Apr 2010 21:38:47 -0000 @@ -56,6 +56,10 @@ java-pkg-opt-2_src_prepare } +src_configure() { + use java && java-ant-2_src_configure +} + src_compile() { if use java ; then local antflags="jar -Dcompiler.nowarn=true $(use_doc)" Please review.
I've fixed the eclass instead, thanks! --- java-ant-2.eclass 12 Feb 2010 23:51:44 -0000 1.48 +++ java-ant-2.eclass 29 Apr 2010 08:39:11 -0000 @@ -143,6 +143,11 @@ # src_configure rewrites the build.xml files # ------------------------------------------------------------------------------ java-ant-2_src_configure() { + # if java support is optional, don't perform this when the USE flag is off + if hasq java-pkg-opt-2 ${INHERITED}; then + use ${JAVA_PKG_OPT_USE} || return + fi + # eant will call us unless called by Portage [[ -e "${T}/java-ant-2_src_configure-run" ]] && return