mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-21 22:30:59 +02:00
livecd updates and profile updates. now pentoo-updater.sh is available to users for TESTING
This commit is contained in:
parent
34ee3829e9
commit
2bc3fc26ed
5 changed files with 67 additions and 0 deletions
|
|
@ -1,2 +1,7 @@
|
|||
#livecd use flag forces no gentoo-syntax, we want gentoo-syntax
|
||||
app-editors/vim-core livecd
|
||||
|
||||
#mesa only supports opencl for radeon users, but that doesn't allow password cracking, etc, so makes no sense for us
|
||||
media-libs/mesa opencl
|
||||
#same with wine
|
||||
app-emulation/wine opencl
|
||||
|
|
|
|||
|
|
@ -3,3 +3,5 @@ dev-python/PyQt4 webkit declarative sql script
|
|||
|
||||
# required by w3af dev-python/nltk
|
||||
dev-lang/python tk
|
||||
|
||||
dev-python/pycairo -xcb
|
||||
|
|
|
|||
1
profiles/pentoo/base/package.use/x11-drivers
Normal file
1
profiles/pentoo/base/package.use/x11-drivers
Normal file
|
|
@ -0,0 +1 @@
|
|||
x11-drivers/nvidia-drivers uvm
|
||||
|
|
@ -3,3 +3,5 @@ sys-auth/polkit -pam
|
|||
x11-libs/cairo -opengl
|
||||
|
||||
sys-apps/util-linux -udev
|
||||
|
||||
dev-lang/python -tk
|
||||
|
|
|
|||
57
scripts/pentoo-updater.sh
Executable file
57
scripts/pentoo-updater.sh
Executable file
|
|
@ -0,0 +1,57 @@
|
|||
#!/bin/sh
|
||||
source /etc/profile
|
||||
env-update
|
||||
|
||||
if [ -f /.catalyst_lock ]; then
|
||||
if [ -f /tmp/envscript ]; then
|
||||
source /tmp/envscript
|
||||
emerge --info > /var/log/portage/emerge-info-$(date "+%Y%m%d").txt
|
||||
fi
|
||||
fi
|
||||
|
||||
safe_exit() {
|
||||
#I want a shell when I'm in catalyst but just an exit on failure for users
|
||||
if [ -f /.catalyst_lock ]; then
|
||||
/bin/bash
|
||||
else
|
||||
exit
|
||||
fi
|
||||
}
|
||||
|
||||
emerge --update --newuse --oneshot portage || safe_exit
|
||||
|
||||
#first we set the python interpreters to match PYTHON_TARGETS
|
||||
eselect python set --python2 $(emerge --info | grep ^PYTHON_TARGETS | cut -d\" -f2 | cut -d" " -f 1 |sed 's#_#.#') || safe_exit
|
||||
eselect python set --python3 $(emerge --info | grep ^PYTHON_TARGETS | cut -d\" -f2 | cut -d" " -f 2 |sed 's#_#.#') || safe_exit
|
||||
python2.7 -c "from _multiprocessing import SemLock" || emerge -1 --buildpkg=y python:2.7
|
||||
python3.3 -c "from _multiprocessing import SemLock" || emerge -1 --buildpkg=y python:3.3
|
||||
python-updater -- --buildpkg=y --rebuild-exclude sys-devel/gdb --exclude sys-devel/gdb || safe_exit
|
||||
|
||||
perl-cleaner --ph-clean --modules -- --buildpkg=y || safe_exit
|
||||
|
||||
emerge --deep --update --newuse -kb @world || safe_exit
|
||||
|
||||
#if we are in catalyst, update the extra binpkgs
|
||||
if [ -f /.catalyst_lock ]; then
|
||||
#add kde and mate use flags
|
||||
echo "pentoo/pentoo kde mate" >> /etc/portage/package.use
|
||||
emerge --onlydeps --oneshot --deep --update --newuse pentoo/pentoo || safe_exit
|
||||
etc-update --automode -5 || safe_exit
|
||||
fi
|
||||
|
||||
emerge @preserved-rebuild --buildpkg=y || safe_exit
|
||||
smart-live-rebuild 2>&1 || safe_exit
|
||||
revdep-rebuild.py -i --no-pretend -- --rebuild-exclude dev-java/swt --exclude dev-java/swt --buildpkg=y || safe_exit
|
||||
emerge --deep --update --newuse -kb @world || safe_exit
|
||||
etc-update --automode -5 || safe_exit
|
||||
#we need to do the clean BEFORE we drop the extra flags otherwise all the packages we just built are removed
|
||||
emerge --depclean || safe_exit
|
||||
|
||||
if [ -f /.catalyst_lock ]; then
|
||||
eclean-pkg || safe_exit
|
||||
emaint binhost || safe_exit
|
||||
#remove kde/mate use flags
|
||||
rm /etc/portage/package.use
|
||||
fi
|
||||
|
||||
/usr/local/portage/scripts/bug-461824.sh
|
||||
Loading…
Reference in a new issue