Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Mar 2016 10:42:26 +0100
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        freebsd-ports <freebsd-ports@freebsd.org>
Subject:   pkg: fetching binary packages to a local dumpdir for a different ABI
Message-ID:  <20160311104226.35a9e17d@freyja.zeit4.iv.bundesimmobilien.de>

next in thread | raw e-mail | index | archive | help
On CURRENT, I try to "silly fetch" a selection of binary packages for FreeBSD
10-STABLE from a regular user via this command sequence:

env ABI=freebsd:10:x86:64 PKG_CACHEDIR=./tmp/packages/cache \
REPOS_DIR=./tmp/packages cat /usr/local/etc/poudriere.d/pkglist | \
xargs pkg fetch -y -U -d -o ./tmp/packages/

pkg trie to fecth, but then it simply complains about crap being fetched:

[...]
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    
pkg-static: cached package pkg-1.6.4_1: size mismatch, fetching from remote
Fetching pkg-1.6.4_1.txz: 100%    3 MiB 562.3kB/s    00:05    
pkg-static: cached package pkg-1.6.4_1: size mismatch, cannot continue

Well, it seems clear - somewhere (on that specific box nowhere!) is a cache and
the size-hash is compared - but where? The list in pkglist contains also
ports-mgmt/pkg and it is the first package to be fetched.

How can I force package to download "brutal force" the specified package for
the desired ABI?

Background: since poudriere fails building packages (especially lang/python27,
see my posts prior to this) within a 10-stable jail running on CURRENT (maybe
this doesn't work, but I didn't find anything regarding this on the rush), I'd
like to have a set of packages for installation on some 10-STABLE appliance
images.

The ABI is also unclear. Some documents say it is freebsd:10:x86:64 (which
looks more the Intel/Linux dominated terminology) and also this one is
considered correct: FreeBSD:10:amd64 (looks more FreeBSD'ish). It is said that
the variable ABI is derived from "sh" - how?

Many thanks in advance,

Oliver

P.S. Please CC me - I'm not subscribing this specific list. Thank you.



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