Package: cdbs
Version: 0.4.48
Severity: normal

Hi,

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

        [...]

        buildxml-clean::
                -$(DEB_ANT_INVOKE) $(DEB_ANT_CLEAN_TARGET)

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


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to