Page MenuHomeFreeBSD

pkgbase release improvements part3
Needs ReviewPublic

Authored by hs.freebsd_id.omnilan.de on Mon, Jun 22, 7:09 PM.
Referenced Files
Unknown Object (File)
Wed, Jul 15, 10:27 AM
Unknown Object (File)
Fri, Jul 3, 6:18 AM
Unknown Object (File)
Fri, Jul 3, 2:00 AM
Unknown Object (File)
Thu, Jul 2, 12:02 PM
Unknown Object (File)
Wed, Jul 1, 12:40 AM
Unknown Object (File)
Mon, Jun 29, 4:46 PM
Unknown Object (File)
Sun, Jun 28, 3:46 AM
Unknown Object (File)
Sun, Jun 28, 3:21 AM

Details

Reviewers
None
Group Reviewers
releng
Summary

disc1 make target in src/release used to use a separate REPODIR.
I prefere to 'make packages' in src/ (after compiling world + kernel) and re-use the freshly created packages.
REPODIR can hold more than one set of packages, which this patch takes into account (uses what 'latest' points to only).

This patch also introduces the STAGING_MFSMOUNT make variable in order to move staging directories onto RAMdisk for example.
If defined, WSTAGEDIR, KDTAGEDIR and SSTAGEDIR are created beyond ${STAGING_MFSMOUNT}

mdmfs mdmfs -s 3g md /tmp/stagingmfs-pkgbase;
make STAGING_MFSMOUNT=/tmp/stagingmfs-pkgbase packages

PKG_ABI_FILE was adjusted to take vanishing WSTAGEDIR into account.

In addition to the functional extension this patch marks release/disc1 target outdated if scripts/pkgbase-stage.lua fails.
This covers only a small fraction of possible failures, hence still requires the user to issue 'make clean' (in src/release) at own discretion, but in some cases it can prevent force-wasting time.

Test Plan

Apllied the patch to stable/15 (along with PR: 296202, D57742 and D57745) and successfully produced dis1.iso.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped