-
-
Notifications
You must be signed in to change notification settings - Fork 33
Fix RPM builds #578
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 RPM builds #578
Conversation
e9af49c
to
235747e
Compare
Congratulations! One of the builds has completed. 🍾 You can install the built RPMs by following these steps:
Please note that the RPMs should be used only in a testing environment. |
tox.ini
Outdated
SEGFAULT_SIGNALS = all | ||
!just-pytest: PYTHONPATH = packaging/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you explain the motivation here? What does this affect? I want to redesign the tox setup at some point, and if I accept this change, I need to understand whether it needs to be kept later on.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's about %tox in rpm spec file. %tox sets PYTHONPATH and execute the test in current environmen instead of creating new vitual environment so the packages that are installed in buildroot are tested. However, just-pytest inherits setenv from default environment thus always overriding PYTHONPATH and therefore the test fails to import pylibsshext.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...because PYTHONPATH is packaging/ instead of site packages from buildroot.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this work?
!just-pytest: PYTHONPATH = packaging/ | |
PYTHONPATH = {env:PYTHONPATH:packaging/} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or maybe even
!just-pytest: PYTHONPATH = packaging/ | |
PYTHONPATH = packaging/:{env:PYTHONPATH:} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing packaging/
will make the first command fail. It's prepended with -
so tox
will ignore its outcome. Nevertheless, it won't generate C-files with tracing information if it stops being importable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made the change and updated this PR. Let's see if it works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RPM build works.
I removed commit that disabled debuginfo because I realized that it was only need for my original approach that chose off-tree tmp folder. Debuginfo is correctly collected when using in-tree tmp folder. Now testing-farm jobs fails, but it looks like an infra failure not related to this pull request.
|
809a52a
to
03b4718
Compare
Ok, testing-farm issue is fixed by https://gitlab.com/testing-farm/tests/-/merge_requests/35 |
470e729
to
44cf3fc
Compare
@NilashishC Please take a look. |
@@ -62,6 +62,8 @@ Source24: %{pypi_source tomli 1.2.3} | |||
BuildRequires: openssh | |||
# sshd? | |||
BuildRequires: openssh-server | |||
# ssh? | |||
BuildRequires: openssh-clients |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you remind me why this is needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, because 376fc52
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, right… I forgot you refactored that. Thanks for reminding!
This is needed during RPM build phase where we want to use packages from buildroot environment.
ssh is now used in tests to ensure that sshd is ready to receive connectoins.
@@ -0,0 +1 @@ | |||
Fixed issues that prevented RPM from building -- by :user:`pbrezina`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW this note is not very informative to the end users. It'd need to be written in a different style.
I absorbed this all into |
SUMMARY
ISSUE TYPE
ADDITIONAL INFORMATION