Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
DescriptionTimothy 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
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.
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]#
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
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