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): systemd-234-3.fc27 How reproducible: 100% Steps to Reproduce: 1.Create a system user 2.rebuild the systemd rpm as that system user 3. Actual results: ... 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. Expected results: rpm to build Additional info: This is a known bug already fixed upstream with a simple one line fix. https://github.com/systemd/systemd/issues/6366
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.