From owner-freebsd-ports@freebsd.org Sun Jan 22 18:24:31 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 580B8CBCBBC for ; Sun, 22 Jan 2017 18:24:31 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from msa1.earth.yoonka.com (yoonka.com [185.24.122.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "msa1.earth.yoonka.com", Issuer "msa1.earth.yoonka.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id DD076F6 for ; Sun, 22 Jan 2017 18:24:30 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from crayon2.yoonka.com (crayon2.yoonka.com [10.70.7.20]) (authenticated bits=0) by msa1.earth.yoonka.com (8.15.2/8.15.2) with ESMTPSA id v0MIOR6O078720 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Sun, 22 Jan 2017 18:24:28 GMT (envelope-from list1@gjunka.com) Subject: Re: Correct order when upgrading to 11.0 Release with Poudriere References: <20170122173004.GP13006@home.opsec.eu> From: Grzegorz Junka To: freebsd-ports@freebsd.org Cc: Kurt Jaeger Message-ID: Date: Sun, 22 Jan 2017 18:24:27 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20170122173004.GP13006@home.opsec.eu> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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: Sun, 22 Jan 2017 18:24:31 -0000 On 22/01/2017 17:30, Kurt Jaeger wrote: > Hi! > >> Is there a canonical way of upgrading FreeBSD to a newer major version? > Normally, FreeBSD major-version X+1 will support binaries > for major-version X. > >> So, it seems that I need to upgrade the base first before being able to >> build packages. > Yes. > >> If I upgrade base and it breaks poudriere's ABI, I won't be able to >> build new packages. > For what it's worth, I assume that the base upgrade does not break > the ABI. > >> One workaround would be to install the official >> poudriere package and then attempt to rebuild all applications. >> In either case it seems that the system would be unusable between the >> time of upgrading the base and finishing compiling all packages and >> reinstalling them, which may take a day or so. Is there any other way? > I use a reference host to build and test ports and upgrades. Maybe > you have some spare hardware, too ? > I do have some spare hardware and I can also create a VM as suggested in the other post. Both options, however, require a separate FreeBSD/poudriere setup just for the major upgrade, which is happening quite rarely (1-2 years). And the setup itself would probably take most of that day, which would be otherwise taken by building new packages on an upgraded system. So probably not worth the effort. Thanks for the suggestion anyways. For now I am building on 11.0 jails using 10.3 host. There are some build failures but most packages build fine. I assume that if the build didn't fail then there shouldn't be any differences in the resulting binary and I can just install such packages as if they were built using 10.3 host. Once the build finishes I will upgrade the base to 11.0 and compile the remaining packages which failed when the host was 10.3. Hopefully should take less time than first upgrading and then rebuilding all packages. Grzegorz