Page MenuHomeFreeBSD

started working on a chapter for pkgbase
ClosedPublic

Authored by lukas.engelhardt_gmx.de on Jul 12 2025, 2:12 PM.
Referenced Files
F127613388: D51279.id160798.diff
Tue, Sep 2, 8:09 PM
Unknown Object (File)
Tue, Sep 2, 4:11 AM
Unknown Object (File)
Tue, Sep 2, 1:09 AM
Unknown Object (File)
Tue, Sep 2, 12:24 AM
Unknown Object (File)
Mon, Sep 1, 7:41 AM
Unknown Object (File)
Sun, Aug 31, 12:00 AM
Unknown Object (File)
Fri, Aug 29, 10:07 PM
Unknown Object (File)
Fri, Aug 29, 5:19 PM

Diff Detail

Repository
R9 FreeBSD doc repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 65477
Build 62360: arc lint + arc unit

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes
documentation/content/en/books/handbook/cutting-edge/_index.adoc
1321

instead [source,shell] -> [.programlisting]

1329

instead [source,shell] -> [.programlisting]

lukas.engelhardt_gmx.de marked 18 inline comments as done.

thanks @carlavilla for your comments, fixed them

pkgbase (lowercase) throughout, thanks.

bcr requested changes to this revision.Tue, Aug 19, 6:39 AM
bcr removed a reviewer: Doc Committers.

Some sentences should be rewritten to avoid the use of "you". I've made a couple of suggestions towards this. There may be other instances (search for "you" and rewrite accordingly). This often results in the use of active voice (i.e. "Use FreeBSD" instead of "You could use FreeBSD") as a positive side effect.
No more content changes as far as I can tell.

documentation/content/en/books/handbook/cutting-edge/_index.adoc
1126

We try to avoid teh use of "you" in the documentation in favor of a more neutral writing style.
This sentence could be rewritten as:
The migration requires 5GiB of additional free space, ...

Next sentence:

The pkgbasify does not check for this and it is the responsibility of the user to ensure that enough space is available before running the migration.

1154

Create a folder for custom pkg repository config files if there is none present already.

1160

Create a pkg repository configuration file called FreeBSD-base.conf for the pkgbase repository

1179

... , switching to the newer branch is needed then.

1227

To upgrade the System, change the configuration file according to the desired release, and run:

1243

When running ZFS, consider ...

1249

Use this boot environment to start the system as it was before the update if something goes wrong.

1263

Set the environment variable ABI to upgrade the major version.

1269

s/you can run/run/

1274

After upgrading to a new major version, updates and upgrades of installed packages to match the ABI version may be necessary.

1288

Reboot, and the system will be back to the state before upgrading.

1291

Manually building pkgbase and publishing it on the local network

1292

s/your own/custom/
s/you need to clone/clone/

1299

s/you would like/for the release/

1306

s/You should set/Set/

1307

s/for/for an/

1313

When building frequently, consider using devel/ccache to speed up subsequent builds from the cache.

1315

s/on the version you build/on the version built./

1317

s/Network/network/
s/you could set up/set up/ (active voice)
s/in your/in the/

1327

s/If you are/When/
s/you could simly just use/use/
s/on your clients/on the clients/
s/you just built/just built/

This revision now requires changes to proceed.Tue, Aug 19, 6:39 AM
lukas.engelhardt_gmx.de marked 20 inline comments as done.

included the submitted changes from bcr and grahamperrin, thank you for your suggestions

documentation/content/en/books/handbook/cutting-edge/_index.adoc
1173

Non-base. An introduction to FreeBSD-kmods belongs elsewhere (not in a chapter for base).

lukas.engelhardt_gmx.de marked an inline comment as done.

removed kmods description

In D51279#1184923, @bcr wrote:

@ziaee Do you think we can commit this as part of your list of doc changes needed for pkgbase? It's a start and I'd rather have something in the handbook that we can commit extension to before we try to add more to an ever growing review. Any thoughts? Do we need more reviewers?

Sorry, I didn't see this. Yes, I have had it listed already on my doc tracking checklist. This is a huge part of it, please look it over and I would love to hear suggestions. I don't think I've ever made a checklist before.

https://people.freebsd.org/~ziaee/pkgbase.htm

grahamperrin added inline comments.
documentation/content/en/books/handbook/cutting-edge/_index.adoc
1124

Maybe refer to the manual page; https://reviews.freebsd.org/D51594.

1135
1155

/usr/local/etc/pkg/repos/ might be a non-standard path for a file to specify the FreeBSD-base repo.

Also, there's the question of whether to use a single file for multiple repos (the FreeBSD-kmods precedent).

From https://wiki.freebsd.org/Releng/15.0ISSUES#assigned:

Add "FreeBSD-base" (or maybe "FreeBSD-src") repository to /etc/pkg/FreeBSD.conf (cperciva)

1216

Add stable/15 – expected soon, https://www.freebsd.org/releases/15.0R/.

1246

Will base_latest be appropriate for 15.0-ALPHA1?

It'll not be appropriate for 15.0-RELEASE.

Also:

1261
1283

?

This revision now requires changes to proceed.Sun, Aug 24, 6:42 AM
documentation/content/en/books/handbook/cutting-edge/_index.adoc
1103

Some readers will interpret this as freebsd-update becoming unsupported.

Maybe truer to state that freebsd-update will not be usable. From https://wiki.freebsd.org/Releng/15.0ISSUES#assigned:

FreeBSD Update needs to be removed or at least neutered (cperciva).

1241

With or without boot environments: it's probably sensible to also have a list of non-base packages. Something like:

pkg prime-origins | sort -u > /var/tmp/pkg-prime-origins.txt

1260

Thoughts:

  • add a hint about the on-screen version mismatch
  • forewarn that the base-specific upgrade may remove non-base packages, including a running desktop environment.
1273

Users who have no fallback may wonder how to proceed if something breaks. Direction to https://www.freebsd.org/support/ will be simplest.

1304

Can be a link.

documentation/content/en/books/handbook/cutting-edge/_index.adoc
1253

Maybe mention that examples assume AMD64.

(Users of other platforms/architectures might copy what's written, without realising that it's not applicable.)

1318

I wouldn't use FreeBSD in the name of a file for a repo that is not provided by the FreeBSD Project. YMMV

1343–1345

One sentence per line.

documentation/content/en/books/handbook/cutting-edge/_index.adoc
1137
lukas.engelhardt_gmx.de marked 11 inline comments as done.

Changing the parts grahamperrin suggested, thanks for your input.

added some thoughts on some comments

documentation/content/en/books/handbook/cutting-edge/_index.adoc
1155

In /etc/pkg/FreeBSD.conf it is stated, that you should not modify this file, but create a file in /usr/local/etc/pkg/repos/FreeBSD.conf
So from my understanding this should be the place to make modifications to "overwrite" the base config file.
We can argue about the file name. I am happy for recommendations.

1216

how would that path look like?
I suspect it to be base_release_0 or base_release?

1283

Changed that to "If you want to start building your own pkgbase packets" instead of "To start building custom pkgbase packets". Does that answer your question? If not please specify.

1343–1345

I don't think this was part of my original changes, but i will change that too. The full chapter "Tracking for multiple Machines" wasn't part of this review before.

Found two smaller issues.
As far as I can tell, this is as ready as it's going to be. If we find issues afterwards, we can fix those in the handbook, rather than putting more and more stuff into this review.

documentation/content/en/books/handbook/cutting-edge/_index.adoc
1217

s/System/system/

1321

s/cpu/CPU/

lukas.engelhardt_gmx.de marked 2 inline comments as done.

Thanks bcr. Corected these smaller issues.
I do also think that this should get out there in the handbook and we will be refining smaller parts as they come. Some things might change later, so we might have to change some things here afterwards.

I'll do the commit in a couple hours.
It's true, we can improve it later in small commits.
And there's a lot of documentation to upgrade related to pkgbase

Thanks,

… Changed that to "If you want to start building your own pkgbase packets" instead of "To start building custom pkgbase packets". Does that answer your question? If not please specify. …

Should packets be packages?

grahamperrin added inline comments.
documentation/content/en/books/handbook/cutting-edge/_index.adoc
1115

14.0 is a supported upgrade from path from 12.4-RELEASE or 13.2-RELEASE, not from 13.3-RELEASE or greater.

1121

Begin the sentence with either:

This revision now requires changes to proceed.Sun, Aug 24, 5:03 PM
documentation/content/en/books/handbook/cutting-edge/_index.adoc
1172–1215

It's normal to have ${VERSION_MINOR} (not a specific minor version) in the repo config.

FreeBSD-kmods is separate from pkgbase.

documentation/content/en/books/handbook/cutting-edge/_index.adoc
1172–1215

On closer inspection, the row for releng/14.1 should be removed.

It's no longer twice daily; note that https://pkg.freebsd.org/FreeBSD:14:amd64/base_release_1/?C=M&O=D has nothing more recent than 2025-02-21 (see https://www.freebsd.org/security/unsupported/).

@lukas.engelhardt_gmx.de do you want to take a look to latest messages?

I want to make the commit in one hour or so.

@lukas.engelhardt_gmx.de do you want to take a look to latest messages?

I want to make the commit in one hour or so.

yeah, thank you. I will have a look. Give me some minutes.

lukas.engelhardt_gmx.de marked 4 inline comments as done.

Changed some recommendations from grahamperrin, thank you all for your help, i am looking forward to seeing this committed!
Thanks @carlavilla for committing this.

Special thanks to @dch for working on parts of this handbook and @bcr for helping me getting started on how to work with documentation!

This revision was not accepted when it landed; it landed in state Needs Review.Sun, Aug 24, 7:12 PM
This revision was automatically updated to reflect the committed changes.