[Build-common-hackers] Bug#262861: cdbs: ant install target called twice

Jan Schulz Jan Schulz <debian@katzien.de>, 262861@bugs.debian.org
Mon, 02 Aug 2004 05:40:07 +0200


Package: cdbs
Version: 0.4.21-0.1
Severity: important

Hello,

due to some missing '"' around the DEB variables, ant is called twice. The 
echo line is expanced to 
|echo cd . && ...
which prints 'cd .' and then calls ant. The real ant call comes after this
again. 

Pseudo patch:

common-install-impl::
        @if test -n "$(DEB_ANT_INSTALL_TARGET)"; then \
-	 echo $(DEB_ANT_INVOKE) $(DEB_ANT_INSTALL_TARGET); \
+	 echo "$(DEB_ANT_INVOKE) $(DEB_ANT_INSTALL_TARGET)"; \
	 $(DEB_ANT_INVOKE) $(DEB_ANT_INSTALL_TARGET); \
	else \
	 echo "DEB_ANT_INSTALL_TARGET unset, skipping default ant.mk common-in stall target"; \
        fi
  

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

-- no debconf information