From patchwork Mon Feb 10 09:11:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yegor Yefremov X-Patchwork-Id: 1235722 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=fail (p=quarantine dis=none) header.from=googlemail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=googlemail.com header.i=@googlemail.com header.a=rsa-sha256 header.s=20161025 header.b=KqCs+bXi; dkim-atps=neutral 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 48GKsz6GWPz9sRJ for ; Mon, 10 Feb 2020 20:12:07 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 552A584A05; Mon, 10 Feb 2020 09:12:04 +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 UPFJsNkq9IQV; Mon, 10 Feb 2020 09:12:03 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id CE7CA84D41; Mon, 10 Feb 2020 09:12: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 B316B1BF3DE for ; Mon, 10 Feb 2020 09:12:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id AD65B82C16 for ; Mon, 10 Feb 2020 09:12:01 +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 bnW-MVaKagED for ; Mon, 10 Feb 2020 09:12:00 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ed1-f65.google.com (mail-ed1-f65.google.com [209.85.208.65]) by hemlock.osuosl.org (Postfix) with ESMTPS id A55AB8266F for ; Mon, 10 Feb 2020 09:12:00 +0000 (UTC) Received: by mail-ed1-f65.google.com with SMTP id e10so7767873edv.9 for ; Mon, 10 Feb 2020 01:12:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=5SUl0XsRYUS7KRPLTnWpXZr+Jd7TtT0nS/uK4ggxIGo=; b=KqCs+bXiXbP+ylT29ph9ExULOCX7aSg77WiiAjilPP5OowLOlqVYkq9GiiNW/K8kCi fAMk2oY2DvYR4PJNNHAKaWp+VjhBv8A4AQ/mVx54lX0lZcuap1i18tzj439/OR5wgFAB PuYWUiLIOztXwHqg5LYQSFYtoUF2GHmch+YYA4hYoUOdyl1yiMnIAx0Cj+2xfbNJ8Hml rUoHdQqCyD6vBfE1ZREyvLmHwf0NuqHT4mEfVqejoBuAuS6IcvPU8k1fPTVahFXaeSWH cF1vfexpWNyhZEEvJ4X9iJC7YAqDZvlYEHgZjHBq4ER29S50yIv3JOG0AZvQRNC1N2ct a9WQ== 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; bh=5SUl0XsRYUS7KRPLTnWpXZr+Jd7TtT0nS/uK4ggxIGo=; b=aCy6yU9kIwQElzaM8TTNR70/ZIIKqcMA1O7mMNTovvngf6HZCWmEdAk0+pNG3RppRL b3uALDDqqKzdhQIdtudaVffrQJ0ol3mKTcxgNyykbiRP7H2g0RLOyaiSH3uwotdEgJBK ss1OiBU8MSKs6sMi3ntnXrdC3AVC5ySmLz0Z5AE4w35JElvl2yKzdKEW78p8UEbPooFX 0tSP5++7Y3Jj3wYsjHHyPHbLloOnSJAByOAuFIRSwtg9fU/wI2je7xt0F0L187nXTPdR n4HuagCdQaWV1xvs8PG2lLgMj/Xuem8q45wXVC6vLBjz21wx9w8HcbnMMtHOVghK9gKr FyDA== X-Gm-Message-State: APjAAAXe8RHjeeo/P8g4b5HTCYbvEu+TTYGQwRh3EkDyxHEKo8b2SgFA ZQeQdm/QwQuY4kgC7FS64cdGdD5d5MQ= X-Google-Smtp-Source: APXvYqwB7zZEVsBKJyXwtPLwXaSfwpH5KmIC4FOIJFJLwqNStiaFqv4/4btq+oxD7tTvEjtHk1f6CQ== X-Received: by 2002:a17:906:2653:: with SMTP id i19mr182133ejc.287.1581325918430; Mon, 10 Feb 2020 01:11:58 -0800 (PST) Received: from development1.visionsystems.de (mail.visionsystems.de. [213.209.99.202]) by smtp.gmail.com with ESMTPSA id f13sm764721edq.26.2020.02.10.01.11.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Feb 2020 01:11:57 -0800 (PST) From: yegorslists@googlemail.com To: buildroot@buildroot.org Date: Mon, 10 Feb 2020 10:11:48 +0100 Message-Id: <20200210091149.8584-1-yegorslists@googlemail.com> X-Mailer: git-send-email 2.17.0 Subject: [Buildroot] [PATCH 1/2] package/libftdi1: fix unresolved symbol issue 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: peter@korsgaard.com, Daniel Sangue MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Yegor Yefremov GCC later than 5.x produce _fdti1.so file with an undefined symbol str2charp_size due to C99 inline semantics change. So remove this keyword. Signed-off-by: Yegor Yefremov --- ...g-python-fix-unresolved-symbol-issue.patch | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 package/libftdi1/0005-swig-python-fix-unresolved-symbol-issue.patch diff --git a/package/libftdi1/0005-swig-python-fix-unresolved-symbol-issue.patch b/package/libftdi1/0005-swig-python-fix-unresolved-symbol-issue.patch new file mode 100644 index 0000000000..bffaf12f91 --- /dev/null +++ b/package/libftdi1/0005-swig-python-fix-unresolved-symbol-issue.patch @@ -0,0 +1,30 @@ +From e12e592e982fe71b2761da0de7b19e93f67ed22c Mon Sep 17 00:00:00 2001 +From: Yegor Yefremov +Date: Tue, 6 Aug 2019 13:42:06 +0200 +Subject: [PATCH] swig: python: fix unresolved symbol issue + +GCC later than 5.x produce _fdti1.so file with an undefined +symbol str2charp_size due to C99 inline semantics change. So +remove this keyword. + +Signed-off-by: Yegor Yefremov +--- + python/ftdi1.i | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/python/ftdi1.i b/python/ftdi1.i +index 93793f8..0d150cb 100644 +--- a/python/ftdi1.i ++++ b/python/ftdi1.i +@@ -19,7 +19,7 @@ inline PyObject* charp2str(const char *v_, long len) + #endif + } + +-inline char * str2charp_size(PyObject* pyObj, int * size) ++char * str2charp_size(PyObject* pyObj, int * size) + { + char * v_ = 0; + #if PY_MAJOR_VERSION >= 3 +-- +2.17.0 + From patchwork Mon Feb 10 09:11:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yegor Yefremov X-Patchwork-Id: 1235723 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=quarantine dis=none) header.from=googlemail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=googlemail.com header.i=@googlemail.com header.a=rsa-sha256 header.s=20161025 header.b=uyCpCuyh; 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 48GKt66VfXz9sRJ for ; Mon, 10 Feb 2020 20:12:14 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 120508266F; Mon, 10 Feb 2020 09:12:10 +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 8j0Cge6QirPY; Mon, 10 Feb 2020 09:12:06 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id C346A82C16; Mon, 10 Feb 2020 09:12:06 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 217A51BF3DE for ; Mon, 10 Feb 2020 09:12:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 1B3BB8471C for ; Mon, 10 Feb 2020 09:12:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DP9vMGFI+Sm7 for ; Mon, 10 Feb 2020 09:12:04 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) by whitealder.osuosl.org (Postfix) with ESMTPS id F3F9281AD8 for ; Mon, 10 Feb 2020 09:12:03 +0000 (UTC) Received: by mail-ed1-f51.google.com with SMTP id j17so7811762edp.3 for ; Mon, 10 Feb 2020 01:12:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=rYv2C3fmY1gtUd+uC7RtdFmXqf2fa3mTSEhuHX8wxXg=; b=uyCpCuyhLjZKzn0bHQ6GdmU8wzO7yDVrqmFu3s3494DTV331v3MgYUrl4rjy8DjQxZ ZWnNMqw9DH9E4CQaVfoEaD+jPW8jwlSDrnclpFs9x8JzIpEXnWxP8wL5Kn4KfEIXzuD8 17LMfoChJqw6S9lzI8TrNIaaznzDJyrRfbQrs9q4vpOn+DBnSJmB5RVjlJeaYc0Y9Mo1 MoBorcEdeX16qTl/cbZQY4l4B7gEMTvqAleKINdD/3ieIEzvw0cZ8DPuJlkko6DV15mZ th3kN/kpMEzW86b2H0kMqCa4PtX5cex76wyAhmIH8xzXqMr7hqCvLJtQ5uaVoadHqV2b p39g== 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; bh=rYv2C3fmY1gtUd+uC7RtdFmXqf2fa3mTSEhuHX8wxXg=; b=OdhmZkAQgb1VVxV9wTAhjd0KVkJ/Hen27RFszPSxddA14CviTtp1Vveu305+dsp/4M q5NmNAv1Mqxt6dsTmXnzGRAhg5hfFzfIn0Qrc6ilqo7UULGTX1OuLU3i8uowNOq0q2pG gEJcasJicXlUcsC2RybYN8HfxxBXPH70DDbuLKzj8KWGzGc2Y1MAlWSobUrKNR4Ro/QE 9+fTXNUUlIYPFer3paXS84M7ecTPiWqPa00KEKivYzVm2l41InRH+Qbg3JkctJkkkSTr HxcTzaAgy9o1dLtTV1sb0X0D3PzBwBL3s941wViTqjBDcXrcJdVngKfKwmUucFc2oQ2n IwOw== X-Gm-Message-State: APjAAAVLzRy1CghwIoAop4jLaqPVWE/DAUcIvef0avMGqT+/hifqqCyg jJmWjI9Xc6gZOxPqYxMT7mQGaM1Jpa0= X-Google-Smtp-Source: APXvYqxA6E577f1kiuba7nLw9ZoJpcpAKxbBJXbChof8yXsER30PxKhKROb0kH+9OgIkDHfFhzhPJw== X-Received: by 2002:aa7:db16:: with SMTP id t22mr461796eds.54.1581325922064; Mon, 10 Feb 2020 01:12:02 -0800 (PST) Received: from development1.visionsystems.de (mail.visionsystems.de. [213.209.99.202]) by smtp.gmail.com with ESMTPSA id f13sm764721edq.26.2020.02.10.01.12.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Feb 2020 01:12:01 -0800 (PST) From: yegorslists@googlemail.com To: buildroot@buildroot.org Date: Mon, 10 Feb 2020 10:11:49 +0100 Message-Id: <20200210091149.8584-2-yegorslists@googlemail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20200210091149.8584-1-yegorslists@googlemail.com> References: <20200210091149.8584-1-yegorslists@googlemail.com> Subject: [Buildroot] [PATCH 2/2] support/testing: add libftdi1 test case 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: peter@korsgaard.com, Daniel Sangue MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Yegor Yefremov Signed-off-by: Yegor Yefremov --- .gitlab-ci.yml | 2 ++ DEVELOPERS | 1 + .../testing/tests/package/sample_libftdi1.py | 1 + .../testing/tests/package/test_libftdi1.py | 25 +++++++++++++++++++ 4 files changed, 29 insertions(+) create mode 100644 support/testing/tests/package/sample_libftdi1.py create mode 100644 support/testing/tests/package/test_libftdi1.py diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a6436a8417..b4dad3173e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -381,6 +381,8 @@ tests.package.test_docker_compose.TestDockerCompose: { extends: .runtime_test } tests.package.test_dropbear.TestDropbear: { extends: .runtime_test } tests.package.test_glxinfo.TestGlxinfo: { extends: .runtime_test } tests.package.test_ipython.TestIPythonPy3: { extends: .runtime_test } +tests.package.test_libftdi1.TestPythonPy2Libftdi1: { extends: .runtime_test } +tests.package.test_libftdi1.TestPythonPy3Libftdi1: { extends: .runtime_test } tests.package.test_lpeg.TestLuaLPeg: { extends: .runtime_test } tests.package.test_lpeg.TestLuajitLPeg: { extends: .runtime_test } tests.package.test_lsqlite3.TestLuaLsqlite3: { extends: .runtime_test } diff --git a/DEVELOPERS b/DEVELOPERS index cb13035bc4..6623b7c5c1 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2627,6 +2627,7 @@ F: package/ti-utils/ F: package/x11r7/xapp_xconsole/ F: package/x11r7/xapp_xinput-calibrator/ F: package/zlog/ +F: support/testing/tests/package/test_libftdi1.py F: support/testing/tests/package/test_python_can.py F: utils/scanpypi diff --git a/support/testing/tests/package/sample_libftdi1.py b/support/testing/tests/package/sample_libftdi1.py new file mode 100644 index 0000000000..2da6124b40 --- /dev/null +++ b/support/testing/tests/package/sample_libftdi1.py @@ -0,0 +1 @@ +import ftdi1 # noqa diff --git a/support/testing/tests/package/test_libftdi1.py b/support/testing/tests/package/test_libftdi1.py new file mode 100644 index 0000000000..78c928484c --- /dev/null +++ b/support/testing/tests/package/test_libftdi1.py @@ -0,0 +1,25 @@ +from tests.package.test_python import TestPythonPackageBase + + +class TestPythonPy2Libftdi1(TestPythonPackageBase): + __test__ = True + config = TestPythonPackageBase.config + \ + """ + BR2_PACKAGE_PYTHON=y + BR2_PACKAGE_LIBFTDI1=y + BR2_PACKAGE_LIBFTDI1_PYTHON_BINDINGS=y + """ + sample_scripts = ["tests/package/sample_libftdi1.py"] + timeout = 40 + + +class TestPythonPy3Libftdi1(TestPythonPackageBase): + __test__ = True + config = TestPythonPackageBase.config + \ + """ + BR2_PACKAGE_PYTHON3=y + BR2_PACKAGE_LIBFTDI1=y + BR2_PACKAGE_LIBFTDI1_PYTHON_BINDINGS=y + """ + sample_scripts = ["tests/package/sample_libftdi1.py"] + timeout = 40