diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-04-11 22:31:20 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-04-12 00:24:12 +0100 |
commit | 2c136255a7db8c57ab595a9c2ee1f32aebefc480 (patch) | |
tree | 96cca0fa30ecb871b839a9429327f1e00f3b24f1 /meta/recipes-devtools/rpm | |
parent | 19e3c031ccbcce655e4a60c4a488e27b09259fba (diff) | |
download | openembedded-core-2c136255a7db8c57ab595a9c2ee1f32aebefc480.tar.gz openembedded-core-2c136255a7db8c57ab595a9c2ee1f32aebefc480.tar.bz2 openembedded-core-2c136255a7db8c57ab595a9c2ee1f32aebefc480.tar.xz openembedded-core-2c136255a7db8c57ab595a9c2ee1f32aebefc480.zip |
package_rpm: Fix useradd preinst ordering issues
We were already having occasional ordering issues with package_rpm.
Fixing the ldconfig postinstall issue pushed rpm over the cliff and
totally broke rpm builds with the packages getting installed in
effectively a random order and the useradd preinstalls getting executed
out of order and breaking.
The only explanation I can find for this is that rpm is special. It will
happily run a preinst for a package without any of that package's
dependencies being present regardless of whether there are any circular
dependency issues or not. I attempted various ways of solving this such
as ordering the total_solution.manifest in creative ways but the bottom
line is RPM ignores this. It takes little account of any request to
ignore /bin/sh dependencies for the purposes of constructing the final
image.
The end result is we're having to install the base-passwd, base-files
and shadow packages first (if there is a request to install them), then
install any other packages.
It this wasn't in the middle of a release I'd be rewriting this bbclass
file, its horrible.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/rpm')
0 files changed, 0 insertions, 0 deletions