Bug 741144 - zif localinstall treats >= dependency as >
Summary: zif localinstall treats >= dependency as >
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: zif
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard Hughes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-26 01:04 UTC by nucleo
Modified: 2011-09-26 10:22 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-09-26 10:22:22 UTC


Attachments (Terms of Use)

Description nucleo 2011-09-26 01:04:44 UTC
Description of problem:
zif localinstall failed:
The transaction failed: nothing provides [kdebase-runtime > 4.7.00] which is required by digikam-2.1.1-2.fc16.x86_64 (local)

Version-Release number of selected component (if applicable):
zif-0.2.4-1.fc16

Steps to Reproduce:
1. Try to install local rpm that requires dependencies from remote repo
2.
3.
  
Actual results:
Transaction failed because of missing dependency but needed package [kdebase-runtime > 4.7.00] available in repo.

Expected results:
All deps needed from repo for local rpm should be installed.

Additional info:
When installing kdebase-runtime with "zif install kdebase-runtime" it found:
kdebase-runtime-4.7.0-3.fc16.x86_64 (fedora)

Comment 1 nucleo 2011-09-26 01:05:56 UTC
And by the way zif consumes too much CPU, much more than yum that makes my F16 vm unusable (with yum works fine).

Comment 2 nucleo 2011-09-26 01:36:59 UTC
This rpms I tried to install with localinstall
http://koji.fedoraproject.org/scratch/nucleo/task_3375632/

Comment 3 Richard Hughes 2011-09-26 08:36:11 UTC
Hmm, interesting bug.

I see:

---
zif dep-provides kdebase-runtime
	[kdebase-runtime = 4.7.0-3.fc16]
	[kdebase-runtime(x86-64) = 4.7.0-3.fc16]
---

And the local package is requesting "kdebase-runtime > 4.7.00" which shouldn't match according to Zif.

---
zif what-provides  "kdebase-runtime > 4.7.00"
There are no packages to show.
---

But this works:

---
zif what-provides  "kdebase-runtime = 4.7.00"
kdebase-runtime-4.7.0-3.fc16.i686 (fedora)     KDE Runtime
kdebase-runtime-4.7.0-3.fc16.x86_64 (fedora)   KDE Runtime
---

So, is "kdebase-runtime > 4.7.00" supposed to match "kdebase-runtime = 4.7.0-3.fc16" as in my eyes it probably shouldn't. Ideas welcome.

Comment 4 nucleo 2011-09-26 09:45:47 UTC
No such problem when installing digikam from repo.
digikam in repo also have the same Requires as local rpm kdebase-runtime >= 4.7.00.

Comment 5 Kevin Kofler 2011-09-26 09:48:33 UTC
Actually, the package has a >= dependency, not a > dependency, the bug is there.

Comment 6 Richard Hughes 2011-09-26 10:22:22 UTC
(In reply to comment #5)
> Actually, the package has a >= dependency, not a > dependency, the bug is
> there.

Hmm, you're correct:

rpm -q --requires --package digi* | grep kdebase-runtime
kdebase-runtime >= 4.7.00

So, it's easy to fix this in zif:

commit 3f7d2eac31c5feb9604d3c06aea584e40ff44f7c
Author: Richard Hughes <richard@hughsie.com>
Date:   Mon Sep 26 11:15:27 2011 +0100

    Correctly parse local file >= or <= depends
    
    Resolves https://bugzilla.redhat.com/show_bug.cgi?id=741144

Using this commit gives me:

Transaction summary:
  Installing:
  1.	digikam-2.1.1-2.fc16.x86_64 (local)
  2.	digikam-libs-2.1.1-2.fc16.x86_64 (local)
  Installing for dependencies:
  1.	cagibi-0.2.0-1.fc16.x86_64 (fedora)
  2.	gpsd-libs-2.95-7.fc16.x86_64 (fedora)
  3.	htdig-4:3.2.0-0.11.b6.fc15.x86_64 (fedora)
  4.	kdebase-runtime-4.7.0-3.fc16.x86_64 (fedora)
  5.	kdebase-runtime-flags-4.7.0-3.fc16.noarch (fedora)
  6.	kdebase-runtime-libs-4.7.0-3.fc16.x86_64 (fedora)
  7.	kdeedu-marble-4.7.0-1.fc16.x86_64 (fedora)
  8.	kdeedu-marble-libs-4.7.0-1.fc16.x86_64 (fedora)
  9.	kdepimlibs-4.7.0-1.fc16.x86_64 (fedora)
  10.	libkdcraw-4.7.0-1.fc16.x86_64 (fedora)
  11.	libkexiv2-4.7.0-1.fc16.x86_64 (fedora)
  12.	libkface-2.0.0-4.fc16.x86_64 (fedora)
  13.	libkgeomap-2.0.0-4.fc16.x86_64 (fedora)
  14.	libkipi-4.7.0-1.fc16.x86_64 (fedora)
  15.	liblqr-1-0.4.1-2.fc15.x86_64 (fedora)
  16.	libssh-0.5.0-1.fc16.x86_64 (fedora)
  17.	opencv-2.3.1-1.fc16.x86_64 (fedora)
  18.	openni-1.0.0.25-0.5.git4c9ff978.fc16.x86_64 (fedora)
  19.	openslp-1.2.1-15.fc15.x86_64 (fedora)
  20.	oxygen-icon-theme-4.7.0-1.fc16.noarch (fedora)
  21.	tbb-3.0-1.20110419.fc16.x86_64 (fedora)
  22.	tinyxml-2.6.1-2.fc15.x86_64 (fedora)
Total download size: 65.2 MB
Run transaction? [y/N] 

nucleo, can you please verify the fix by trying a git snapshot build available here please: http://people.freedesktop.org/~hughsient/fedora/15/SRPMS/

Thanks,

Richard.


Note You need to log in before you can comment on or make changes to this bug.