#!/bin/sh set -e # Run this script in a recent stage3 tarball to grab all required software versions and URLs. root="${1:-/}" pkgs=" sys-apps/baselayout app-arch/xz-utils sys-libs/zlib dev-libs/libffi dev-lang/python dev-lang/perl dev-libs/openssl net-misc/wget net-misc/rsync app-misc/ca-certificates sys-apps/portage sys-devel/m4 sys-devel/bison sys-devel/make sys-apps/sed " for x in $pkgs; do ver="$(portageq best_visible "$root" ebuild "$x")" echo "$ver" portageq metadata "$root" ebuild "$ver" SRC_URI echo done