From patchwork Fri Oct 25 18:54:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Asaf Kahlon X-Patchwork-Id: 1184404 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.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="smIO2aSR"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 470CwT5QVXz9s4Y for ; Sat, 26 Oct 2019 05:55:05 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 09D4B87B4F; Fri, 25 Oct 2019 18:55:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3nGVB+RdPuAB; Fri, 25 Oct 2019 18:55:03 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 68F2C87B6D; Fri, 25 Oct 2019 18:55:03 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 43B6F1BF35A for ; Fri, 25 Oct 2019 18:54:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 4031287B6D for ; Fri, 25 Oct 2019 18:54:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6jx+bxNH7g9D for ; Fri, 25 Oct 2019 18:54:58 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by hemlock.osuosl.org (Postfix) with ESMTPS id 7AFDF87B4F for ; Fri, 25 Oct 2019 18:54:58 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id v9so3513310wrq.5 for ; Fri, 25 Oct 2019 11:54:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Dz49vlI1uJL8hIVBPOpoLyJl8+8rrQ96IcKrFSTPgUs=; b=smIO2aSRc+mmeDSkMvnUWFLHZIgyNlUFJqhxMMWY/1yu23gYerHlA/4nu5LEeWOtMC 6woK2kmwWlbrbl2NmOuZYqwfX5l+RUhDdoCgImCpNZC6s51+Kx4L3MnEzxbWxfgJff3F tnjw1t4Uhc2KhWig1LFrE9oAho2u/dpGsit74hmqPYG5TmuQzkdGGvveGDOmpUJH6FQ/ nxYGjJ5bpbKya/7gpcW+k9hqq/lApXghpW7TrrqEJuRgWNk22SNH3bKtSW2G+xi/welq k09S9kJPRY0IBQugEK0thgkLSj01wW2frYoMSAkLUBJCZ5TdKvn+vkVPsSImiyWwyhx+ ejfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Dz49vlI1uJL8hIVBPOpoLyJl8+8rrQ96IcKrFSTPgUs=; b=QQrYKDL0NNropgeSZ32z7Lv1l1p0zZxfKYdqeoe6zi9/OXd5SxP35dIKtUjM9K8yW5 HhapIv5e8xiQ7F/8mTU5Ul86YWLfe3KVxQegqu4Q1UpEQ1Ra/16Y2hg+RyD8w+WvtWuB zvyCDOjxsaWaFW9kJUsSpDq97jFPukbgWkqQNtqCfYhceoX6hgnerrSjeLT6rBLqtC1m 8Dm3/qYUIwb4X4bn4P3Fh844vd+BGsCVyojn8s3Iin6f5XmO06zuSXpogDQV8nzGlqzM 4ic3+9rOrRE+VK/zgbQxD5paGL1kuixXXDo/J/dYwGdRPJ+hABBawZMONMLyL3xZ9EJp hCdg== X-Gm-Message-State: APjAAAXOw9sZVLxQS0Y/+zRFNwSrx74o0wqcWpTm3itlyeUgQas8/Jid QMrIn7/NDUzMHovZ/MeztvhGJBZH X-Google-Smtp-Source: APXvYqwfnBly7MhP2gtNPY46dJSLbq148ctWRZJzpL/klXZGs6Q07b7Enr+YvFNDqzYLlRmrPIA9aw== X-Received: by 2002:adf:e64f:: with SMTP id b15mr4098611wrn.372.1572029696719; Fri, 25 Oct 2019 11:54:56 -0700 (PDT) Received: from localhost.localdomain (bzq-84-108-5-46.cablep.bezeqint.net. [84.108.5.46]) by smtp.gmail.com with ESMTPSA id r5sm3964847wrs.57.2019.10.25.11.54.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2019 11:54:56 -0700 (PDT) From: Asaf Kahlon To: buildroot@buildroot.org Date: Fri, 25 Oct 2019 21:54:45 +0300 Message-Id: <20191025185448.32633-3-asafka7@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191025185448.32633-1-asafka7@gmail.com> References: <20191025185448.32633-1-asafka7@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/python-uvloop: force re-cythonize on build 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: Asaf Kahlon Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The generated loop.c provided with the tarball was generated with Cython 0.29.10 and it doesn't compile against the new Python 3.8 headers. Upstream is now working on a new uvloop release which will use the newest Cython (0.29.13). Until then, we will remove the current loop.c and force regenration of it. Fixes: - http://autobuild.buildroot.net/results/bffe1b2ee7b674f870e15398680ce5b5b22fd296 Signed-off-by: Asaf Kahlon --- package/python-uvloop/python-uvloop.mk | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/package/python-uvloop/python-uvloop.mk b/package/python-uvloop/python-uvloop.mk index d9932b931d..13880ec7e1 100644 --- a/package/python-uvloop/python-uvloop.mk +++ b/package/python-uvloop/python-uvloop.mk @@ -10,8 +10,14 @@ PYTHON_UVLOOP_SITE = https://files.pythonhosted.org/packages/e3/15/dc3276384f436 PYTHON_UVLOOP_SETUP_TYPE = setuptools PYTHON_UVLOOP_LICENSE = Apache-2.0, MIT PYTHON_UVLOOP_LICENSE_FILES = LICENSE-APACHE LICENSE-MIT -PYTHON_UVLOOP_BUILD_OPTS = build_ext --inplace --use-system-libuv -PYTHON_UVLOOP_INSTALL_TARGET_OPTS = build_ext --inplace --use-system-libuv -PYTHON_UVLOOP_DEPENDENCIES = libuv +PYTHON_UVLOOP_BUILD_OPTS = build_ext --inplace --cython-always --use-system-libuv +PYTHON_UVLOOP_INSTALL_TARGET_OPTS = build_ext --inplace --cython-always --use-system-libuv +PYTHON_UVLOOP_DEPENDENCIES = libuv host-python-cython + +define PYTHON_UVLOOP_HOOK + $(RM) $(@D)/uvloop/loop.c +endef + +PYTHON_UVLOOP_PRE_BUILD_HOOKS += PYTHON_UVLOOP_HOOK $(eval $(python-package))