Bug 159922 - RFE: 2-Pass scanning of rpms for filerequires
RFE: 2-Pass scanning of rpms for filerequires
Product: Fedora
Classification: Fedora
Component: createrepo (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Paul Nasrat
: FutureFeature
Depends On:
  Show dependency treegraph
Reported: 2005-06-09 06:21 EDT by Phil Knirsch
Modified: 2015-03-04 20:14 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-11-28 14:47:46 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch to add 2 pass scanning of rpms for filerequires to createrepo (2.74 KB, patch)
2005-06-09 06:23 EDT, Phil Knirsch
no flags Details | Diff

  None (edit)
Description Phil Knirsch 2005-06-09 06:21:36 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050524 Fedora/1.0.4-4 Firefox/1.0.4

Description of problem:
createrepo currently uses several regexes to determine which files need to be included into the primary.xml headers.

This works for small installations or updates, but as soon as gnome applications or httpd e.g. are involved this fails and yum has to revert to the complete filelist.

I've written a patch for createrepo that does a 2 pass run over the rpms. In the first run it grabs all filerequires of every package and adds them to the regex set for the otherwise unchanged normal pass.

Patch has been tested and works correctly.

Generally speaking this allows complete dependancy resolution using just the primary.xml for one repo.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Try to install openmotif with yum on a system without xorg-x11-libs installed
2. See yum needing to revert to the filelist.xml as /usr/X11R6/lib/X11/XKeysymDB isn't in the primary.xml for xorg-x11-libs
3. Use the repo created with the patched createrepo and see it working. ;)

Actual Results:  Yum needs to fall back to filelist.xml

Expected Results:  The primary.xml should have already contained all know filerequires in addition to the autogenerated regex ones.

Additional info:
Comment 1 Phil Knirsch 2005-06-09 06:23:00 EDT
Created attachment 115256 [details]
Patch to add 2 pass scanning of rpms for filerequires to createrepo
Comment 2 Paul Nasrat 2005-06-09 08:03:41 EDT
Phil for future reference - duke has it's own bugzilla for metadata/yum.  There
is also the rpm metadata and yum-devel lists which are probably better places
for discussion on such things.

The selection in createrepo was done deliberately please see the archives for


Please consieder raising directly upstream as with normal open source practice.
Comment 3 Phil Knirsch 2005-06-09 08:18:46 EDT
Hi Paul!

Thanks for directing me there, i just wanted to make sure i don't forget putting
down the ideas i had somehwere "presistent".

I'll subscribe to the 2 mailinglists and will post my ideas there as i
completely agree that if at all this needs to be done upstream.

Sorry for the bugzilla spam, but it's the only "safe" place i know to keep these
things persistent. :)

Read ya, Phil
Comment 4 Paul Nasrat 2005-06-09 08:23:28 EDT
I understand wanting to keep things persistent - many projects have there own
bugzilla too:


Comment 5 Paul Nasrat 2005-11-28 14:47:46 EST
This is being pursued upstream.

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