From patchwork Sat May 30 15:39:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Joris OFFOUGA X-Patchwork-Id: 1301233 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.a=rsa-sha256 header.s=20161025 header.b=cuUqUJM0; 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 49Z5H13v44z9sRN for ; Sun, 31 May 2020 01:40:13 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id E44418861E; Sat, 30 May 2020 15:40:07 +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 dGpX4IUPgIBr; Sat, 30 May 2020 15:40:04 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id BA68288377; Sat, 30 May 2020 15:40:04 +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 52A381BF352 for ; Sat, 30 May 2020 15:40:03 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 4F0CF87E1D for ; Sat, 30 May 2020 15:40:03 +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 TGW09+HQsuPB for ; Sat, 30 May 2020 15:40:02 +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 whitealder.osuosl.org (Postfix) with ESMTPS id 4FE9587DA2 for ; Sat, 30 May 2020 15:40:02 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id x6so7056320wrm.13 for ; Sat, 30 May 2020 08:40:02 -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:mime-version :content-transfer-encoding; bh=b+aBaxaRfmgPwFbY5/NqJdAIxu7ETar4pQNBOz3ZnfY=; b=cuUqUJM0bte6XdAkEQGF0d/jaDjCZd0knOEkisHqRrzkOub2pY2nTkjckBSUvIAJ/A N+S0RFzvFH27udiIENMTnYeJIZ7MyzTSc7ppbPXD7qKAnjzlhTIcFYNo+lUZRMLJu/v8 meHHT9pjps9IkLUa4oXbNygM98b/i0lQ+fvzBeNakVfrENiD4QbDDYRlxnbOSyfrRkNB v6FkeV03nDJiDe+VIiT1t/aBiK6XlNVIiGOeCOCoQ5SUIlB92xjOruWO5t2lN5S6eeBc 7o+ci0O1m6ov6I4NmyGsdJ7EaaVsjY17fUvDRdOS0gDHjpargVb0ErFJXhiltwMUsOPC iTEw== 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:mime-version :content-transfer-encoding; bh=b+aBaxaRfmgPwFbY5/NqJdAIxu7ETar4pQNBOz3ZnfY=; b=qs4JXr75c5WDBQOv/P7YSwH4gnTDagO5B70RBvUE08ewt4Zei4Jym2UwdjGhH9vho5 eaBzUT01bj6Kwi597G+psrNLQkfyiDyYAJeQEqT1Z4VnetjAMshSPW+4CLDdUTmbLuOX zfLRACM5TWPncpfp7E3TFW4oAMxKMHCVV7dykNhKzk4B4CKk2q+ppH6oHiEhDj7rV/9s +HdVQ4wjKzn8n5kc8bjb38yTAkjAcp+8aJPnUcSPoo0SF+lt4T6CPCP0PccaECbWWh/8 Absea1h6Vf56ltJWrKKclw8Q/qn+kiuOrkZ/MTT+A9Hi7VOqGtnHH8rvCq2/1PSPeeb1 jNmw== X-Gm-Message-State: AOAM530osn0X+6Rx+R9JziJDhjrHvE8wv1bljknaM/bkoZqQXW8kBfFp W3G3EEBUheVpint/bnHygMtMtSxj X-Google-Smtp-Source: ABdhPJyKCEXqrUCmsfvINhhtpFa5e59ouhzzDBxbeCx9cq5mRBdZ+4eIsOAUR3mcumSRX2AIQWFGcA== X-Received: by 2002:adf:a1c1:: with SMTP id v1mr14148511wrv.205.1590853200562; Sat, 30 May 2020 08:40:00 -0700 (PDT) Received: from XPS-15-7590.home ([2a01:cb19:16b:9900:556c:2736:290d:69f8]) by smtp.gmail.com with ESMTPSA id c16sm8214474wrx.4.2020.05.30.08.39.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 May 2020 08:39:59 -0700 (PDT) From: Joris Offouga To: buildroot@buildroot.org Date: Sat, 30 May 2020 17:39:57 +0200 Message-Id: <20200530153957.17149-1-offougajoris@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH V3] package/c-periphery: bump version to 2.2.0 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: Joris Offouga , Thomas Petazzoni Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Since commit "cmake: add cmake build support" (https://github.com/vsergeev/c-periphery/commit/952e1e906a5d65b78932128af24b7dbb8cce2e9dvsergeev/c-periphery@d0a973c), c-periphery implement cmake build, so use cmake-package instead of generic-package The hash of the license file is updated due to an update in the copyright year: - Copyright (c) 2014-2019 vsergeev / Ivan (Vanya) A. Sergeev + Copyright (c) 2014-2020 vsergeev / Ivan (Vanya) A. Sergeev Signed-off-by: Joris Offouga --- change v2->v3 - Fix commit log - use _XOPEN_SOURCE instead of __USE_XOPEN according to man poll. Suggested-by Thomas Petazzoni - Install library to $(TARGET_DIR) change v1->v2: - fix correct copyright year 2020 ...0001-gpio.c-add-_XOPEN_SOURCE-define.patch | 38 +++++++++++++++++++ package/c-periphery/c-periphery.hash | 4 +- package/c-periphery/c-periphery.mk | 19 ++-------- 3 files changed, 43 insertions(+), 18 deletions(-) create mode 100644 package/c-periphery/0001-gpio.c-add-_XOPEN_SOURCE-define.patch diff --git a/package/c-periphery/0001-gpio.c-add-_XOPEN_SOURCE-define.patch b/package/c-periphery/0001-gpio.c-add-_XOPEN_SOURCE-define.patch new file mode 100644 index 0000000000..815fa9541d --- /dev/null +++ b/package/c-periphery/0001-gpio.c-add-_XOPEN_SOURCE-define.patch @@ -0,0 +1,38 @@ +From 9b0e96bad4a50b5c95c88e0b6c526ed44f00382a Mon Sep 17 00:00:00 2001 +From: Joris Offouga +Date: Fri, 29 May 2020 13:48:58 +0200 +Subject: [PATCH] gpio.c: add _XOPEN_SOURCE define +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +The code needs _XOPEN_SOURCE for some poll() flags. + +Fix build with uclibc: +src/gpio.c: In function gpio_poll_multiple»: +src/gpio.c:242:61: error: «POLLRDNORM» undeclared (first use in this function) +(POLLPRI | POLLERR) : (POLLIN | POLLRDNORM); + ^ + +Signed-off-by: Joris Offouga +[Upstream Status: https://github.com/vsergeev/c-periphery/pull/24] +--- + src/gpio.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/gpio.c b/src/gpio.c +index b4039f1..58b5c16 100644 +--- a/src/gpio.c ++++ b/src/gpio.c +@@ -4,6 +4,8 @@ + * License: MIT + */ + ++#define _XOPEN_SOURCE ++ + #include + #include + #include +-- +2.20.1 + diff --git a/package/c-periphery/c-periphery.hash b/package/c-periphery/c-periphery.hash index 244f8f60f1..208ab5de97 100644 --- a/package/c-periphery/c-periphery.hash +++ b/package/c-periphery/c-periphery.hash @@ -1,3 +1,3 @@ # Locally calculated -sha256 1c455c42b26818d199ac227cd19714f265623e15d363fdfdf47a2416a4165654 c-periphery-2.1.0.tar.gz -sha256 e7b9464cb8511f19ddb40f9cf52fe86b3dfe38b2faed9d7bbc3d5707677ffbe3 LICENSE +sha256 2c1714962f8e4a29ded69f3fc990f4e039162ac9d213a21062a4df9e105b83a4 c-periphery-2.2.0.tar.gz +sha256 7121a0a2ba36ed9388be2f1a916f0e3584d8e49cc7888fbcfcf83bab2a8bebef LICENSE diff --git a/package/c-periphery/c-periphery.mk b/package/c-periphery/c-periphery.mk index bb50434efa..54b286f3b1 100644 --- a/package/c-periphery/c-periphery.mk +++ b/package/c-periphery/c-periphery.mk @@ -4,24 +4,11 @@ # ################################################################################ -C_PERIPHERY_VERSION = 2.1.0 +C_PERIPHERY_VERSION = 2.2.0 C_PERIPHERY_SITE = $(call github,vsergeev,c-periphery,v$(C_PERIPHERY_VERSION)) C_PERIPHERY_INSTALL_STAGING = YES -# only a static library -C_PERIPHERY_INSTALL_TARGET = NO +C_PERIPHERY_INSTALL_TARGET = YES C_PERIPHERY_LICENSE = MIT C_PERIPHERY_LICENSE_FILES = LICENSE -define C_PERIPHERY_BUILD_CMDS - $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) -endef - -# There is no 'install' rule in the Makefile, so we handle things -# manually. -define C_PERIPHERY_INSTALL_STAGING_CMDS - $(INSTALL) -D -m 0644 $(@D)/periphery.a $(STAGING_DIR)/usr/lib/libc-periphery.a - mkdir -p $(STAGING_DIR)/usr/include/c-periphery/ - cp -dpfr $(@D)/src/*.h $(STAGING_DIR)/usr/include/c-periphery/ -endef - -$(eval $(generic-package)) +$(eval $(cmake-package))