From patchwork Wed Aug 7 19:12:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Faith X-Patchwork-Id: 1143632 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.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=reject dis=none) header.from=impinj.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=impinj.com header.i=@impinj.com header.b="IYw/xJn9"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 463h2q5h16z9sNF for ; Thu, 8 Aug 2019 05:12:19 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 01B5D228E3; Wed, 7 Aug 2019 19:12:17 +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 8rD38wxObLyS; Wed, 7 Aug 2019 19:12:12 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 3011C228B0; Wed, 7 Aug 2019 19:12:12 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 3CA1C1BF20D for ; Wed, 7 Aug 2019 19:12:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 38E0486948 for ; Wed, 7 Aug 2019 19:12:11 +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 r2AOgWc2_nxl for ; Wed, 7 Aug 2019 19:12:09 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from us-smtp-delivery-168.mimecast.com (us-smtp-delivery-168.mimecast.com [63.128.21.168]) by fraxinus.osuosl.org (Postfix) with ESMTPS id EB9C486398 for ; Wed, 7 Aug 2019 19:12:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=impinj.com; s=mimecast20190405; t=1565205127; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2V7fnicqfHS3GlQcNAKX6V+AV1UauXztHFDh6efIXH4=; b=IYw/xJn9uNaHElTvtGL5KS9QbN3nTntPB6K3jxuaJi4qOrLbH3uwZlUQI7Q3X3wgwCdFf3 n6YdwaX/VbS9OMyiQD0ffNaMvXhHyC7AQexxt+uxALxxgRxQ8HwTigxo7GdcoQueL0DQZQ YxAuYhVkIcgxZUzDq1gRFTDbGD1XQXk= Received: from NAM05-BY2-obe.outbound.protection.outlook.com (mail-by2nam05lp2056.outbound.protection.outlook.com [104.47.50.56]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-258--5dp6PIdOJ2qDHNYsk9uZw-1; Wed, 07 Aug 2019 15:12:02 -0400 Received: from BYAPR06MB5382.namprd06.prod.outlook.com (20.178.53.75) by BYAPR06MB4773.namprd06.prod.outlook.com (52.135.236.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2136.16; Wed, 7 Aug 2019 19:12:01 +0000 Received: from BYAPR06MB5382.namprd06.prod.outlook.com ([fe80::9921:61e4:dd:cb8e]) by BYAPR06MB5382.namprd06.prod.outlook.com ([fe80::9921:61e4:dd:cb8e%6]) with mapi id 15.20.2136.018; Wed, 7 Aug 2019 19:12:01 +0000 From: John Faith To: "buildroot@buildroot.org" Thread-Topic: [PATCH v4] package/sdbusplus: new package Thread-Index: AQHVTVP9Yb950W2MhE27gcaVj9rMkg== Date: Wed, 7 Aug 2019 19:12:00 +0000 Message-ID: <20190807191146.32047-1-jfaith@impinj.com> References: <710b4b46-81d6-e5e6-4820-f8e1fb435750@mind.be> In-Reply-To: <710b4b46-81d6-e5e6-4820-f8e1fb435750@mind.be> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BYAPR07CA0079.namprd07.prod.outlook.com (2603:10b6:a03:12b::20) To BYAPR06MB5382.namprd06.prod.outlook.com (2603:10b6:a03:d7::11) x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.19.1 x-originating-ip: [216.207.205.253] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c4d69bd9-0126-43eb-0ba6-08d71b6b1fe9 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:BYAPR06MB4773; x-ms-traffictypediagnostic: BYAPR06MB4773:|BYAPR06MB4773: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2449; x-forefront-prvs: 01221E3973 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(4636009)(346002)(396003)(376002)(39850400004)(136003)(366004)(199004)(189003)(476003)(14454004)(54906003)(36756003)(5640700003)(6436002)(966005)(6506007)(386003)(71190400001)(71200400001)(102836004)(11346002)(6306002)(6512007)(446003)(2616005)(186003)(52116002)(256004)(486006)(2501003)(26005)(25786009)(99286004)(1076003)(5660300002)(7736002)(305945005)(6486002)(316002)(6916009)(8676002)(66946007)(3846002)(66476007)(66066001)(107886003)(64756008)(66556008)(66446008)(50226002)(6116002)(4326008)(53936002)(2906002)(478600001)(8936002)(81166006)(81156014)(1730700003)(76176011)(86362001)(2351001); DIR:OUT; SFP:1102; SCL:1; SRVR:BYAPR06MB4773; H:BYAPR06MB5382.namprd06.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: KjmyI5IWw3bZApOs7oXCSXPQdtQ+Ud6brqZnowUqtFi3vqyHzt7bhkXI92NzFymAgBtK5x40XbSGVLI/TdtSlJ6B5B3Qmvgq//n1ye9bI+e4T2beexzZZNN+HliDlQbMOJ+YaPnbjCw+Va9UsFT+ZjHTq2m/asCY3hkT205PJ/NeF1JCwZpx5pIqnGeNScbD6b6X85kS+d8iYA4lYFuyJppnCRDwYMa2nnEKWAXeTlWOAjk7BwyI9HbcpVQ7dqq7db9Pe/6fflSU8PDsKcpVS2jwDqk1sS3WApSygZwtQxjqWc+xZJ4bIRnOA4LYaKmx4fKqrruu5WCZ5KUedFc8d5lqoIW6lMbsmvPYZhw0AIz5xI19amC8Fep4A7AVoFhzaazM04hiIgSrCMCIQ7a/Hb12rmnEGvPUFBAMpLLy/3U= MIME-Version: 1.0 X-OriginatorOrg: impinj.com X-MS-Exchange-CrossTenant-Network-Message-Id: c4d69bd9-0126-43eb-0ba6-08d71b6b1fe9 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Aug 2019 19:12:01.0929 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 6de70f0f-7357-4529-a415-d8cbb7e93e5e X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: jfaith@impinj.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR06MB4773 X-MC-Unique: -5dp6PIdOJ2qDHNYsk9uZw-1 X-Mimecast-Spam-Score: 0 Subject: [Buildroot] [PATCH v4] package/sdbusplus: new package 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: John Faith , Trent Piepho Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" A C++ library for interacting with sd-bus and a C++ bindings generator. The host build produces a code generation tool, sdbus++ while the target build gives libsdbusplus. The code generator requires host-python-pyyaml, host-python-inflection, and host-python-mako. Since it isn't built for the target, the target build does not require them. The host package includes a code and documentation generation program, which is useful for including in a buildroot SDK, even if no target package needs it, so make it a user-selectable host package. host-autoconf-archive is added as a dependency since configure.ac uses the AX_PKG_CHECK_MODULES macro. Signed-off-by: John Faith Signed-off-by: Trent Piepho --- Changes v3 -> v4: - Add systemd and C++ "depends on" for Config.in comment. - Replace PKG_PYTHON_HOST_PYTHON with host-python. - Add POST_PATCH_HOOKS for m4 dir creation. Changes v2 -> v3: - Bump version and drop patch that has been incorporated upstream. Suggested by Arnout Vandecappelle: - Reword commit message; remove bit about now-removed patch. - Depend on systemd. - Add config comment in case dependencies are not met. - Mention that the host tool is a Python tool. - One dependency per line. Changes v1 -> v2: - Added "package/" to commit summary. Suggested by Arnout Vandecappelle: - Reworded commit message for content and grammar. - Moved Config.in to "System tools" section. - Minor description changes in example build patch. - Removed BR2_PACKAGE_SYSTEMD,BR2_PACKAGE_HOST_PKGCONF from Config.in. - Removed "usr" from path in AUTORECONF_OPTS. - Added license hash. --- DEVELOPERS | 1 + package/Config.in | 1 + package/Config.in.host | 1 + package/sdbusplus/Config.in | 14 ++++++++++++++ package/sdbusplus/Config.in.host | 10 ++++++++++ package/sdbusplus/sdbusplus.hash | 5 +++++ package/sdbusplus/sdbusplus.mk | 32 ++++++++++++++++++++++++++++++++ 7 files changed, 64 insertions(+) create mode 100644 package/sdbusplus/Config.in create mode 100644 package/sdbusplus/Config.in.host create mode 100644 package/sdbusplus/sdbusplus.hash create mode 100644 package/sdbusplus/sdbusplus.mk diff --git a/DEVELOPERS b/DEVELOPERS index e8ba6cd985..dcd3289c36 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1195,6 +1195,7 @@ F: package/dhcpcd/ N: John Faith F: package/python-inflection/ +F: package/sdbusplus/ N: Jonathan Ben Avraham F: arch/Config.in.xtensa diff --git a/package/Config.in b/package/Config.in index 5f2191a554..704f82b33e 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2244,6 +2244,7 @@ menu "System tools" source "package/s6-rc/Config.in" source "package/scrub/Config.in" source "package/scrypt/Config.in" + source "package/sdbusplus/Config.in" source "package/smack/Config.in" source "package/start-stop-daemon/Config.in" source "package/supervisor/Config.in" diff --git a/package/Config.in.host b/package/Config.in.host index 93822304e9..e4cab00f0c 100644 --- a/package/Config.in.host +++ b/package/Config.in.host @@ -62,6 +62,7 @@ menu "Host utilities" source "package/rustc/Config.in.host" source "package/s6-rc/Config.in.host" source "package/sam-ba/Config.in.host" + source "package/sdbusplus/Config.in.host" source "package/squashfs/Config.in.host" source "package/sunxi-tools/Config.in.host" source "package/swig/Config.in.host" diff --git a/package/sdbusplus/Config.in b/package/sdbusplus/Config.in new file mode 100644 index 0000000000..e278d17156 --- /dev/null +++ b/package/sdbusplus/Config.in @@ -0,0 +1,14 @@ +config BR2_PACKAGE_SDBUSPLUS + bool "sdbusplus" + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_PACKAGE_SYSTEMD + help + A C++ library for sd-bus with a bindings and doc generator. + + This will build the target library. See the host package for + the bindings and documentation generation program. + + https://github.com/openbmc/sdbusplus + +comment "sdbusplus needs systemd and a toolchain w/ C++" + depends on !BR2_PACKAGE_SYSTEMD || !BR2_INSTALL_LIBSTDCPP diff --git a/package/sdbusplus/Config.in.host b/package/sdbusplus/Config.in.host new file mode 100644 index 0000000000..cff9f20384 --- /dev/null +++ b/package/sdbusplus/Config.in.host @@ -0,0 +1,10 @@ +config BR2_PACKAGE_HOST_SDBUSPLUS + bool "host-sdbusplus" + select BR2_PACKAGE_HOST_PKGCONF + help + A C++ library for sd-bus with a bindings and doc generator. + + This will build the Python host side generation tool for bindings + and documentation. + + https://github.com/openbmc/sdbusplus diff --git a/package/sdbusplus/sdbusplus.hash b/package/sdbusplus/sdbusplus.hash new file mode 100644 index 0000000000..b21d2ddd23 --- /dev/null +++ b/package/sdbusplus/sdbusplus.hash @@ -0,0 +1,5 @@ +# Locally calculated +sha256 c67b8f3d9b74fd0d70eb6eec3b2ec2d496d0f169deedf6fc07dbff2c2f275d2b sdbusplus-4212292bcf136d04b38ba5116aa568b0fa312798.tar.gz + +# License file, locally calculated +sha256 b40930bbcf80744c86c46a12bc9da056641d722716c378f5659b9e555ef833e1 LICENSE diff --git a/package/sdbusplus/sdbusplus.mk b/package/sdbusplus/sdbusplus.mk new file mode 100644 index 0000000000..481284e920 --- /dev/null +++ b/package/sdbusplus/sdbusplus.mk @@ -0,0 +1,32 @@ +################################################################################ +# +# sdbusplus +# +################################################################################ + +SDBUSPLUS_VERSION = 4212292bcf136d04b38ba5116aa568b0fa312798 +SDBUSPLUS_SITE = $(call github,openbmc,sdbusplus,$(SDBUSPLUS_VERSION)) +SDBUSPLUS_DEPENDENCIES = host-autoconf-archive host-pkgconf systemd +HOST_SDBUSPLUS_DEPENDENCIES = \ + host-autoconf-archive \ + host-pkgconf \ + host-python \ + host-python-inflection \ + host-python-mako \ + host-python-pyyaml +SDBUSPLUS_CONF_OPTS = --disable-sdbuspp +HOST_SDBUSPLUS_CONF_OPTS = --disable-libsdbusplus +SDBUSPLUS_AUTORECONF = YES +SDBUSPLUS_AUTORECONF_OPTS = --include=$(HOST_DIR)/share/autoconf-archive +SDBUSPLUS_INSTALL_STAGING = YES +SDBUSPLUS_LICENSE = Apache-2.0 +SDBUSPLUS_LICENSE_FILES = LICENSE + +define SDBUSPLUS_CREATE_M4 + mkdir -p $(@D)/m4 +endef +SDBUSPLUS_POST_PATCH_HOOKS += SDBUSPLUS_CREATE_M4 +HOST_SDBUSPLUS_POST_PATCH_HOOKS += SDBUSPLUS_CREATE_M4 + +$(eval $(autotools-package)) +$(eval $(host-autotools-package))