From patchwork Fri Apr 14 11:51:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 22623 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 148D6C77B7A for ; Fri, 14 Apr 2023 11:52:01 +0000 (UTC) Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) by mx.groups.io with SMTP id smtpd.web11.7404.1681473114270508304 for ; Fri, 14 Apr 2023 04:51:54 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=CQB+QU28; spf=none, err=SPF record not found (domain: bgdev.pl, ip: 209.85.221.45, mailfrom: brgl@bgdev.pl) Received: by mail-wr1-f45.google.com with SMTP id v27so7999414wra.13 for ; Fri, 14 Apr 2023 04:51:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1681473113; x=1684065113; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=sNB+X0SOJztGPI6SGPOTTSPuY8ZjG+0JAgjsAjC0vF4=; b=CQB+QU28NbTfpu8P459c+VFgO7Gi6/Iy9ohzOckaJ5L96FUlztiPHHh54Xg4dzqMGY bCARuivBNceaEEXl52WXhyt7mGjxZ+bBF2mIp5O9Skpv5UvaOdVb+k9QrY3dZyQYE7ux suhN0w8k9AS7GRXdeLxuug60YB8sN4SY9P+uzxK8rgGwAoQm9RuHN/TCJxBUU37UKxZ9 VQJjrN+QczwA91Rb7s233SyTKmtuZXfizWi/GcMk62092cT8BnURM77lE+r6UUfDGcCU sznauXe58Xl0fF4rbTA83teZUGhH60lJ/i8EW9jqnWNY+mU71WlOqfRRR5zz9fUDmx5C QE1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681473113; x=1684065113; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sNB+X0SOJztGPI6SGPOTTSPuY8ZjG+0JAgjsAjC0vF4=; b=YlTr1S0f+oQPkCFmYqpGgKTbp16DRyY+nzGtSXroTCdGYZsVCar6QlAxWuegKNnmOs CrcbzWxIqeTMEIWxalJ8I7N7esZF+4QZXZ4IWQqfwbsQVpJPUlXQc10ixOFAElOs5Hju NqdIe1cfIOci6CTLLHd3jSOb24yf98tI60xm6jmpXQRhaSmf/ZX6xFPoD7/wiiyDCSuM AxIjE36et7tRW3/KP0yt4OUbhsS37uDwT36nvvdGcIRSv6JoAnxg6lDuFGe0l4C1MOYo qII8e5CTqI4Zs2bd3bNWPoFYB5Zy7UcBxBOLK24Ift9PGtxdMxrUiX29HQjItNenUGcC JW5g== X-Gm-Message-State: AAQBX9eIHxY9ZbnbRHyZHSf3vrr4u8kPnyXHvzNCLKbNXJzao3pk4EIz ROlrEQD2QYeNCLgIHbuisvGt3t4oTcvIaWRmeyA= X-Google-Smtp-Source: AKy350aACcd8u4iRM85/rCGaGAunLBvJtBoH3ta2dBkNFv5X6DdY1ysoxPGwlWYCw8o86AFg5y40wg== X-Received: by 2002:adf:ef03:0:b0:2ef:ba57:ee2d with SMTP id e3-20020adfef03000000b002efba57ee2dmr4143261wro.51.1681473112702; Fri, 14 Apr 2023 04:51:52 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:e6b0:9ea2:8124:b254]) by smtp.gmail.com with ESMTPSA id f15-20020adff58f000000b002efb3566b0asm3379523wro.52.2023.04.14.04.51.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Apr 2023 04:51:52 -0700 (PDT) From: Bartosz Golaszewski To: Khem Raj , Bruce Ashfield , openembedded-devel@lists.openembedded.org Cc: Bartosz Golaszewski Subject: [meta-python][PATCH v2 1/4] python3-gpiod: add missing run-time dependencies Date: Fri, 14 Apr 2023 13:51:44 +0200 Message-Id: <20230414115147.136593-2-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230414115147.136593-1-brgl@bgdev.pl> References: <20230414115147.136593-1-brgl@bgdev.pl> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 14 Apr 2023 11:52:01 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/102094 From: Bartosz Golaszewski The gpiod package needs some standard python modules so add them to RDEPENDS. Signed-off-by: Bartosz Golaszewski --- meta-python/recipes-devtools/python/python3-gpiod_2.0.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meta-python/recipes-devtools/python/python3-gpiod_2.0.bb b/meta-python/recipes-devtools/python/python3-gpiod_2.0.bb index 93b7b935c..e39d5beb1 100644 --- a/meta-python/recipes-devtools/python/python3-gpiod_2.0.bb +++ b/meta-python/recipes-devtools/python/python3-gpiod_2.0.bb @@ -18,7 +18,11 @@ S = "${WORKDIR}/libgpiod-${PV}/bindings/python" inherit setuptools3 ptest DEPENDS += "libgpiod" -RDEPENDS:${PN} += "libgpiod (>= 2.0)" +RDEPENDS:${PN} += " \ + libgpiod (>= 2.0) \ + python3-datetime \ + python3-profile \ +" RDEPENDS:${PN}-ptest += "python3-setuptools" export GPIOD_WITH_TESTS = "${@bb.utils.contains("PTEST_ENABLED", "1", "1", "0", d)}" From patchwork Fri Apr 14 11:51:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 22622 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 150E4C77B7C for ; Fri, 14 Apr 2023 11:52:01 +0000 (UTC) Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) by mx.groups.io with SMTP id smtpd.web11.7405.1681473115130817761 for ; Fri, 14 Apr 2023 04:51:55 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=wgeCkOlf; spf=none, err=SPF record not found (domain: bgdev.pl, ip: 209.85.221.48, mailfrom: brgl@bgdev.pl) Received: by mail-wr1-f48.google.com with SMTP id w24so7610653wra.10 for ; Fri, 14 Apr 2023 04:51:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1681473113; x=1684065113; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=RS5zG2S0YvaV04wV9JuX1hGkUkejTko5HCtw40TggQY=; b=wgeCkOlf1Iyhc6sNYRTqNU73cyUwKWBQyclayeaCl0DCa0AEM3nZkBrblG9SghdyR3 1SC0Lt4oNNvjE/T+VL7+ItIZAiu1GH1AZG9FrLQFPy9zhlet/Gc4elD6iv6TaRTXRhnt AAZ8yA64NNci4TGRpyZYng1nOgOSXnEpekfNGtASSyC/pdabxCLHMOTeqLfoTpwHTg1l eMSoxoc+PTpi64Yu7/0EDm0jSnJQDrn/djdyu2lXdmty5QJosjJPJnOo3QN1s6DD/MdN yDSG6tVaZnxeyu47zD6OPJ/29ym97c+giJZrY4+azI0QwKpWC6s546jPl8Iem/R1H/ho xIPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681473113; x=1684065113; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RS5zG2S0YvaV04wV9JuX1hGkUkejTko5HCtw40TggQY=; b=CC0SPGsDTzOfCtnagTnElbedkI0WxRduWdTbWbuNMrDHpUhHNAAxrNzNW7j+GEMAHT 9MfoCSFiZMwxfpgWFgU+0L/XSDaude2MtXQmZ4Lu7F6gmq/hzXQWzGSrawyM2XFGJRN3 HqHtZn8ul9wIhYPaokyfvcqQgdEIxPie7dmsbojIRc1zczNEEucxAF1U5FfnCiJTlkmU Z4yGOTLnoJ47hbeQ9iCqkyT9Gz36MLcthFMGc0LUEcsPVj1MTK9vBhZmX5iqxqS3p4Qb y/F+HkRNo4mPwQuSpw/GZ6yV7Jj0P7AJ2bbM3NL6MC4GZP+5CmYKSaa9LIcqdjb2RmlO uf+Q== X-Gm-Message-State: AAQBX9dLgsV4loJV/0zqhtM6AXPT4XGuLn/2jgJkRb6Y5IX3q9bIxaGR CSkt7+VMUFcBgI6SZQzQtv5EDQ== X-Google-Smtp-Source: AKy350avn3m86+CsPqNRizLw/sYFOcuLos7nD82AAq12UAGOiKAp44jYMV8YPRPTSOA4aT0TyX3bPQ== X-Received: by 2002:a5d:4e0a:0:b0:2d8:4e4:8ce3 with SMTP id p10-20020a5d4e0a000000b002d804e48ce3mr4502164wrt.4.1681473113519; Fri, 14 Apr 2023 04:51:53 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:e6b0:9ea2:8124:b254]) by smtp.gmail.com with ESMTPSA id f15-20020adff58f000000b002efb3566b0asm3379523wro.52.2023.04.14.04.51.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Apr 2023 04:51:53 -0700 (PDT) From: Bartosz Golaszewski To: Khem Raj , Bruce Ashfield , openembedded-devel@lists.openembedded.org Cc: Bartosz Golaszewski Subject: [meta-oe][PATCH v2 2/4] libgpiod: install the libgpiosim header Date: Fri, 14 Apr 2023 13:51:45 +0200 Message-Id: <20230414115147.136593-3-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230414115147.136593-1-brgl@bgdev.pl> References: <20230414115147.136593-1-brgl@bgdev.pl> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 14 Apr 2023 11:52:01 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/102095 From: Bartosz Golaszewski This header is used for building tests. While libgpiod can access it from the source tree, the python bindings that live in a separate recipe must be able to use it from its recipe sysroot. Signed-off-by: Bartosz Golaszewski --- meta-oe/recipes-support/libgpiod/libgpiod_2.0.1.bb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meta-oe/recipes-support/libgpiod/libgpiod_2.0.1.bb b/meta-oe/recipes-support/libgpiod/libgpiod_2.0.1.bb index 50b9203a7..337554cd8 100644 --- a/meta-oe/recipes-support/libgpiod/libgpiod_2.0.1.bb +++ b/meta-oe/recipes-support/libgpiod/libgpiod_2.0.1.bb @@ -15,7 +15,13 @@ SRC_URI[sha256sum] = "b5367d28d045b36007a4ffd42cceda4c358737ef4f2ce22b0c1d05ec57 PACKAGECONFIG[tests] = "--enable-tests --enable-tools --enable-bindings-cxx --enable-gpioset-interactive,--disable-tests,kmod util-linux glib-2.0 catch2 libedit" PACKAGECONFIG[gpioset-interactive] = "--enable-gpioset-interactive,--disable-gpioset-interactive,libedit" +PACKAGES =+ "${PN}-ptest-dev" FILES:${PN}-tools += "${bindir}/gpionotify" FILES:${PN}-ptest += "${libdir}/libgpiosim.so.*" +FILES:${PN}-ptest-dev += "${includedir}/gpiosim.h" RRECOMMENDS:${PN}-ptest += "kernel-module-gpio-sim" + +do_install_ptest:append() { + install -m 0644 ${S}/tests/gpiosim/gpiosim.h ${D}${includedir}/gpiosim.h +} From patchwork Fri Apr 14 11:51:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 22621 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1315AC77B77 for ; Fri, 14 Apr 2023 11:52:01 +0000 (UTC) Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) by mx.groups.io with SMTP id smtpd.web10.7190.1681473116240358092 for ; Fri, 14 Apr 2023 04:51:56 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=dIACYHfc; spf=none, err=SPF record not found (domain: bgdev.pl, ip: 209.85.221.54, mailfrom: brgl@bgdev.pl) Received: by mail-wr1-f54.google.com with SMTP id r20so1409207wra.5 for ; Fri, 14 Apr 2023 04:51:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1681473115; x=1684065115; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=isQvspYrormjndV80siKsgSa5WDp2NmyrQf87wXkCsE=; b=dIACYHfcZ2PgTEuUWwnCpmhDW89AEP5wdU8p0xx0nEycFsZgStaobn8nQbatcYXW6q I/hD1FTqPfEPYR9IAH0HSsEI0QiUKcmalC/nURc3+/IOTp5npCftcn/FzsbeHAFSYQvA EYuWuqJYcT9IuFrAqwadz2MNLYmIexcIz+yXACtEoPDWWooZp6hFj0YTvd78+NvGwEUH RJFziP6TdI4yc4YKFHumn6YKpaH7WIR4N0ClCMS55ErcaHaQH8TtmEB1wkdLccuu3LFH F5brI14Dsif6dE1xYfWq92+USoz4db6fU1DKVDpdN1JtINLmhN7lTQtzc1ivedDOQ8sI y1CQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681473115; x=1684065115; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=isQvspYrormjndV80siKsgSa5WDp2NmyrQf87wXkCsE=; b=N2u44/dHZosHTva+Fh5o9r3h7syS5vvH7L0pXqPaq436vxWhfJnrdmjFDb+kxlrWO5 hy5buL57ns2FMpJhG5Wfuw/MaN2V7fx6E8ddJFVfREjdTRChbcwiTEErjtqJyHyt8AaM uLMf0A9SmXV4rUjjnaWdUFdKIq5ogY6eRT7p+rWeIbWfmSqyiY8SdnN7445LWCkCrBMG x1xVbx6I2RAHZ4zNokRu63edjtfR9XVJ1RYu3+VHD634yCDNYoccOwrfHUqM8eRplTaK iRCs7fXv16BeCDPG1JDYdW/41kLMKJhwAuvJTBXswuTTVEtLfWbvqYBSBLknGn8tpbe3 TGrw== X-Gm-Message-State: AAQBX9csgLaLbgwasrFPihEsjv9rYHK9YcX55CduWjAvu30JK6e+hTNp VqMGieryoJXhYjfbYk5B2Vkm1Q== X-Google-Smtp-Source: AKy350ZcALVyLH+9aZZ/GFJ6pY09yqnhv2JothIuHl/NhBLG2kauGGTPWWFuIoq//4V0129F8+Kc8w== X-Received: by 2002:adf:e788:0:b0:2f7:85e0:de75 with SMTP id n8-20020adfe788000000b002f785e0de75mr787504wrm.19.1681473114703; Fri, 14 Apr 2023 04:51:54 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:e6b0:9ea2:8124:b254]) by smtp.gmail.com with ESMTPSA id f15-20020adff58f000000b002efb3566b0asm3379523wro.52.2023.04.14.04.51.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Apr 2023 04:51:53 -0700 (PDT) From: Bartosz Golaszewski To: Khem Raj , Bruce Ashfield , openembedded-devel@lists.openembedded.org Cc: Bartosz Golaszewski Subject: [meta-python][PATCH v2 3/4] python3-gpiod: fetch sources from pypi Date: Fri, 14 Apr 2023 13:51:46 +0200 Message-Id: <20230414115147.136593-4-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230414115147.136593-1-brgl@bgdev.pl> References: <20230414115147.136593-1-brgl@bgdev.pl> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 14 Apr 2023 11:52:01 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/102096 From: Bartosz Golaszewski Python bindings to libgpiod are now available on pypi. The source package is a limited subset of the original repository. As such the ptest package now requires the libgpiod-ptest to be available at run-time (for libgpiosim.so against which the test C extension is linked). The problem with installing the C extensions for tests is now fixed so drop the do_install:append(). We no longer have to pass any additional CFLAGS to setup.py either. We update the version of the recipe but the changes only apply to building and packaging, there are no functional changes to the code. Signed-off-by: Bartosz Golaszewski --- .../python/python3-gpiod_2.0.1.bb | 38 ++++++++++++++ .../python/python3-gpiod_2.0.bb | 49 ------------------- 2 files changed, 38 insertions(+), 49 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python3-gpiod_2.0.1.bb delete mode 100644 meta-python/recipes-devtools/python/python3-gpiod_2.0.bb diff --git a/meta-python/recipes-devtools/python/python3-gpiod_2.0.1.bb b/meta-python/recipes-devtools/python/python3-gpiod_2.0.1.bb new file mode 100644 index 000000000..f833e6903 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-gpiod_2.0.1.bb @@ -0,0 +1,38 @@ +SUMMARY = "Python bindings for libgpiod." +AUTHOR = "Bartosz Golaszewski " + +LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later & CC-BY-SA-4.0" +# The actual license files live in the upstream libgpiod from which the pypi +# package is spun out. +LIC_FILES_CHKSUM = "file://setup.py;beginline=57;endline=57;md5=120334ed83ec0cb248605e775bd13b87" + +SRC_URI += "file://run-ptest" + +SRC_URI[sha256sum] = "d5c0f9502e97e7359b9dd601e29f15d668983ce50f5c13323f3302845f790fa6" + +inherit setuptools3 ptest pypi + +PYPI_PACKAGE = "libgpiod" + +DEPENDS += "libgpiod" +RDEPENDS:${PN} += " \ + libgpiod (>= 2.0) \ + python3-datetime \ + python3-profile \ +" +RDEPENDS:${PN}-ptest += " \ + libgpiod-ptest \ + python3-setuptools \ +" + +export GPIOD_WITH_TESTS = "${@bb.utils.contains("PTEST_ENABLED", "1", "1", "0", d)}" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/gpiod-test/gpiosim + install -d ${D}${PTEST_PATH}/gpiod-test/procname + install -m 0644 ${S}/tests/*.py ${D}${PTEST_PATH}/gpiod-test/ + install -m 0644 ${B}/build/lib*/tests/gpiosim/_ext* ${D}${PTEST_PATH}/gpiod-test/gpiosim + install -m 0644 ${S}/tests/gpiosim/*.py ${D}${PTEST_PATH}/gpiod-test/gpiosim + install -m 0644 ${B}/build/lib*/tests/procname/_ext* ${D}${PTEST_PATH}/gpiod-test/procname + install -m 0644 ${S}/tests/procname/*.py ${D}${PTEST_PATH}/gpiod-test/procname +} diff --git a/meta-python/recipes-devtools/python/python3-gpiod_2.0.bb b/meta-python/recipes-devtools/python/python3-gpiod_2.0.bb deleted file mode 100644 index e39d5beb1..000000000 --- a/meta-python/recipes-devtools/python/python3-gpiod_2.0.bb +++ /dev/null @@ -1,49 +0,0 @@ -SUMMARY = "Python bindings for libgpiod." -AUTHOR = "Bartosz Golaszewski " - -LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later & CC-BY-SA-4.0" -LIC_FILES_CHKSUM = " \ - file://../../LICENSES/GPL-2.0-or-later.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ - file://../../LICENSES/LGPL-2.1-or-later.txt;md5=4b54a1fd55a448865a0b32d41598759d \ - file://../../LICENSES/CC-BY-SA-4.0.txt;md5=fba3b94d88bfb9b81369b869a1e9a20f \ -" - -require recipes-support/libgpiod/libgpiod-src.inc - -SRC_URI += "file://run-ptest" - -SRC_URI[sha256sum] = "f74cbf82038b3cb98ebeb25bce55ee2553be28194002d2a9889b9268cce2dd07" -S = "${WORKDIR}/libgpiod-${PV}/bindings/python" - -inherit setuptools3 ptest - -DEPENDS += "libgpiod" -RDEPENDS:${PN} += " \ - libgpiod (>= 2.0) \ - python3-datetime \ - python3-profile \ -" -RDEPENDS:${PN}-ptest += "python3-setuptools" - -export GPIOD_WITH_TESTS = "${@bb.utils.contains("PTEST_ENABLED", "1", "1", "0", d)}" -PTEST_CFLAGS = "${@bb.utils.contains("PTEST_ENABLED", "1", "-I../../tests/gpiosim", "", d)}" -# Setuptools store full filesystem paths in DWARF files. Map them to './' to -# avoid QA warnings. -export CFLAGS = "${PTEST_CFLAGS} -fdebug-prefix-map=${B}=./" - -do_install:append() { - # Python setuptools have an issue where they install C extensions even if - # they're not in the list of packages to be packaged. This is how the test - # extensions end up being installed. Remove them here. - rm -rf ${D}${PYTHON_SITEPACKAGES_DIR}/tests/ -} - -do_install_ptest() { - install -d ${D}${PTEST_PATH}/gpiod-test/gpiosim - install -d ${D}${PTEST_PATH}/gpiod-test/procname - install -m 0644 ${B}/tests/*.py ${D}${PTEST_PATH}/gpiod-test/ - install -m 0644 ${B}/build/lib*/tests/gpiosim/_ext* ${D}${PTEST_PATH}/gpiod-test/gpiosim - install -m 0644 ${B}/tests/gpiosim/*.py ${D}${PTEST_PATH}/gpiod-test/gpiosim - install -m 0644 ${B}/build/lib*/tests/procname/_ext* ${D}${PTEST_PATH}/gpiod-test/procname - install -m 0644 ${B}/tests/procname/*.py ${D}${PTEST_PATH}/gpiod-test/procname -} From patchwork Fri Apr 14 11:51:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 22620 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 02653C77B78 for ; Fri, 14 Apr 2023 11:52:01 +0000 (UTC) Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) by mx.groups.io with SMTP id smtpd.web10.7191.1681473116921369791 for ; Fri, 14 Apr 2023 04:51:57 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=l8wGnO9H; spf=none, err=SPF record not found (domain: bgdev.pl, ip: 209.85.221.46, mailfrom: brgl@bgdev.pl) Received: by mail-wr1-f46.google.com with SMTP id s12so8741180wrb.1 for ; Fri, 14 Apr 2023 04:51:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1681473115; x=1684065115; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6Nko0SVHaBLOMhCMTOpCHE36UhhgQiShNg1KWSlBAwM=; b=l8wGnO9HI57Bh3ydyl8ZpTsZJ6C7Xr0paMiweJ8ZryQqhS8XoKWsJtkAb2NDdEbE+3 1hnJX6dMM9gG8IQJEpsZMXjAAw+KE2X7o8oxomfdUZ28t7dnRfquPNOwNXH9gEWfKRVx Kt+Qwffk3zvBVKhvcU52xKPZlS9k/gt05QMIYkNQw1KZcv97g6+pSqY9952SePf55m95 mWYLwAaQYERZmlG9Q1falNiqK3iqy+cAdKndjwHqpWQtCOAcsZeSRpTLoK6G8ZLi1ccX uWuoiK0kvlXKeeJ3/H5Ho7E+puqudLilQWpT1NXbC5q5yuV1FrcLNjG2qqCDQgVWYpQU iDQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681473115; x=1684065115; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6Nko0SVHaBLOMhCMTOpCHE36UhhgQiShNg1KWSlBAwM=; b=QQFYBFwpA97t61kgE7lkOjj4IGI7jIA3ad1S8KgOOiKKiv5iiNTdS8+pF1VOsALMui 01ouDQ2KfY30dwn+otAr2clfCPqtkviBV4q56GT7kb7e+lzywpwSeO1vJUubvX6bWvWQ uqMwGS5dDO8wPmgwfeQio/C1pMp5DHSvLj5JeivAio5DM85TQFf7AgMkoZvEL/uo1RB1 9R0RsA5F3c+/Fhs8/DKIhGfBJwjhTavnRE3SFlvfYHnR7aBIouUmmhFNDp2iQqi0Ify3 b2TrvqAKCoH/BzuyM2X9uVYXxW7qz0DQ4/Ry/sBBJicntiLiAnkxKaONrxgYY7lOoVWt Oe9A== X-Gm-Message-State: AAQBX9eiMxkVQlkgmQ4eAJysGmhFPuq5O+wWB0D9e/PDwLBO0YRa/AvT LOBjAhU3vVzwpFzs2KIw5wBrTg== X-Google-Smtp-Source: AKy350bvTnCnWD1vhwnrO+j3VDX7Kp8xJaYZUfmPvcKdcgCgHxw1KhvJUjcR2r9GL3fBEgonyIJDKg== X-Received: by 2002:adf:fe49:0:b0:2ef:b8ae:8791 with SMTP id m9-20020adffe49000000b002efb8ae8791mr3720225wrs.10.1681473115523; Fri, 14 Apr 2023 04:51:55 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:e6b0:9ea2:8124:b254]) by smtp.gmail.com with ESMTPSA id f15-20020adff58f000000b002efb3566b0asm3379523wro.52.2023.04.14.04.51.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Apr 2023 04:51:55 -0700 (PDT) From: Bartosz Golaszewski To: Khem Raj , Bruce Ashfield , openembedded-devel@lists.openembedded.org Cc: Bartosz Golaszewski Subject: [meta-oe][PATCH v2 4/4] libgpiod: fold libgpiod-src.inc into libgpiod.inc Date: Fri, 14 Apr 2023 13:51:47 +0200 Message-Id: <20230414115147.136593-5-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230414115147.136593-1-brgl@bgdev.pl> References: <20230414115147.136593-1-brgl@bgdev.pl> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 14 Apr 2023 11:52:01 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/102097 From: Bartosz Golaszewski Now that python3-gpiod fetches the sources from pypi, we no longer need to provide the SRC_URI in a separate include. Fold it into the libgpiod.inc used locally only. Signed-off-by: Bartosz Golaszewski --- meta-oe/recipes-support/libgpiod/libgpiod-src.inc | 1 - meta-oe/recipes-support/libgpiod/libgpiod.inc | 7 ++++--- 2 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 meta-oe/recipes-support/libgpiod/libgpiod-src.inc diff --git a/meta-oe/recipes-support/libgpiod/libgpiod-src.inc b/meta-oe/recipes-support/libgpiod/libgpiod-src.inc deleted file mode 100644 index 6bab4c1f4..000000000 --- a/meta-oe/recipes-support/libgpiod/libgpiod-src.inc +++ /dev/null @@ -1 +0,0 @@ -SRC_URI += "https://www.kernel.org/pub/software/libs/libgpiod/libgpiod-${PV}.tar.xz" diff --git a/meta-oe/recipes-support/libgpiod/libgpiod.inc b/meta-oe/recipes-support/libgpiod/libgpiod.inc index abb6544ec..53f9ec49c 100644 --- a/meta-oe/recipes-support/libgpiod/libgpiod.inc +++ b/meta-oe/recipes-support/libgpiod/libgpiod.inc @@ -1,11 +1,12 @@ SUMMARY = "C library and tools for interacting with the linux GPIO character device" AUTHOR = "Bartosz Golaszewski " -require libgpiod-src.inc - inherit autotools pkgconfig ptest -SRC_URI += "file://run-ptest" +SRC_URI += " \ + https://www.kernel.org/pub/software/libs/libgpiod/libgpiod-${PV}.tar.xz \ + file://run-ptest \ +" PACKAGECONFIG[cxx] = "--enable-bindings-cxx,--disable-bindings-cxx"