From 0f6c67d0083d00272121a5ccc2adb3a6107b5623 Mon Sep 17 00:00:00 2001 From: vpeter4 Date: Tue, 5 Mar 2013 12:49:50 +0100 Subject: [PATCH 01/11] update: check for enough space before copying KERNEL and SYSTEM files, closes #1984 --- .../config/busybox-initramfs.conf | 4 +- .../sysutils/busybox-initramfs/scripts/init | 52 +++++++++++++++---- 2 files changed, 45 insertions(+), 11 deletions(-) diff --git a/packages/initramfs/sysutils/busybox-initramfs/config/busybox-initramfs.conf b/packages/initramfs/sysutils/busybox-initramfs/config/busybox-initramfs.conf index 073c50ec04..05322796d6 100644 --- a/packages/initramfs/sysutils/busybox-initramfs/config/busybox-initramfs.conf +++ b/packages/initramfs/sysutils/busybox-initramfs/config/busybox-initramfs.conf @@ -209,7 +209,7 @@ CONFIG_CP=y # CONFIG_FEATURE_DD_SIGNAL_HANDLING is not set # CONFIG_FEATURE_DD_THIRD_STATUS_LINE is not set # CONFIG_FEATURE_DD_IBS_OBS is not set -# CONFIG_DF is not set +CONFIG_DF=y # CONFIG_FEATURE_DF_FANCY is not set # CONFIG_DIRNAME is not set # CONFIG_DOS2UNIX is not set @@ -273,7 +273,7 @@ CONFIG_SLEEP=y # CONFIG_FEATURE_SORT_BIG is not set # CONFIG_SPLIT is not set # CONFIG_FEATURE_SPLIT_FANCY is not set -# CONFIG_STAT is not set +CONFIG_STAT=y # CONFIG_FEATURE_STAT_FORMAT is not set # CONFIG_STTY is not set # CONFIG_SUM is not set diff --git a/packages/initramfs/sysutils/busybox-initramfs/scripts/init b/packages/initramfs/sysutils/busybox-initramfs/scripts/init index 51dab2d243..e8d9344412 100755 --- a/packages/initramfs/sysutils/busybox-initramfs/scripts/init +++ b/packages/initramfs/sysutils/busybox-initramfs/scripts/init @@ -39,8 +39,10 @@ REBOOT="0" MD5_FAILED="0" MD5_NOCHECK="0" + SIZE_FAILED="0" NBD_DEVS="0" + FLASH_FREE_MIN="5" INSTALLED_MEMORY=`cat /proc/meminfo | grep 'MemTotal:' | awk '{print $2}'` SYSTEM_TORAM_LIMIT=1024000 @@ -444,21 +446,53 @@ MD5_FAILED="1" fi - # update if md5 check is ok or .nocheck exists - if [ "$MD5_FAILED" -eq "0" -o "$MD5_NOCHECK" -eq "1" ] ; then - update "Kernel" "$UPDATE_KERNEL" "/flash/$IMAGE_KERNEL" - update "System" "$UPDATE_SYSTEM" "/flash/$IMAGE_SYSTEM" - update_bootloader - REBOOT="1" + # get sizes + FLASH_FREE=$(/bin/busybox df /flash/ | awk '/[0-9]%/{print $4}') + FLASH_FREE=$(( $FLASH_FREE * 1024 )) + OLD_KERNEL=$(/bin/busybox stat -t "/flash/$IMAGE_KERNEL" | awk '{print $2}') + OLD_SYSTEM=$(/bin/busybox stat -t "/flash/$IMAGE_SYSTEM" | awk '{print $2}') + NEW_KERNEL=$(/bin/busybox stat -t "$UPDATE_DIR/$UPDATE_KERNEL" | awk '{print $2}') + NEW_SYSTEM=$(/bin/busybox stat -t "$UPDATE_DIR/$UPDATE_SYSTEM" | awk '{print $2}') + + # old KERNEL+SYSTEM+free space - new KERNEL+SYSTEM must be higher then 5MB + # at least 5MB free after update + + TMP_SIZE=$(($OLD_KERNEL+$OLD_SYSTEM+$FLASH_FREE-$NEW_KERNEL-$NEW_SYSTEM)) + FLASH_FREE_MIN=$(($FLASH_FREE_MIN*1024*1024)) + + if [ $TMP_SIZE -ge $FLASH_FREE_MIN ]; then + echo "Checking size: OK" + else + echo "Checking size: FAILED" + SIZE_FAILED="1" + fi + + # update if size check is ok + if [ "$SIZE_FAILED" -eq "0" ] ; then + # update if md5 check is ok or .nocheck exists + if [ "$MD5_FAILED" -eq "0" -o "$MD5_NOCHECK" -eq "1" ] ; then + update "Kernel" "$UPDATE_KERNEL" "/flash/$IMAGE_KERNEL" + update "System" "$UPDATE_SYSTEM" "/flash/$IMAGE_SYSTEM" + update_bootloader + REBOOT="1" + else + /bin/busybox rm "$UPDATE_DIR/$UPDATE_KERNEL" + /bin/busybox rm "$UPDATE_DIR/$UPDATE_SYSTEM" + echo "md5 check failed. normal startup in 30s..." + /bin/busybox sync + /bin/busybox usleep 30000000 + fi + /bin/busybox rm "$UPDATE_DIR/${UPDATE_KERNEL}.md5" &>/dev/null + /bin/busybox rm "$UPDATE_DIR/${UPDATE_SYSTEM}.md5" &>/dev/null else /bin/busybox rm "$UPDATE_DIR/$UPDATE_KERNEL" /bin/busybox rm "$UPDATE_DIR/$UPDATE_SYSTEM" - echo "md5 check failed. normal startup in 30s..." + /bin/busybox rm "$UPDATE_DIR/${UPDATE_KERNEL}.md5" &>/dev/null + /bin/busybox rm "$UPDATE_DIR/${UPDATE_SYSTEM}.md5" &>/dev/null + echo "size check failed. normal startup in 30s..." /bin/busybox sync /bin/busybox usleep 30000000 fi - /bin/busybox rm "$UPDATE_DIR/${UPDATE_KERNEL}.md5" &>/dev/null - /bin/busybox rm "$UPDATE_DIR/${UPDATE_SYSTEM}.md5" &>/dev/null fi if test "$REBOOT" -eq "1"; then From cd3828a3a0092cf900c4d2b4f43383fc8f031885 Mon Sep 17 00:00:00 2001 From: Stefan Saraev Date: Tue, 5 Mar 2013 21:38:03 +0200 Subject: [PATCH 02/11] xf86-video-fglrx: remove some overlapping pci ids - use legacy driver for 0x6770 & 0x68E1 --- ...lrx-12.10-remove-overlapping-pci-ids.patch | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 packages/x11/driver/xf86-video-fglrx/patches.upstream/xf86-video-fglrx-12.10-remove-overlapping-pci-ids.patch diff --git a/packages/x11/driver/xf86-video-fglrx/patches.upstream/xf86-video-fglrx-12.10-remove-overlapping-pci-ids.patch b/packages/x11/driver/xf86-video-fglrx/patches.upstream/xf86-video-fglrx-12.10-remove-overlapping-pci-ids.patch new file mode 100644 index 0000000000..cb6d32642f --- /dev/null +++ b/packages/x11/driver/xf86-video-fglrx/patches.upstream/xf86-video-fglrx-12.10-remove-overlapping-pci-ids.patch @@ -0,0 +1,20 @@ +diff --git a/common/lib/modules/fglrx/build_mod/fglrxko_pci_ids.h b/common/lib/modules/fglrx/build_mod/fglrxko_pci_ids.h +index b358d0b..d45a78a 100755 +--- a/common/lib/modules/fglrx/build_mod/fglrxko_pci_ids.h ++++ b/common/lib/modules/fglrx/build_mod/fglrxko_pci_ids.h +@@ -97,7 +97,6 @@ + FGL_ASIC_ID(0x677B), + FGL_ASIC_ID(0x6772), + FGL_ASIC_ID(0x6779), +- FGL_ASIC_ID(0x6770), + FGL_ASIC_ID(0x671F), + FGL_ASIC_ID(0x6718), + FGL_ASIC_ID(0x6719), +@@ -147,7 +146,6 @@ + FGL_ASIC_ID(0x68D1), + FGL_ASIC_ID(0x68C7), + FGL_ASIC_ID(0x68E0), +- FGL_ASIC_ID(0x68E1), + FGL_ASIC_ID(0x68F0), + FGL_ASIC_ID(0x68F1), + FGL_ASIC_ID(0x68E4), From 76838a2ada0af6e0e8598f834f10112ac31edc85 Mon Sep 17 00:00:00 2001 From: Stefan Saraev Date: Wed, 6 Mar 2013 00:26:06 +0200 Subject: [PATCH 03/11] pastebinit: replace with a simple shell script --- packages/sysutils/busybox/install | 2 ++ packages/sysutils/busybox/meta | 2 +- .../busybox/scripts/pastebinit} | 12 +++---- packages/tools/pastebinit/meta | 36 ------------------- ...nit-1.3.1-01-change_default_pastebin.patch | 12 ------- 5 files changed, 8 insertions(+), 56 deletions(-) rename packages/{tools/pastebinit/install => sysutils/busybox/scripts/pastebinit} (79%) delete mode 100644 packages/tools/pastebinit/meta delete mode 100644 packages/tools/pastebinit/patches/pastebinit-1.3.1-01-change_default_pastebin.patch diff --git a/packages/sysutils/busybox/install b/packages/sysutils/busybox/install index 3cd5b33e0f..8786c86b01 100755 --- a/packages/sysutils/busybox/install +++ b/packages/sysutils/busybox/install @@ -40,6 +40,8 @@ USER_PWD="`$ROOT/$TOOLCHAIN/bin/cryptpw -m sha512 $USER_PASSWORD`" cp $PKG_DIR/scripts/lsb_release $INSTALL/usr/bin/ cp $PKG_DIR/scripts/apt-get $INSTALL/usr/bin/ ln -sf /bin/busybox $INSTALL/usr/bin/env #/usr/bin/env is needed for most python scripts + cp $PKG_DIR/scripts/pastebinit $INSTALL/usr/bin/ + ln -sf pastebinit $INSTALL/usr/bin/paste mkdir -p $INSTALL/sbin cp $PKG_DIR/scripts/init $INSTALL/sbin/ diff --git a/packages/sysutils/busybox/meta b/packages/sysutils/busybox/meta index bdbe49cd55..51f0927db7 100644 --- a/packages/sysutils/busybox/meta +++ b/packages/sysutils/busybox/meta @@ -25,7 +25,7 @@ PKG_ARCH="any" PKG_LICENSE="GPL" PKG_SITE="http://www.busybox.net" PKG_URL="http://busybox.net/downloads/$PKG_NAME-$PKG_VERSION.tar.bz2" -PKG_DEPENDS="bash kexec-tools hdparm speedcontrol pastebinit zip pciutils usbutils" +PKG_DEPENDS="bash kexec-tools hdparm speedcontrol zip pciutils usbutils" PKG_BUILD_DEPENDS="toolchain busybox-hosttools" PKG_PRIORITY="required" PKG_SECTION="system" diff --git a/packages/tools/pastebinit/install b/packages/sysutils/busybox/scripts/pastebinit similarity index 79% rename from packages/tools/pastebinit/install rename to packages/sysutils/busybox/scripts/pastebinit index 86d71f0964..94a09d1142 100755 --- a/packages/tools/pastebinit/install +++ b/packages/sysutils/busybox/scripts/pastebinit @@ -20,11 +20,9 @@ # http://www.gnu.org/copyleft/gpl.html ################################################################################ -. config/options $1 +# +# wrapper for curl, posting to the sprunge.us pastebin +# reads from stdin if called without an argument +# -mkdir -p $INSTALL/etc/pastebin.d - cp $PKG_BUILD/pastebin.d/sprunge.us.conf $INSTALL/etc/pastebin.d - -mkdir -p $INSTALL/usr/bin - cp $PKG_BUILD/pastebinit $INSTALL/usr/bin - ln -sf pastebinit $INSTALL/usr/bin/paste # link for a shorter command +cat "$@" | curl -F 'sprunge=<-' http://sprunge.us diff --git a/packages/tools/pastebinit/meta b/packages/tools/pastebinit/meta deleted file mode 100644 index a8d3a1f098..0000000000 --- a/packages/tools/pastebinit/meta +++ /dev/null @@ -1,36 +0,0 @@ -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) -# -# This Program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. -# -# This Program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with OpenELEC.tv; see the file COPYING. If not, write to -# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -PKG_NAME="pastebinit" -PKG_VERSION="1.3.1" -PKG_REV="1" -PKG_ARCH="any" -PKG_LICENSE="GPL" -PKG_SITE="http://launchpad.net/pastebinit" -PKG_URL="http://launchpad.net/pastebinit/trunk/$PKG_VERSION/+download/$PKG_NAME-$PKG_VERSION.tar.gz" -PKG_DEPENDS="Python simplejson configobj" -PKG_BUILD_DEPENDS="toolchain" -PKG_PRIORITY="optional" -PKG_SECTION="tools" -PKG_SHORTDESC="pastebinit: Upload Directly to Pastebin from the Linux Shell" -PKG_LONGDESC="pastebinit is a tool for Uploading Directly to Pastebin from the Linux Shell" -PKG_IS_ADDON="no" - -PKG_AUTORECONF="no" diff --git a/packages/tools/pastebinit/patches/pastebinit-1.3.1-01-change_default_pastebin.patch b/packages/tools/pastebinit/patches/pastebinit-1.3.1-01-change_default_pastebin.patch deleted file mode 100644 index e64d5c9ab0..0000000000 --- a/packages/tools/pastebinit/patches/pastebinit-1.3.1-01-change_default_pastebin.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -Naur pastebinit-1.3/pastebinit pastebinit-1.3.patch/pastebinit ---- pastebinit-1.3/pastebinit 2012-02-15 22:14:22.000000000 +0100 -+++ pastebinit-1.3.patch/pastebinit 2012-05-07 03:40:49.119612858 +0200 -@@ -17,7 +17,7 @@ - # along with this program; if not, write to the Free Software - # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - --defaultPB = "http://pastebin.com" #Default pastebin -+defaultPB = "http://sprunge.us" #Default pastebin - try: - import lsb_release - release = lsb_release.get_distro_information()['ID'].lower() From 28db923d0cf967975561f4ded31d34f3ed1b1618 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Wed, 6 Mar 2013 10:22:49 +0100 Subject: [PATCH 04/11] projects/Fusion/xbmc: update advancedsettings.xml Signed-off-by: Stephan Raue --- projects/Fusion/xbmc/advancedsettings.xml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/projects/Fusion/xbmc/advancedsettings.xml b/projects/Fusion/xbmc/advancedsettings.xml index a77140b427..a2942f0628 100644 --- a/projects/Fusion/xbmc/advancedsettings.xml +++ b/projects/Fusion/xbmc/advancedsettings.xml @@ -1,5 +1,24 @@ + false + cputemp + gputemp + + + 30 + + + 30 + false From 2dff1483d62fdc5effb4a04cc966f16d767dfcf8 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Wed, 6 Mar 2013 10:23:15 +0100 Subject: [PATCH 05/11] xbmc: add fglrx-legacy support to gputemp script Signed-off-by: Stephan Raue --- packages/mediacenter/xbmc/scripts/gputemp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/mediacenter/xbmc/scripts/gputemp b/packages/mediacenter/xbmc/scripts/gputemp index d5152aa4f6..6b312d00b4 100755 --- a/packages/mediacenter/xbmc/scripts/gputemp +++ b/packages/mediacenter/xbmc/scripts/gputemp @@ -27,11 +27,13 @@ if lspci -n | grep 0300 | grep -q 10de; then fi if lspci -n | grep 0300 | grep -q 1002; then - if [ -f /storage/.config/xorg.conf ]; then - XORG="/storage/.config/xorg.conf" - else - XORG="/etc/X11/xorg-fglrx.conf" - fi + if [ -f /storage/.config/xorg.conf ]; then + XORG="/storage/.config/xorg.conf" + elif [ -f /etc/X11/xorg-fglrx-legacy.conf ]; then + XORG="/etc/X11/xorg-fglrx-legacy.conf" + else + XORG="/etc/X11/xorg-fglrx.conf" + fi [ -f /usr/bin/aticonfig ] && TEMP=`/usr/bin/aticonfig -i $XORG --od-gettemperature | grep Temperature | cut -f 2 -d "-" | cut -f 1 -d "." | sed -e "s, ,,"` fi From 07b543cef00bdc9729711531f48706004f7ed559 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Wed, 6 Mar 2013 10:23:44 +0100 Subject: [PATCH 06/11] projects/ARCTIC_MC: add project specific advancedsettings.xml Signed-off-by: Stephan Raue --- projects/ARCTIC_MC/xbmc/advancedsettings.xml | 30 ++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 projects/ARCTIC_MC/xbmc/advancedsettings.xml diff --git a/projects/ARCTIC_MC/xbmc/advancedsettings.xml b/projects/ARCTIC_MC/xbmc/advancedsettings.xml new file mode 100644 index 0000000000..a2942f0628 --- /dev/null +++ b/projects/ARCTIC_MC/xbmc/advancedsettings.xml @@ -0,0 +1,30 @@ + + + false + cputemp + gputemp + + + 30 + + + 30 + + + + false + false + false + false + false + + From c961f399b11a300c612edd406ff61fa7c00b2c43 Mon Sep 17 00:00:00 2001 From: Stefan Saraev Date: Wed, 6 Mar 2013 12:22:32 +0200 Subject: [PATCH 07/11] SABnzbd: build depend on 'configobj' --- packages/3rdparty/download/SABnzbd/meta | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/3rdparty/download/SABnzbd/meta b/packages/3rdparty/download/SABnzbd/meta index 520efa73b3..dd411ad525 100644 --- a/packages/3rdparty/download/SABnzbd/meta +++ b/packages/3rdparty/download/SABnzbd/meta @@ -26,7 +26,7 @@ PKG_LICENSE="OSS" PKG_SITE="http://sabnzbd.org/" PKG_URL="$SOURCEFORGE_SRC/sabnzbdplus/sabnzbdplus/${PKG_VERSION}/${PKG_NAME}-${PKG_VERSION}-src.tar.gz" PKG_DEPENDS="Python Cheetah pyOpenSSL yenc unrar unzip par2cmdline" -PKG_BUILD_DEPENDS="toolchain Python Cheetah pyOpenSSL yenc unrar unzip par2cmdline" +PKG_BUILD_DEPENDS="toolchain Python Cheetah pyOpenSSL yenc unrar unzip par2cmdline configobj" PKG_PRIORITY="optional" PKG_SECTION="service/downloadmanager" PKG_SHORTDESC="SABnzbd makes Usenet as simple and streamlined as possible by automating everything we can." From a4c77ff5df1ed83cfa57b578174b44c8c2b7f8ae Mon Sep 17 00:00:00 2001 From: Stefan Saraev Date: Wed, 6 Mar 2013 12:23:52 +0200 Subject: [PATCH 08/11] SABnzbd-Suite: include 'configobj' in addon --- packages/addons/service/downloadmanager/SABnzbd-Suite/addon | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/addons/service/downloadmanager/SABnzbd-Suite/addon b/packages/addons/service/downloadmanager/SABnzbd-Suite/addon index 0c43ee5b91..4bf37389a5 100755 --- a/packages/addons/service/downloadmanager/SABnzbd-Suite/addon +++ b/packages/addons/service/downloadmanager/SABnzbd-Suite/addon @@ -34,6 +34,7 @@ mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/pylib cp -R $BUILD/Cheetah*/.install/usr/lib/python*/site-packages/* $ADDON_BUILD/$PKG_ADDON_ID/pylib cp -R $BUILD/pyOpenSSL*/.install/usr/lib/python*/site-packages/* $ADDON_BUILD/$PKG_ADDON_ID/pylib cp -R $BUILD/yenc*/.install/usr/lib/python*/site-packages/* $ADDON_BUILD/$PKG_ADDON_ID/pylib + cp -R $BUILD/configobj*/.install/usr/lib/python*/site-packages/* $ADDON_BUILD/$PKG_ADDON_ID/pylib mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/SABnzbd cp -PR $BUILD/SABnzbd-*/* $ADDON_BUILD/$PKG_ADDON_ID/SABnzbd From a1c9a1d88a53c3314c88b4552125cf3407e41e09 Mon Sep 17 00:00:00 2001 From: Stefan Saraev Date: Wed, 6 Mar 2013 13:07:26 +0200 Subject: [PATCH 09/11] SABnzbd-Suite: fix configobj import (now in pylib/) --- .../SABnzbd-Suite/source/bin/SABnzbd-Suite.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/addons/service/downloadmanager/SABnzbd-Suite/source/bin/SABnzbd-Suite.py b/packages/addons/service/downloadmanager/SABnzbd-Suite/source/bin/SABnzbd-Suite.py index 5ed24abd59..4639ed6d2a 100755 --- a/packages/addons/service/downloadmanager/SABnzbd-Suite/source/bin/SABnzbd-Suite.py +++ b/packages/addons/service/downloadmanager/SABnzbd-Suite/source/bin/SABnzbd-Suite.py @@ -27,7 +27,7 @@ import signal import subprocess import urllib2 import hashlib -from configobj import ConfigObj +import sys from xml.dom.minidom import parseString import logging import traceback @@ -195,6 +195,9 @@ except: signal.signal(signal.SIGCHLD, signal.SIG_DFL) os.environ['PYTHONPATH'] = str(os.environ.get('PYTHONPATH')) + ':' + pPylib +sys.path.append(pPylib) + +from configobj import ConfigObj # SABnzbd start try: From 4292d9b3e7a3155d25382eef8d4d6fa98ce24c55 Mon Sep 17 00:00:00 2001 From: Stefan Saraev Date: Wed, 6 Mar 2013 13:14:49 +0200 Subject: [PATCH 10/11] yenc: install pyo files only --- packages/python/system/yenc/build | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/python/system/yenc/build b/packages/python/system/yenc/build index 285d2998d2..07a62bda96 100755 --- a/packages/python/system/yenc/build +++ b/packages/python/system/yenc/build @@ -31,3 +31,4 @@ python setup.py build --cross-compile python setup.py install --root=./.install --prefix=/usr rm -rf .install/usr/bin +rm -rf .install/usr/lib/python*/site-packages/*.py From 9bf0c62589579bf3033a8e6af934c415e7f900d9 Mon Sep 17 00:00:00 2001 From: Stefan Saraev Date: Wed, 6 Mar 2013 13:15:01 +0200 Subject: [PATCH 11/11] Cheetah: install pyo files only --- packages/python/devel/Cheetah/build | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/python/devel/Cheetah/build b/packages/python/devel/Cheetah/build index 285d2998d2..854cad3db2 100755 --- a/packages/python/devel/Cheetah/build +++ b/packages/python/devel/Cheetah/build @@ -31,3 +31,4 @@ python setup.py build --cross-compile python setup.py install --root=./.install --prefix=/usr rm -rf .install/usr/bin +find .install/usr/lib/python*/site-packages/ -name "*.py" -exec rm -rf {} ";"