Page MenuHomeFreeBSD

nanobsd: Add _xxx_pkg_db_dump_or_vacuum
Needs ReviewPublic

Authored by senguptaangshuman17_gmail.com on Thu, Aug 20, 12:22 PM.
Tags
None
Referenced Files
F167685924: D59046.diff
Sun, Aug 23, 6:49 PM
F167666384: D59046.diff
Sun, Aug 23, 4:13 PM
Unknown Object (File)
Fri, Aug 21, 12:08 PM
Unknown Object (File)
Fri, Aug 21, 12:08 PM
Unknown Object (File)
Thu, Aug 20, 6:35 PM
Unknown Object (File)
Thu, Aug 20, 6:35 PM
Subscribers

Details

Reviewers
jlduran
jrm
ashish
Summary

Verify and compact target pkg database after manual edits, and dump it
to support deterministic pkgbase images.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 75914
Build 72797: arc lint + arc unit

Event Timeline

Address review comments: normalize comment to # XXX:

I think this should only do a vacuum (integrity check).
So far we have not been able to create deterministic pkgbase images.

I think this should only do a vacuum (integrity check).
So far we have not been able to create deterministic pkgbase images.

As per my understanding, I'd like to keep the dump rather than dropping it, the function just dumps the db as a precondition for someday diffing/reproducing images. Once pkgbase builds are reproducible, this becomes the hook that lets us verify it, without another patch reintroducing it then.
Please let me know your view on this, then will change accordingly.