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

Re: UNable to configure my package



On Wed, 26 Sep 2007 00:22:16 -0700 (PDT)
varun_shrivastava <varun.celunite@gmail.com> wrote:

> 
> hi
> 
> i have made a package which is a simple gtk application.
> it depends on gtk-directfb-2.0.so.0 ,
> i included this library in the depends field in control file.

That should be the -dev version of that package.
libgtk-directfb-2.0-dev

> after creating the package when i try to install it using dpkg -i 
> it displays following error
> 
> dpkg: dependency problems prevent configuration of clock:
>  clock depends on libgtk-directfb-2.0 (>= 2.2); however:
>   Package libgtk-directfb-2.0 is not installed.

$ sudo apt-get install libgtk-directfb-2.0-0

> the package is installed at /usr/local/lib but i did a make install

You should not mix packaging systems - you still need to install the
libgtk-directfb-2.0-dev binary package (which will bring in the
libgtk-directfb-2.0-0 package as a dependency) using dpkg (via apt or
aptitude). You must also ensure that your package builds against this
version so that it will build on other Debian systems, including the
autobuilders. dpkg cannot be expected to work with software that is
installed directly from upstream source instead of from a Debian binary.

> for this
> library, i haven't installed it from a gtk-directfb package.

Why not? You need to install the package in order to install any
packages that use it.

> Also i found
> that as i have manually installed it, there is no gtk.shlibs file at
> /var/lib/dpkg/info/, so i manually wrote a shlibs.local file in debian/
> directory for my package.
> but still i get this error

Stop working around the lack of the Debian binary - install the binary
from the Debian mirrors and if your package doesn't build against it,
fix your package so that it does. If there is a bug in the Debian
package that prevents your package from working, rebuild
libgtk-directfb-2.0-0 from source, create a patch to fix that bug and
report it to the Debian bug tracking system.

You cannot expect to be able to install your package via dpkg if you
have not also installed *all* the dependencies of that package via dpkg.

Either you use:
Debian --> libgtk-directfb-2.0-0 (/usr/local/) --> clock (/usr/local)
or
Debian ==> libgtk-directfb-2.0-0 (Debian) ==> clock (dpkg install)

You cannot expect it to work as:
Debian --> libgtk-directfb-2.0-0 (/usr/local/) ==> clock (dpkg install)

(where --> represents building the upstream source directly and 
==> represents installing a Debian package.)

-- 


Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/

Attachment: pgp8pYvR_fy6I.pgp
Description: PGP signature


Reply to: