synth prepare-system question

So, as a synth newbie, I figured one of the safer ways to invoke it is synth prepare-system. My question is once this completes sucessfully do I just run pkg upgrade? Or, are some extra parameters needed?
 
if /usr/local/etc/pkg/repos/00_synth.conf exists already, you can just run pkg upgrade -r Synth directly.
If not, you can always run synth upgrade-system which will analyze the system and just start installing as all the packages will be up-to-date. After that point, the 00_synth.conf file will exist.
 
A followup question, as synth is cleaning up after the synth upgrade-system this error occurs:

Code:
The build logs can be found at: /var/log/synth
Scanning entire ports tree.
make: "/xports/base/gcc/Makefile" line 23: Please define CROSS_TOOLCHAIN before building

culprit: base/gcc
Scan aborted because 'make' encounted an error in the Makefile.
base/gcc (return code = 1)
Failed to scan ports tree   (Synth must exit)

An inspection of /base/gcc's Makefile indicates two parameters must be defined: CROSS_TOOLCHAIN and CROSS_SYSROOT. My question is what should these be set to, or is something else amiss?

A little system info.

Code:
uname -a
FreeBSD Dad 10.2-RELEASE-p12 FreeBSD 10.2-RELEASE-p12 #0: Tue Feb 23 18:14:09 EST 2016     chuck@Dad:/usr/obj/usr/src/sys/DEBUG_ATA  amd64
 
Try creating a blank file /usr/ports/base/Makefile.

This "base" category looks new and I think it's screwing Synth up. the "gcc" port probably isn't supposed to be built at all.
 
(to explain, every category in FreeBSD ports is hooked into the build through the Makefile, but this category is missing it so all the directories are getting included. Normally port directories that aren't in the makefile are ignored, but without the makefile all are included)
 
As confirmation, adding the blank /usr/ports/base/Makefile worked. After doing so, rerunning synth upgrade-system successfully completed.
 
Thanks for the confirmation and report. I published version 1.65 so the nobody else gets burned by this.
 
Back
Top