Hi! I need some help.
I want preload distfiles before build, I type:
# make distfiles
And got error:
>>> Setting up stage in /usr/obj/usr/tools/config/16.1/OpenSSL
>>> Setting up world in /usr/obj/usr/tools/config/16.1/OpenSSL
tar: Option -f requires an argument
Usage:
List: tar -tf <archive-filename>
Extract: tar -xf <archive-filename>
Create: tar -cf <archive-filename> [filenames...]
Help: tar --help
*** Error code 1
Stop.
make: stopped in /usr/tools
Hrm, this sounds logical, "distfiles" builds a jail for the ports and for this it needs the "base" target as a prerequisite:
https://github.com/opnsense/tools/commit/c3e9bf296459d165b60aca324c3e53ccd9e354e3
If you build your own ports the above patch should help you get started. If you have never build a base set before you can also "prefetch" from a mirror (try to prefetch the current version as older ones get nuked from the mirror frequently):
# make prefetch-base VERSION=16.1.8
After that "distfiles" can run, but distfiles is really just a convenience target so that "ports" can build without internet access and you can share the distfiles set with different build machines. It's about 650 MB total I think.
Cheers,
Franco
Thank you!