Bug 1983449 - BuildRequires += sfdisk (util-linux) : requires addition of /usr/sbin to default user $PATH
Summary: BuildRequires += sfdisk (util-linux) : requires addition of /usr/sbin to defa...
Keywords:
Status: CLOSED DUPLICATE of bug 1983450
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 34
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-18 16:42 UTC by Jason Vas Dias
Modified: 2021-07-20 11:12 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-07-20 11:12:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.