X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mail.ovgu.de (mail.ovgu.de [141.44.1.66]) by lists.alpinelinux.org (Postfix) with ESMTP id B90F95C4D9A for ; Tue, 2 Jan 2018 11:35:35 +0000 (GMT) Received: from mail.ovgu.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 50E7C4006B for ; Tue, 2 Jan 2018 12:35:34 +0100 (CET) Received: from notebook-marian.fritz.box (mue-88-130-117-075.dsl.tropolys.de [88.130.117.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.ovgu.de (Postfix) with ESMTPSA id CB10240064; Tue, 2 Jan 2018 12:35:33 +0100 (CET) From: Marian Buschsieweke To: alpine-aports@lists.alpinelinux.org Cc: Marian Buschsieweke Subject: [alpine-aports] [PATCH] testing/micropython: Enabled buildin ussl module Date: Tue, 2 Jan 2018 12:35:29 +0100 Message-Id: <20180102113529.25757-1-marian.buschsieweke@ovgu.de> X-Mailer: git-send-email 2.15.0 X-PMX-Version: 6.4.1.2730818, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2018.1.2.112715, AntiVirus-Engine: 5.46.0, AntiVirus-Data: 2017.12.29.5460003 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_00_01 0.05, HTML_00_10 0.05, BODY_SIZE_3000_3999 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, LEGITIMATE_SIGNS 0, MULTIPLE_REAL_RCPTS 0, RDNS_GENERIC_POOLED 0, RDNS_SUSP 0, RDNS_SUSP_GENERIC 0, __ANY_URI 0, __C230066_P5 0, __CC_NAME 0, __CC_NAME_DIFF_FROM_ACC 0, __CC_REAL_NAMES 0, __CP_URI_IN_BODY 0, __FRAUD_MONEY_CURRENCY 0, __FRAUD_MONEY_CURRENCY_DOLLAR 0, __FROM_DOMAIN_IN_ANY_CC1 0, __FROM_DOMAIN_IN_RCPT 0, __HAS_CC_HDR 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HTTPS_URI 0, __MIME_TEXT_ONLY 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MULTIPLE_URI_TEXT 0, __NO_HTML_TAG_RAW 0, __PHISH_SPEAR_REASONS 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_IN_BODY 0, __URI_NOT_IMG 0, __URI_NS , __URI_WITHOUT_PATH 0, __URI_WITH_PATH 0' X-Spam-Score: Gauge=IIIIIIII X-PMX-consideredAsSpam: no X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Enabled the buildin ussl module in ports/unix/mpconfigport.mk using mbedTLS as backend. This allows using the upip package managed. Sadly the unit test ussl_basic fails for some reason. However, ussl seems to work, as upip does fetch packages over https. The specific unit test was disabled. --- testing/micropython/0000-unix-mpconfigport.patch | 12 ++++++------ testing/micropython/APKBUILD | 8 +++++--- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/testing/micropython/0000-unix-mpconfigport.patch b/testing/micropython/0000-unix-mpconfigport.patch index 4175138928..a38a8be57f 100644 --- a/testing/micropython/0000-unix-mpconfigport.patch +++ b/testing/micropython/0000-unix-mpconfigport.patch @@ -9,12 +9,7 @@ # _thread module using pthreads MICROPY_PY_THREAD = 1 -@@ -24,11 +24,11 @@ - MICROPY_PY_FFI = 1 - - # ussl module requires one of the TLS libraries below --MICROPY_PY_USSL = 1 -+MICROPY_PY_USSL = 0 +@@ -28,11 +28,11 @@ # axTLS has minimal size and fully integrated with MicroPython, but # implements only a subset of modern TLS functionality, so may have # problems with some servers. @@ -23,3 +18,8 @@ # mbedTLS is more up to date and complete implementation, but also # more bloated. Configuring and building of mbedTLS should be done # outside of MicroPython, it can just link with mbedTLS library. +-MICROPY_SSL_MBEDTLS = 0 ++MICROPY_SSL_MBEDTLS = 1 + + # jni module requires JVM/JNI + MICROPY_PY_JNI = 0 diff --git a/testing/micropython/APKBUILD b/testing/micropython/APKBUILD index 98f226a739..17c647e35f 100644 --- a/testing/micropython/APKBUILD +++ b/testing/micropython/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Marian pkgname=micropython pkgver=1.9.3 -pkgrel=0 +pkgrel=1 pkgdesc="A lean and efficient Python implementation for MCUs and constrained systems" url="http://www.micropython.org/" @@ -11,7 +11,7 @@ arch="x86 x86_64 armhf ppc64le" license="MIT" depends="" -makedepends="libffi-dev python3" +makedepends="libffi-dev mbedtls-dev python3" subpackages="$pkgname-cross" source="${pkgname}-${pkgver}.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/v${pkgver}.tar.gz 0000-unix-mpconfigport.patch @@ -29,6 +29,8 @@ check() { # ffi callback fails on kernel with PaX rm tests/unix/ffi_callback.py + # fails for some unkown reason + rm tests/extmod/ussl_basic.py make -C ports/unix test PYTHON=python3 } @@ -47,5 +49,5 @@ cross() { } sha512sums="d276dc9a300e400f5fd5742bfc8c641c0af2d3b7f3ae9221b811100d85e9c2a6c6c558775183c58dd4be39a31284c596c0e98c9bb2c8e60ce4cf0d83434d0a47 micropython-1.9.3.tar.gz -4c1de6a6477453e846998565402c69d1dd716cf692a3bb55aa16b6991722a94d8364c05f0603b981a7dd9e9af577a3f46910a60d501513af547ebbf3ed574711 0000-unix-mpconfigport.patch +0f39caa71968a3a130cc5b81d67fc7d309d392c62fcb52acaca93f344fe33b3d3a9abd90df22f7983ae0b9ef762a37fe783d461ee61b1a8f0d8a4704b7331abb 0000-unix-mpconfigport.patch 8dbdc52e09f70b5eea461257ebc00031ab9d2c91a9bdbd7522e4ffd1eddddcd0dab3a171361e776543abca827a2f5d6ad01b06c10c8635db861bf79bfa065338 python3.patch" -- 2.15.0 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---