Description of problem:
Please add
BuildRequires: util-linux
to the spec file, since the test suite fails if this is not installed,
AND ensure that /usr/sbin is in $PATH for the build -
When I built with no /usr/sbin in my $PATH, as a non-root user
normally would , the build fails, with end-of-log :
"...
All done.
+ grep -v -e sector-size -e '^$'
+ sfdisk -d /tmp/test-repart.vpxHpruSQk/zzz
/home/jvd/rpmbuild/BUILD/systemd-stable-248.4/src/partition/test-repart.sh: line 20: sfdisk: command not found
+ rm -rf /tmp/test-repart.vpxHpruSQk
-------
Summary of Failures:
324/617 udev-test SKIP 0.07s
331/617 test-repart FAIL 0.08s (exit status 1)
...
Version-Release number of selected component (if applicable):
248.4-1.fc34
How reproducible:
100%
Steps to Reproduce:
Try to rebuild SRPM as non-root user without /usr/sbin in $PATH .
Actual results:
Build fails.
Expected results:
Build should succeed.
Additional info:
Comment 1Zbigniew Jędrzejewski-Szmek
2021-07-20 11:12:21 UTC
*** This bug has been marked as a duplicate of bug 1983450 ***