From owner-freebsd-ports@freebsd.org Fri Mar 11 11:23:30 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 3A880ACC9F0 for ; Fri, 11 Mar 2016 11:23:30 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.117.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EC6A89B2 for ; Fri, 11 Mar 2016 11:23:29 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from ox-dell39.ox.adestra.com (unknown [85.199.232.226]) (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 8F1CE83EE for ; Fri, 11 Mar 2016 11:23:24 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/8F1CE83EE; dkim=none; dkim-atps=neutral Subject: Re: pkg: fetching binary packages to a local dumpdir for a different ABI To: freebsd-ports@freebsd.org References: <20160311104226.35a9e17d@freyja.zeit4.iv.bundesimmobilien.de> From: Matthew Seaman X-Enigmail-Draft-Status: N1110 Message-ID: <56E2AAA4.7030708@freebsd.org> Date: Fri, 11 Mar 2016 11:23:16 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <20160311104226.35a9e17d@freyja.zeit4.iv.bundesimmobilien.de> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="2agiTeQ2UL8hLaMT9rXC43WTblbqGQ8aK" X-Virus-Scanned: clamav-milter 0.99 at smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=2.2 required=5.0 tests=RDNS_NONE,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.1 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on smtp.infracaninophile.co.uk X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Mar 2016 11:23:30 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --2agiTeQ2UL8hLaMT9rXC43WTblbqGQ8aK Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 03/11/16 09:42, O. Hartmann wrote: > The process will require 4 GiB more space. > 4 GiB to be downloaded. > Fetching pkg-1.6.4_1.txz: 100% 3 MiB 562.3kB/s 00:05 =20 > pkg-static: cached package pkg-1.6.4_1: size mismatch, fetching from re= mote > Fetching pkg-1.6.4_1.txz: 100% 3 MiB 562.3kB/s 00:05 =20 > pkg-static: cached package pkg-1.6.4_1: size mismatch, cannot continue >=20 > Well, it seems clear - somewhere (on that specific box nowhere!) is a c= ache and > the size-hash is compared - but where? The list in pkglist contains als= o > ports-mgmt/pkg and it is the first package to be fetched. At a guess you're mixing packages from one architecture with the package catalogue from a different one. You can achieve what you want, but you should use a tailored ${LOCALBASE}/etc/pkg.conf with custom settings for ABI, PKG_CACHEDIR and PKG_DBDIR. In principle it is possible to install packages for a foreign architecture using this sort of setup: that's what the '-R' flag to pkg(8) is all about -- so you can build a system image for a foreign arch on eg. a micro SD card you've mounted onto your filesystem but be able to store its package database and caches offline. Cheers, Matthew --2agiTeQ2UL8hLaMT9rXC43WTblbqGQ8aK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJW4qqkAAoJEABRPxDgqeTnrzkQAK7MlJzwtLTsAyD0T6AUS13i FNOFosuJmYUDLeHnnVzjqPWgSgMXP5/u7rlfelbbi1hl+EkS7QEkJtDlIcbwNlEV acszXwlcCdlhbKEoN+EqUAx0RnY9tUOCwY+Zk+5O46eirmlzu8pRzohPCC2al/I6 jXOcGovYQZl/906G2EIPPC/Hp1xLexerhGTKUAzz/Zpuw67pVPnTd+Yq9UovjTYq ozIWSRkOT9e53KreLK4ws0/luxGMrA8lbhMzWHfJWOJEYGwgPcKKQGKky+HEv+0T BMQi4z2oYeYtb79Mypqmh1ZityItpxOj2fwwftGnhVS8B5f4BDTa4fZyevngCHjB wfxI9TcSQpfzQwYl1cul/aTHrNCt9q+XFhwgfgH1e7NldP8qPltDvVeG+XWOnEX5 w3rRKir3qmU0bEKKFayHjN9vU+RxTNVG2kMe3sHKBW07dccNH9qwEfgbRlwEebeU mQhmjdR+pkWUimVTp7fWFDVK13g4sZAR+tYe1nGzZwOrx0M0L+4JO3CE/mXg54Ci L0gNuLGephL1MBkrbxx2olRveF+BHhPsN1aVMxs+PTGqO9RoH5y6GPP7VyWim176 fvE7yXqDWCtx0S2p2zahzBe/JxJXYl0AtWSTT5beCFtCUcdQfeY63WNR4hag4+vJ /wWmgLc0fPP2P1LF8Ta4 =5qTS -----END PGP SIGNATURE----- --2agiTeQ2UL8hLaMT9rXC43WTblbqGQ8aK--