From owner-freebsd-ports@freebsd.org Mon Oct 17 23:31:56 2016 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 E2EEEC16863 for ; Mon, 17 Oct 2016 23:31:56 +0000 (UTC) (envelope-from rosti.bsd@gmail.com) Received: from mail-lf0-x230.google.com (mail-lf0-x230.google.com [IPv6:2a00:1450:4010:c07::230]) (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 83B8499B; Mon, 17 Oct 2016 23:31:56 +0000 (UTC) (envelope-from rosti.bsd@gmail.com) Received: by mail-lf0-x230.google.com with SMTP id b75so314367533lfg.3; Mon, 17 Oct 2016 16:31:56 -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=xdSgFYKUnkggl6Q0AbhdZ1DQITSFolAIEb5sm/A/YU4=; b=tnLQ/3S8JYd0WDkCO65f72qQbwYLZO8d1bcirdHdWhOu3eHgDQlP4WBN5jQ7AjgcjE UsbrJWxgUHYiUkQA+37fL9x+517E9QFSAAS6j4GfwMYV6DvIeOcNDLUD4Slr/VT+I5Dl gBMVq6v9nthHG3osyaJ80+cB8mbRw4fV3f1T2IMswBAL9u87HT0cchxhTXVXXNWOyjuv P8wv1zZIlr3+3LpLa3txXo/y9nVs67rUO5c23WKBRS4uL2cRZMFMnvCsd10QeXcuWXzs vbaMIVovM/Jp3/v1+73swqD2fP0dNF63vvY8eBemi2W6SBsGDSdCSZGCRVTnYnAot/Rn Up7Q== 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=xdSgFYKUnkggl6Q0AbhdZ1DQITSFolAIEb5sm/A/YU4=; b=GSdseXb8TUF5c1czRdweyxLTUtL/RVVT19BFF1lo87xYWFugXiWbjb3aIQwKz6AShM IJIxEW49/X6SbDCbbBQ2aTbya5Nc5stmJZAuG5hzBAa+hmQzY1jDhHElUAjNi5ghWLfp lRsuO5eWvXbC4rgJy46NDHKSAk0PIaSAwfWAH1o6U8Mzaqsjb+7TmdCwB+l1PjM9BOFV 4ORuHZnAdNnHFEOvYoZI2hi/DEioeJ1ZLwe9JASrJTjXThClSCMswWbqmh3o5RnyRD81 yaj8fEevlRqRpgqEnBLFCpZfOb8/nLs2gDHRpXfrOFYI3S6WrA/n/3jGCIBLDyTk77dN lMNw== X-Gm-Message-State: AA6/9RlxbpWN3txPAMMmr+IqVs2YukbQ4oNeU9465LIWHKXa2jnz0m84QnpCp2Oa4y2RGUa206jEESYn5dC27g== X-Received: by 10.28.24.80 with SMTP id 77mr10314495wmy.74.1476747113983; Mon, 17 Oct 2016 16:31:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.158.130 with HTTP; Mon, 17 Oct 2016 16:31:53 -0700 (PDT) In-Reply-To: <20161017161722.y545dqur5izs7t7o@ivaldir.etoilebsd.net> References: <20161017161722.y545dqur5izs7t7o@ivaldir.etoilebsd.net> From: Rostislav Krasny Date: Tue, 18 Oct 2016 02:31:53 +0300 Message-ID: Subject: Re: pkg: cached package size mismatch, again To: Baptiste Daroussin Cc: freebsd-ports@freebsd.org Content-Type: text/plain; charset=UTF-8 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: Mon, 17 Oct 2016 23:31:57 -0000 On Mon, Oct 17, 2016 at 7:17 PM, Baptiste Daroussin wrote: > On Mon, Oct 17, 2016 at 06:11:45PM +0300, Rostislav Krasny wrote: >> On Mon, Oct 17, 2016 at 5:55 PM, Rostislav Krasny wrote: >> > Hi, >> > >> > I've a fresh FreeBSD 11.0 installed. When I try to install x11/kde4 by >> > pkg(8) it fails to install the very first dependency package: >> > >> > Fetching ktux-4.14.3.txz: 100% 117 KiB 119.7kB/s 00:01 >> > pkg: cached package ktux-4.14.3: size mismatch, fetching from remote >> > Fetching ktux-4.14.3.txz: 100% 117 KiB 119.7kB/s 00:01 >> > pkg: cached package ktux-4.14.3: size mismatch, cannot continue >> > >> > I found such a problem was already reported in this mailing list and >> > even fixed two years ago: >> > https://lists.freebsd.org/pipermail/freebsd-ports/2014-August/094447.html >> > >> > Unfortunately It happens again in FreeBSD 11.0. >> > >> > I didn't try "pkg update -f" yet and I don't have ports installed. >> > During the FreeBSD installation I also installed the local copy of the >> > Handbook. This procedure lead to the pkg(8) to be installed and also >> > installed the handbook package. Don't know if this information could >> > help you to understand the issue, though. >> >> The "pkg update -f" helped. But obviously there is some bug in the pkg(8). > > The bug is not in pkg, there is a race in the sync mechanism on the mirrors. > > The window is very small, but the situation is you fetched the db from an old > metadata but only new packages are available at this time. and running pkg > update -f forces the fix. > > There is some work ongoing to reduce this window to something close to 0, but > not yet good enough to be included in the release. Thank you for the explanation. Hope this race condition will be resolved soon.