[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: pbuilder and ${java:Depends}



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 2011-03-19 00:03, Panayiotis Karabassis wrote:
> Hi, I have a question regarding pbuilder.
> 
> My Debian package uses ${java:Depends} in its Depends field.
> 
> However, in a pbuilder environment not all dependencies are installed,
> and hence ${java:Depends} does not expand to *all* real dependencies.
> 
> My question is: how do I add the missing libraries?
> 
> a) Put them in Build-Depends so that jh_depends can find them?
> b) Drop ${java:Depends} and list them manually?
> c) Something else?
> 
> What is the recommended way?
> 
> Thanks and regards,
>     Panayiotis
> 
> 

Hi

I have seen your (similar) question on d-mentors@l.d.o and it appears to
me that you do not understand how substitution variables (substvars)
relates to the build process.
  All known tools that use ${something} substvars do the substitution on
binary packages at the end of the build based the build environment or
the (contents of the) binary package.  There is no known tool that can
accurately fill out Build-Depends for you, so generally the answer is a)
for all substvars.

For jh_depends; jh_depends reads the Class-Path of the resulting jar
file (installed in the binary package being built) and from that fill
out the Depends field of that package.  It has the advantage that you do
not have to repeat yourself and updating the Build-Depends are
automatically reflected in your Depends.
  It also populates ${java:Recommends} if you are generating a javadoc
that is "linked" against system installed javadocs.  Though this part is
only relevant if you are packaging a Java Library.

~Niels

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBCAAGBQJNhlqdAAoJEAVLu599gGRC8YQP/0fkb1z8vlXIXkSMxI+nQ/Qx
2sytQgXNfutUR+QBIjabKaJzY7G/oEC7VnMlWxEpVPAk6X+YP3M+SQkO9priExUl
dG2+fIaW0lV3XKvm+PR7RpxncmwPYPmeVTi0fOtrrLam7z3a3y/vKnet8FrkpEoS
9T7QS9TGBHjMC7waQwPIF56JwdXaw/6REfwLxkT7xhHTqbNIIoO1LXPwc5kIPv7k
XZNrBU/BWu5WsfqrHz1+td1eBacJp3yPdHe6GfVlOlRa06K97fnKj5FUP2EJ1u+n
fdss71mOAhB/By41mSz8T12Ir/U4EcOwY7CFBKgluCnZN5ZuOsuAmwt6jtacT4rf
xe/b31u9IphIQAIg7ES3t3lgePki5juIoMG8DmBEnfof+jUZHDq/jaify/R+tdd7
pLFz8psqPB5i3XEi1hdJVPTU7EJaged+csHkWh1WVUtig8q9NQNCZ63/bi/Jec9i
/NO7UKufIEd9scFl7kUOYlb47EsXLD8kSly+FoPWK0p2imdOBShqlWVSa2Lz3aSA
wzrBJfeHN4K8Z9jeiZdmGoVbdDL0Y7WKECjkJjFBEvlBO+yrVQ+5zxsBi+S7ldf8
4I91i8slb9qcu6pZWfchvIX1I0Fkn1CMShbPKUXIfYXK7bTu1fICwr+5os2AXSE/
gXmxpe6ZIXUfOUk3j2gA
=uj2h
-----END PGP SIGNATURE-----


Reply to: