[Bug 904351] New: RPM: request for a scriptlet in new package that runs after old-%postun
From time to time there are issues that during RPM package update
http://bugzilla.opensuse.org/show_bug.cgi?id=904351 Bug ID: 904351 Summary: RPM: request for a scriptlet in new package that runs after old-%postun Classification: openSUSE Product: openSUSE Factory Version: 201411* Hardware: All OS: SUSE Other Status: NEW Severity: Enhancement Priority: P5 - None Component: Other Assignee: bnc-team-screening@forge.provo.novell.com Reporter: jsmeix@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- the new package would need to fix or clean up stuff after the old package was removed. See /usr/share/doc/packages/rpm/manual/triggers for the order in which scripts are executed on a single package upgrade, in particular (excerpt): ---------------------------------------------------------------------------- new-%pre for new version of package being installed ... (all new files are installed) new-%post for new version of package being installed ... old-%preun for old version of package being removed ... (all old files are removed) old-%postun for old version of package being removed ---------------------------------------------------------------------------- Currently all RPM scriptlets of the new package are run before the old package stuff is done (in particular before the files of the old package get actually removed). If there was a scriptlet in the new package that is run after the old package stuff was done, that scriptlet could be used to fix or clean up stuff at the very end of a package update. Assume such a scriptlet is called "finalize". It is run only by the new package after all stuff of the old package was done so that the new workflow would be as follows: ---------------------------------------------------------------------------- new-%pre for new version of package being installed ... (all new files are installed) new-%post for new version of package being installed ... old-%preun for old version of package being removed ... (all old files are removed) old-%postun for old version of package being removed new-%finalize for new version of package being installed ---------------------------------------------------------------------------- -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=904351 Johannes Meixner <jsmeix@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dominian@slackadelic.com, | |thomas.blume@suse.com Found By|--- |Development Blocks| |904215 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=904351 --- Comment #1 from Johannes Meixner <jsmeix@suse.com> --- According to /usr/share/doc/packages/rpm/manual/triggers in the new RPM only "new-%posttrans" would run after all stuff of the old package was done so that a posttrans scriptlet in the new package could be theorectically used to fix or clean up stuff at the very end of a package update. But as far as I know %pretrans and %posttrans scriptlets are basically forbidden in the openSUSE build service because they cause issues but I don't know the details. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=904351 Bernhard Wiedemann <bwiedemann@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bwiedemann@suse.com, | |ro@suse.com Assignee|bnc-team-screening@forge.pr |mls@suse.com |ovo.novell.com | -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com