Subject: bug#52027: closed (Re: [bug#52027] [PATCH] Add lz4json)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 22 Nov 2021 10:26:02 +0000

Your bug report

#52027: [PATCH] Add lz4json

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
52027: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=52027
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#52027] [PATCH] Add lz4json
From: Nicolas Goaziou <[email-masked]>
To: Baptiste Strazzulla <[email-masked]>
Cc: [email-masked]
Date: Mon, 22 Nov 2021 11:24:55 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

Baptiste Strazzulla <[email-masked]> writes:

> Here is the revised version.

Thank you. I added a copyright line for you in gnuzilla.scm and applied
your patch, with the minor tweaks below.

> Subject: [PATCH] gnu: Add lz4json

I added a final full stop to the line.

> * gnu/packages/gnuzilla.scm (lz4json)
>   New variable

I wrote:

  * gnu/packages/gnuzilla.scm (lz4json): New variable.

Regards,
-- 
Nicolas Goaziou

Subject: [PATCH] Add lz4json
From: Baptiste Strazzulla <[email-masked]>
To: "[email-masked]" <[email-masked]>
Date: Sun, 21 Nov 2021 19:55:22 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

I couldn't figure out a license for this package. It says " * Copyright (c) 2014 Intel Corporation" in the source. I don't even know if it's an actual license. In any case, it doesn't seem really engaging and there's no mention of it in `licenses.scm`… How shall I proceed?

Kind regards,
Baptiste
From 8307da6cad6b9604f368eb2165c79906b9f9c0fd Mon Sep 17 00:00:00 2001
From: Zzull <[email-masked]>
Date: Sun, 21 Nov 2021 20:19:44 +0100
Subject: [PATCH] gnu: Add lz4json

* gnu/packages/gnuzilla.scm
---
 gnu/packages/gnuzilla.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm
index 9edfcaa2ab..029a1be480 100644
--- a/gnu/packages/gnuzilla.scm
+++ b/gnu/packages/gnuzilla.scm
@@ -1992,3 +1992,40 @@ (define-public firefox-decrypt
     (description "Firefox Decrypt is a tool to extract passwords from
 Mozilla (Firefox, Waterfox, Thunderbird, SeaMonkey) profiles.")
     (license license:gpl3+)))
+
+(define-public lz4json
+  (package
+    (name "lz4json")
+    (version "2")
+    (home-page "https://github.com/andikleen/lz4json")
+    (source
+     (origin
+       (method git-fetch)
+       (uri
+        (git-reference (url home-page) (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1xxn8yzr6j8j6prmbj6mxspdczigarfiv3vlm9k70yxmky65ijh3"))))
+    (build-system gnu-build-system)
+    (native-inputs `(("pkg-config" ,pkg-config)))
+    (inputs `(("lz4" ,lz4)))
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (delete 'configure)
+         (delete 'check)
+         (replace 'install
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (bin (string-append out "/bin"))
+                    (man (string-append out "/share/man/man1")))
+               (install-file "lz4jsoncat" bin)
+               (install-file "lz4jsoncat.1" man))
+             #t)))
+       #:make-flags '("CC=gcc")))
+    (synopsis "C decompress tool for mozilla lz4json format")
+    (description
+     "A little utility to unpack lz4json files as generated by Firefox's
+bookmark backups and session restore.  This is a different format from what
+the normal lz4 utility expects.  The data is dumped to stdout.")
+    (license license:gpl3+)))
-- 
2.33.1