On Tue, Jan 08, Dan Stromberg wrote:
We have about 1.5 dozen files (EG inittab) that are owned by openSUSE and SLES, and also owned by an RPM that holds our product.
I gather this is generally considered poor practice - just how bad is it?
Very simple: the result is undefined. This works as long as this files are identical. If they are not, you don't know which version will win.
If we install the OS, install our product, then remove our product, are we in for losing those OS files? Will the changes be reverted (I'm guessing they won't be reverted)?
I don't know if this files will be removed, I would expect that your files will stay. But they will not be reverted to the OS one.
What if we never uninstall it? It would seem to violate the principle of least surprise to have an RPM you should "just never uninstall", but is there more to it than that?
I don't see a difference here, at least after the next update of such a package, it depends on the flags of this files which will "win" and be there afterwards. It does not need to be your version, could very well be the OS one, even if your application will not be uninstalled.
What if we had our RPM's make algorithmic changes to files like inittab instead of trying to own the files, and then have those same RPM's attempt to algorithmically revert the changes on rpm deletion - would that leave us in the same situation as having two RPM's owning a given file? I'm guessing not, but I'd like to make sure we cover all the bases.
This will be a correct solution. Thorsten -- Thorsten Kukuk, Project Manager/Release Manager SLES SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg GF: Markus Rex, HRB 16746 (AG Nuernberg) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org