# rpm -Uvh libpng-1.0.3-4.i386.rpm libpng ################################################## # rpm -ivh libpng-devel-1.0.3-4.i386.rpm error: failed dependencies: libpng = 1:1.0.3 is needed by libpng-devel-1.0.3-4 The dependency failure above appears to be a typo in the SPEC for libpng-devel. Work around, of course, --nodeps.
Are you using the RPM that shipped with RHL6.1? You need it to understand that dependency format.
Yes... # rpm -q rpm rpm-3.0.3-2
I can't reproduce this problem on i386 using the 6.1 packages rpm-3.0.3-2 libpng-1.0.3-4 libpng-devel-1.0.3-4 However, you are probably using a libpng.spec that didn't have %package devel ... Requires: libpng = 1:1.0.3-4 You might also want to double check the rpm version -- there were changes in handling versioned dependencies in the 2 weeks before 6.1 was frozen that exhibited the behavior that you are describing. BTW, it's not a typo -- the libpng package has an epoch (i.e. the leading 1:) that's part of the dependency. This is new in rpm-3.0.3.
I will take your word that it is fixed... here is the rpm version I have installed... downloaded from a mirror site 2 days ago. If this opens the bug.. you can resolve it again.. just FYI ftp://gatekeeper.dec.com/pub/linux/redhat/redhat-6.1/i386/RedHat/RPMS/rpm-3.0.3-2.i386.rpm [root@C386420-A gd]# rpm -qi rpm Name : rpm Relocations: (not relocateable) Version : 3.0.3 Vendor: Red Hat Software Release : 2 Build Date: Sat 25 Sep 1999 08:49:11 PM EDT Install date: Fri 15 Oct 1999 06:40:20 PM EDT Build Host: porky.devel.redhat.com Group : System Environment/Base Source RPM: rpm-3.0.3-2.src.rpm Size : 2914363 License: GPL Packager : Red Hat Software <http://developer.redhat.com/bugzilla> Summary : The Red Hat package management system. Description : The Red Hat Package Manager (RPM) is a powerful command line driven package management system capable of installing, uninstalling, verifying, querying, and updating software packages. Each software package consists of an archive of files along with information about the package like its version, a description, etc.
re-resolving...
The typo strikes back :) ---- rpm -Uvh /usr/src/redhat/RPMS/i386/libpng-devel-1.0.6-1.i386.rpm error: failed dependencies: libpng = 2:1.0.6 is needed by libpng-devel-1.0.6-1 ---- This should probably be 1:1.0.6.