Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jun 2017 21:12:38 +1200
From:      Jonathan Chen <jonc@chen.org.nz>
To:        Thomas Mueller <mueller6722@twc.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Synth: copying installation to second computer
Message-ID:  <CAJuc1zMeB-Dd-e4XKNytNGL5Kq==V75kzBEaQnudtCphxkPsrQ@mail.gmail.com>
In-Reply-To: <53.C8.03935.FCF7F395@dnvrco-omsmta01>
References:  <53.C8.03935.FCF7F395@dnvrco-omsmta01>

next in thread | previous in thread | raw e-mail | index | archive | help
On 13 June 2017 at 18:01, Thomas Mueller <mueller6722@twc.com> wrote:
> I just managed to install (first part) ports-mgmt/synth on FreeBSD 11.1-PRERELEASE amd64, using portmaster after deleting all packages except pkg and portmaster.  Those old packages were no good anyway due to shared libraaries being out of sync.
>
> Now I want to convert packages to synth repository format and copy this installation to another computer with same FreeBSD 11.1-PRERELEASE using NFS, doing as little recompilation as possible.
>
> This is my first (partway) success after an attempt to build synth on FreeBSD-CURRENT amd64, before ino64, was stopped by a system crash and reboot while I was sleeping.
>
> I looked through README.md and man synth, but there are still some hazy points.  Or is it easier than I think?

The thing to note is that ports-mgmt/synth is a repository builder.
Coming from portupgrade or portmaster, a user may think that it is
rebuilding too many packages for a simple port change, but what it is
doing is verifying that the chain of construction for each port is
working as expected. The first build is always going to be long, but
will do concurrent builds as much as it much as possible.

Once you have a complete repo on one of your machines, you can simply
serve up the /var/synth/live_packages using www/apache24 or even ssh.
On each of the remote hosts, all you have to do is to add a
/usr/local/etc/pkg/repos/my-local-repo.conf entry, eg:
#
# Locally built packages
#
localrepo: {
  url      : http://my-build-host/live_packages,
  priority : 20,
  enabled  : yes,
}

And then you're good to go with "pkg upgrade -r localrepo" on each of
the remote hosts.

Cheers.
-- 
Jonathan Chen <jonc@chen.org.nz>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJuc1zMeB-Dd-e4XKNytNGL5Kq==V75kzBEaQnudtCphxkPsrQ>