[maemo-developers] Packaging - dpkg-shlibdeps problem

From: Graham Cobb g+770 at cobb.uk.net
Date: Tue Oct 12 20:56:53 EEST 2010
On Tuesday 12 October 2010 14:47:05 Felipe Crochik wrote:
> Maybe I got it the "lib" idea wrong: libircclient-qt and
> libircclient-qt-dev share the exact same code the only difference is on
> the Makefile (and control). The dev package installs "everything"
> (headers, lib, mkspecs) and the "release" package just the lib.

Attila's answer is correct, you should have a single source package for both 
packages.  However, I **think** your actual problem is here.  The -dev package 
should *not* install the lib; instead it should depend on the lib package.  
That way, when dh_shlibdeps looks to see which package installed the lib it 
finds the right package.

> Once you are "here" anyway: I would assume there is a way to have both
> libircclient-qt and libircclient-qt-dev not need each to have its own
> "source" code. Is there a "smarter/better/easier" way of creating lib
> packages?

Check the man page for dh_install and create the debian/*.install files to put 
the various files into the right packages (.so into the lib package, everything 
else into -dev).

Graham
More information about the maemo-developers mailing list