RPM Community Forums

Mailing List Message of <rpm-devel>

Re: [PATCH]: possibility to disable dependencies on parent dir

From: Jeff Johnson <n3npq@mac.com>
Date: Sun 24 Feb 2008 - 05:31:23 CET
Message-Id: <C0EB283B-4B50-4973-95DB-1468BF7F1071@mac.com>

On Feb 23, 2008, at 6:49 AM, devzero2000 wrote:

> Pardon, I have been too much synthetic: english is't my first  
> language.
> Then,I do not share the patch proposed in stable branch (rpm 4.4.6  
> and 5).
> The motivations are the same ones expressed in several mail on the  
> argument in the past years, and  I believe in the same reasons.
> In particular, to my opinion, to impose in categorical way that the  
> produced RPM do not depend on directory orphaned would obtain the  
> same ones overal benefits in term of RPM QA that it has had "fascist  
> check" in phase of build, almost for me: ok, is not a corrected  
> comparison, but it renders the idea. Moreover, the system  
> manegiability would be better if all the system components are  
> expressed as package dependency.
>  Moreover the problem, from what I know, is famous from years,  
> leading to the production of instruments as http://enrico-scholz.de/rpmDirectoryCheck/INFO 
> : but i think that it is better that the problem is solved by rpm  
> itself,
> I hope of having express better my thought, Wrong that is, on the  
> argument.

Thank you for clarifying your opinion.

I personally am still unsure whether having files depend on their  
parent directory
(and symlinks depend on their end-point) was the right thing to do in  
rpm or not.

On the positive side, files depending on their parent directory will  
succeed in establishing "ownership" of directories by a package, a  
worthy goal
pointed out by Enrico years ago with rpmDirectoryCheck. Operations  
tied to
creating a directory path, like setting selinux file contexts, are  
also more predictable
and reliable if directories are handled explicitly as part of package  
installs. Managing
unowned or pre-exsiting directories requires some guessing what the  
intended rwx
mode should be.

On the negative side, adding dependencies on parent directories adds  
some additional
modest overhead to dependency solving. The fundamental conceptual  
issue is that
parent directory dependencies are not explicitly included in package  
metadata as other
dependencies are represented. This is surprising and mysterious  
implementation peculier
behavior for many users and applications and distros.

73 de Jeff
Received on Sun Feb 24 05:31:49 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.