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

"Provides: foo" doesn't satisfy "Depends: foo"



Howdy all,

(I'm not currently subscribed to debian-user, please Cc: me on replies.)

On a box I administrate, I want to run analog.  Analog "Depends:
libgd1" to draw graphs:

=====
$ apt-cache show analog |grep Depends
Depends: libc6 (>= 2.2.4-4), libgd1 (>= 1.8.4-7), libjpeg62, libpcre3, libpng2 (>= 1.0.12), zlib1g (>= 1:1.1.3), perl5
=====

However, I don't want to install the X packages that libgd1 requires.
No problem, because the maintainer has thoughtfully provided
libgd1-noxpm for exactly this purpose:

=====
$ dpkg -s libgd1-noxpm
Package: libgd1-noxpm
Status: install ok installed
Priority: optional
Section: libs
Installed-Size: 404
Maintainer: Jonas Smedegaard <dr@jones.dk>
Source: libgd
Version: 1.8.4-16
Replaces: libgd1g
Provides: libgd1g, libgd1
Depends: libc6 (>= 2.2.4-4), libfreetype6, libjpeg62, libpng2 (>= 1.0.12), zlib1g (>= 1:1.1.4)
Conflicts: libgd1g, libgd1
Description: GD Graphics Library (without XPM support).
 GD is a graphics library. It allows your code to quickly draw images
 complete with lines, arcs, text, multiple colours, cut and paste from
 other images, flood fills, and write out the result as a PNG file.
 This is particularly useful in World Wide Web applications, where PNG is
 one of the formats accepted for inline images by most browsers.
 .
 This is the runtime package of the library built without XPM support.
=====

So, if I've installed libgd1-noxpm, which "Provides: libgd1", at version
1.8.4-16, that satisfies analog's dependency on "libgd1 (>= 1.8.4-7)".
Right?

Wrong:

=====
$ sudo dpkg -i /usr/local/packages/analog_5.22-1_i386.deb 
Selecting previously deselected package analog.
(Reading database ... 17855 files and directories currently installed.)
Unpacking analog (from .../analog_5.22-1_i386.deb) ...
dpkg: dependency problems prevent configuration of analog:
 analog depends on libgd1 (>= 1.8.4-7); however:
  Package libgd1 is not installed.
dpkg: error processing analog (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 analog
=====

What the heck is going on here?  Why is dpkg apparently ignoring the
"Provides:" data?  Does apt use the "Provides" and "Depends" metadata as
I expect, or is something whacky going on?

-- 
 \             "Those are my principles. If you don't like them I have |
  `\                                         others."  -- Groucho Marx |
_o__)                                                                  |
bignose@zip.com.au  F'print 9CFE12B0 791A4267 887F520C B7AC2E51 BD41714B


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: