From owner-freebsd-ports@freebsd.org Wed Jan 11 22:41:13 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A1A43CABFA6 for ; Wed, 11 Jan 2017 22:41:13 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-qt0-x229.google.com (mail-qt0-x229.google.com [IPv6:2607:f8b0:400d:c0d::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 543E31A08 for ; Wed, 11 Jan 2017 22:41:13 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: by mail-qt0-x229.google.com with SMTP id x49so2182509qtc.2 for ; Wed, 11 Jan 2017 14:41:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Bvh90T7gF/yofdNQ15M2bVcJYSMVlB7LrS74onb2Iao=; b=I5gFIkeXNDZoUL970Wq7WoEJ3i/DbCu0YSPRjxJvXJMzSyBL5j6nsf331flHFg+H/o W5mQFrhgJFrM0gydT+rfdjhcUq9cu99lrPBfgM1QjJ0qbYtwk3cl+OxOSA+Q4QuB1pbv QW4sI+D4Hd4m0E9yey+H5KN10ZBGswpxPBR52DUfmOL6rVIWo1vqCgPTbLw/4nFpDu/i F9Xmm/c+A0IQWLBg263cmI4AgUjlxhKWEyZp0gG+L8KcwBno/SK7v6/2NahG4tRVzrHW 0NV5gkUS2MQR4N+PsDp062n0XP3SUAjbnh2LomMu1fFbtr7uAQgBxdSxw+Wgjuj+UqMO xZNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Bvh90T7gF/yofdNQ15M2bVcJYSMVlB7LrS74onb2Iao=; b=GphLfIG1ooedxosxCp9yUTcfUX/WcXmrdjt1jZYTRZNUafVeURW3fDG1nDMDKF1jLd Frt6LwwtgQyLUwTN+75NAzScwxKICoHvAKSyUXkU7c9vcWEIEENOlyenzfCRdJh31TIm PJXLv7A3NBdRiUkahMP1fGUPuWm2/Vmj/Oq8BSc1krKuNbd5pSsx05b+OC4mNPUi+GLl 2ok++88HmDV6U2xGaJ3dquf3LTLOuF7MfxKb2bB/IP0g5mKktccfO/SpUQxic5bw5qnK Wb8JICaApjWgSOd/DD3oq2m7eDCHlie9mGlmFtB1+UqHwcZyE7fNnos52i14PjJ8E/By 3Vmw== X-Gm-Message-State: AIkVDXL+WYwnHqxmMGyUECE4qC7XBneJbUKtHcrWHPj9bCSqRsWIXF6bT4OgTr9MY4qrM7wsEzn/CLEs7tOcew== X-Received: by 10.200.0.213 with SMTP id d21mr9819271qtg.44.1484174472367; Wed, 11 Jan 2017 14:41:12 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.139.66 with HTTP; Wed, 11 Jan 2017 14:41:12 -0800 (PST) In-Reply-To: References: <7796A830-4B3C-41DD-8064-33BC24635C41@adamw.org> <96D75BED-03D8-4CD7-9AFD-E769BF64EEF7@adamw.org> From: Freddie Cash Date: Wed, 11 Jan 2017 14:41:12 -0800 Message-ID: Subject: Re: libstdc++ To: Dave Horsfall Cc: FreeBSD Ports Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jan 2017 22:41:13 -0000 On Wed, Jan 11, 2017 at 2:29 PM, Dave Horsfall 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