Triggers just to avoid unowned directories?

Michael Schwendt mschwendt at gmail.com
Tue Sep 1 05:35:01 UTC 2009


The packaging style in the  nss-softokn  package continues to bug me.

There are RPM triggers being used to install/remove a prelink config file
whenever the prelink package gets installed/removed. According to a comment
in the spec file, it is only done like that because the package doesn't
want to own the  /etc/prelink.conf.d  directory. Nothing else is run in
the scriptlets, just a file is moved or deleted.

Previously, albeit in the different nss package, it used to be duplicate
directory ownership:

  $ repoquery --whatprovides /etc/prelink.conf.d
  prelink-0:0.4.0-7.fc11.i586
  nss-0:3.12.3.99.3-2.11.4.fc11.i586
  nss-0:3.12.3-4.fc11.i586

Is this a result of the recent move to avoid duplicate directory
ownership?

Let's hope that using RPM triggers and messing with config files in
trigger scriptlets is not _the_ solution that will enter also other Fedora
packages. Config files that aren't marked as such, package files which are
moved around and which are removed/overwritten within trigger scriptlets,
confusing RPM package verification and queries.




More information about the devel mailing list