Red Hat Bugzilla – Bug 1476005
systemd fails to build for non-root system user
Last modified: 2017-07-31 16:19:29 EDT
Description of problem:
When trying to build systemd as a non-root system user my builds fail on the tests. Example: if mockbuild's uid is set to 996
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Create a system user
2.rebuild the systemd rpm as that system user
ConditionUser=996 → 1
ConditionUser=997 → 0
ConditionUser=mockbuild → 1
ConditionUser=root → 0
ConditionUser=@system → 1
Assertion 'r == 0' failed at ../src/test/test-condition.c:396, function test_condition_test_user(). Aborting.
And then normal failling errors after that.
rpm to build
This is a known bug already fixed upstream with a simple one line fix.
Created attachment 1305642 [details]
Patch to fix builds for non-root system users
I have attached a patch that fixes the test for non-root system users.
This is blocking some automated building for the bootstrap and module team. We understand that there is a workaround on our end, by raising our mockbuild uid to 1000 or above. But we are concerned about hitting this again on other systems, so if we could get this fixed in a timely manner we would appreciate it.
We understand that time is important and that not everyone has time to work on bug that don't directly affect their builds. If you are unable to update the rpm within two weeks, we will have a proven packager apply the patch in this bug.
If you know you will be too busy and wouldn't mind us applying it sooner, just let us know.
This was already fixed upstream: https://github.com/systemd/systemd/commit/708d423915. I'll push that patch instead.