From owner-freebsd-ports@FreeBSD.ORG Thu Aug 14 15:35:33 2014 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7628D25D; Thu, 14 Aug 2014 15:35:33 +0000 (UTC) Received: from c.mail.sonic.net (c.mail.sonic.net [64.142.111.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 425622628; Thu, 14 Aug 2014 15:35:33 +0000 (UTC) Received: from zeppelin.tachypleus.net ([128.54.110.145]) (authenticated bits=0) by c.mail.sonic.net (8.14.9/8.14.9) with ESMTP id s7EFZTiT011707 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Thu, 14 Aug 2014 08:35:30 -0700 Message-ID: <53ECD741.5090703@freebsd.org> Date: Thu, 14 Aug 2014 08:35:29 -0700 From: Nathan Whitehorn User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: Bryan Drewery , FreeBSD Mailing List Subject: Re: [Patch] Using MACHINE_ARCH identifiers in pkg References: <5383EEB6.6010703@freebsd.org> <538614AB.4070803@freebsd.org> <53ECCF7F.3040107@FreeBSD.org> In-Reply-To: <53ECCF7F.3040107@FreeBSD.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Sonic-CAuth: UmFuZG9tSVZj0F33+i7K7wZmOeaN8v80CRBXrUbKgCrATfH1aKBXoDRFHNevW0/z2VXBhu0t+2UL1hHdJIAewOeLKce2PDsqNU5rN/FHKjY= X-Sonic-ID: C;ugEen8gj5BG83t90oK8kYw== M;enF6n8gj5BG83t90oK8kYw== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd Cc: Baptiste Daroussin , Warner Losh X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2014 15:35:33 -0000 On 08/14/14 08:02, Bryan Drewery wrote: > On 5/28/2014 11:54 AM, Nathan Whitehorn wrote: >> The current/previous values are also kept so >> that the patched pkg can install a package marked either with an x86:64 >> or amd64-type architecture ID (symlinks will be needed for a little bit >> on the package server to allow both clients to work). Limited testing >> suggests it works well -- I can fetch and install packages fine. More >> testing would be great. > Symlinks are now setup to make testing of this easier. > > I'll let Bapt signoff on this patch officially and its timeframe. It > seems reasonable to me. The use of 'x86' almost caused a regression > recently due to its ambiguity. > > Cheers, > Bryan > Thanks Bryan! If anyone is interested in testing the adapted pkg, there is a patch that can be applied to ports at http://people.freebsd.org/~nwhitehorn/pkg-new-abi.diff. It tries to make this transition as painless as possible by doing the following things: 1. Have pkg use e.g. FreeBSD:11:amd64 instead of freebsd:11:x86:64 as an ABI string. 2. Maintain the freebsd:11:x86:64-type strings as the "altabi" config variable. 3. pkg will install packages where the architecture ID matches either the ABI or ALTABI value, which means that new pkg can install packages made with the older version. 4. Patches the ports-mgmt/pkg Makefile so that the package for pkg itself is given a freebsd:11:x86:64-type architecture. This prevents pkg from choking on an update to itself and should, with the symlinks discussed above, make the transition painless and transparent. Especially point (4) I'd appreciate testing on if anyone is generating private package repositories. -Nathan