[Bug 870694] excessive hourly cron job

bugzilla at redhat.com bugzilla at redhat.com
Sun Oct 28 04:32:03 UTC 2012


https://bugzilla.redhat.com/show_bug.cgi?id=870694

Garrett Holmstrom <gholms at fedoraproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gholms at fedoraproject.org

--- Comment #1 from Garrett Holmstrom <gholms at fedoraproject.org> ---
You (the maintainer) can get rid of the delay between package installation and
doc-readiness by running that in every package's %post instead.  If the number
of times it might run in a large rpm transaction bothers you then you can
instead employ %posttrans and a temporary file to run it at most once per
transaction:

1. Add a new /var/lib/rpm-state/ghc directory to the ghc package.
2. Add a new, %ghosted /var/lib/rpm-state/ghc/update-doc-index file to the ghc
package.  (This specific file name is merely illustrative.)
3. Have every Haskell package's %post and %preun script touch
/var/lib/rpm-state/ghc/update-doc-index.
4. Add a %posttrans section to every Haskell package that checks if
/var/lib/rpm-state/ghc/update-doc-index exists, and if it does, it deletes that
file and then updates the doc index.  This is a great candidate for an rpm
macro.

How to deal with a transaction that removes ghc from the system completely is
left as an exercise to the reader.

Relevant packaging standard: 
http://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Saving_state_between_scriptlets

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the haskell-devel mailing list