Hi, I continue with some doubts :(

Actually I'm building 3 packages: libfoo for the library, libfoo-dev for the
development files and a third foo package for the command line tool to deal
with the library.

I added this info to debian/control

Package: foo
Priority: extra
Maintainer: Alfonso Ruzafa <[email protected]>
Section: apps
Depends: libfoo (>= ${binary:Version})

Then, when I run debuild I get this message error:

dpkg-shlibdeps: failure: couldn't find library libfoo.so.0 needed by
debian/foo/usr/bin/foo (its RPATH is '').
Note: libraries are not searched in other binary packages that do not have
any shlibs or symbols file.
To help dpkg-shlibdeps find private libraries, you might need to set
LD_LIBRARY_PATH.
dh_shlibdeps: dpkg-shlibdeps returned exit code 2
make: *** [binary-arch] Error 1
dpkg-buildpackage: failure: fakeroot debian/rules binary gave error exit
status 2
debuild: fatal error at line 1329:
dpkg-buildpackage -rfakeroot -D -us -uc failed

I export LD_LIBRARY_PATH to ${PWD}/debian/libfoo/usr/lib and run debuild. I
got the same message error.

Then I modify the debian/shlibs.local file:

foo 0 libfoo (>= 0.0.0-0)

And I get the same result.

After reading Chapter 8 of Debian Library Packaging Guide and the Chapter
8.6.5 of Debian policy I still have doubts.

Regards.


2009/10/4 Harry Rickards <[email protected]>

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 04/10/09 17:07, Alfonso Ruzafa wrote:
> > Nevermind.
> >
> > After read the debhelper documentation I uncommented the dh_install line
> > in the debian/rules Makefile:
> >
> > binary-arch: install
> > ...
> > ...
> >     dh_install
> > ...
> > ...
> >
> > Now all files copied in debian/tmp are copied to proper directories
> > libfoo and libfoo-dev applying the libfoo.install and libfoo-dev.install
> > contents respectively.
> >
> > Thanks for all!
> >
> <snip>
>
> Whoops, yeah. I was mistaking dh_installdirs for dh_install.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iJwEAQECAAYFAkrIyNcACgkQ+9DWHFhEn287VQP/ah1dW2/Q6C4CrMxDPjAModoC
> ht83p1GDiMLwf+Et+W7yVzH+aE/OtF1G/M0Fl45rDtSWF0TVnFyfmBowf/fW+Quz
> 5Q9QGnImoRv1IR6uD2Nd0amZ+KnSQLbYIMSWLLqEFH1O5qOpn8KfMiT9DbMdb7yp
> 9LcMyjUrtQtXGIrcuXY=
> =rYM5
> -----END PGP SIGNATURE-----
>



-- 
http://www.legadodekain.net

Reply via email to