unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#51913] [PATCH] gnu: Add cl-binascii.
@ 2021-11-17  5:40 Foo Chuan Wei
  2021-11-18  6:04 ` Foo Chuan Wei
  0 siblings, 1 reply; 5+ messages in thread
From: Foo Chuan Wei @ 2021-11-17  5:40 UTC (permalink / raw)
  To: 51913

* gnu/packages/lisp-xyz.scm (cl-binascii, ecl-binascii, sbcl-binascii):
  New variables.
---
 gnu/packages/lisp-xyz.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 4b17c173c9..39325d2f6b 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -17879,6 +17879,40 @@ RSS feeds data via HTTP.  Currently, it supports RSS versions 0.90,
 (define-public cl-rss
   (sbcl-package->cl-source-package sbcl-rss))
 
+(define-public sbcl-binascii
+  (let ((commit "0fb0a9e5773148fd04d50efef08c1cc10f6fc487")
+        (revision "1"))
+    (package
+      (name "sbcl-binascii")
+      (version (git-version "1.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/froydnj/binascii")
+               (commit commit)))
+         (file-name (git-file-name "cl-binascii" version))
+         (sha256
+          (base32 "000rcdl8qshr7n48zq9bzrc4lkjx4ylb3r3w9x9syhiwfla9j4b7"))))
+      (build-system asdf-build-system/sbcl)
+      (home-page "https://github.com/froydnj/binascii")
+      (synopsis "Common Lisp library of ASCII encoding schemes for binary data")
+      (description
+       "@code{binascii} is a Common Lisp library for converting binary data
+to ASCII text of some kind.  Such conversions are common in email protocols
+(for encoding attachments to support old non-8-bit clean transports) or
+encoding binary data in HTTP and XML applications.  @code{binascii} supports
+the encodings described in RFC 4648: base64, base32, base16, and variants.
+It also supports base85, used in Adobe's PostScript and PDF document formats,
+and a variant called ascii85, used by git for binary diff files.")
+      (license license:bsd-3))))
+
+(define-public cl-binascii
+  (sbcl-package->cl-source-package sbcl-binascii))
+
+(define-public ecl-binascii
+  (sbcl-package->ecl-package sbcl-binascii))
+
 (define-public sbcl-trivial-with-current-source-form
   (let ((commit "9e343e043a77a5478c1f77bb626db22335fbbfb8")
         (revision "1"))

base-commit: 02a67810e566e8402e0b927c81ae39391762767d
-- 
2.25.1





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#51913] [PATCH] gnu: Add cl-binascii.
  2021-11-17  5:40 [bug#51913] [PATCH] gnu: Add cl-binascii Foo Chuan Wei
@ 2021-11-18  6:04 ` Foo Chuan Wei
  2021-11-20 14:02   ` Guillaume Le Vaillant
  0 siblings, 1 reply; 5+ messages in thread
From: Foo Chuan Wei @ 2021-11-18  6:04 UTC (permalink / raw)
  To: 51913

There are a few problems with this patch:
* Tests are failing on ECL.
* It bundles rt.lisp, which should be unbundled (use Guix's cl-rt
  instead).




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#51913] [PATCH] gnu: Add cl-binascii.
  2021-11-18  6:04 ` Foo Chuan Wei
@ 2021-11-20 14:02   ` Guillaume Le Vaillant
  2021-12-10 14:20     ` Ludovic Courtès
  0 siblings, 1 reply; 5+ messages in thread
From: Guillaume Le Vaillant @ 2021-11-20 14:02 UTC (permalink / raw)
  To: Foo Chuan Wei; +Cc: 51913

[-- Attachment #1: Type: text/plain, Size: 444 bytes --]

Foo Chuan Wei <chuanwei.foo@hotmail.com> skribis:

> There are a few problems with this patch:
> * Tests are failing on ECL.
> * It bundles rt.lisp, which should be unbundled (use Guix's cl-rt
>   instead).

Concerning rt, I thing adding a snippet deleting "tests/rt.lisp" and
modifying the definition of "binascii-tests" in "binascii.asd" (removing
the references to the rt file and adding the rt system in the
"depends-on" list) should work.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#51913] [PATCH] gnu: Add cl-binascii.
  2021-11-20 14:02   ` Guillaume Le Vaillant
@ 2021-12-10 14:20     ` Ludovic Courtès
  2022-09-05 12:09       ` bug#51913: " Guillaume Le Vaillant
  0 siblings, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2021-12-10 14:20 UTC (permalink / raw)
  To: Guillaume Le Vaillant; +Cc: Foo Chuan Wei, 51913

Ping! :-)

Guillaume Le Vaillant <glv@posteo.net> skribis:

> Foo Chuan Wei <chuanwei.foo@hotmail.com> skribis:
>
>> There are a few problems with this patch:
>> * Tests are failing on ECL.
>> * It bundles rt.lisp, which should be unbundled (use Guix's cl-rt
>>   instead).
>
> Concerning rt, I thing adding a snippet deleting "tests/rt.lisp" and
> modifying the definition of "binascii-tests" in "binascii.asd" (removing
> the references to the rt file and adding the rt system in the
> "depends-on" list) should work.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#51913: [PATCH] gnu: Add cl-binascii.
  2021-12-10 14:20     ` Ludovic Courtès
@ 2022-09-05 12:09       ` Guillaume Le Vaillant
  0 siblings, 0 replies; 5+ messages in thread
From: Guillaume Le Vaillant @ 2022-09-05 12:09 UTC (permalink / raw)
  To: 51913-done; +Cc: Ludovic Courtès, Foo Chuan Wei

[-- Attachment #1: Type: text/plain, Size: 757 bytes --]

Ludovic Courtès <ludo@gnu.org> skribis:

> Ping! :-)
>
> Guillaume Le Vaillant <glv@posteo.net> skribis:
>
>> Foo Chuan Wei <chuanwei.foo@hotmail.com> skribis:
>>
>>> There are a few problems with this patch:
>>> * Tests are failing on ECL.
>>> * It bundles rt.lisp, which should be unbundled (use Guix's cl-rt
>>>   instead).
>>
>> Concerning rt, I thing adding a snippet deleting "tests/rt.lisp" and
>> modifying the definition of "binascii-tests" in "binascii.asd" (removing
>> the references to the rt file and adding the rt system in the
>> "depends-on" list) should work.

I unbundled RT and pushed as 0f88acb9fa8f7bbdfb2a647907fe63b1974ab824
without the ecl-binascii variant, as it looks like the library doesn't
work with ECL.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-09-05 12:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-17  5:40 [bug#51913] [PATCH] gnu: Add cl-binascii Foo Chuan Wei
2021-11-18  6:04 ` Foo Chuan Wei
2021-11-20 14:02   ` Guillaume Le Vaillant
2021-12-10 14:20     ` Ludovic Courtès
2022-09-05 12:09       ` bug#51913: " Guillaume Le Vaillant

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).