Page MenuHomeFreeBSD

nanobsd: Use local repository cache for precompiled package base builds
Needs ReviewPublic

Authored by senguptaangshuman17_gmail.com on Wed, Aug 19, 10:18 AM.
Tags
None
Referenced Files
F168274738: D58956.diff
Thu, Aug 27, 8:15 AM
Unknown Object (File)
Wed, Aug 26, 7:51 AM
Unknown Object (File)
Tue, Aug 25, 10:36 PM
Unknown Object (File)
Tue, Aug 25, 5:59 PM
Unknown Object (File)
Tue, Aug 25, 10:34 AM
Unknown Object (File)
Tue, Aug 25, 3:13 AM
Unknown Object (File)
Mon, Aug 24, 5:37 PM
Unknown Object (File)
Mon, Aug 24, 5:35 PM
Subscribers

Details

Reviewers
jlduran
jrm
ashish
Summary

Rewrite _xxx_pkg_metalog() to deduplicate METALOG entries and split
the target database regeneration into _xxx_run_pkg_scripts(). Fetch
pkgbase packages into a local repo before installing.

Add metalog_add_data() to append a metalog line for a file or
directory with sensible mode defaults, and use it throughout instead
of hand written entries.

tgt_pkg fetch intermittently fetched only a subset of the packages.
Use tgt_pkg install -F instead, and remove the stale target pkg
database before a clean build.

Fix the pwd_mkdb and cap_mkdb invocations in _xxx_run_pkg_scripts(),
and run certctl rehash to regenerate the trusted cert bundle.

Diff Detail

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

Event Timeline

Rename revision, normalize XXXJL comments, restore normalized fingerprints comment

senguptaangshuman17_gmail.com retitled this revision from nanobsd: Fix package base metalog and installation issues to nanobsd: Use local repository cache for precompiled package base builds.
tools/tools/nanobsd/defaults.sh
304

This change should be done in D58950.

370

This change should be done in D58952.

490

This comment change is not related to this commit, I believe it should be done in D58951.

515

This comment change is not related to this commit, I believe it should be done in D58954.

534

This change should be done in D58951.

813

This (location) change should be done in D58931. It is a non-functional change (NFC) that just changes the location of the function to keep it together (alphabetically?) with other tgt_ functions.