Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: python build failed in openeuler #2796

Merged
merged 1 commit into from
Jun 30, 2023

Conversation

pkking
Copy link
Contributor

@pkking pkking commented Jun 28, 2023

No description provided.

@@ -147,6 +147,7 @@ BuildRequires: python3-pytest
BuildRequires: python3-requests-gssapi
BuildRequires: python3-future
BuildRequires: python3-filelock
BuildRequires: pyproject-rpm-macros
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems redundant. Per guidelines, we need python3-devel:
https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I am not sure why we actually need all the other requirements that should be automatically generated.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems redundant. Per guidelines, we need python3-devel: https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/

In openEuler we do not preset pyproject-rpm-macros as python3-devel's deps, so we need it directly, maybe specified only in openEuler?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK. I think we can keep it (seems like a distro glitch).

python/python-copr.spec Outdated Show resolved Hide resolved
@@ -1,6 +1,6 @@
%global srcname copr

%if 0%{?fedora} || 0%{?rhel} > 7
%if 0%{?fedora} || 0%{?rhel} > 7 || 0%{?openEuler}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind using !0%{?rhel} || 0%{?rhel} > 7 ? Any new distro will directly use python3.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind using !0%{?rhel} || 0%{?rhel} > 7 ? Any new distro will directly use python3.

Done

@praiskup praiskup merged commit 1e41ed5 into fedora-copr:main Jun 30, 2023
@pkking pkking mentioned this pull request Jul 26, 2023
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants