Red Hat Bugzilla – Bug 367971
mock fails due using "useradd -n"
Last modified: 2013-01-09 20:43:17 EST
Description of problem:
Mock internally uses "/usr/sbin/useradd -n" to setup its accounts on guest systems.
"-n" is a redhat proprietary addition to useradd, i.e. non-portable and likely
non-available on guest systems.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Set up a mock *cfg for non-redhat systems.
2. mock init fails.
This bug is a return of an old bug which previously had affected early versions
of mock, but had not been present for quite a while (mock-0.6.x).
It renders fedora and mock unusable as host platform/build environment for
building rpms for "other distros".
Fixed in mock 0.8.5. There is a 'useradd' config option to set the path and args
to useradd. Please note that the format of this option has changed since 0.7, so
config sharing between old and new versions will not work.
It still seems to have escaped to you that the upgrade to mock-0.8.x also broken
all customized *.cfg's, broke all build-scripts using caches, and leaves caches
laying around on FC7.
IMNSHO, this upgrade should not have been performed, due all the ABI breakages
it implies. So far all these changes, oversights and bugs have cost me at least
2 days without having been able to resurrect my local buildsystem yet.
Where's the rpm? I can't find it, neither in bodhi nor in updates.