From owner-freebsd-pkgbase@freebsd.org Wed Jul 27 22:42:51 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 B80A9BA645D for ; Wed, 27 Jul 2016 22:42:51 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: from mail-wm0-x229.google.com (mail-wm0-x229.google.com [IPv6:2a00:1450:400c:c09::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 3A6D11202; Wed, 27 Jul 2016 22:42:51 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: by mail-wm0-x229.google.com with SMTP id q128so229791858wma.1; Wed, 27 Jul 2016 15:42:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=4WRNtmR1k2z7aOVlEaztej7juUGpTf6E2mlmFkuEW7A=; b=ZhICUr52c11NJMD4JH5opEr40u3AxOZ8qk0eFGB4JgNWvGhf/UOlBowaJ6WL+6XnWe XpCUBeuhfUXD0SsIyDPe7fpTJPoa3cRhjAv2ll5dbrPtlegjaqqQ0g726JWN3dyAM3lQ eJ9znq3KWlTegjYrRURMaKcREshBmMLfuhKY20RE1OhZdjzZOhig6h/AZb5KtRK6/6iT f3mHxmgc4G88jxb7M4bpoBX8WGf/QCX8pkQxN7g6IciIXATaoCDN5EXbrw6UepbJ0x+t WHsJBBWV/xCTkK7UYvUqGxcTZZH/fW8gtBdiCf8edhPYCqnn13OwoS4LYCLDGk5X4Sx2 N2Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=4WRNtmR1k2z7aOVlEaztej7juUGpTf6E2mlmFkuEW7A=; b=S6mECYupSNhYd6wdGqpu0gS1S0UMVn/Vek8q9vyhzZu10d7fboENZcrbKcZlrpxmFO VXmM12HQXa39D0ovEGCwKNxzmJUFegVp379ArZ+o4YYKHYabRChebS5cyK4f95wN/l7U pyM7IbqHCOZd3g+Na0+yAgxm0L78SIRdZ/U/Se3QMHV+QAi0o5sjEm9MqIPczK2b4ux6 fLY5LXxB7giq3zzADTbP/HDB7MR38tcvg8E4/NO8F3VDuVjZyld5Su31wxArl2KhbnVC yWBiKPaRHEwlYKqMeEOr5vXrEjUKqW+KHchM2G0S5VURHMMmj5N9lOfvoDJEVYV7tuh3 SBGg== X-Gm-Message-State: AEkoousXSdxATWmCUPlbekU1Xca3Tsr9MfOvnoTP4C6joDs7QXXNUH6876+2crL8vMhtMU17ewQMfUd3J8bnRg== X-Received: by 10.194.88.137 with SMTP id bg9mr588575wjb.155.1469659369596; Wed, 27 Jul 2016 15:42:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.154.229 with HTTP; Wed, 27 Jul 2016 15:42:48 -0700 (PDT) In-Reply-To: References: <0295c3e9-a6ed-9081-ae3d-0668138289d3@bluerosetech.com> <4793bae9-9346-300f-b331-96fb54f7d2a0@FreeBSD.org> From: Ben Woods Date: Thu, 28 Jul 2016 06:42:48 +0800 Message-ID: Subject: Re: amd64 vs. x86:64 architecture mismatch in FreeBSD-base repo To: Matthew Seaman Cc: "freebsd-pkgbase@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 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 22:42:51 -0000 On Wednesday, 27 July 2016, Matthew Seaman wrote: > Hmmm... where essentially the command you propose is: > > # env ABI=freebsd:12:x86:64 pkg upgrade -r FreeBSD-base > > Unfortunately this doesn't work: > > codling:/home/matthew:# env ABI=freebsd:12:x86:64 pkg upgrade -r > FreeBSD-base > pkg: Warning: Major OS version upgrade detected. Running "pkg-static > install -f pkg" recommended > Updating FreeBSD-base repository catalogue... > Repository FreeBSD-base has a wrong packagesite, need to re-create database > pkg: file:///usr/obj/usr/src/repo/freebsd:12:x86:64/latest/meta.txz: No > such file or directory > repository FreeBSD-base has no meta file, using default settings > pkg: > file:///usr/obj/usr/src/repo/freebsd:12:x86:64/latest/packagesite.txz: > No such file or directory > Unable to update repository FreeBSD-base > All repositories are up-to-date. > pkg: Repository FreeBSD-base cannot be opened. 'pkg update' required > Checking for upgrades (0 candidates): 100% > Processing candidates (0 candidates): 100% > Checking integrity... done (0 conflicting) > Your packages are up to date. > > 'freebsd:12:x86:64' is the old-style ABI format that went out in about > pkg-1.5.x or pkg-1.6.x or so and is now known inside pkg(8) as ALTABI. > > codling:/home/matthew:# pkg -vv | grep ABI > ABI = "FreeBSD:11:amd64"; > ALTABI = "freebsd:11:x86:64"; > > The base repo directory is named using the new style ABI: > > codling:/home/matthew:# ls -la /usr/obj/usr/src/repo/ > total 12 > drwxr-xr-x 3 matthew wheel 512 Jul 27 07:14 ./ > drwxr-xr-x 23 matthew wheel 512 Jul 26 17:43 ../ > drwxr-xr-x 3 root wheel 512 Jul 27 07:32 FreeBSD:12:amd64/ > > Even so: > > codling:/home/matthew:# env ABI=FreeBSD:12:amd64 pkg upgrade -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 > All repositories are up-to-date. > pkg: Repository FreeBSD-base cannot be opened. 'pkg update' required > Checking for upgrades (0 candidates): 100% > Processing candidates (0 candidates): 100% > Checking integrity... done (0 conflicting) > Your packages are up to date. > Ok, it seems the PkgBase repo is located in a directory that uses the ABI style FreeBSD:12:amd64 in the directory name, but the packages contained within that repo are built for ABI freebsd:12:x86:64. The following should be a suitable work-around: 1. Change the contents of /usr/local/etc/pkg/repo/FreeBSD-base.conf, updating the url line to remove the ${ABI} variable and instead be: url: "file:///usr/obj/usr/src/repo/FreeBSD:12:amd64/latest", 2. Perform the upgrade by running the command: - # env ABI=freebsd:12:x86:64 pkg upgrade -r FreeBSD-base This likely needs to be fixed so that the work around is not necessary, but hopefully that gets you going in the mean time. Regards, Ben -- -- From: Benjamin Woods woodsb02@gmail.com