Bug#262733: [Build-common-hackers] Bug#262733: cdbs: debian/stamp-ant-build is called in arch and indep build target
Stefan Gybas
Stefan Gybas <sgybas@debian.org>, 262733@bugs.debian.org
Tue, 03 Aug 2004 12:08:24 +0200
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig71BC7E767E3751DE2B35C2B7
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Jan Schulz wrote:
> My package (eclipse) has both native and java parts and so is split into
> Arch: all and arch: any packages. The Arch: all packages do not need to be
> build on different architectures, so this implementations adds a complete
> compile of eclipse (on my system about 30 min) to a native compile of about
> one minute.
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.
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.
> It also seems that I can't add dependencies to this task, so that native
> parts are first compiled and the ant call comes *after* that. A hook for
> such situtations would be much welcomed!
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.
Stefan
--------------enig71BC7E767E3751DE2B35C2B7
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBD2QbCdoSgNrrJGsRAvLdAJ4tOrP2OT+zt4T5eFvQdc+dllpQxwCaAmY1
55BnaRlrmDxFAtwWIAZiHSM=
=P7+w
-----END PGP SIGNATURE-----
--------------enig71BC7E767E3751DE2B35C2B7--