From 35df6e1eea0f9b1ef6a45294b9150751b3ab187f Mon Sep 17 00:00:00 2001 From: Alexander Ziaee Date: Sat, 10 May 2025 17:28:21 -0400 Subject: [PATCH] build.7: Improve building pkgbase The packages target was previously listed under kernel, move it to the general source make targets listing. Add the update-packages target as well. MFC after: 3 days Fixes: 1d26746cfd4a(build.7: Document the packages target) Fixes: 0ac8aa55da1c(pkgbase: Add incremental packages) Fixes: 26490d9b74f0(pkgbase: allow update-packages for first) Reported by: ivy (update-packages) --- share/man/man7/build.7 | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/share/man/man7/build.7 b/share/man/man7/build.7 index 31d30592e97e..a8ef7df9d5ff 100644 --- a/share/man/man7/build.7 +++ b/share/man/man7/build.7 @@ -264,6 +264,21 @@ defaults to and .Sy TARGET_ARCH must be defined. +.It Cm packages +Create a +.Xr pkg 7 +repository containing packages that can be used to create or upgrade an +installation of the base system. +If one exists, +create a new snapshot directory with only what has changed. +The output repository is placed in the object directory, under +.Pa repo/${PKG_ABI} +where +.Va PKG_ABI +is the +.Xr pkg 7 +ABI for the build target, for example, +.Pa /usr/obj/${SRCDIR}/repo/FreeBSD:15:amd64 . .It Cm packageworld Archive the results of .Cm distributeworld , @@ -397,19 +412,6 @@ Install the kernel to the directory .Pa ${DISTDIR}/kernel/boot/kernel . This target is used while building a release; see .Xr release 7 . -.It Cm packages -Create a -.Xr pkg 7 -repository containing packages that can be used to create or upgrade an -installation of the base system. -The output repository is placed in the object directory, under -.Pa repo/${PKG_ABI} -where -.Va PKG_ABI -is the -.Xr pkg 7 -ABI for the build target, for example, -.Pa /usr/obj/${SRCDIR}/repo/FreeBSD:15:amd64 . .It Cm packagekernel Archive the results of .Cm distributekernel , -- 2.49.0