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

dependencies problem



Hello,

I have following problem, the package in question is x11amp.
Warning: I'm inexperienced in these waters, so please ignore
any obnoxious stupidity later in the text :)

First problem was that it has a 'plugin' for output, that
is a library, namely libOSS.so.0.9.0. It is kind of awkward,
because it is supposed to go into /usr/share, and this is output
of ldd and file on it:
# ldd /usr/share/x11amp/Output/libOSS.so.0.9.0
        libgtk-1.1.so.14 => /usr/lib/libgtk-1.1.so.14 (0x4000a000)
        libgdk-1.1.so.14 => /usr/lib/libgdk-1.1.so.14 (0x40127000)
        libgmodule-1.1.so.13 => /usr/lib/libgmodule-1.1.so.13 (0x4015d000)
        libglib-1.1.so.13 => /usr/lib/libglib-1.1.so.13 (0x40160000)
        libdl.so.2 => /lib/libdl.so.2 (0x40182000)
        libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x40185000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x4018d000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40199000)
        libm.so.6 => /lib/libm.so.6 (0x4023d000)
        libx11amp.so.0 => /usr/lib/libx11amp.so.0 (0x40256000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x40259000)
        libc.so.6 => /lib/libc.so.6 (0x40266000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2aaaa000)
# file /usr/share/x11amp/Output/libOSS.so.0.9.0
/usr/share/x11amp/Output/libOSS.so.0.9.0: ELF 32-bit LSB shared object,
Intel 80386, version 1, stripped

So, I'll have to move these to /usr/lib/whatever, right?

But that wasn't the real problem. In current version authors have
decided to make libx11amp, and this libOSS depends on it with -lx11amp.
So I had to include -L`pwd`/../../libx11amp/.libs in the LDFLAGSish
variable of that directory's Makefile{.am}. In light of recent problems
with libtoolized programs (and x11amp is one of those) I feared that
-rpath will be used. Fortunately it wasn't, possibly due to something
in debian/rules that I inherited from Stephen Crowley (sed replacing
something LIBTOOL_IS_A_FOOL in libtool file).

So the building passes somehow. Then comes dpkg-shlibdeps. At first
it died with some message about not finding dependencies for that
libOSS thing. Of course, because libx11amp is not installed yet in
library paths, silly me. Then I put dh_makeshlibs before dh_shlibdeps
in debian/rules, and it worked, somehow.

But that produced one other error. I installed the resulting .deb,
to make sure it's okay. It was, so I ran dpkg-buildpackage to do
everything for me. And it did, more than everything :) From the
x11amp.shlibs file made by dh_makeshlibs, it concluded that the
newly built libOSS depends on libx11amp, and libx11amp is in x11amp
package. And now my Depends: line contains x11amp :(

The quick fix is of course to write my own Depends: line, but that
can only lead to problems in the future since the software will
most probably change. So, which one of these things did I do
incorrectly, and what is the strategy on this?

Thanks.

--
enJoy -*/\*- http://jagor.srce.hr/~jrodin/


Reply to: