Browse Source

python: Build a working crypt module (closes #230)

android-5
Fredrik Fornwall 9 years ago
parent
commit
f4d0939e17
  1. 4
      packages/python/build.sh
  2. 11
      packages/python/cryptmodule.c.patch
  3. 4
      packages/python2/build.sh
  4. 11
      packages/python2/cryptmodule.c.patch

4
packages/python/build.sh

@ -4,12 +4,12 @@ TERMUX_PKG_DESCRIPTION="Python 3 programming language intended to enable clear p
# openssl for ensurepip.
# libbz2 for the bz2 module.
# ncurses-ui-libs for the curses.panel module.
TERMUX_PKG_DEPENDS="libandroid-support, ncurses, readline, libffi, openssl, libutil, libbz2, liblzma, libsqlite, gdbm, ncurses-ui-libs"
TERMUX_PKG_DEPENDS="libandroid-support, ncurses, readline, libffi, openssl, libutil, libbz2, liblzma, libsqlite, gdbm, ncurses-ui-libs, libcrypt"
TERMUX_PKG_HOSTBUILD=true
_MAJOR_VERSION=3.5
TERMUX_PKG_VERSION=${_MAJOR_VERSION}.1
TERMUX_PKG_BUILD_REVISION=3
TERMUX_PKG_BUILD_REVISION=4
TERMUX_PKG_SRCURL=http://www.python.org/ftp/python/${TERMUX_PKG_VERSION}/Python-${TERMUX_PKG_VERSION}.tar.xz
# The flag --with(out)-pymalloc (disable/enable specialized mallocs) is enabled by default and causes m suffix versions of python.

11
packages/python/cryptmodule.c.patch

@ -0,0 +1,11 @@
diff -u -r ../Python-3.5.1/Modules/_cryptmodule.c ./Modules/_cryptmodule.c
--- ../Python-3.5.1/Modules/_cryptmodule.c 2015-12-06 20:39:10.000000000 -0500
+++ ./Modules/_cryptmodule.c 2016-04-23 08:11:35.832616854 -0400
@@ -4,6 +4,7 @@
#include "Python.h"
#include <sys/types.h>
+#include <crypt.h>
/* Module crypt */

4
packages/python2/build.sh

@ -4,12 +4,12 @@ TERMUX_PKG_DESCRIPTION="Python 2 programming language intended to enable clear p
# openssl for ensurepip.
# libbz2 for the bz2 module.
# ncurses-ui-libs for the curses.panel module.
TERMUX_PKG_DEPENDS="libandroid-support, ncurses, readline, libffi, openssl, libutil, libbz2, libsqlite, gdbm, ncurses-ui-libs"
TERMUX_PKG_DEPENDS="libandroid-support, ncurses, readline, libffi, openssl, libutil, libbz2, libsqlite, gdbm, ncurses-ui-libs, libcrypt"
TERMUX_PKG_HOSTBUILD=true
_MAJOR_VERSION=2.7
TERMUX_PKG_VERSION=${_MAJOR_VERSION}.11
TERMUX_PKG_BUILD_REVISION=2
TERMUX_PKG_BUILD_REVISION=3
TERMUX_PKG_SRCURL=http://www.python.org/ftp/python/${TERMUX_PKG_VERSION}/Python-${TERMUX_PKG_VERSION}.tar.xz
# The flag --with(out)-pymalloc (disable/enable specialized mallocs) is enabled by default and causes m suffix versions of python.

11
packages/python2/cryptmodule.c.patch

@ -0,0 +1,11 @@
diff -u -r ../Python-2.7.11/Modules/cryptmodule.c ./Modules/cryptmodule.c
--- ../Python-2.7.11/Modules/cryptmodule.c 2015-12-05 14:47:14.000000000 -0500
+++ ./Modules/cryptmodule.c 2016-04-23 08:16:39.850613791 -0400
@@ -4,6 +4,7 @@
#include "Python.h"
#include <sys/types.h>
+#include <crypt.h>
#ifdef __VMS
#include <openssl/des.h>
Loading…
Cancel
Save