Various config tweaks, move local use and makeopts into profile.d

This commit is contained in:
Stefan Reimer 2013-09-18 23:36:50 -07:00
parent b7e3c46231
commit 187b733fe0
8 changed files with 37 additions and 31 deletions

View File

@ -18,7 +18,7 @@ CHOST="x86_64-pc-linux-gnu"
DO_USE="smp" DO_USE="smp"
# X # X
DO_USE="${DO_USE} qt3support cairo gtk gtk3 gles2 gstreamer g3dvl imlib libkms nvidia vaapi vdpau libkms X xcb opencl opengl s3tc truetype vaapi xcomposite" DO_USE="${DO_USE} cairo gtk gtk3 gles2 gstreamer g3dvl imlib libkms nvidia qt4 qt3support vaapi vdpau libkms X xcb opencl opengl s3tc truetype vaapi xcomposite"
# OpenBox # OpenBox
DO_USE="${DO_USE} thunar" DO_USE="${DO_USE} thunar"

View File

@ -1,7 +1,8 @@
# Base # Base
sys-boot/grub sys-boot/grub
sys-fs/cryptsetup sys-fs/cryptsetup
sys-kernel/dracut <sys-kernel/dracut-033
sys-fs/mdadm
# sys-boot/efibootmgr # sys-boot/efibootmgr
# sys-boot/os-prober # sys-boot/os-prober
# sys-kernel/hardened-sources # sys-kernel/hardened-sources
@ -53,7 +54,6 @@ games-emulation/advancemame
media-gfx/dispcalgui media-gfx/dispcalgui
www-client/firefox www-client/firefox
www-plugins/adobe-flash
# EVE # EVE
games-util/gtkevemon ** games-util/gtkevemon **
@ -65,8 +65,6 @@ games-util/pyfa
# required by pyfa (argument) # required by pyfa (argument)
=dev-python/sqlalchemy-0.8.2 ~amd64 =dev-python/sqlalchemy-0.8.2 ~amd64
#required by lxdm (argument)
lxde-base/lxdm
x11-misc/tint2 x11-misc/tint2
# Android # Android
@ -88,6 +86,11 @@ net-wireless/aircrack-ng
# required by @world (argument) # required by @world (argument)
=net-wireless/lorcon-0.0_p20130212 ~amd64 =net-wireless/lorcon-0.0_p20130212 ~amd64
# Video player + editing
media-video/ffmpeg
media-video/avidemux
media-libs/avidemux-core
media-libs/avidemux-plugins
media-video/rtmpdump ** media-video/rtmpdump **

View File

View File

@ -29,13 +29,14 @@ dev-libs/libxml2 python
dev-db/sqlite secure-delete unlock-notify dev-db/sqlite secure-delete unlock-notify
net-analyzer/nmap lua net-analyzer/nmap lua
# Use gtk3
net-analyzer/wireshark -gtk2 -qt4
media-sound/pulseaudio gnome media-sound/pulseaudio gnome
dev-lang/php pcntl gd zip dev-lang/php pcntl gd zip
sys-kernel/hardened-sources injection symlink sys-kernel/hardened-sources injection symlink
x11-drivers/ati-drivers qt4
media-libs/mesa r600-llvm-compiler media-libs/mesa r600-llvm-compiler
sys-devel/llvm clang sys-devel/llvm clang

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
set -e set -e
CPUS=$(nproc)
[ "x$NEW" == "x" ] && NEW=$(grep "Kernel Configuration" /usr/src/linux/.config | awk '{print $3}') [ "x$NEW" == "x" ] && NEW=$(grep "Kernel Configuration" /usr/src/linux/.config | awk '{print $3}')
echo $NEW echo $NEW
@ -10,7 +8,7 @@ cd /usr/src/linux-${NEW}
# make clean # make clean
# make oldconfig # make oldconfig
make menuconfig make menuconfig
make -j${CPUS} all make all ${MAKEOPTS}
make modules_install make modules_install
for f in initrd vmlinuz System.map config; do for f in initrd vmlinuz System.map config; do

19
scripts/portage_env.sh Normal file
View File

@ -0,0 +1,19 @@
# use as many cores as available
export MAKEOPTS="-j$(nproc)"
# USE
# Look at CPU and return all actually available USE flags
get_cpu_use() {
AVAILABLE_USE="mmx mmxext sse sse2 sse3 ssse3 sse4 sse4_1 avx 3dnow 3dnowext"
CPU_FLAGS=$(cat /proc/cpuinfo | grep flags | cut -d\ -f2- | uniq)
_USE=""
for f in ${AVAILABLE_USE}; do
if [ "$CPU_FLAGS" != "${CPU_FLAGS/$f/}" ]; then
_USE="$_USE $f"
fi
done
echo $_USE
}
export USE=$(get_cpu_use)

View File

@ -16,4 +16,4 @@ link() {
} }
link "update_portage.sh update_box.sh make_kernel.sh" "/mnt/portage/overlays/quarks/scripts" "/usr/local/sbin" link "update_portage.sh update_box.sh make_kernel.sh" "/mnt/portage/overlays/quarks/scripts" "/usr/local/sbin"
link "make.conf package.use package.keywords package.license" "/mnt/portage/overlays/quarks/conf/portage" "/etc/portage" link "make.conf package.use package.keywords package.license package.mask" "/mnt/portage/overlays/quarks/conf/portage" "/etc/portage"

View File

@ -1,32 +1,12 @@
#!/bin/sh #!/bin/sh
#set -x #set -x
# Look at CPU and return all actually available USE flags
get_cpu_use() {
AVAILABLE_USE="mmx mmxext sse sse2 sse3 ssse3 sse4 sse4_1 avx 3dnow 3dnowext"
CPU_FLAGS=$(cat /proc/cpuinfo | grep flags | cut -d\ -f2- | uniq)
_USE=""
for f in ${AVAILABLE_USE}; do
if [ "$CPU_FLAGS" != "${CPU_FLAGS/$f/}" ]; then
_USE="$_USE $f"
fi
done
echo $_USE
}
CPU_USE=$(get_cpu_use)
export USE="$CPU_USE"
CPUS=$(nproc)
# as many cc as CPUs
export MAKEOPTS="-j${CPUS}"
# Trigger mount # Trigger mount
# ls /mnt/portage/distfiles /mnt/portage/portage > /dev/null # ls /mnt/portage/distfiles /mnt/portage/portage > /dev/null
# Half as many emerge as CPUs, to speed up configure runs # Half as many emerge as CPUs, to speed up configure runs
CPUS=$(nproc)
emerge --ask --update --deep --newuse --keep-going --accept-properties=-interactive --jobs $((CPUS/2)) world emerge --ask --update --deep --newuse --keep-going --accept-properties=-interactive --jobs $((CPUS/2)) world
# echo "Fixing pax flags..." # echo "Fixing pax flags..."
@ -35,6 +15,11 @@ emerge --ask --update --deep --newuse --keep-going --accept-properties=-interact
echo "Going to remove unneeded packages ..." echo "Going to remove unneeded packages ..."
emerge --depclean emerge --depclean
if [ -x $(which localepurge) ]; then
echo "Removing unneeded locales..."
localepurge
fi
echo "Fixing dependencies..." echo "Fixing dependencies..."
revdep-rebuild -i revdep-rebuild -i