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

Removing /var/tmp workdir from rpm packaging #2876

Merged
merged 2 commits into from
Apr 19, 2024

Conversation

martinhoyer
Copy link
Collaborator

@martinhoyer martinhoyer commented Apr 19, 2024

Addressing #2803

tmt is creating the workdir by itself and as such does not need to have the directory being packaged as part of the rpm.
This change is in sync with Fedora Python packaging guidelines, harmonizing the rpm package with the PyPI package.
It also fixes the issue of the current implementation not using tmpfiles.d and as such is marked as forbidden by rpmlint Fedora configs.

@martinhoyer martinhoyer marked this pull request as ready for review April 19, 2024 12:00
@martinhoyer martinhoyer added packaging code | no functional change "No Functional Change" intended. Patch should not change tmt's behavior in any way. code | trivial A simple patch - a couple of lines, an easy-to-understand change, a typo fix. labels Apr 19, 2024
@lukaszachy lukaszachy added this to the 1.32.2 milestone Apr 19, 2024
@lukaszachy lukaszachy enabled auto-merge (squash) April 19, 2024 12:55
@lukaszachy lukaszachy merged commit 6f82839 into teemtee:main Apr 19, 2024
11 of 20 checks passed
@psss
Copy link
Collaborator

psss commented Apr 19, 2024

Just to clarify: So, do we drop the original use case described in #537?

@martinhoyer
Copy link
Collaborator Author

For transparency: As discussed on chat, it is being handled here

tmt/tmt/utils.py

Line 2064 in 6f82839

def _check_or_create_workdir_root_with_perms() -> None:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code | no functional change "No Functional Change" intended. Patch should not change tmt's behavior in any way. code | trivial A simple patch - a couple of lines, an easy-to-understand change, a typo fix. packaging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants