From owner-freebsd-pkgbase@freebsd.org Wed Jul 27 06:38:09 2016 Return-Path: Delivered-To: freebsd-pkgbase@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 EE633BA6DCF for ; Wed, 27 Jul 2016 06:38:09 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:c4ea:bd49:619b:6cb3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 992941880 for ; Wed, 27 Jul 2016 06:38:09 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from liminal.local (liminal.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3636:3bff:fed4:b0d6]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 82CC684E3 for ; Wed, 27 Jul 2016 06:38:05 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/82CC684E3; dkim=none; dkim-atps=neutral Subject: Re: amd64 vs. x86:64 architecture mismatch in FreeBSD-base repo To: freebsd-pkgbase@freebsd.org References: <0295c3e9-a6ed-9081-ae3d-0668138289d3@bluerosetech.com> From: Matthew Seaman Message-ID: <4793bae9-9346-300f-b331-96fb54f7d2a0@FreeBSD.org> Date: Wed, 27 Jul 2016 07:37:58 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <0295c3e9-a6ed-9081-ae3d-0668138289d3@bluerosetech.com> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="kFxI9SJSBEi1BfVcBpmEU3kw7w82BvnBh" X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on smtp.infracaninophile.co.uk X-BeenThere: freebsd-pkgbase@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Packaging the FreeBSD base system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jul 2016 06:38:10 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --kFxI9SJSBEi1BfVcBpmEU3kw7w82BvnBh Content-Type: multipart/mixed; boundary="grwkEVoXRVoorP8nw1ajQ7nihM5MbDtIH" From: Matthew Seaman To: freebsd-pkgbase@freebsd.org Message-ID: <4793bae9-9346-300f-b331-96fb54f7d2a0@FreeBSD.org> Subject: Re: amd64 vs. x86:64 architecture mismatch in FreeBSD-base repo References: <0295c3e9-a6ed-9081-ae3d-0668138289d3@bluerosetech.com> In-Reply-To: <0295c3e9-a6ed-9081-ae3d-0668138289d3@bluerosetech.com> --grwkEVoXRVoorP8nw1ajQ7nihM5MbDtIH Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 26/07/2016 21:04, Mel Pilgrim wrote: > I'm trying out pkgbase, using the BETA2 release with src checked out at= > r303326 (current at the time of checkout). I've run the buildworld, > buildkernel, and packages targets, and added the appropriate bits to > /usr/local/etc/pkg/repos/FreeBSD-base.conf, but when I try to get the > catalogue, I ran into a problem with ABI mismatches: >=20 > # env ABI=3D"FreeBSD:12:amd64" pkg update -r FreeBSD-base > pkg: Warning: Major OS version upgrade detected. Running "pkg-static > install -f pkg" recommended > Updating FreeBSD-base repository catalogue... > Fetching meta.txz: 100% 264 B 0.3kB/s 00:01 > Fetching packagesite.txz: 100% 48 KiB 49.0kB/s 00:01 > Processing entries: 0% > pkg: wrong architecture: freebsd:12:x86:64 instead of FreeBSD:12:amd64 > pkg: repository FreeBSD-base contains packages with wrong ABI: > freebsd:12:x86:64 > Processing entries: 100% > Unable to update repository FreeBSD-base >=20 > I fixed that problem by renaming the directory and repointing the > "latest" symlink (why wasn't it relative?), but this seems like a bug > where one part of the repo building code is using the running system's > architecture, and another part is using the src tree's architecture. Wh= y > doesn't pkg treat these two labels as equivalent? Interesting. I've just seen exactly the same thing when trying to update my CURRENT VM. It's the transition from FreeBSD:11:amd64 to FreeBSD:12:amd64 which seems to be the root cause. The old 'freebsd:12:x86:64' ABI style is something that pkg(8) moved away from many years ago. It appears in the package metadata as 'arch': # pkg info -RF FreeBSD-lib-12.0.s20160727061717.txz | head -10 name: "FreeBSD-lib" origin: "base" version: "12.0.s20160727061717" comment: "lib package" maintainer: "re@FreeBSD.org" www: "https://www.FreeBSD.org" abi: "FreeBSD:12:amd64" arch: "freebsd:12:x86:64" <<<----*** prefix: "/" flatsize: 106186 which I believe is more significant for certain ARM and MIPS architectures: i386 and amd64 only have one architecture variant apiece. Still, curious about how to get over this major version number bump. Cheers, Matthew --grwkEVoXRVoorP8nw1ajQ7nihM5MbDtIH-- --kFxI9SJSBEi1BfVcBpmEU3kw7w82BvnBh Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQJ8BAEBCgBmBQJXmFbNXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATnXgP+QGAHeCItY4gt5HYo4iWvT/0 ZyxNHWg9qomgYO8X6qptODYpc2AT8w5USIIpyWb7QR5+CrQS5jfHtlNqGLCM3fIE zrhNJcvjx0ygdjVfcVh5lpjYHNZ47oPtsSHrsdMH+eFvHTzD+0tMgO4KqtWwbxzJ 1FlKwCBepFl6QSXK6bkspxpCzhpxGVSxaj5DgsYbgKZwXSMMuU45pg7O0lLHQ3M5 mAHxvgjpo4iVPTZPUQQu6ReFA1Mv+lqKoilyJD3sT/Bcu5fNC/WI4X2ydqsHPuHK kHX4NW7+dXJWny+UUi/0noFvfaFm537th9BLrPWRVbeTjF6/3dc+tQBFX7uab3lQ vI41s+YiVSAWKyhp9sMBcCfG+vOgUnY7eNUsmVsEdd7bi86wCEafw+oECab/JhU/ qP3wbJ7D6Efa1iFY2ptMZfizo1W/BZrKSgOxzXjtKhiCP0vSdD0ll6EXByw2qEs4 zxp7ETub/dGEBWY5xEsHTgsFnLpwnvhAH6yKPEgtET2F9QZ8Rip+J03gk5BuEoyL 82IOHeZ9XVlGVF73o8rB1qIRVR4JOGq9w35ByqrxHJe4x2f3Gd8yXY1xXVNSSQEM qZL1E+PxIymFtgBpUgj7AqEDsmSUEkikEyqtBPPv0DRQhpHmlzqxzdSCeiWIQ2TF AgrOVg5CA9X0JzMBjlxB =SwNE -----END PGP SIGNATURE----- --kFxI9SJSBEi1BfVcBpmEU3kw7w82BvnBh--