Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jan 2017 14:41:12 -0800
From:      Freddie Cash <fjwcash@gmail.com>
To:        Dave Horsfall <dave@horsfall.org>
Cc:        FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   Re: libstdc++
Message-ID:  <CAOjFWZ4eRVr_AYiLymapj_ceVvTvTs9OwFYLf9atR6uQphvq_g@mail.gmail.com>
In-Reply-To: <alpine.BSF.2.20.1701120914580.1364@aneurin.horsfall.org>
References:  <alpine.BSF.2.20.1701111350460.22641@aneurin.horsfall.org> <7796A830-4B3C-41DD-8064-33BC24635C41@adamw.org> <alpine.BSF.2.20.1701120745100.1364@aneurin.horsfall.org> <96D75BED-03D8-4CD7-9AFD-E769BF64EEF7@adamw.org> <alpine.BSF.2.20.1701120914580.1364@aneurin.horsfall.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 11, 2017 at 2:29 PM, Dave Horsfall <dave@horsfall.org> wrote:

> On Wed, 11 Jan 2017, Adam Weinberger wrote:
>
> > Okay. So what command did you use to rebuild all your ports? You won't
> > really be able install anything new until you've rebuilt everything.
> > Everything.
>
> Haven't had a chance to try your script yet; been too busy trying to get
> my nameserver to support my internal domain ".kfu" (yes, it's 10.3); it
> doesn't even work on the box itself, but the resolver is fine.  My guess
> is that something has changed in BIND...
>
> > I'm not aware of any problems building alpine on 10.3. I do see a typo
> > in its OpenSSL handling and I'll fix that shortly.
>
> That's the only problem with Alpine; it's not seeing "1.0.2j" of OpenSSL,
> yet wants ">=3D 1.0.1c", hence the 9.3 version...  It was critical that I
> get email working ASAP, and this is the only FreeBSD box I have.
>
> > If you keep running into headaches upgrading in-place, you should reall=
y
> > switch to poudriere. Even if you get stuff working, you should really
> > switch to poudriere. See
> > https://www.freebsd.org/handbook/ports-poudriere.html for how to get up
> > and running with it.
>
> I thought poudriere was for building packages to support a server farm?
>
> Sorry for all this, but until now this box has always been on 9.x, so thi=
s
> is my first major upgrade, hence I have zero experience...
>

=E2=80=8BDon't manually "install" libraries from previous versions.  Instea=
d, use
the "compat9x" port; it's what it's there for.  This will install onto a
10.x or 11.x box all the libraries from a 9.x install that are no longer
present, but puts them into /usr/local/.  The linker that comes with
FreeBSD knows to look there=E2=80=8B, so no changes required.

An upgrade from 9.x to 10.x looks something like this (for minimal
downtime):
  - upgrade the base OS using freebsd-update or build world
  - install the compat9x port so that your currently installed ports
continue to work
  - rebuild/reinstall *ALL* ports currently installed so that they link
against the new versions of libraries
  - remove the compat9x port
  - reboot to make sure everything is restarted and using the correct
libraries

By using the compat9x port, you can take your time upgrading the installed
ports.  But you *MUST*, eventually, reinstall them all.  Don't try to
upgrade the ports piecemeal.  They all need to be reinstalled when going
across major OS versions.

An easier, "faster", safer way to do an upgrade across major versions is to
use a custom pkg repo (built using poudriere or synth).  That way, all your
ports are built with the options you want, but are not installed anywhere
on the system; just pkg files are created.  You continue to use the
currently installed ports, via the compat9x libs, until the repo is built
with all your desired ports.

Then, the upgrade of the installed ports is as simple as:
  - pkg update
  - pkg upgrade

No muss, no fuss, minimal downtime for replacing the actual ports.

=E2=80=8BBetween freebsd-update and pkg, maintaining and upgrading FreeBSD =
boxes
has become almost point-n-click easy.  And with the introduction of
poudriere (and to a lesser extent synth), you can get all the benefits of
custom compiled ports with all the benefits of binary package
installs/upgrades.
=E2=80=8B
--=20
Freddie Cash
fjwcash@gmail.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOjFWZ4eRVr_AYiLymapj_ceVvTvTs9OwFYLf9atR6uQphvq_g>