[Build-common-hackers] Bug#262733: cdbs: debian/stamp-ant-build is called in arch and indep build target

Jan Schulz Jan Schulz <default@katzien.de>, 262733@bugs.debian.org
Wed, 4 Aug 2004 00:12:44 +0200


Hallo Stefan,


* Stefan Gybas wrote:
>It's even worse: The architecture-independent build dependencies also 
>need to be fulfilled, even though you are just build the 
>architecture-dependent parts. I had the same problem with my tomcat4 
>package when it built libapache2-mod-webapp in the past.

I don't thing that matters. I pull in kdelibs4-dev, most of gtk and
some gnomelibs. And Open Motif... Just to compile about 200kb. Sight...

>But I don't know how to fix this: I can now only let common-build-indep 
>call Ant but we might use gcj's native compilation in the future so 
>common-build-arch will also have to call Ant then. This is more a 
>general CDBS problem than a specific problem for the Ant class.

IMO, this should have a different cdbs class. Havig gcj compiled
classes will lead to much differnt package problems. If we still get
to a java-config like system, as it is done by gentoo and JPackage and
as discussed in the last year java policy proposal, then we anyway
need to add this to the ant.mk class and it won't be needed be a gcj
based one, which neeed to generate shlibs files...

>Your case is very special compared to normal Ant-based packages. I think 
>you should include ant-vars.mk instead of ant.mk and add the required 
>prerequisites to your make targets yourself.

I've done that now. Works fine!

Jan
-- 
Jan Schulz                     jasc@gmx.net
     "Wer nicht fragt, bleibt dumm."