From owner-freebsd-ports@FreeBSD.ORG Thu Aug 14 22:00:18 2014 Return-Path: Delivered-To: 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 21FCE199; Thu, 14 Aug 2014 22:00:18 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 293C23259; Thu, 14 Aug 2014 20:40:58 +0000 (UTC) Received: from [192.168.0.100] ([87.139.233.65]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0MKprU-1XI1pK1lDc-000176; Thu, 14 Aug 2014 22:40:50 +0200 Message-ID: <53ED1ED2.7050605@gmx.de> Date: Thu, 14 Aug 2014 22:40:50 +0200 From: olli hauer User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: Bryan Drewery Subject: Re: [Patch] Using MACHINE_ARCH identifiers in pkg References: <5383EEB6.6010703@freebsd.org> <538614AB.4070803@freebsd.org> <53ECCF7F.3040107@FreeBSD.org> <53ECD741.5090703@freebsd.org> <53ED1044.80302@gmx.de> <53ED110C.1040500@FreeBSD.org> In-Reply-To: <53ED110C.1040500@FreeBSD.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:5Xfm1sMSR48XjmkdKGtYIt6u7S/FnDxLryeZ4Zaj86Ww+ldD5md +FjNFgRS0UcLGN44wfLweqZvqF8AQLtMUL6wDTDJvxOayPLlBjFAp1zRrWTycDxFuFnnp8y UByC7fZQQ/WH2neOCkS8D4wxFUnLXQjEwuAfn2xZn/5//PvkfEfwM4KXTKLXg2j56j5GR8P vH5KrGFmuP64goRGsIzVA== X-UI-Out-Filterresults: notjunk:1; Cc: ports@freebsd.org, Baptiste Daroussin , Nathan Whitehorn , 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 22:00:18 -0000 On 2014-08-14 21:42, Bryan Drewery wrote: > On 8/14/2014 2:38 PM, olli hauer wrote: >> On 2014-08-14 17:35, Nathan Whitehorn wrote: >>> ... > > Something I've mentioned to Bapt a few times is that pkg needs a way to > have a list of accepted ABI strings. Then we could add both the old and > the new style as accepted (internally) so that old and new repositories > will continue to work. > Ups, rollback is not possible after the client database was updated. Even by rollback and rebuild the package metadata the following error pops up. ~/pkg-static.old_ABI update -f Updating repository catalogue pkg-static: Repository str has a wrong packagesite, need to re-create database Fetching meta.txz: 100% of 584 B Fetching digests.txz: 100% of 43 kB Fetching packagesite.txz: 100% of 138 kB Adding new entries: 34% pkg-static: wrong architecture: FreeBSD:8:amd64 instead of freebsd:8:x86:64 pkg-static: repository str contains packages with wrong ABI: FreeBSD:8:amd64 Adding new entries: 100% pkg-static: Unable to update repository str Roll back on the client # ~/bin/pkg-static backup -r /var/backups/pkgng.db Roll back on the build host: - remove all packages that where created meanwhile with the patched pkg including pkg. - reinstall unpatched pkg on the build host - start a new build By doing a manual cleanup I also found that packages containing the old ABI are not removed. # ls -ltr -rw-r--r-- 2 root wheel 2592992 Aug 14 21:10 openssl-1.0.1_15.txz -rw-r--r-- 2 root wheel 1963944 Aug 14 21:11 subversion-1.8.10_1.txz # ls -l openssl* -rw-r--r-- 3 root wheel 2593488 Aug 11 17:31 openssl-1.0.1_14.txz -rw-r--r-- 2 root wheel 2592992 Aug 14 21:10 openssl-1.0.1_15.txz So the patch has more side affects ... Anyway I'm happy to test new patches to get rid of the old ABI string ;) -- olli