# Installing CherryPy-3.6.0.tar.gz # Prep Enviroment export CFLAGS="-march=i486 -mtune=i686 -Os -pipe" export CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig mkdir -p /tmp/package # Install build/install only dependencies tce-load -wil /mnt/hda1/tce/optional/compiletc.tcz tce-load -wil /mnt/hda1/tce/optional/squashfs-tools-4.x.tcz tce-load -wil /mnt/hda1/tce/optional/python-dev.tcz tce-load -wil /mnt/hda1/tce/optional/submitqc.tcz # Install required dependencies tce-load -wil /mnt/hda1/tce/optional/python.tcz # Install download dependencie tce-load -wil /mnt/hda1/tce/optional/wget.tcz # !!!!!!!!!!!!! May need to reboot at this stage, if following wget command does not work # Download source wget --no-check-certificate https://pypi.python.org/packages/source/C/CherryPy/CherryPy-3.6.0.tar.gz # Extract tar -xzf CherryPy-3.6.0.tar.gz # Enter source dir cd CherryPy-3.6.0 # Build Command python setup.py build # Install Command python setup.py install --prefix=/usr/local --root=/tmp/package # clean up extracted source files cd .. rm -rf CherryPy-3.6.0 # strip /tmp/package cd /tmp/package find . | xargs file | grep "executable" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || find . | xargs file | grep "shared object" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip -g 2> /dev/null ### Create base tcz cd /tmp mksquashfs package cherrypy.tcz cd /tmp/package find usr -not -type d > /tmp/cherrypy.tcz.list cd /tmp md5sum cherrypy.tcz > cherrypy.tcz.md5.txt touch cherrypy.tcz.dep echo python.tcz > cherrypy.tcz.dep # info based on template I had, detail's filled in manually with nano # Clean up /tmp/package folder rm -rf package # Prep for submitqc test mkdir cherrypy mv cherrypy.tcz* cherrypy cd cherrypy sudo submitqc # create tarbal cd /tmp tar -zcf cherrypy.tar.gz cherrypy # bcrypt, use password tinycore when prompted bcrypt cherrypy.tar.gz # Move folder and bcrypt file to storeage pending submission for approval cp cherrypy* /mnt/hda1/tcz