diff options
author | Jorge San Emeterio <jsanemet@redhat.com> | 2023-02-21 11:10:07 +0100 |
---|---|---|
committer | Jorge San Emeterio <jsanemet@redhat.com> | 2023-02-21 15:13:23 +0100 |
commit | 47df96c09f0e7ca0ebaf30902607fc983590ecfa (patch) | |
tree | 7ee4d6af72cf1c46c8cba89721d41ceb4af6105a | |
parent | 20a8dce2b4ca3c566ccbc3a3eecd8dac36a0372f (diff) | |
download | nova-47df96c09f0e7ca0ebaf30902607fc983590ecfa.tar.gz |
[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
Change-Id: I0aac20be976e687229f4759e1364718aa663cf27
-rw-r--r-- | bindep.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bindep.txt b/bindep.txt index f0ca0afc12..9834820f05 100644 --- a/bindep.txt +++ b/bindep.txt @@ -34,7 +34,8 @@ postgresql-client [platform:dpkg] postgresql-devel [platform:rpm test] postgresql-server [platform:rpm] python-dev [platform:dpkg test] -python-devel [platform:rpm test] +python-devel [platform:rpm !platform:base-py3 test] +python3-devel [platform:rpm !platform:base-py2 test] python3-all [platform:dpkg] python3-all-dev [platform:dpkg] python3-devel [platform:fedora] |