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

packaging/reproducibility: /var/lib/PackageKit/transactions.db should be created by systemd-tmpfiles #738

Open
joebonrichie opened this issue Apr 5, 2024 · 1 comment

Comments

@joebonrichie
Copy link

As soon as any transactions occur then the sha of /var/lib/PackageKit/transactions.db will change. Some package managers will then report the installed package as broken as the expected sha sums of the installed files do not match the upstream package.

  1. Does /var/lib/PackageKit/transactions.db need to be installed? Can packagekit automatically create if the file if it doesn't exist?
  2. If not then the file should be created by a systemd-tmpfiles snippet as part of meson install.
@sidt4
Copy link
Contributor

sidt4 commented Apr 5, 2024

I guess /var/lib/PackageKit/transactions.db should not packaged. It can be generated at runtime (from what I've seen)

Debian doesn't do so, but appears like Fedora does.

Debian unstable:

$ dpkg -S /var/lib/PackageKit/transactions.db
dpkg-query: no path found matching pattern /var/lib/PackageKit/transactions.db

Fedora 39:

$ rpm -qf /var/lib/PackageKit/transactions.db 
PackageKit-1.2.6-11.fc39.x86_64

Source: https://src.fedoraproject.org/rpms/PackageKit/blob/rawhide/f/PackageKit.spec#_203

Which distro are you using ?

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

No branches or pull requests

2 participants