From patchwork Wed Oct 27 02:12:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ahmad Jarara X-Patchwork-Id: 34078 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 88F6F27BBE1; Wed, 27 Oct 2021 03:14:14 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 8425427BBE3 for ; Wed, 27 Oct 2021 03:14:13 +0100 (BST) Received: from localhost ([::1]:43066 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mfYSC-0008Cd-D4 for patchwork@mira.cbaines.net; Tue, 26 Oct 2021 22:14:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52404) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfYS2-00089U-O3 for guix-patches@gnu.org; Tue, 26 Oct 2021 22:14:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36448) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mfYS2-0000Ue-Al for guix-patches@gnu.org; Tue, 26 Oct 2021 22:14:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mfYS2-0000ar-5z for guix-patches@gnu.org; Tue, 26 Oct 2021 22:14:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51219] gnu: Add libcbor References: <353e4bcb-4cca-4248-a2c0-cf955fc70006@www.fastmail.com> In-Reply-To: <353e4bcb-4cca-4248-a2c0-cf955fc70006@www.fastmail.com> Resent-From: "Ahmad Jarara" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 27 Oct 2021 02:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51219 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 51219@debbugs.gnu.org Received: via spool by 51219-submit@debbugs.gnu.org id=B51219.16353008132232 (code B ref 51219); Wed, 27 Oct 2021 02:14:02 +0000 Received: (at 51219) by debbugs.gnu.org; 27 Oct 2021 02:13:33 +0000 Received: from localhost ([127.0.0.1]:47994 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfYRZ-0000Zw-8J for submit@debbugs.gnu.org; Tue, 26 Oct 2021 22:13:33 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:40553) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfYRX-0000Zg-IW for 51219@debbugs.gnu.org; Tue, 26 Oct 2021 22:13:32 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id E56265C0279 for <51219@debbugs.gnu.org>; Tue, 26 Oct 2021 22:13:25 -0400 (EDT) Received: from imap46 ([10.202.2.96]) by compute4.internal (MEProxy); Tue, 26 Oct 2021 22:13:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= mime-version:message-id:date:from:to:subject:content-type; s= fm1; bh=T0umIrkYMn7bpRFG58NyUjoEYV+KwJiZlXihtB1OvKI=; b=lieSl7FE l1PJ/pvihProBTjIQmQ/lyqySVJ2Yecik93U/toj/i9iVSGTQ1jFLs62EAFLhBIi B+aRgSbljEg8yIdqWiZDENleOt7GMj3SrITbu6mJZvj6XEH1zgy7UapeMf4kbXSJ GNFR4kCz69AwNEXzhdoTuxu7mfgP52EyINAhnYOPw2GkYL7jWrQqx6FOxUTxGU1D cJ6Wplp5S/uP0y7L3xq3sDFc1mN/W5zMKHJhSgE8u+s3p9j7Xf+o8XemwXDmtxhv HJsMn83fPPyGyj23Xz+7LHcUZyjTM7m4JSitht9b9VLuf6YD6BIr9Dmqz1RwCQCa CFfUFApilMaO2Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=T0umIrkYMn7bpRFG58NyUjoEYV+Kw JiZlXihtB1OvKI=; b=SYHW4MHLZPNKwazAEOcWDAIxVpD+Aboq711hsXzh40XJV xPNVoXwImmXC1wF4S5GzaoyNqiaczxpMC2RaI/LplyZCSGoxuyAC59M/SwMiWVtH nA7Iu+0FiEEptQleAUVJyizMqQXMfXNQ8l+TqhxuXlv8QNieEq1l/nUWjRCb7nM2 +WRrwuQvPHIKuWoeFBk8ft5vPea2Vt3b/A4CRITY5GKqT+XmD5luBFB9FC1TCnz8 cS6b62g7sLe9roQJ7oasHgbrF2N5Hy4U0LaTp8/Id0Izb/qfr0YhO70olf0sGtGD 0bo05bZDmnnQYd0pj8cRh5pthTy5cBc+rOWAJzKYQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdefledghedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtsehmtderre erredtnecuhfhrohhmpedftehhmhgrugculfgrrhgrrhgrfdcuoegrjhgrrhgrrhgrsehf rghsthhmrghilhdrtghomheqnecuggftrfgrthhtvghrnhepfeekjedtvefgtdekteelve evfeehgfehgfekhfevvdfflefgheduueeugeeitdeinecuvehluhhsthgvrhfuihiivgep tdenucfrrghrrghmpehmrghilhhfrhhomheprghjrghrrghrrgesfhgrshhtmhgrihhlrd gtohhm X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 8A8FA1EE0076; Tue, 26 Oct 2021 22:13:25 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-1369-gd055fb5e7c-fm-20211018.002-gd055fb5e Mime-Version: 1.0 Message-Id: <134a7b0a-4104-4b51-a494-3ddd19ee3329@www.fastmail.com> Date: Tue, 26 Oct 2021 22:12:17 -0400 From: "Ahmad Jarara" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Figured out the lint problem: I think this should be good now. From 9800488a2060f8afd3b3dacd9b135e6d2b44c119 Mon Sep 17 00:00:00 2001 From: Ahmad Jarara Date: Tue, 26 Oct 2021 22:08:18 -0400 Subject: [PATCH] gnu: Add libcbor --- gnu/packages/compression.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index 3098230bd5..a8b429661b 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm @@ -2730,3 +2730,36 @@ (define-public tarlz tar tools like GNU tar, which treat it like any other tar.lz archive. Tarlz can append files to the end of such compressed archives.") (license license:gpl2+))) + +(define-public libcbor + (package + (name "libcbor") + (version "0.8.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/PJK/libcbor") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 (base32 "03gv6qn09kj7glq96rwc2g88j80xkykc95jnclfxb7iffxzkw4xd")))) + (build-system cmake-build-system) + (arguments + '(#:configure-flags + (let* ((out (assoc-ref %outputs "out")) + (lib (string-append out "/lib"))) + (list + "-DCMAKE_BUILD_TYPE=Release" + "-DBUILD_SHARED_LIBS=ON" + "-DCBOR_CUSTOM_ALLOC=ON" + (string-append "-DCMAKE_INSTALL_LIBDIR=" lib) + (string-append "-DCMAKE_INSTALL_RPATH=" lib))))) + (synopsis "The C library for parsing and generating CBOR") + (description + "The Concise Binary Object Representation (CBOR) is a data format whose +design goals include the possibility of extremely small code size, fairly +small message size, and extensibility without the need for version +negotiation. These design goals make it different from earlier binary +serializations such as ASN.1 and MessagePack.") + (license license:expat) + (home-page "https://github.com/PJK/libcbor"))) base-commit: 89d8417b371f3918f0508bbc561675ec100a6add -- 2.33.0