* [bug#51219] gnu: Add libcbor
@ 2021-10-14 23:59 Ahmad Jarara
2021-10-27 2:12 ` Ahmad Jarara
2021-11-05 18:39 ` bug#51219: Archive: superseded by 51618 Ahmad Jarara
0 siblings, 2 replies; 3+ messages in thread
From: Ahmad Jarara @ 2021-10-14 23:59 UTC (permalink / raw)
To: 51219
[-- Attachment #1.1: Type: text/plain, Size: 466 bytes --]
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?
[-- Attachment #1.2: Type: text/html, Size: 769 bytes --]
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-libcbor.patch --]
[-- Type: text/x-patch; name="0001-gnu-Add-libcbor.patch", Size: 2028 bytes --]
From 8b895dd18f1ac4f821a3b9e498620c1b4380280c Mon Sep 17 00:00:00 2001
From: Ahmad Jarara <git@ajarara.io>
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [bug#51219] gnu: Add libcbor
2021-10-14 23:59 [bug#51219] gnu: Add libcbor Ahmad Jarara
@ 2021-10-27 2:12 ` Ahmad Jarara
2021-11-05 18:39 ` bug#51219: Archive: superseded by 51618 Ahmad Jarara
1 sibling, 0 replies; 3+ messages in thread
From: Ahmad Jarara @ 2021-10-27 2:12 UTC (permalink / raw)
To: 51219
[-- Attachment #1.1: Type: text/plain, Size: 62 bytes --]
Figured out the lint problem: I think this should be good now.
[-- Attachment #1.2: Type: text/html, Size: 213 bytes --]
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-libcbor.patch --]
[-- Type: text/x-patch; name="0001-gnu-Add-libcbor.patch", Size: 2078 bytes --]
From 9800488a2060f8afd3b3dacd9b135e6d2b44c119 Mon Sep 17 00:00:00 2001
From: Ahmad Jarara <git@ajarara.io>
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* bug#51219: Archive: superseded by 51618
2021-10-14 23:59 [bug#51219] gnu: Add libcbor Ahmad Jarara
2021-10-27 2:12 ` Ahmad Jarara
@ 2021-11-05 18:39 ` Ahmad Jarara
1 sibling, 0 replies; 3+ messages in thread
From: Ahmad Jarara @ 2021-11-05 18:39 UTC (permalink / raw)
To: 51219-close
[-- Attachment #1: Type: text/plain, Size: 65 bytes --]
See: https://issues.guix.gnu.org/issue/51618 for the complete set
[-- Attachment #2: Type: text/html, Size: 270 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-11-05 18:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-14 23:59 [bug#51219] gnu: Add libcbor Ahmad Jarara
2021-10-27 2:12 ` Ahmad Jarara
2021-11-05 18:39 ` bug#51219: Archive: superseded by 51618 Ahmad Jarara
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).