commit 47df96c09f0e7ca0ebaf30902607fc983590ecfa
Author: Jorge San Emeterio <email address hidden>
Date: Tue Feb 21 11:10:07 2023 +0100
[stable-only] Add binary test dependency "python3-devel" for py3 based RPM distros.
Coming from RHEL 8, dependency "python-devel [platform:rpm test]"
indicated on "bindep.txt" cannot be satisfied by the distribution.
RHEL 8 expects the package name to be "python3-devel" instead. For such
reason, this change adds a conditional that will select the proper
package name depending on whether the distro is based on python 2 or 3.
Other RPM distributions like CentOS should also benefit from this
change.
Conditionals for the python version are inverted ("!"), that is because
trying to filter them positively resulted in both conditions triggering
at the same time. This way works for RHEL 8, although it would still
need testing on something RHEL 7 based.
Reviewed: https:/ /review. opendev. org/c/openstack /nova/+ /874547 /opendev. org/openstack/ nova/commit/ 47df96c09f0e7ca 0ebaf30902607fc 983590ecfa
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/train
commit 47df96c09f0e7ca 0ebaf30902607fc 983590ecfa
Author: Jorge San Emeterio <email address hidden>
Date: Tue Feb 21 11:10:07 2023 +0100
[stable-only] Add binary test dependency "python3-devel" for py3 based RPM distros.
Coming from RHEL 8, dependency "python-devel [platform:rpm test]"
indicated on "bindep.txt" cannot be satisfied by the distribution.
RHEL 8 expects the package name to be "python3-devel" instead. For such
reason, this change adds a conditional that will select the proper
package name depending on whether the distro is based on python 2 or 3.
Other RPM distributions like CentOS should also benefit from this
change.
Conditionals for the python version are inverted ("!"), that is because
trying to filter them positively resulted in both conditions triggering
at the same time. This way works for RHEL 8, although it would still
need testing on something RHEL 7 based.
Closes-Bug: #2007959 7229f4759e13647 18aa663cf27
Change-Id: I0aac20be976e68