RPM

RFE: Add a /var/lib/rpm-state directory

Bug #913626 reported by Jeff Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
RPM
New
Undecided
Unassigned
Fedora
Fix Released
Undecided

Bug Description

tracker: totally insane idea that is already solved (by using embedded lua)

Tags: fedora lua
Revision history for this message
In , Toshio (toshio-redhat-bugs) wrote :

Description of problem:

Sometimes it's possible to write rpm scriptlets that start operation in one scriptlet but finish operation in another. One concrete usage is when updating a cache after a type of rpm is installed. The program that is run to update the cache only needs to be run once so the rpm package can use %post and %postun to write out a file flagging that the cache-creating program needs to be run and then %posttrans can actually invoke the program if that file exists (and delete the file after running).

We need a place to store those files that pass state information from one rpm scriptlet to another. The FPC has recently approved use of subdirectories of /var/lib/rpm-state for a couple guidelines for this purpose. It would be nice to have one package that owns the /var/lib/rpm-state directory rather than multiple packages (each time a set of packages needs to save state). Could it be added to the rpm package?

Jeff Johnson (n3npq)
tags: added: fedora lua
Revision history for this message
In , Panu (panu-redhat-bugs) wrote :

Adding a single directory to the rpm package is not a big deal, but it doesn't really ensure the directory will be there when needed. On initial install, rpm itself gets installed relatively late in the process and there could've been any number of these "stateful" scripts executed by then. From that POV, filesystem package would be a better choice for the directory.

Revision history for this message
In , Toshio (toshio-redhat-bugs) wrote :

Makes sense to me. /me retargets to filesystem.

Revision history for this message
In , Ondrej (ondrej-redhat-bugs) wrote :

Makes sense ... added to filesystem package in filesystem-2.4.46-1.fc17 . Closing RAWHIDE.

Changed in fedora:
importance: Unknown → Undecided
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.