From patchwork Thu May 17 12:56:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 915422 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) 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=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="RAuJY7yv"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40mrtR5Qx9z9s33 for ; Thu, 17 May 2018 22:57:19 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 815CA89641; Thu, 17 May 2018 12:57:16 +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 Qx8JBxpeme25; Thu, 17 May 2018 12:57:14 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 364A18945F; Thu, 17 May 2018 12:57:14 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 879EE1C3F99 for ; Thu, 17 May 2018 12:57:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 83B372A329 for ; Thu, 17 May 2018 12:57:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aNmCetpUnMUK for ; Thu, 17 May 2018 12:57:10 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr0-f180.google.com (mail-wr0-f180.google.com [209.85.128.180]) by silver.osuosl.org (Postfix) with ESMTPS id F401C22902 for ; Thu, 17 May 2018 12:57:09 +0000 (UTC) Received: by mail-wr0-f180.google.com with SMTP id x9-v6so2725128wrl.13 for ; Thu, 17 May 2018 05:57:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=r4G68Zd/hDydvOb0AjbrP/XL/MWwahn+XI912mOUG+Y=; b=RAuJY7yvhIjbmWyx83i7iKDdpgmxPsFk+rIPYZhVjcPmYrs7IvKsI0yHMn6LkM7P4j /YPt2AM8OMQLeIfPsWqf3490CtXSPqlJ8qNhdhTGC/7zZJfiEjoJX+u01k9yRSH4R9Px nu8p93Qsi75FjChSrCUBBlB8tp/2HzdvXbtfuJgBL+ivwfJzv2EKqp1lLb9rPCkD8dHO ILcDm12NrFX3dK9rHWF+xpPslhmYBo66rTgGXdxFGSD+tZtiLjdEUeq8mo9ie2Xnx+Q6 zZpPf55DNwtD4TkhSFky8gSO38LpDINqaLBz1Ymjew/jD/ObhPRie3pRwkaDqB3nARhR eUqw== 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=r4G68Zd/hDydvOb0AjbrP/XL/MWwahn+XI912mOUG+Y=; b=CFV4g7U8gFld14zUvh9M2yi699omJRoDQ2S1RSTfHNzx8raXV/wHIfYtUA0wbeXoZE qy6tSLA8gjURZXdzMWoZ2CxVrLgL+lGg2EgICHaMZfBHaMWRtWm7F211aZR2MPM4KNt9 ZItUZ3X3zSld3zQcdU5TMxiCE3rviHHV+0UNWrQtywCEci9K+8tehZeKfv38wxcd4ekG YncraJFKlKvq4DQe+FvJ+PqplV1a0HV5y+ItFw2ZrelBmjGOaSUx2vpbG/CK6JfuJebI NGExoTQB2MOv1U4lQ8p7lIVNEnnqOGdqOcQ6FDiXox6bb83+3mgdXWff37SgRQi33k5L 3XgA== X-Gm-Message-State: ALKqPwd0cEzMCYtM67bLH5rJ4bD8eZF3sHGrcwSJpsgj9OTFv+UCeHx8 S217glcgVu7vXf/yL5YKKhpWBVe17VY= X-Google-Smtp-Source: AB8JxZoj20LM27k9Oevec7qF2m9R9CCwmFpwPCQQnNBf0HZT4BI3FaWs16Zvjcv/37LJgZ8SPBGL/w== X-Received: by 2002:adf:80cd:: with SMTP id 71-v6mr4130346wrl.238.1526561827894; Thu, 17 May 2018 05:57:07 -0700 (PDT) Received: from brgl-bgdev.home ([2a01:cb1d:af:5b00:e837:b8d5:48c1:571b]) by smtp.gmail.com with ESMTPSA id u35-v6sm6346283wrc.29.2018.05.17.05.57.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 May 2018 05:57:07 -0700 (PDT) From: Bartosz Golaszewski To: Thomas Petazzoni , Peter Korsgaard , Baruch Siach , Arnout Vandecappelle Date: Thu, 17 May 2018 14:56:56 +0200 Message-Id: <20180517125656.31922-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.17.0 Subject: [Buildroot] [PATCH v2] libgpiod: bump version to v1.1 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bartosz Golaszewski , buildroot@buildroot.org MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This is a minor release the main feature of which are the object-oriented bindings for C++ and Python3. Other than that there's a couple bug-fixes and minor improvements all around. Signed-off-by: Bartosz Golaszewski --- v1 -> v2: - install bindings conditionally based on already selected dependencies rather than adding new Config options package/libgpiod/libgpiod.hash | 2 +- package/libgpiod/libgpiod.mk | 20 ++++++++++++++++++-- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/package/libgpiod/libgpiod.hash b/package/libgpiod/libgpiod.hash index 9ed4b59ab9..1d217f6048 100644 --- a/package/libgpiod/libgpiod.hash +++ b/package/libgpiod/libgpiod.hash @@ -1,4 +1,4 @@ # From https://www.kernel.org/pub/software/libs/libgpiod/sha256sums.asc -sha256 972924195367f5fb045c023d65340c4b7dfc8764499516be446553865208dedc libgpiod-1.0.1.tar.xz +sha256 9758466468a7ef3f5e30c182c1303abef6241e665cda4d82a64328a7474838c1 libgpiod-1.1.tar.xz # Hash for license file sha256 ce64d5f7b49ea6d80fdb6d4cdee6839d1a94274f7493dc797c3b55b65ec8e9ed COPYING diff --git a/package/libgpiod/libgpiod.mk b/package/libgpiod/libgpiod.mk index 7f8fa4b7dd..8c9429b81b 100644 --- a/package/libgpiod/libgpiod.mk +++ b/package/libgpiod/libgpiod.mk @@ -4,13 +4,12 @@ # ################################################################################ -LIBGPIOD_VERSION = 1.0.1 +LIBGPIOD_VERSION = 1.1 LIBGPIOD_SOURCE = libgpiod-$(LIBGPIOD_VERSION).tar.xz LIBGPIOD_SITE = https://www.kernel.org/pub/software/libs/libgpiod LIBGPIOD_LICENSE = LGPL-2.1+ LIBGPIOD_LICENSE_FILES = COPYING LIBGPIOD_INSTALL_STAGING = YES - LIBGPIOD_DEPENDENCIES = host-pkgconf ifeq ($(BR2_PACKAGE_LIBGPIOD_TOOLS),y) @@ -19,4 +18,21 @@ else LIBGPIOD_CONF_OPTS += --disable-tools endif +ifeq ($(BR2_INSTALL_LIBSTDCPP),y) +LIBGPIOD_CONF_OPTS += --enable-bindings-cxx +else +LIBGPIOD_CONF_OPTS += --disable-bindings-cxx +endif + +ifeq ($(BR2_PACKAGE_PYTHON3),y) +LIBGPIOD_CONF_OPTS += --enable-bindings-python +LIBGPIOD_DEPENDENCIES += python3 host-python3 +LIBGPIOD_CONF_ENV += \ + PYTHON=$(HOST_DIR)/bin/python3 \ + PYTHON_CPPFLAGS="`$(STAGING_DIR)/usr/bin/python3-config --includes`" \ + PYTHON_LIBS="`$(STAGING_DIR)/usr/bin/python3-config --ldflags`" +else +LIBGPIOD_CONF_OPTS += --disable-bindings-python +endif + $(eval $(autotools-package))