Page MenuHomeFreeBSD

release: Install pkg from the pkgbase repo
ClosedPublic

Authored by ivy on Sat, Sep 20, 2:34 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 13, 1:45 AM
Unknown Object (File)
Sat, Oct 11, 1:33 PM
Unknown Object (File)
Sat, Oct 11, 1:33 PM
Unknown Object (File)
Sat, Oct 11, 1:33 PM
Unknown Object (File)
Sat, Oct 11, 5:19 AM
Unknown Object (File)
Sat, Oct 11, 12:34 AM
Unknown Object (File)
Fri, Oct 10, 11:36 PM
Unknown Object (File)
Fri, Oct 10, 6:28 PM

Details

Summary

If we're building pkgbase media, install the pkg package from the
pkgbase repository we already created, not from pkg.freebsd.org.
Aside from being more desirable, this also fixes make release for
version/architecture combinations which are missing repository
on pkg.f.o (which is nearly all of them at the time of writing).

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ivy requested review of this revision.Sat, Sep 20, 2:34 AM

Other than one nit, this LGTM!

release/Makefile
250

It's a bit awkward that we need to bypass PKG_INSTALL to override the repo dir with -R, especially since its duplicated 3 times.

I think I'd prefer to to have PKGBASE_INSTALL alternative to PKG_INSTALL so that these 3 instances can't get out of sync at least.

This revision is now accepted and ready to land.Tue, Sep 23, 1:29 PM

LGTM but I agree with the suggestion that adding a PKGBASE_INSTALL macro could help. That can be a cleanup for later though.

This revision was automatically updated to reflect the committed changes.