From patchwork Mon May 17 15:56:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1479612 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=2605:bc80:3010::133; helo=smtp2.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) 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=O93dDdm1; dkim-atps=neutral Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FkNzc1GH4z9sRf for ; Tue, 18 May 2021 01:56:42 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 1D5F94038A; Mon, 17 May 2021 15:56:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id s4jQFqgmg7i2; Mon, 17 May 2021 15:56:39 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id 60305401AD; Mon, 17 May 2021 15:56:38 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id A30411BF964 for ; Mon, 17 May 2021 15:56:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 92D41401AD for ; Mon, 17 May 2021 15:56:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SVYjcOTInXgj for ; Mon, 17 May 2021 15:56:36 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by smtp2.osuosl.org (Postfix) with ESMTPS id A03E640002 for ; Mon, 17 May 2021 15:56:36 +0000 (UTC) Received: by mail-wr1-x436.google.com with SMTP id y14so4872746wrm.13 for ; Mon, 17 May 2021 08:56:36 -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=Xop5AclyBUY7GO4Rubl1/CWjCgw/cNrAXO37Umt/NCM=; b=O93dDdm1bvruEgsXH/CkRDB6/7NzezTUMNg+l0n8TeecRyrL701irb0lhhbDfnl8uf g4zi8y9sBckerA20HPwoL99dhH/O4U0qfsi/ztSV/cgKiTt7P2aGqJkCOwoUIYBACQJA rZdtgIhcPLqf8NPwbwlzwM6vuFEAqy/hPu/MVpW3+b5wi7f3MOIQpNwVZ19B512l8zFF ILMAqXVb0SntKRzMzkmdeBKZUwwX86nNav29DjbouHVGVNqwqlB/xhmqYy2fWXJRFy1H I3ud6Q6LmEQLSuUDJgkYZZf6jXTqgx3gnzHl6cx5C8sryU7ot4XrHi02fIsKSIJ7JDp3 UJvg== 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=Xop5AclyBUY7GO4Rubl1/CWjCgw/cNrAXO37Umt/NCM=; b=aBOyfOTly2shKUCllOAejQNW4OvGfZ1AchepzXkMVewbf09Bwve5zw1K4dQVfWgZ5h KbRR0GBeXO2ZBCGO8fpW2yFAzgHsW6867D1seUz90iENR1Vi6DoM82HawDomAGBL+ERt wjIg0g2VWxs/tKoEt8uTctC63X7VQA8jU4oKzjyAmLjGV4Uze6RpDu1XlSxwMltCUrLo j1QIT0jqQtm+7K8LPrahD5L9/51mgHDU7NIlBJBakxLq9YoPsQWYEV86DZuRtHht4TuB A3bkG9NJDqQTFKlUSeMZgltjvA17nQNm1UNj4J5nHn5hN/5sSIMd+PCtm3mKi7GfO69f PREg== X-Gm-Message-State: AOAM5305KDjpHucTnP3FmilKezICVxNCOsg0FbdJ26RzWmKO+DXDzMvk cXYXJdhk/KRPZHWwzCCLzFeqkFkE4iU= X-Google-Smtp-Source: ABdhPJyyzKFnJJjAdlihsMx9njX7cYEr/yI3wUeds5pUy0GSk9cA0ZU5fAoOhmefRJUwPNUh+KqTNA== X-Received: by 2002:adf:ebc4:: with SMTP id v4mr394836wrn.217.1621266994850; Mon, 17 May 2021 08:56:34 -0700 (PDT) Received: from localhost.localdomain (2a01cb058f8a180022164e4eb697b4ce.ipv6.abo.wanadoo.fr. [2a01:cb05:8f8a:1800:2216:4e4e:b697:b4ce]) by smtp.gmail.com with ESMTPSA id i1sm6716565wrp.51.2021.05.17.08.56.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 May 2021 08:56:34 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Mon, 17 May 2021 17:56:27 +0200 Message-Id: <20210517155628.267749-2-romain.naour@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517155628.267749-1-romain.naour@gmail.com> References: <20210517155628.267749-1-romain.naour@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCHv2 2/3] package/poke: add optional json-c dependency 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: Romain Naour , Luca Saiu , "Jose E . Marchesi" Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From [1]: "The poke machine-interface uses a protocol to communicate with clients, which is based on JSON. poke uses the json-c library to parse and build JSON strings. If this library is not found, poke will build without machine-interface support." [1] https://git.savannah.nongnu.org/cgit/poke.git/tree/DEPENDENCIES?h=releases/poke-1.2#n55 Signed-off-by: Romain Naour Cc: Jose E. Marchesi Cc: Luca Saiu Signed-off-by: Romain Naour --- package/poke/poke.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/package/poke/poke.mk b/package/poke/poke.mk index c0217b6fad..7c3c81d93c 100644 --- a/package/poke/poke.mk +++ b/package/poke/poke.mk @@ -19,7 +19,13 @@ POKE_DEPENDENCIES = host-flex host-bison host-pkgconf bdwgc readline POKE_CONF_OPTS = \ --disable-gui \ --disable-libnbd \ - --disable-mi \ --with-libreadline-prefix=$(STAGING_DIR) +ifeq ($(BR2_PACKAGE_JSON_C),y) +POKE_DEPENDENCIES += json-c +POKE_CONF_OPTS += --enable-mi +else +POKE_CONF_OPTS += --disable-mi +endif + $(eval $(autotools-package))