[Build-common-hackers] Bug#414305: cdbs: Call of 'ant clean' happens _after_ patch removal

Eric Lavarde bugs.debian.nospam at zorglub.s.bawue.de
Sat Mar 10 20:01:09 CET 2007

Package: cdbs
Version: 0.4.48
Severity: normal


the ant class is built in such a way that 'ant clean' (or whatever the
clean target actually is) is called after the patches are unapplied,
leading to the issue that ant clean fails (I have to patch quite heavily
the build.xml to make it work _at all_ under Debian).
Looking through ./class/makefile.mk, I see that the call to 'make -k
clean' is put before the actual clean: target; I truly think that it
should be the same way for ant.

The workaround is to have something like the following in debian/rules:

	clean:: buildxml-clean

	include /usr/share/cdbs/1/rules/debhelper.mk
	include /usr/share/cdbs/1/class/ant.mk
	include /usr/share/cdbs/1/rules/simple-patchsys.mk



Thanks, Eric

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-686
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8)

cdbs depends on no packages.

Versions of packages cdbs recommends:
ii  autotools-dev                 20060702.1 Update infrastructure for config.{
ii  debhelper                     5.0.42     helper programs for debian/rules

-- no debconf information

More information about the Build-common-hackers mailing list