Bug 1983449

Summary: BuildRequires += sfdisk (util-linux) : requires addition of /usr/sbin to default user $PATH
Product: [Fedora] Fedora Reporter: Jason Vas Dias <jason.vas.dias>
Component: systemdAssignee: systemd-maint
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: fedoraproject, filbranden, flepied, kasong, lnykryn, msekleta, ssahani, s, systemd-maint, yuwatana, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-20 11:12:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jason Vas Dias 2021-07-18 16:42:06 UTC
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 1 Zbigniew Jędrzejewski-Szmek 2021-07-20 11:12:21 UTC

*** This bug has been marked as a duplicate of bug 1983450 ***