Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Mar 2016 11:23:16 +0000
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-ports@freebsd.org
Subject:   Re: pkg: fetching binary packages to a local dumpdir for a different ABI
Message-ID:  <56E2AAA4.7030708@freebsd.org>
In-Reply-To: <20160311104226.35a9e17d@freyja.zeit4.iv.bundesimmobilien.de>
References:  <20160311104226.35a9e17d@freyja.zeit4.iv.bundesimmobilien.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56E2AAA4.7030708>