Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 225283 - sys-devel/automake-1.10.1 fails tests when active JVM is a JRE
Summary: sys-devel/automake-1.10.1 fails tests when active JVM is a JRE
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2008-06-07 21:22 UTC by David Leverton
Modified: 2015-07-08 05:52 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Leverton 2008-06-07 21:22:03 UTC
The test looks for javac and finds the wrapper script installed by java-config, then tries to invoke it and fails because there's no real javac:

/var/tmp/paludis/sys-devel-automake-1.10.1/work/automake-1.10.1/tests:/root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/kde/4.0/sbin:/usr/kde/4.0/bin:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin:/opt/vmware/player/bin
=== Running test ./java.test
++ pwd
/var/tmp/paludis/sys-devel-automake-1.10.1/work/automake-1.10.1/tests/testSubDir
+ set -e
+ cat
+ cat
+ aclocal-1.10 -Werror
+ autoconf
+ automake-1.10 --foreign -Werror -Wall
+ grep '^all[-a-z]*:.*classdist_java\.stamp' Makefile.in
all-am: Makefile classdist_java.stamp
+ cat
+ cat
++ pwd
+ ./configure --prefix /var/tmp/paludis/sys-devel-automake-1.10.1/work/automake-1.10.1/tests/testSubDir
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for javac... :
configure: creating ./config.status
config.status: creating Makefile
+ make distcheck
{ test ! -d java-1.0 || { find java-1.0 -type d ! -perm -200 -exec chmod u+w {} ';' && rm -fr java-1.0; }; }
test -d java-1.0 || mkdir java-1.0
find java-1.0 -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
          ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
          ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
          ! -type d ! -perm -444 -exec /bin/sh /var/tmp/paludis/sys-devel-automake-1.10.1/work/automake-1.10.1/tests/testSubDir/install-sh -c -m a+r {} {} \; \
        || chmod -R a+r java-1.0
tardir=java-1.0 && /bin/sh /var/tmp/paludis/sys-devel-automake-1.10.1/work/automake-1.10.1/tests/testSubDir/missing --run tar chof - "$tardir" | GZIP=--best gzip -c >java-1.0.tar.gz
{ test ! -d java-1.0 || { find java-1.0 -type d ! -perm -200 -exec chmod u+w {} ';' && rm -fr java-1.0; }; }
case 'java-1.0.tar.gz' in \
        *.tar.gz*) \
          GZIP=--best gunzip -c java-1.0.tar.gz | /bin/sh /var/tmp/paludis/sys-devel-automake-1.10.1/work/automake-1.10.1/tests/testSubDir/missing --run tar xf - ;;\
        *.tar.bz2*) \
          bunzip2 -c java-1.0.tar.bz2 | /bin/sh /var/tmp/paludis/sys-devel-automake-1.10.1/work/automake-1.10.1/tests/testSubDir/missing --run tar xf - ;;\
        *.tar.lzma*) \
          unlzma -c java-1.0.tar.lzma | /bin/sh /var/tmp/paludis/sys-devel-automake-1.10.1/work/automake-1.10.1/tests/testSubDir/missing --run tar xf - ;;\
        *.tar.Z*) \
          uncompress -c java-1.0.tar.Z | /bin/sh /var/tmp/paludis/sys-devel-automake-1.10.1/work/automake-1.10.1/tests/testSubDir/missing --run tar xf - ;;\
        *.shar.gz*) \
          GZIP=--best gunzip -c java-1.0.shar.gz | unshar ;;\
        *.zip*) \
          unzip java-1.0.zip ;;\
        esac
chmod -R a-w java-1.0; chmod a+w java-1.0
mkdir java-1.0/_build
mkdir java-1.0/_inst
chmod a-w java-1.0
dc_install_base=`CDPATH="${ZSH_VERSION+.}:" && cd java-1.0/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
          && dc_destdir="${TMPDIR-/tmp}/am-dc-$$/" \
          && cd java-1.0/_build \
          && ../configure --srcdir=.. --prefix="$dc_install_base" \
             \
          && make  \
          && make  dvi \
          && make  check \
          && make  install \
          && make  installcheck \
          && make  uninstall \
          && make  distuninstallcheck_dir="$dc_install_base" \
                distuninstallcheck \
          && chmod -R a-w "$dc_install_base" \
          && ({ \
               (cd ../.. && umask 077 && mkdir "$dc_destdir") \
               && make  DESTDIR="$dc_destdir" install \
               && make  DESTDIR="$dc_destdir" uninstall \
               && make  DESTDIR="$dc_destdir" \
                    distuninstallcheck_dir="$dc_destdir" distuninstallcheck; \
              } || { rm -rf "$dc_destdir"; exit 1; }) \
          && rm -rf "$dc_destdir" \
          && make  dist \
          && rm -rf java-1.0.tar.gz \
          && make  distcleancheck
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for javac... :
configure: creating ./config.status
config.status: creating Makefile
make[1]: Entering directory `/var/tmp/paludis/sys-devel-automake-1.10.1/work/automake-1.10.1/tests/testSubDir/java-1.0/_build'
CLASSPATH=.:../.:$CLASSPATH javac -d .    ../a.java ../b.java
* javac is not available for sun-jre-bin-1.6 on x86_64
* IMPORTANT: some Java tools are not available on some VMs on some architectures
make[1]: *** [classdist_java.stamp] Error 1
make[1]: Leaving directory `/var/tmp/paludis/sys-devel-automake-1.10.1/work/automake-1.10.1/tests/testSubDir/java-1.0/_build'
make: *** [distcheck] Error 2
Comment 1 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2008-06-07 21:30:25 UTC
No idea what automake uses java for, but either it should be told not to test for it or use java eclasses and jdk dependency, which will set the env to a JDK even if active VM is JRE. Maybe there should be a java USE flag in which case the eclass is java-pkg-opt-2
Comment 2 SpanKY gentoo-dev 2008-06-08 04:32:16 UTC
it doesnt use java ... like a good library, it includes optional helper macros for other packages to use when running autotools

if a java compiler is found, it'll be used to test its macros