]> git.pld-linux.org Git - packages/setup.git/commit
go back to joinpasswd in %post auto/th/setup-2.10.1-1
authorJan Palus <atler@pld-linux.org>
Sat, 10 Apr 2021 20:21:12 +0000 (22:21 +0200)
committerJan Palus <atler@pld-linux.org>
Sat, 10 Apr 2021 20:21:12 +0000 (22:21 +0200)
commit841dc2f529959132861e802fb35d409048e8659d
tree683f2d5cbe7c5df45b1d48af43d58217349291be
parentb1e86f8f33ea654259f6f058bc1b0354d63a7991
go back to joinpasswd in %post

%triggerpostun is way too late at least with rpm4.

suppose packageA in version 2 requires group G during installation and G
is provided by setup version 2. packageA has R: setup >= 2. user has old
versions of packageA 1 and setup 1 installed and upgrades packageA
pulling new version of setup. both are part of same transaction. rpm4
first installs setup 2 (until %post), than packageA 2 (until %post) and
only then starts cleanup seemingly in reverse dependency order so first
packageA and then setup. that makes %triggerpostun of setup package to
be one of the very last operation while the group G was required at the
very beginning during packageA installation. new group needs to be added
at the point of %post.

joinpasswd used to be part of %post, but moved to %triggerpostun back in
2003 without explanation in commit message. perhaps binary was not
static back then?
setup.spec
This page took 0.051498 seconds and 4 git commands to generate.