[Rpm-maint] R: config(N) = EVR dependencies

pinto.elia at gmail.com pinto.elia at gmail.com
Wed Jun 8 18:34:49 UTC 2011

If you like an opinion, in the git mailing list if someone ask something like this the answer is : ask to the author. And the author in this case is not on this mailing list. Other can have their opinion sure. But you know already. Regards
----Messaggio originale----
Da: Michael Schroeder
Inviato:  08/06/2011, 18:11 
A: rpm-maint at lists.rpm.org
Oggetto: [Rpm-maint] config(N) = EVR dependencies

Does anybody know/remember what those config() dependencies
are good for?  They were added back in 2002(!) by commit e788b7c1.
I see that a package gets a

    Provides: config(N) = EVR

if it includes a config file, but why is that also added as Requires,
as the require is always fulfilled by the package itself? Why would
another package require that a package contains a config file?

There's a use case for a config() provides without the N,
we have a perl script that checks if there are any unresolved
(.i.e. .rpmnew...) config files. It would be much faster if 
the search could be limited to all packages that contain config
files. With config(N), I could use the new IndexIterator to
find all config(*) provides, then query each of them for


Michael Schroeder                                   mls at suse.de
SUSE LINUX Products GmbH,  GF Jeff Hawn, HRB 16746 AG Nuernberg
Rpm-maint mailing list
Rpm-maint at lists.rpm.org

More information about the Rpm-maint mailing list