RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1506245 - Change requires from /usr/bin/sed to /bin/sed
Summary: Change requires from /usr/bin/sed to /bin/sed
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: openvswitch
Version: 7.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Timothy Redaelli
QA Contact: ovs-qe
URL:
Whiteboard:
Depends On:
Blocks: 1475436
TreeView+ depends on / blocked
 
Reported: 2017-10-25 13:32 UTC by Timothy Redaelli
Modified: 2018-04-12 12:11 UTC (History)
9 users (show)

Fixed In Version: openvswitch-2.9.0-1.el7fdp
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-19 10:22:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0550 0 None None None 2018-03-19 10:24:00 UTC

Description Timothy Redaelli 2017-10-25 13:32:33 UTC
RHEL have sed on /bin/sed (rpm -ql sed | grep /bin/sed) so change the requires from /usr/bin/sed to /bin/sed

Fedora, instead, installs sed in /usr/bin/sed, but it has a correct "Provides: /bin/sed" and so using /bin/sed works on both RHEL and Fedora

Comment 5 Alan Pevec 2018-02-19 21:53:05 UTC
Please push this fix to Fedora so that Rawhide spec can be rebuilt on RHEL7.

Comment 8 Timothy Redaelli 2018-02-20 15:44:43 UTC
Done in openvswitch-2.9.0-1.fc28.

On Fedora sed is /usr/bin/sed, but they also have "Provides: /bin/sed" for backward compatibility.

Comment 10 Timothy Redaelli 2018-03-05 15:22:58 UTC
Forwarding to the original reporter

Comment 11 Yuval Turgeman 2018-03-06 08:37:23 UTC
el7 ships the sed binary in /bin:

[root@node-26837 ~]# rpm -ql sed|grep bin
/bin/sed

while fedora provides the same binary in /usr/bin:

[yturgema@piggie ~]$ rpm -ql sed|grep bin
/usr/bin/sed

So, if openvswitch requires /usr/bin/sed, creating a repo (`createrepo`) with el7+openvswitch will fail on missing dependency. 

Requiring /bin/sed is ok for both el7 and fedora, since fedora's sed provides /bin/sed

[yturgema@piggie ~]$ rpm -q --provides sed|grep bin
/bin/sed

If you would like to test this, try to create an el7 repo with openvswitch before the spec change and after.  createrepo with the old openvswitch (requires /usr/bin/sed) will fail while createrepo with a new openvswitch (requires /bin/sed) will pass.

Comment 12 qding 2018-03-08 07:36:19 UTC
I tried to reproduce the issue by creating a repo with rhel7.5+openvswitch, but failed. Probably the reason is my test environment. Do you think if below steps have verified the issue? Thanks.

[root@dell-per730-54 ovs]# rpm -qpR openvswitch-2.7.3-3.git20180112.el7fdp.src.rpm  | grep sed
rpmlib(CompressedFileNames) <= 3.0.4-1

[root@dell-per730-54 ovs]# rpm -qpR openvswitch-2.8.0-1.el7fdb.x86_64.rpm | grep sed
/usr/bin/sed
rpmlib(CompressedFileNames) <= 3.0.4-1

[root@dell-per730-54 ovs]# rpm -qpR openvswitch-2.9.0-1.el7fdp.x86_64.rpm | grep sed
/bin/sed
rpmlib(CompressedFileNames) <= 3.0.4-1
[root@dell-per730-54 ovs]#

Comment 13 Yuval Turgeman 2018-03-11 07:03:15 UTC
You can ignore the source rpm, but according to comment #12, createrepo with rhel7 + openvswitch-2.8.0-1.el7fdb.x86_64.rpm should fail, while openvswitch-2.9.0-1.el7fdp.x86_64.rpm fixes the problem because sed-4.2.2-5.el7.x86_64.rpm provides /bin/sed

Comment 16 errata-xmlrpc 2018-03-19 10:22:13 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0550


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