From patchwork Fri Jun 26 12:30:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kurt Van Dijck X-Patchwork-Id: 1317621 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=vandijck-laurijssen.be Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49tbpk2PtGz9sRW for ; Fri, 26 Jun 2020 22:31:26 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id D60B885EB8; Fri, 26 Jun 2020 12:31:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CfqMb_4FhbXf; Fri, 26 Jun 2020 12:31:24 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 31BD485F35; Fri, 26 Jun 2020 12:31:24 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id A5ADC1BF989 for ; Fri, 26 Jun 2020 12:31:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id A2B0A85DCF for ; Fri, 26 Jun 2020 12:31:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4f6AjLLJyPVO for ; Fri, 26 Jun 2020 12:31:12 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from relay-b03.edpnet.be (relay-b03.edpnet.be [212.71.1.220]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 1000085EB8 for ; Fri, 26 Jun 2020 12:31:12 +0000 (UTC) X-ASG-Debug-ID: 1593174668-0a8818764e49fcd0001-rUBnyj Received: from zotac.vandijck-laurijssen.be (77.109.122.82.adsl.dyn.edpnet.net [77.109.122.82]) by relay-b03.edpnet.be with ESMTP id FSaOugUz9pigm4Ik for ; Fri, 26 Jun 2020 14:31:08 +0200 (CEST) X-Barracuda-Envelope-From: dev.kurt@vandijck-laurijssen.be X-Barracuda-Effective-Source-IP: 77.109.122.82.adsl.dyn.edpnet.net[77.109.122.82] X-Barracuda-Apparent-Source-IP: 77.109.122.82 Received: from x1.vandijck-laurijssen.be (x1.vandijck-laurijssen.be [192.168.0.36]) by zotac.vandijck-laurijssen.be (Postfix) with ESMTPSA id 7D2B2F71F97; Fri, 26 Jun 2020 14:31:08 +0200 (CEST) From: Kurt Van Dijck To: buildroot@buildroot.org Date: Fri, 26 Jun 2020 14:30:48 +0200 X-ASG-Orig-Subj: [PATCH 1/6] Revert "python-m2crypto: remove" Message-Id: <20200626123053.30626-2-dev.kurt@vandijck-laurijssen.be> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200626123053.30626-1-dev.kurt@vandijck-laurijssen.be> References: <20200626123053.30626-1-dev.kurt@vandijck-laurijssen.be> MIME-Version: 1.0 X-Barracuda-Connect: 77.109.122.82.adsl.dyn.edpnet.net[77.109.122.82] X-Barracuda-Start-Time: 1593174668 X-Barracuda-URL: https://212.71.1.220:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at edpnet.be X-Barracuda-Scan-Msg-Size: 2504 X-Barracuda-BRTS-Status: 1 X-Barracuda-Bayes: INNOCENT GLOBAL 0.6871 1.0000 1.2731 X-Barracuda-Spam-Score: 1.77 X-Barracuda-Spam-Status: No, SCORE=1.77 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=7.0 tests=BSF_RULE7568M X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.82819 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.50 BSF_RULE7568M Custom Rule 7568M Subject: [Buildroot] [PATCH 1/6] Revert "python-m2crypto: remove" X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kurt Van Dijck Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This reverts commit 484c04878e5e76cdc0cc33c7646f98ab41698a7e. python-m2crypto becomes needed for recompiling wireless-regdb. Signed-off-by: Kurt Van Dijck --- package/python-m2crypto/python-m2crypto.hash | 3 ++ package/python-m2crypto/python-m2crypto.mk | 31 ++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 package/python-m2crypto/python-m2crypto.hash create mode 100644 package/python-m2crypto/python-m2crypto.mk diff --git a/package/python-m2crypto/python-m2crypto.hash b/package/python-m2crypto/python-m2crypto.hash new file mode 100644 index 0000000000..4ac180f870 --- /dev/null +++ b/package/python-m2crypto/python-m2crypto.hash @@ -0,0 +1,3 @@ +# md5 from https://pypi.python.org/pypi/M2Crypto/, sha256 locally computed +md5 8e87235942c76d1ba9f999ee33764fdb M2Crypto-0.24.0.tar.gz +sha256 80a56441a1d2c0cf27e725be7554c92598b938fc8767ee2c71fdbc2fdc055ee8 M2Crypto-0.24.0.tar.gz diff --git a/package/python-m2crypto/python-m2crypto.mk b/package/python-m2crypto/python-m2crypto.mk new file mode 100644 index 0000000000..3d0e54eb4e --- /dev/null +++ b/package/python-m2crypto/python-m2crypto.mk @@ -0,0 +1,31 @@ +################################################################################ +# +# python-m2crypto +# +################################################################################ + +PYTHON_M2CRYPTO_VERSION = 0.24.0 +PYTHON_M2CRYPTO_SITE = http://pypi.python.org/packages/source/M/M2Crypto +PYTHON_M2CRYPTO_SOURCE = M2Crypto-$(PYTHON_M2CRYPTO_VERSION).tar.gz +PYTHON_M2CRYPTO_SETUP_TYPE = setuptools +HOST_PYTHON_M2CRYPTO_DEPENDENCIES = host-openssl host-swig + +PYTHON_M2CRYPTO_LICENSE = MIT +PYTHON_M2CRYPTO_LICENSE_FILES = LICENCE + +# We need to use python2 because m2crypto is not python3 compliant. +HOST_PYTHON_M2CRYPTO_NEEDS_HOST_PYTHON = python2 + +# The --openssl option that allows to specify a custom path to OpenSSL +# can only be used with the non-default build_ext setup.py command, +# and calling this command directly fails. To work around this, simply +# hardcode the path to OpenSSL in setup.py. +# Bug reported at https://gitlab.com/m2crypto/m2crypto/issues/89 +define HOST_PYTHON_M2CRYPTO_SET_OPENSSL_PATH + $(SED) "s%self.openssl = '/usr'%self.openssl = '$(HOST_DIR)/usr'%" \ + $(@D)/setup.py +endef + +HOST_PYTHON_M2CRYPTO_POST_PATCH_HOOKS += HOST_PYTHON_M2CRYPTO_SET_OPENSSL_PATH + +$(eval $(host-python-package))