---------- Forwarded message ----------
From: Michael Schwendt <mschwendt(a)gmail.com>
Date: 2009/11/29
Subject: Re: regarding spotting unowned directories in fedora
To: Rakesh Pandit <rakesh.pandit(a)gmail.com>
On Fri, 27 Nov 2009 14:18:35 +0530, Rakesh wrote:
Hello Michael,
I believe you have a script which can figure out unowned directories
in a package. May you post it to me. I want to have a look at it and
develop a check which can go into gach[1]. I also request you to fill
up some tickets for all guideline checks which you consider can be
automated into out trac instance[2], in case you feel like doing it :)
I haven't been able to invest time in this project for long now, but
these days I am fairly active and am planning release near new year
eve. It would be great if you can help in figuring out what all checks
can be automated.
As you might already know I plan to try implementing checks in rpmlint
.. but in case they don't go there and are hybrid checks as in require
inspection of srpms, logs, source in mix, or interaction with koji, or
other build systems will do that.
Thanks,
[1]
https://fedorahosted.org/gach
[2]
https://fedorahosted.org/gach/newticket
Hi!
The tool is called "dircheck-remote" and has not been developed
further since Jan/Feb. As I've pointed to it in bugzilla, it's
still found in a public place, though:
http://mschwendt.fedorapeople.org/dircheck-remote.py
Yum API has changed a few months ago once more and required a small
update.
By default, it evaluates yum.conf and enabled repos, but it can
also be told to look at specific repos or specific packages only,
such as:
$ dircheck-remote.py -n ^ypserv
[...]
=> ypserv-2.19-13.fc12.src.rpm
=> ypserv-2.19-13.fc12.i686 (fedora)
/usr/include/rpcsvc
provided by: 1:quota-devel-3.17-8.fc12.i686
provided by: glibc-headers-2.11-2.i686
Any path it prints, is "unowned". The "provided by" lines are hints
about what other packages own a directory.
Note that one big problem caused by unowned directories is gone
as of RPM 4.4.2.3:
https://fedoraproject.org/wiki/Packaging:UnownedDirectories#Inaccessible_...
With that item no longer being an issue, the problem of unowned
directories is less interesting. What's left is that -- regularly --
discovering unowned directories leads to discovering major mistakes made
in a package. e.g. misplaced files, bad subpackage dependencies.
The most recent RPM (announced on fedora-devel-list some days ago) will do
ordered package erasures. To include a directory in the _right_ package
instead of in an arbitrary package of a dependency-chain is something that
hasn't been checked before. Basically, with a weird dependency-chain, it
is possible to own a directory in a package that would be installed _last_
and erased _first_. That would lead to unremoved directories _after_
erasing packages. A related problem, but would require a check that
simulates in which order RPM will erase a set of packages.
--
Michael Schwendt <mschwendt(a)fedoraproject.org>
Fedora release 12 (Constantine) - Linux 2.6.31.6-145.fc12.i686.PAE
loadavg: 1.59 1.75 1.83
--
Rakesh Pandit
https://fedoraproject.org/
freedom, friends, features, first