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

Do not install /var/cache/libdnf5 directory #1712

Merged

Conversation

ppisar
Copy link
Contributor

@ppisar ppisar commented Sep 19, 2024

Bootc systems tend to prune /var directory
https://containers.github.io/bootc/filesystem.html#var. That breaks verifying integrity with "rpm --verify libdnf5".

This patch stops installing /var/cache/libdnf5 directory, but keeps tracking it by libdn5 RPM package. The directory is created by libdnf5 whenever it is needed.

Related: https://bugzilla.redhat.com/show_bug.cgi?id=2313032

Bootc systems tend to prune /var directory
<https://containers.github.io/bootc/filesystem.html#var>. That breaks
verifying integrity with "rpm --verify libdnf5".

This patch stops installing /var/cache/libdnf5 directory, but keeps
tracking it by libdn5 RPM package. The directory is created by
libdnf5 whenever it is needed.

Related: https://bugzilla.redhat.com/show_bug.cgi?id=2313032
@ppisar
Copy link
Contributor Author

ppisar commented Sep 19, 2024

Is this change suitable for upstream (make install), or should we restrict it to dnf5.spec ("rm %{buildroot}/%{_var}/cache/libdfn5" in %install section)?

Copy link
Member

@m-blaha m-blaha left a comment

Choose a reason for hiding this comment

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

I like it. There is no need to create cache directory during package build.

@ppisar ppisar added this pull request to the merge queue Sep 20, 2024
Merged via the queue into rpm-software-management:main with commit 5cc72c6 Sep 20, 2024
16 of 20 checks passed
@ppisar ppisar deleted the do_not_install_cache_dir branch September 20, 2024 08:07
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