[Build-common-hackers] Bug#506602: cdbs: Setting ANT_ARGS_<package> does not work.
Vincent Smeets
vincent.vsmeets at gmail.com
Sat Nov 22 22:34:41 UTC 2008
Package: cdbs
Version: 0.4.52
Severity: normal
Hallo,
I have a rules file that includes class/ant.mk and I want to pass the
binary package name to the ant script. I have defined the settings as
defined in the file ant-vars.mk at line 76.
ANT_ARGS_abc = -Dpackage.binary=abc
ANT_ARGS_def = -Dpackage.binary=def
These settings are never working. Ant is called with the following
substitution:
$(ANT_ARGS_$(cdbs_curpkg))
And cdbs_curpkg is defined by:
cdbs_curpkg = $(filter-out %/,$(subst /,/ ,$@))
This substitution works with targets like:
build/abc::
or
install/abc::
But ant is called for targets like:
debian/stamp-ant-build:
and
common-install-impl::
and
debian/stamp-ant-check:
The substitution only works in case the last path-part of the target is
the name of the package. It works in debhelper.mk but its not correctly
implemented in ant.mk.
Regards,
Vincent Smeets
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages cdbs depends on:
ii debhelper 7.0.15 helper programs for debian/rules
Versions of packages cdbs recommends:
ii autotools-dev 20080123.1 Update infrastructure for config.{
Versions of packages cdbs suggests:
ii devscripts 2.10.35 scripts to make the life of a Debi
ii doc-base 0.8.16 utilities to manage online documen
-- no debconf information
More information about the Build-common-hackers
mailing list