[Build-common-hackers] Bug#239123: cdbs: ant class fails if JAVA_HOME_DIRS points to a empty dir

Jan Schulz Jan Schulz <debian@katzien.de>, 239123@bugs.debian.org
Sun, 21 Mar 2004 01:37:44 +0100


Package: cdbs
Version: 0.4.21
Severity: normal

The ant class fails, if the JAVA_HOME_DIR points to a empty, but existing 
dir. IMO, the JAVA_HOME test in /usr/share/cdbs/1/class/ant-vars.mk
should be rewritten to this:

JAVA_HOME = $(shell for jh in $(JAVA_HOME_DIRS); do \
            if [ -x "$$jh/bin/java" ]; then \
            echo $${jh}; exit 0; fi; done)

Thanks, Jan

-- System Information:
Debian Release: testing/unstable
  APT prefers experimental
  APT policy: (990, 'experimental'), (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.22-1-k7
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro

-- no debconf information