diff options
author | BlackNoxis <steven.darklight@gmail.com> | 2014-12-03 03:20:49 +0200 |
---|---|---|
committer | BlackNoxis <steven.darklight@gmail.com> | 2014-12-03 03:20:49 +0200 |
commit | 58ae5bbf25835bd30fa385275ff4486dbc31f0a2 (patch) | |
tree | 3a68352e09b5cce3a8a33a7eef956e9d254d126e /bin/bump_vbox |
Making public our Kogaion bin
Diffstat (limited to 'bin/bump_vbox')
-rwxr-xr-x | bin/bump_vbox | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/bin/bump_vbox b/bin/bump_vbox new file mode 100755 index 0000000..55eb76c --- /dev/null +++ b/bin/bump_vbox @@ -0,0 +1,27 @@ +#!/bin/sh + +. /kogaion/bin/kernels.inc +packages="app-emulation/virtualbox-guest-additions app-emulation/virtualbox-modules x11-drivers/xf86-video-virtualbox" +non_tagged_packages="virtualbox-bin" + +# build for latest kernel +KERNEL_DIR="/usr/src/linux-${running_kernel}" emerge $packages ${non_tagged_packages} || exit 1 +echo -5 | etc-update +eit add ${packages} ${non_tagged_packages} || exit 1 + +for kernel in $kernels; do + if [ "${kernel}" = "${running_kernel}" ]; then + continue + fi + rm -rf /usr/portage/packages/* + KERNEL_DIR="/usr/src/linux-${kernel}" emerge -B ${packages} || { echo "ouch unable to build" && exit 1; } + built_pkgs=$(find /usr/portage/packages -name "*.tbz2" | xargs echo) + [[ -z "${built_pkgs}" ]] && echo "ouch no kernel pkgs" && exit 2 + eit inject ${built_pkgs} || { echo "ouch unable to inject" && exit 3; } + echo + eit search "#${kernel}" -q | sort | uniq + echo +done + +echo "Now you should remove old packages" +echo "PLEASE also see /etc/entropy/packages/packages.server.dep_rewrite" |