From patchwork Thu Oct 14 23:59:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ahmad Jarara X-Patchwork-Id: 33854 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 7DB1827BBE3; Fri, 15 Oct 2021 02:07:17 +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 E9D1F27BBE1 for ; Fri, 15 Oct 2021 02:07:16 +0100 (BST) Received: from localhost ([::1]:51858 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbBgo-0007Kb-N7 for patchwork@mira.cbaines.net; Thu, 14 Oct 2021 21:07:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44314) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbBT4-0003vK-8h for guix-patches@gnu.org; Thu, 14 Oct 2021 20:53:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54105) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mbBT3-0001Rt-Vq for guix-patches@gnu.org; Thu, 14 Oct 2021 20:53:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mbBT3-0008S6-S0 for guix-patches@gnu.org; Thu, 14 Oct 2021 20:53:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51219] gnu: Add libcbor Resent-From: "Ahmad Jarara" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 15 Oct 2021 00:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51219 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 51219@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163425913932433 (code B ref -1); Fri, 15 Oct 2021 00:53:01 +0000 Received: (at submit) by debbugs.gnu.org; 15 Oct 2021 00:52:19 +0000 Received: from localhost ([127.0.0.1]:37418 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbBSK-0008Qy-LG for submit@debbugs.gnu.org; Thu, 14 Oct 2021 20:52:19 -0400 Received: from lists.gnu.org ([209.51.188.17]:57770) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbAdo-0006Yf-DY for submit@debbugs.gnu.org; Thu, 14 Oct 2021 20:00:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37936) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbAdm-0002BP-Gm for guix-patches@gnu.org; Thu, 14 Oct 2021 20:00:03 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:58743) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbAdk-0002KO-7U for guix-patches@gnu.org; Thu, 14 Oct 2021 20:00:02 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 571555C0103 for ; Thu, 14 Oct 2021 19:59:57 -0400 (EDT) Received: from imap46 ([10.202.2.96]) by compute4.internal (MEProxy); Thu, 14 Oct 2021 19:59:57 -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=ziPDGMNDbwlqrzQHPGfy1p57v0m1hDHAB7xduPK6VXE=; b=aiS8Z6Am Em+QSCMcxf6aED2hNKXpzaXxmoYbpDAsSQtvOsu7s5BLrtTQZjDknIvN60B+gSpx np+WmaONcWK7JLFSjvJqx89mZ3ozgdNGlre3LzOcHnWL+1R95YsRsW8yCzo1hU/s PedMjGmvG56ErYpxfX4CATlHiKFeoKlofjvsTsOWwviwBXOW6NUV9q36Tr5vr/P9 Y/zzCcmKIWATKwEHaVgOgn6vZ9Yz6/zAiF+DkZ03cT+4lHPJjJ13v008ZE1byA4P xHE+D0+Y7r3LiPExiUr9Y+FMgeaFJTFLle7Njkr0ROPc/IBsLroG3HCJ1OJTuNOP nffOD6I1PEEI+Q== 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=ziPDGMNDbwlqrzQHPGfy1p57v0m1h DHAB7xduPK6VXE=; b=aZzVOAeYD04+NwpD3KpWG/blOYX3WCqyRWZkk8jdEWz3c HhY/BPfe9Ik9ynV3DwgsqFGGY2F3QrCmeRofCLOM0n0tW74NeQtoNiH1nRarae+j SkPsSpVgCLHUEqGiVsLd0rTYOs8tzyG9SKy4tE36rGC+KLvmDr7aRdGChrehNaRd rgaGZXhDcHoEYGjCqGt4dRYDX6iTqFgJZQOn2f2JIVx7frBHcbNeIoKr/C7bZ8LU y+AVZnKUJj4jP5Y8kwDFY8mSI76J+Cr+K3TlVSGY0U9Q9vsfnV73RCSNxjRFhJK1 MZ7s6U6oozYWOnqrBqvna2Ui+meZjHSYO9aPJLP+g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddufedgvdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtsehmtderre erredtnecuhfhrohhmpedftehhmhgrugculfgrrhgrrhgrfdcuoegrjhgrrhgrrhgrsehf rghsthhmrghilhdrtghomheqnecuggftrfgrthhtvghrnhephfetieeukeehffeuhffgue etfeelfeeggfeuieeiffevuefgfeehudehtdfgjedvnecuffhomhgrihhnpehophgvnhhs shhhrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homheprghjrghrrghrrgesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 301731EE0078; Thu, 14 Oct 2021 19:59:57 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-1345-g8441cd7852-fm-20211006.001-g8441cd78 Mime-Version: 1.0 Message-Id: <353e4bcb-4cca-4248-a2c0-cf955fc70006@www.fastmail.com> Date: Thu, 14 Oct 2021 19:59:35 -0400 From: "Ahmad Jarara" Received-SPF: pass client-ip=66.111.4.25; envelope-from=ajarara@fastmail.com; helo=out1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 14 Oct 2021 20:52:16 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Thu, 14 Oct 2021 21:07:00 -0400 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 A follow up patch adds libfido2, which is dependent on libcbor. Then, guix users may tweak their ssh packages to use the internal security key provider as described in the release notes for openssh 8.2: https://www.openssh.com/txt/release-8.2 Running lint on this package with `guix-devel-mode` shows an error: ``` gnu/packages/compression.scm:2739:5: libcbor@0.8.0: the source file name should contain the package name ``` Any idea how to fix/suppress this lint? From 8b895dd18f1ac4f821a3b9e498620c1b4380280c Mon Sep 17 00:00:00 2001 From: Ahmad Jarara Date: Thu, 14 Oct 2021 19:43:58 -0400 Subject: [PATCH] gnu: Add libcbor --- gnu/packages/compression.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index 3098230bd5..fbe5a5c391 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm @@ -2730,3 +2730,35 @@ (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)))) + (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: cf25ba2d773435af7af2cd315185acb16dcc6b58 -- 2.33.0