[Bug 285178] ports-mgmt/packagekit: packages with mismatched checksums

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 11 Mar 2025 10:24:21 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285178

--- Comment #2 from Baptiste Daroussin <bapt@FreeBSD.org> ---
This notion does not exist in pkg, and I am not sure if it really makes sense
in terms of package semantic, but I can be convinced otherwise.

is this DB automatically created if it does not exist ? if yes then it should
just not be installed only the directory should be part of the packaging (which
btw in freebsd's world should have been /var/db/PackageKit instead of
/var/lib/PackageKit).

rpm uses %ghost for this
which mean the file belong to a package is deleted by the package when the
package is removed, but is not listed as part of the package, I am not sure I
find this semantic consistent.

archlinux uses a mecanism similar to @sample or almost (it is probably saner
than %ghost, but needs to be studied).

The best would be to create the file at installation time, or even better
packagekit creates it itself if it does not find it.

-- 
You are receiving this mail because:
You are the assignee for the bug.