sudo pkg delete -a delete all files in: /var/synth/live_packages/All cd /usr/ports/ports-mgmt/synth sudo make install clean sudo synth build /home/me/build.list
make, install, clean.
make -C /usr/ports/x11-servers/xorg-server configto set the desirable options before starting the compilation. However, the instructions recommend to further disable sysutils/hal in all other ports that might have HAL option. This gave me a pause because I do not know how to ascertain that one of the dependencies does not have sysutils/hal option. The
make, install, cleaninterrupts the compilation at every dependency with options, so one could check. However, with mgmt-ports/synth it seems practically impossible to set the configuration for all the dependencies using the
make -C /usr/ports/[category]/[portname] config.
OPTIONS_UNSET = HAL
OPTIONS_UNSET = CUPS HAL
synth prepare-systemafterwards to let Synth rebuild any changes.
pkg deleteall the packages off the server and reinstall them. That is an important step if your migrating from portupgrade/portmaster, otherwise you have all sorts of build dependencies installed on the system for no reason.
cd /var/synth/live_packages/All rm -rf *.txz synth just-build `cat /home/build.list` synth rebuild-repository pkg delete -af /usr/sbin/pkg bootstrap pkg install `cat /home/build.list`
$ pkg stats Local package database: Installed packages: 103 Disk space occupied: 567 MiB Remote package database(s): Number of repositories: 1 Packages available: 142 Unique packages: 142 Total size of packages: 193 MiB
thread <something> exits with resources held!' at line 316 in file /usr/src/lib/libthr/thread/thr_exit.c (errno = 2)
#if defined(_PTHREADS_INVARIANTS) if (THR_IN_CRITICAL(curthread)) PANIC("thread %p exits with resources held!", curthread); #endif ... #define THR_IN_CRITICAL(thrd) \ (((thrd)->locklevel > 0) || \ ((thrd)->critical_count > 0))
synth prepare-systemrequest, I get:
Stand by, updating external repository catalogs ... done. Scanning existing packages. Scanning existing packages. Queue integrity lost! (Synth must exit) Unfortunately, the system upgrade failed.