From 1a1a64a16d2bc8f125dc57056699f52c43445da7 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Thu, 9 Mar 2023 10:07:25 -0600 Subject: [PATCH] rebuild-pkg: Script to rebuild/reinstall a binpkg This script can be used to rebuild a binary package in the SYSROOT and reinstall it in the destination root. ```sh ./rebuild-pkg sec-policy/selinux-aimee-os make -W /tmp/build/.built O=/tmp/build IMAGESDIR=${PWD}/images ``` --- rebuild-pkg.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 rebuild-pkg.sh diff --git a/rebuild-pkg.sh b/rebuild-pkg.sh new file mode 100755 index 0000000..20c42b6 --- /dev/null +++ b/rebuild-pkg.sh @@ -0,0 +1,12 @@ +#!/bin/sh +# vim: set sw=4 ts=4 sts=4 et : + +set -e + +. ./config + +unset MAKEFLAGS MAKEOVERRIDES MAKELEVEL + +export PORTAGE_CONFIGROOT="${PWD}"/portage/config/target + +${target}-emerge -bv1j --usepkg-exclude="$*" "$@"