Changeset 16298 in niluje


Ignore:
Timestamp:
Aug 13, 2019, 10:14:00 PM (12 days ago)
Author:
NiLuJe
Message:

Kindle Hacks:

Location:
Configs/trunk/Kindle
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Configs/trunk/Kindle/Misc/x-compile.sh

    r16297 r16298  
    315315#       emerge -a dev-lang/tcl
    316316#
     317# For lxml:
     318#       emerge -a cython
     319#
    317320# To fetch everything:
    318321#       cave resolve -1 -z -f -x sys-libs/zlib expat freetype harfbuzz util-linux fontconfig coreutils dropbear rsync busybox dev-libs/openssl-compat:0.9.8 dev-libs/openssl:0 openssh ncurses htop lsof protobuf mosh libarchive gmp nettle libpng libjpeg-turbo '<=media-gfx/imagemagick-7' bzip2 dev-libs/libffi sys-libs/readline icu sqlite dev-lang/python:2.7 dev-lang/python dev-libs/glib sys-fs/fuse elfutils file nano libpcre zsh mit-krb5 libtirpc xz-utils libevent tmux gdb --uninstalls-may-break '*/*'
    319322#       OR
    320 #       emerge -1 -f sys-libs/zlib expat freetype harfbuzz util-linux fontconfig coreutils dropbear rsync busybox dev-libs/openssl-compat:0.9.8 dev-libs/openssl:0 openssh ncurses htop lsof protobuf mosh libarchive gmp nettle libpng libjpeg-turbo '<=media-gfx/imagemagick-7' bzip2 dev-libs/libffi sys-libs/readline icu sqlite dev-lang/python:2.7 dev-lang/python:3.7 dev-libs/glib sys-fs/fuse elfutils file nano libpcre zsh mit-krb5 libtirpc xz-utils libevent tmux gdb
     323#       emerge -1 -f sys-libs/zlib expat freetype harfbuzz util-linux fontconfig coreutils dropbear rsync busybox dev-libs/openssl-compat:0.9.8 dev-libs/openssl:0 openssh ncurses htop lsof protobuf mosh libarchive gmp nettle libpng libjpeg-turbo '<=media-gfx/imagemagick-7' bzip2 dev-libs/libffi sys-libs/readline icu sqlite dev-lang/python:2.7 dev-lang/python:3.7 dev-libs/glib sys-fs/fuse elfutils file nano libpcre zsh mit-krb5 libtirpc xz-utils libevent tmux gdb libxml2 libxslt
    321324#
    322325##
     
    25472550fi
    25482551
     2552## libxml2 for BeautifulSoup
     2553echo "* Building libxml2 . . ."
     2554echo ""
     2555LIBXML2_VERSION="2.9.9"
     2556cd ..
     2557tar -I pigz -xvf /usr/portage/distfiles/libxml2-${LIBXML2_VERSION}.tar.gz
     2558cd libxml2-${LIBXML2_VERSION}
     2559update_title_info
     2560tar -xvJf /usr/portage/distfiles/libxml2-${LIBXML2_VERSION}-patchset.tar.xz
     2561# Gentoo Patches...
     2562for patchfile in patches/* ; do
     2563        # Try to detect if we need p0 or p1...
     2564        if grep -q 'diff --git' "${patchfile}" ; then
     2565                echo "Applying ${patchfile} w/ p1 . . ."
     2566                patch -p1 < ${patchfile}
     2567        else
     2568                echo "Applying ${patchfile} w/ p0 . . ."
     2569                patch -p0 < ${patchfile}
     2570        fi
     2571done
     2572patch -p1 < /usr/portage/dev-libs/libxml2/files/libxml2-2.7.1-catalog_path.patch
     2573patch -p1 < /usr/portage/dev-libs/libxml2/files/libxml2-2.9.2-python-ABIFLAG.patch
     2574patch -p1 < /usr/portage/dev-libs/libxml2/files/libxml2-2.9.8-out-of-tree-test.patch
     2575autoreconf -fi
     2576if [[ "${SQLITE_WITH_ICU}" == "true" ]] ; then
     2577        ./configure --prefix=${TC_BUILD_DIR} --host=${CROSS_TC} --disable-static --enable-shared --without-run-debug --without-mem-debug --without-lzma --disable-ipv6 --without-readline --without-history --without-python --with-icu
     2578else
     2579        ./configure --prefix=${TC_BUILD_DIR} --host=${CROSS_TC} --disable-static --enable-shared --without-run-debug --without-mem-debug --without-lzma --disable-ipv6 --without-readline --without-history --without-python --without-icu
     2580fi
     2581make ${JOBSFLAGS}
     2582make install
     2583
     2584## libxslt for BeautifulSoup
     2585echo "* Building libxslt . . ."
     2586echo ""
     2587LIBXSLT_VERSION="1.1.33"
     2588LIBEXSLT_SOVER="0.8.20"
     2589cd ..
     2590tar -I pigz -xvf /usr/portage/distfiles/libxslt-${LIBXSLT_VERSION}.tar.gz
     2591cd libxslt-${LIBXSLT_VERSION}
     2592update_title_info
     2593# Gentoo Patches...
     2594patch -p1 < /usr/portage/dev-libs/libxslt/files/1.1.32-simplify-python.patch
     2595patch -p1 < /usr/portage/dev-libs/libxslt/files/libxslt-1.1.28-disable-static-modules.patch
     2596patch -p1 < /usr/portage/dev-libs/libxslt/files/libxslt-1.1.33-CVE-2019-11068.patch
     2597autoreconf -fi
     2598./configure --prefix=${TC_BUILD_DIR} --host=${CROSS_TC} --disable-static --enable-shared --without-crypto --without-debug --without-mem-debug --without-python
     2599make ${JOBSFLAGS}
     2600make install
     2601
    25492602## Python for ScreenSavers
    25502603PYTHON_CUR_VER="2.7.16"
     
    33063359        # Keep our own sqlite3 CLI, for shit'n giggles
    33073360        cp ../bin/sqlite3 ../${py_home}/bin/sqlite3
     3361        # libxml2 & libxslt for BeautifulSoup
     3362        cp ../lib/libxml2.so.${LIBXML2_VERSION} ../${py_home}/lib/libxml2.so.${LIBXML2_VERSION%%.*}
     3363        cp ../lib/libxslt.so.${LIBXSLT_VERSION} ../${py_home}/lib/libxslt.so.${LIBXSLT_VERSION%%.*}
     3364        cp ../lib/libexslt.so.${LIBEXSLT_SOVER} ../${py_home}/lib/libexslt.so.${LIBEXSLT_SOVER%%.*}
    33083365
    33093366        if [[ "${py_ver}" == 2.* ]] ; then
  • Configs/trunk/Kindle/Touch_Hacks/Python/CREDITS

    r16296 r16298  
    6666    Licensed under the Apache 2.0 license (http://www.imagemagick.org/script/license.php).
    6767    (http://www.imagemagick.org/script/index.php)
     68
     69  libxml2.so*: The XML C parser and toolkit of Gnome, Copyright (C) 1998-2012 Daniel Veillard. All Rights Reserved.
     70    Licensed under the MIT License (https://opensource.org/licenses/MIT).
     71    (http://www.xmlsoft.org/)
     72
     73  libxslt.so*, libexslt.so*: The XSLT C library for GNOME, libxslt is Copyright (C) 2001-2002 Daniel Veillard. All Rights Reserved.; libexslt is Copyright (C) 2001-2002 Thomas Broyer, Charlie Bozeman and Daniel Veillard. All Rights Reserved.,
     74    Licensed under the MIT License (https://opensource.org/licenses/MIT).
     75    (http://xmlsoft.org/XSLT/)
    6876
    6977----
Note: See TracChangeset for help on using the changeset viewer.