Re: binary-or-shlib-defines-rpath: please help me to undestand (bug #78232)

2001-01-24 Thread Steve Langasek
Domenico,

On Wed, 24 Jan 2001, Domenico Andreoli wrote:

> my package (curl) get this warning from lintian. i tryed to gain more
> information from lintian by using -i switch but i don't get them.

> my package uses libtool and the ill-famed -rpath parameter.
> i run libtoolize -fc in order to update the libtool files in the build
> tree but i still have the problem.

> anybody has any idea about solving this problem, it is bug #78232.

>From earlier discussions on debian-mentors, it seems that the correct way to
handle shlibdeps for local libraries is to call dpkg-shlibdeps with
LD_LIBRARY_PATH set so that it points to the directory where you have
libcurl.so.1.  This way, dpkg-shlibdeps will use the DEBIAN/libcurl1.shlibs
for the package you are building, and you don't need debian/shlibs.local at
all for this.

Some versions of dpkg-shlibdeps (including the most recent) can use a
'-l ' option to specify additional shared library directories.
You may want to Build-Depends: on a specific version of dpkg-dev if you use
this.

HTH,
Steve Langasek
postmodern programmer



Re: binary-or-shlib-defines-rpath: please help me to undestand (bug #78232)

2001-01-25 Thread Domenico Andreoli
On Wed, Jan 24, 2001 at 06:30:11PM -0600, Steve Langasek wrote:
> On Wed, 24 Jan 2001, Domenico Andreoli wrote:
> 
> > On Wed, Jan 24, 2001 at 11:39:12AM -0600, Steve Langasek wrote:
> > > On Wed, 24 Jan 2001, Domenico Andreoli wrote:
> 
> > > > uh? how is dpkg-shlibdeps related to libtool?!?
> 
> > > Ah... sorry, I saw two posts from you in a row, and assumed the two were
> > > related.  I guess I replied to the wrong one. :)
> 
> > anyway i was wondering how i can make my curl depends up on a library that 
> > is
> > not in any directoory of my hd? libcurl1 is generate together with curl, but
> > libcurl1-ssl is not. i want curl depends upon one of those libraries.
> 
> Domenico,
Steve,

> 
> This may be too complex for me to help with.  I'm a novice developer, and I
> don't know as much as I'd like to about shlibdeps.
> 
> Does the shlibs.local file you posted work the way you want it to?  If so,
oh my shlibs.local works the way i want. it's ok.

> adding the LD_LIBRARY_PATH to dpkg-shlibdeps will fix the warning message...
> I don't know what else needs fixing?
> 
what i want to understand end to fix is this error message.
   ^^

thanks anyway

-[ Domenico Andreoli, aka cavok
 --[ http://filibusta.crema.unimi.it/~cavok/gpgkey.asc
   ---[ 3A0F 2F80 F79C 678A 8936  4FEE 0677 9033 A20E BC50


pgpT7BxmELJd6.pgp
Description: PGP signature


Re: binary-or-shlib-defines-rpath: please help me to undestand (bug #78232)

2001-01-25 Thread Steve Langasek
Domenico,

> > Does the shlibs.local file you posted work the way you want it to?  If so,
> oh my shlibs.local works the way i want. it's ok.

> > adding the LD_LIBRARY_PATH to dpkg-shlibdeps will fix the warning message...
> > I don't know what else needs fixing?

> what i want to understand end to fix is this error message.
>^^

When dpkg-shlibdeps looks at a binary, it calls 'ldd' to find out where the
libraries are that the program is linked to.  *Any* libraries that ldd can't
find will generate a warning message.  If you want to get rid of the warning,
just call LD_LIBRARY_PATH=./debian//usr/lib dpkg-shlibdeps in
debian/rules (dh_shlibdeps -l./debian//usr/lib with debhelper).  Since
you're using debian/shlibs.local /anyway/, the warning isn't too dangerous
because you will override what's in the DEBIAN/libcurl.shlibs file; but if you
want the build to be clean, this is how to correct the warning.

Steve Langasek
postmodern programmer



Re: binary-or-shlib-defines-rpath: please help me to undestand (bug#78232)

2001-01-24 Thread Steve Langasek

Domenico,

On Wed, 24 Jan 2001, Domenico Andreoli wrote:

> my package (curl) get this warning from lintian. i tryed to gain more
> information from lintian by using -i switch but i don't get them.

> my package uses libtool and the ill-famed -rpath parameter.
> i run libtoolize -fc in order to update the libtool files in the build
> tree but i still have the problem.

> anybody has any idea about solving this problem, it is bug #78232.

>From earlier discussions on debian-mentors, it seems that the correct way to
handle shlibdeps for local libraries is to call dpkg-shlibdeps with
LD_LIBRARY_PATH set so that it points to the directory where you have
libcurl.so.1.  This way, dpkg-shlibdeps will use the DEBIAN/libcurl1.shlibs
for the package you are building, and you don't need debian/shlibs.local at
all for this.

Some versions of dpkg-shlibdeps (including the most recent) can use a
'-l ' option to specify additional shared library directories.
You may want to Build-Depends: on a specific version of dpkg-dev if you use
this.

HTH,
Steve Langasek
postmodern programmer


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: binary-or-shlib-defines-rpath: please help me to undestand (bug #78232)

2001-01-25 Thread Domenico Andreoli

On Wed, Jan 24, 2001 at 06:30:11PM -0600, Steve Langasek wrote:
> On Wed, 24 Jan 2001, Domenico Andreoli wrote:
> 
> > On Wed, Jan 24, 2001 at 11:39:12AM -0600, Steve Langasek wrote:
> > > On Wed, 24 Jan 2001, Domenico Andreoli wrote:
> 
> > > > uh? how is dpkg-shlibdeps related to libtool?!?
> 
> > > Ah... sorry, I saw two posts from you in a row, and assumed the two were
> > > related.  I guess I replied to the wrong one. :)
> 
> > anyway i was wondering how i can make my curl depends up on a library that is
> > not in any directoory of my hd? libcurl1 is generate together with curl, but
> > libcurl1-ssl is not. i want curl depends upon one of those libraries.
> 
> Domenico,
Steve,

> 
> This may be too complex for me to help with.  I'm a novice developer, and I
> don't know as much as I'd like to about shlibdeps.
> 
> Does the shlibs.local file you posted work the way you want it to?  If so,
oh my shlibs.local works the way i want. it's ok.

> adding the LD_LIBRARY_PATH to dpkg-shlibdeps will fix the warning message...
> I don't know what else needs fixing?
> 
what i want to understand end to fix is this error message.
   ^^

thanks anyway

-[ Domenico Andreoli, aka cavok
 --[ http://filibusta.crema.unimi.it/~cavok/gpgkey.asc
   ---[ 3A0F 2F80 F79C 678A 8936  4FEE 0677 9033 A20E BC50

 PGP signature


Re: binary-or-shlib-defines-rpath: please help me to undestand (bug#78232)

2001-01-25 Thread Steve Langasek

Domenico,

> > Does the shlibs.local file you posted work the way you want it to?  If so,
> oh my shlibs.local works the way i want. it's ok.

> > adding the LD_LIBRARY_PATH to dpkg-shlibdeps will fix the warning message...
> > I don't know what else needs fixing?

> what i want to understand end to fix is this error message.
>^^

When dpkg-shlibdeps looks at a binary, it calls 'ldd' to find out where the
libraries are that the program is linked to.  *Any* libraries that ldd can't
find will generate a warning message.  If you want to get rid of the warning,
just call LD_LIBRARY_PATH=./debian//usr/lib dpkg-shlibdeps in
debian/rules (dh_shlibdeps -l./debian//usr/lib with debhelper).  Since
you're using debian/shlibs.local /anyway/, the warning isn't too dangerous
because you will override what's in the DEBIAN/libcurl.shlibs file; but if you
want the build to be clean, this is how to correct the warning.

Steve Langasek
postmodern programmer


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]