Re: binary-or-shlib-defines-rpath error message

2007-10-15 Thread varun_shrivastava

hi


Justin Pryzby-43 wrote:
 
 
 packagename.shlibs is what gets installed to /v/l/d/i.  shlibs.local
 is an additional thing read by dpkg-shlibdeps for cases when someone
 elses public library package doesn't include packagename.shlibs.  In
 this case dpkg wouldn't otherwise be able to find the library package
 to add as a dependency.
 
 

i tried adding library-package-name.shlibs (libsamplerate0.shlibs) file in
debian folder but still it prints the warning

dpkg-shlibdeps: warning: could not find path for libsamplerate.so.0
dpkg-shlibdeps: warning: could not find any packages for 
(libsamplerate.so.0)
dpkg-shlibdeps: warning: unable to find dependency information for shared
library libsamplerate (soname 0, path , dependency field Depends)

the packages that are being built : libsamplerate0, libsamplerate0-dev and
samplerate-programs.
Last one contains only an executable which links to libsamplerate.so.0

the libsamplerate0.shlibs file in debian folder contains a line as 
libsamplerate 0 libsamplerate0 (= 0.1.2)
also in the rules file i am calling dh_shlibdeps as 
dh_shlibdeps -a -l$(CURDIR)/debian/tmp/usr/lib


thanks
varun
-- 
View this message in context: 
http://www.nabble.com/binary-or-shlib-defines-rpath-error-message-tf4607195.html#a13210082
Sent from the debian-mentors mailing list archive at Nabble.com.


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



Re: binary-or-shlib-defines-rpath error message

2007-10-12 Thread Justin Pryzby
On Thu, Oct 11, 2007 at 10:35:30PM -0700, varun_shrivastava wrote:

 Justin Pryzby-43 wrote:
  You shouldn't set rpath to /usr/lib since it's in the default search
  path.
  
 I haven't set the path any where in the rules file. but i am trying to
What I meant was one should not set rpath to /usr/lib or rpath
should not be set to /usr/lib.  Is there some arguments to
./configure you can pass to inhibit setting rpath?  Otherwise you'll
have to munge the upstream build system to get rid of it.

 Justin Pryzby-43 wrote:
  
  You have to supply a ./debian/shlibs file in any package that includes
  public shared libraries (/usr/lib/*.so.*).  It gets installed to
  /usr/lib/dpkg/info/ and searched by dh_shlibdeps when building
  packages to find on what package,version to add a dependency for a
  given objdump -p |grep -we NEEDED line.
 Do i need to provide package-name.shlibs or shlibs.local file in debian
 directory.
packagename.shlibs is what gets installed to /v/l/d/i.  shlibs.local
is an additional thing read by dpkg-shlibdeps for cases when someone
elses public library package doesn't include packagename.shlibs.  In
this case dpkg wouldn't otherwise be able to find the library package
to add as a dependency.

Justin


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



binary-or-shlib-defines-rpath error message

2007-10-11 Thread varun_shrivastava

hi
 i am a newbee in packaging and trying out how to package some already
available source packages

i am trying to pack jpeg62_6b, the package builds successfully but running
lintian shows 
 binary-or-shlib-defines-rpath  ./usr/bin/cjpeg /usr/lib 
the message is same for all binaries in /usr/bin

can some one please explain the reason for this message?

Also while building the same package a warning message is being displayed by
dh_shlibdeps 
here is the message::
dpkg-shlibdeps -Tdebian/libjpeg62-utils.substvars
debian/libjpeg62-utils/usr/bin/cjpeg debian/libjpeg62-utils/usr/bin/djpeg
debian/libjpeg62-utils/usr/bin/rdjpgcom
debian/libjpeg62-utils/usr/bin/wrjpgcom
debian/libjpeg62-utils/usr/bin/jpegtran
dpkg-shlibdeps: warning: could not find path for libjpeg.so.62
dpkg-shlibdeps: warning: could not find path for libjpeg.so.62
dpkg-shlibdeps: warning: could not find path for libjpeg.so.62
dpkg-shlibdeps: warning: could not find any packages for  (libjpeg.so.62)
dpkg-shlibdeps: warning: unable to find dependency information for shared
library libjpeg (soname 62, path , dependency field Depends)
dpkg-shlibdeps: warning: could not find any packages for  (libjpeg.so.62)
dpkg-shlibdeps: warning: unable to find dependency information for shared
library libjpeg (soname 62, path , dependency field Depends)
dpkg-shlibdeps: warning: could not find any packages for  (libjpeg.so.62)
dpkg-shlibdeps: warning: unable to find dependency information for shared
library libjpeg (soname 62, path , dependency field Depends)

what i figured out that the binaries that are getting installed are linking
to the library the package will produce. Any means to provide such kind of
information?


thanks and regards
varun

-- 
View this message in context: 
http://www.nabble.com/binary-or-shlib-defines-rpath-error-message-tf4607195.html#a13155621
Sent from the debian-mentors mailing list archive at Nabble.com.


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



Re: binary-or-shlib-defines-rpath error message

2007-10-11 Thread Justin Pryzby
On Thu, Oct 11, 2007 at 06:17:06AM -0700, varun_shrivastava wrote:
 
 hi
  i am a newbee in packaging and trying out how to package some already
 available source packages
 
 i am trying to pack jpeg62_6b, the package builds successfully but running
Is this the same package that caused dh_strip errors?

 lintian shows 
  binary-or-shlib-defines-rpath  ./usr/bin/cjpeg /usr/lib 
 the message is same for all binaries in /usr/bin
You shouldn't set rpath to /usr/lib since it's in the default search
path.

 can some one please explain the reason for this message?
Debian considereds rpath to be inflexible.

 Also while building the same package a warning message is being displayed by
 dh_shlibdeps 
 here is the message::
 dpkg-shlibdeps -Tdebian/libjpeg62-utils.substvars
 debian/libjpeg62-utils/usr/bin/cjpeg debian/libjpeg62-utils/usr/bin/djpeg
 debian/libjpeg62-utils/usr/bin/rdjpgcom
 debian/libjpeg62-utils/usr/bin/wrjpgcom
 debian/libjpeg62-utils/usr/bin/jpegtran
 dpkg-shlibdeps: warning: could not find path for libjpeg.so.62
You have to supply a ./debian/shlibs file in any package that includes
public shared libraries (/usr/lib/*.so.*).  It gets installed to
/usr/lib/dpkg/info/ and searched by dh_shlibdeps when building
packages to find on what package,version to add a dependency for a
given objdump -p |grep -we NEEDED line.

Justin


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



Re: binary-or-shlib-defines-rpath error message

2007-10-11 Thread Romain Beauxis
Le Thursday 11 October 2007 15:17:06 varun_shrivastava, vous avez écrit :
 hi

Hi !

  i am a newbee in packaging and trying out how to package some already
 available source packages

 i am trying to pack jpeg62_6b, the package builds successfully but running
 lintian shows
  binary-or-shlib-defines-rpath  ./usr/bin/cjpeg /usr/lib
 the message is same for all binaries in /usr/bin

 can some one please explain the reason for this message?

rpath specifies where to find the required library.
Debian wants *not* to use it since it messes with library update: one may want 
to move the library to a new place without breaking binaries depending on it.

 Also while building the same package a warning message is being displayed
 by dh_shlibdeps
 here is the message::
 dpkg-shlibdeps -Tdebian/libjpeg62-utils.substvars
 debian/libjpeg62-utils/usr/bin/cjpeg debian/libjpeg62-utils/usr/bin/djpeg
 debian/libjpeg62-utils/usr/bin/rdjpgcom
 debian/libjpeg62-utils/usr/bin/wrjpgcom
 debian/libjpeg62-utils/usr/bin/jpegtran
 dpkg-shlibdeps: warning: could not find path for libjpeg.so.62
 dpkg-shlibdeps: warning: could not find path for libjpeg.so.62
 dpkg-shlibdeps: warning: could not find path for libjpeg.so.62
 dpkg-shlibdeps: warning: could not find any packages for  (libjpeg.so.62)
 dpkg-shlibdeps: warning: unable to find dependency information for shared
 library libjpeg (soname 62, path , dependency field Depends)
 dpkg-shlibdeps: warning: could not find any packages for  (libjpeg.so.62)
 dpkg-shlibdeps: warning: unable to find dependency information for shared
 library libjpeg (soname 62, path , dependency field Depends)
 dpkg-shlibdeps: warning: could not find any packages for  (libjpeg.so.62)
 dpkg-shlibdeps: warning: unable to find dependency information for shared
 library libjpeg (soname 62, path , dependency field Depends)

 what i figured out that the binaries that are getting installed are linking
 to the library the package will produce. Any means to provide such kind of
 information?

shlibdeps looks for libraries that the binary requires and add the 
coresponding package to the dependencies of the binary package.

This loooks like you have several version of this library installed, like one 
in /usr/local/lib, compiled by yourself, and it screw up shlibdeps since it 
cannot find a package for it.



Romain



Re: binary-or-shlib-defines-rpath error message

2007-10-11 Thread Russ Allbery
Romain Beauxis [EMAIL PROTECTED] writes:

 rpath specifies where to find the required library.  Debian wants *not*
 to use it since it messes with library update: one may want to move the
 library to a new place without breaking binaries depending on it.

It also causes problems for multilib.

-- 
Russ Allbery ([EMAIL PROTECTED])   http://www.eyrie.org/~eagle/


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



Re: binary-or-shlib-defines-rpath error message

2007-10-11 Thread varun_shrivastava


Justin Pryzby-43 wrote:
 
 Is this the same package that caused dh_strip errors?
 
No its not.


Justin Pryzby-43 wrote:
 
 You shouldn't set rpath to /usr/lib since it's in the default search
 path.
 
I haven't set the path any where in the rules file. but i am trying to
install it using following line:
$(MAKE) install prefix=$(CURDIR)/debian/tmp/usr/
DESTDIR=$(CURDIR)/debian/tmp

i added this line only after looking at the rules file of debian pkg already
available on packages.debian.org. Earlier when i tried with  $(MAKE)
install DESTDIR=$(CURDIR)/debian/tmp the make did installation on /usr/*
not in debian/tmp/usr/*. Also after adding line (as given in debian pkg) the
files were installed in debian/tmp/usr/* but two packages (-dev and -utils)
that built contained no directory hierarchy. 
dpkg --contents on -dev and -utils showed only ./

so i modified rules file as shown.

 80 dh_testdir
 81 dh_testroot
 82 dh_clean -k
 83 dh_installdirs -a
 84 mkdir --parents $(CURDIR)/debian/tmp/usr/include \
 85 $(CURDIR)/debian/tmp/usr/bin \
 86 $(CURDIR)/debian/tmp/usr/lib \
 87 $(CURDIR)/debian/tmp/usr/man/man1
 88 
 89 $(MAKE) install prefix=$(CURDIR)/debian/tmp/usr/
DESTDIR=$(CURDIR)/debian/tmp
 90 dh_install -a
 91 mkdir --parents $(CURDIR)/debian/libjpeg62-dev/usr/include \
 92 $(CURDIR)/debian/libjpeg62-dev/usr/lib \
 93 mkdir --parents $(CURDIR)/debian/libjpeg62-utils/usr/bin
 94 
 95 install $(CURDIR)/debian/tmp/usr/include/*
$(CURDIR)/debian/libjpeg62-dev/usr/include/
 96 ln -sf libjpeg.so.62.0.0
$(CURDIR)/debian/libjpeg62-dev/usr/lib/libjpeg.so
 97 install $(CURDIR)/debian/tmp/usr/lib/lib*.a
$(CURDIR)/debian/libjpeg62-dev/usr/lib/
 98 install $(CURDIR)/debian/tmp/usr/lib/lib*.la
$(CURDIR)/debian/libjpeg62-dev/usr/lib/
 99 
100 install $(CURDIR)/debian/tmp/usr/bin/*
$(CURDIR)/debian/libjpeg62-utils/usr/bin/
101 
102 dh_link -a
103 dh_compress -a
104 dh_fixperms -a

the output in verbose mode of dh_install -a is

dh_install -a
install -d debian/libjpeg62//usr/lib
cp -a ./debian/tmp/usr/lib/libjpeg.so.62 debian/libjpeg62//usr/lib/
cp -a ./debian/tmp/usr/lib/libjpeg.so.62.0.0
debian/libjpeg62//usr/lib/
As you can see only one package is getting installed and rest of the two
packages built were empty.
Thats why i added lines below dh_install -a in the rules file.




Justin Pryzby-43 wrote:
 
 can some one please explain the reason for this message?
 Debian considereds rpath to be inflexible.
 



Justin Pryzby-43 wrote:
 
 You have to supply a ./debian/shlibs file in any package that includes
 public shared libraries (/usr/lib/*.so.*).  It gets installed to
 /usr/lib/dpkg/info/ and searched by dh_shlibdeps when building
 packages to find on what package,version to add a dependency for a
 given objdump -p |grep -we NEEDED line.
 
 Justin
 
Do i need to provide package-name.shlibs or shlibs.local file in debian
directory.
-- 
View this message in context: 
http://www.nabble.com/binary-or-shlib-defines-rpath-error-message-tf4607195.html#a13169417
Sent from the debian-mentors mailing list archive at Nabble.com.


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