Re: pbuilder and ${shlibs:Depends}

2011-03-19 Thread Raphael Hertzog
On Sat, 19 Mar 2011, Panayiotis Karabassis wrote: > So, to summarize: > > If: > a) /usr/bin/foo of package foo needs at RUN-TIME /usr/lib/libbar.so > b) /usr/lib/libbar.so is packaged under package libbar > > then I need to: > c) add package libbar-dev as a BUILD dependency of foo. > > And dh_sh

Re: pbuilder and ${shlibs:Depends}

2011-03-19 Thread Raphael Hertzog
On Fri, 18 Mar 2011, Paul Gevers wrote: > > Unfortunately this is wrong, at least for ELF binaries. Usually if you > > don't have all the dependencies that you expect, it's because they are > > optional and are disabled when they are not found during ./configure. > > Although I am just a simple DM

Re: pbuilder and ${shlibs:Depends}

2011-03-18 Thread Panayiotis Karabassis
> Unfortunately this is wrong, at least for ELF binaries. Usually if you > don't have all the dependencies that you expect, it's because they are > optional and are disabled when they are not found during ./configure. > > Thus the correct solution is to add the required -dev packages in the > Buil

Re: pbuilder and ${shlibs:Depends}

2011-03-18 Thread Paul Gevers
>>> Add the missing dependencies manually AND use the variable. (At least >>> this is what I do in all my packages. >> >> Thank you very much! This is really all I needed to know. > > Unfortunately this is wrong, at least for ELF binaries. Usually if you > don't have all the dependencies that you

Re: pbuilder and ${shlibs:Depends}

2011-03-18 Thread Raphael Hertzog
On Fri, 18 Mar 2011, Panayiotis Karabassis wrote: > I am still a little confused about this. Could you provide an > example/documentation to clarify this? From experience, I believe that > it WILL expand to LIBRARIES (not executables) that the program needs to > run, if said libraries are installed

Re: pbuilder and ${shlibs:Depends}

2011-03-18 Thread Simon Paillard
On Fri, Mar 18, 2011 at 04:46:00PM +0200, Panayiotis Karabassis wrote: > Hi, I have a question regarding pbuilder. > > My Debian package uses ${shlibs:Depends} in its Depends field. > > However, in a pbuilder environment not all dependencies are installed, > and hence ${shlibs:Depends} does not e

Re: pbuilder and ${shlibs:Depends}

2011-03-18 Thread Panayiotis Karabassis
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/18/2011 05:57 PM, Paul Gevers wrote: > I believe that this variable will only resolve libraries which you > depend on (and you need the -dev package in the build dependencies). It > will never find a executable which you need to RUN your program.

Re: pbuilder and ${shlibs:Depends}

2011-03-18 Thread Paul Gevers
> My Debian package uses ${shlibs:Depends} in its Depends field. > > However, in a pbuilder environment not all dependencies are installed, > and hence ${shlibs:Depends} does not expand to *all* real dependencies. I believe that this variable will only resolve libraries which you depend on (and y

pbuilder and ${shlibs:Depends}

2011-03-18 Thread Panayiotis Karabassis
Reposted from debian-user: Hi, I have a question regarding pbuilder. My Debian package uses ${shlibs:Depends} in its Depends field. However, in a pbuilder environment not all dependencies are installed, and hence ${shlibs:Depends} does not expand to *all* real dependencies. My question is: how