From owner-freebsd-ports@freebsd.org Mon Oct 17 16:17:24 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 E8325C1541D for ; Mon, 17 Oct 2016 16:17:24 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-qt0-x231.google.com (mail-qt0-x231.google.com [IPv6:2607:f8b0:400d:c0d::231]) (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 9D565764 for ; Mon, 17 Oct 2016 16:17:24 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: by mail-qt0-x231.google.com with SMTP id q7so128044480qtq.1 for ; Mon, 17 Oct 2016 09:17:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=rL00vPvT+Jc/ujZg5O15fLhthFAyFgZfxN6y79X+IZ8=; b=RIu7S99j6rm9Jmh39Og+FBKU3H8TEHLmy9o81CIOUq04lwWXL9CfXMVGWqjSXBXp+/ 6RpOYv+QuILIasHj1cA9n6iDzJ2XhhL7UuYhrkdw4jcoF4I+mmOXUatI001zTAree6Qb tPGGcYSsibxY4wo/WI2q9OFLk5mBDUGi7/ta/3rGeLSl6AgrcPJvu51OUiRCrwDQSIUB BM0dLeNwm91n4MiAcQ+pIclgUxdaiPpiNWiepNEPl3yfePggdMW2TGWTEPYaYmWiGkDZ g+U75BV6Y+kqh2yr1EDEc1r7ZPErbipPh6jIZJ4iBX6LqPJ7wjJpuzLp6bhLFItnG/RE poMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=rL00vPvT+Jc/ujZg5O15fLhthFAyFgZfxN6y79X+IZ8=; b=iqQq5iyShDVbeJ2WO8rhA54PuHKTW7VoxZMsnuAw9BLTVp1KqWnAtC/1gR8qExJ62g 3REGugOC4mW8+LzQadrQUwlvBKfH6DB6QOo+zn+uujdVk3hx7UFkNOUdStII1ejKJQK1 XxV1IRi0alePhoSzKyUAQW7y/7lLbLki1VSGLm43j2K6jispi6g/tlwPspVhhHqoNK/n NA2nDBwh7k9nUMpDoBzd1luNJuoEKqsriFjW6e/0+nSatWXAQGxP0TLv5HGcrcyEoaBV BYHjiSKR05fDyMiP8sYworHqe/5J86fgOQcz2cGBXxNnxhyh7boLGCQpGG6GBa1c6i/H kU7A== X-Gm-Message-State: AA6/9RnkUU3yRiXyCwUpgLPPGsnZ2Tkb+xeqw4QI3wakbL/CcbPbzch5kjylUn12252npA== X-Received: by 10.28.150.134 with SMTP id y128mr9486063wmd.6.1476721043670; Mon, 17 Oct 2016 09:17:23 -0700 (PDT) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by smtp.gmail.com with ESMTPSA id bl3sm54182536wjc.26.2016.10.17.09.17.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Oct 2016 09:17:22 -0700 (PDT) Sender: Baptiste Daroussin Date: Mon, 17 Oct 2016 18:17:22 +0200 From: Baptiste Daroussin To: Rostislav Krasny Cc: freebsd-ports@freebsd.org Subject: Re: pkg: cached package size mismatch, again Message-ID: <20161017161722.y545dqur5izs7t7o@ivaldir.etoilebsd.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="popdccgb6j5fvjtg" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20161014 (1.7.1) 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 16:17:25 -0000 --popdccgb6j5fvjtg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 17, 2016 at 06:11:45PM +0300, Rostislav Krasny wrote: > On Mon, Oct 17, 2016 at 5:55 PM, Rostislav Krasny w= rote: > > 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.ht= ml > > > > 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. >=20 > 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 o= ld 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, b= ut not yet good enough to be included in the release. Best regards Bapt --popdccgb6j5fvjtg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYBPmRAAoJEGOJi9zxtz5a2AEP/A0rFW9IoPlZVoMLtlCBx83D kChxn9DJYe4UYaSlzTIn3awcEeLojMVIVLELkjouXznemHodWIGdlg6JT8aiUoGl XgKaNf7UF5k796yV/8um3JpzyQ19JnPuBz32rFjqlK6A694JQcujKU1pKmcEf38L /xMiDlJaWfwlNnMs4ZzLrEB7rcV2BOX6uM7mLL29l48YB+f2mSqUDxAGoFtpNikB 3gDVRlltp6u2JN2jJ/xSsjWvhb2M9quVizBXpaN/yGBSgrSwa9z67+s7pjwkHilu uT7uoCSqJ0QcBknR792TrijSBROw34LiePH7gNAL09Um66bIaYEKrV1IHpgnZ7yU 6aSO7vQikbq1RaxcitttfWflBHFSmNi1n1OQaL0rIvtXtiXl89OWvVldAilvzdqg uAXmZHAkP65n9Qd2uGe2gHJ3e/30z3pGDGJlyRLsScyLImAGrZwWESlSbJQLWw7h UjAVyHFGdYkT3MNzcNBm7faZHr1x3Fa42qd9Re3mMDshOLos9R1n2h1w0+0A5vUl 7SsoMmRE/q4AyYZVQqdeolYiuzximOPiQ/1rbUm/V6XG8Z6tusLYtma/oadK73OL WYWjPMl1MVGLWpAfhzKiJ1BeKWyHE3JXyuEWkUW0bgphPUlfNYQgm/o5th48X8r2 D+a/npjzABImnGhboxKY =o0mJ -----END PGP SIGNATURE----- --popdccgb6j5fvjtg--