From owner-freebsd-ports@FreeBSD.ORG Sat Aug 2 07:04:36 2014 Return-Path: Delivered-To: freebsd-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 3654A477 for ; Sat, 2 Aug 2014 07:04:36 +0000 (UTC) Received: from fire.magemana.nl (magemana.nl [IPv6:2a01:7c8:aaae:25e::1]) by mx1.freebsd.org (Postfix) with ESMTP id 005B42580 for ; Sat, 2 Aug 2014 07:04:35 +0000 (UTC) Received: by fire.magemana.nl (Postfix, from userid 1003) id F1DAD4AB4C6; Sat, 2 Aug 2014 09:04:34 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by fire.magemana.nl (Postfix) with ESMTP id E873E4AB4BC; Sat, 2 Aug 2014 09:04:34 +0200 (CEST) Date: Sat, 2 Aug 2014 09:04:34 +0200 (CEST) From: Melvyn Sopacua To: Adam McDougall Subject: Re: more problems after last upgrade(s) pkg In-Reply-To: <53DBEFC3.2010300@egr.msu.edu> Message-ID: References: <53DB95AB.8070701@lissyara.su> <53DBEFC3.2010300@egr.msu.edu> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Aug 2014 07:04:36 -0000 Hi Adam, On Fri, 1 Aug 2014, Adam McDougall wrote: > -rw-r--r-- 1 mcdouga9 wheel 2923996 Aug 1 12:36 rt-3.8.17_1.txz > > I deleted it in poudriere, updated my ports tree to include pkg 1.3.4, > let poudriere compile both of those but I still have the issue. > > # pkg rquery %sb rt-3.8.17_1 > 20164010 While there certainly is a bug here (I'm bitten by it too), this is always a false comparison. %sb requests the flat size, which is the size after installation. The package size (which is what fetch is reporting) cannot be queried at the moment. I've added some extra debugging in the release-1.3 branch and am looking to reproduce it now. index 6555512..e2aa789 100644 --- a/libpkg/repo/binary/fetch.c +++ b/libpkg/repo/binary/fetch.c @@ -221,8 +221,8 @@ checksum: unlink(dest); pkg_emit_error("cached package %s-%s: " - "size mismatch, fetching from remote", - name, version); + "size mismatch (%li != %li), fetching from remote", + name, version, pkgsize, st.st_size); return (pkg_repo_binary_try_fetch(repo, pkg, true, mirror, destdir)); } retcode = sha256_file(dest, cksum); -- Melvyn