Message ID | 20220807120201.19970-1-paren@disroot.org |
---|---|
State | New |
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 98E5927BBEA; Sun, 7 Aug 2022 13:03:33 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 3F9BE27BBE9 for <patchwork@mira.cbaines.net>; Sun, 7 Aug 2022 13:03:33 +0100 (BST) Received: from localhost ([::1]:55806 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org>) id 1oKf0G-00062r-Du for patchwork@mira.cbaines.net; Sun, 07 Aug 2022 08:03:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37160) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1oKezm-00062L-SO for guix-patches@gnu.org; Sun, 07 Aug 2022 08:03:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46351) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1oKezm-0001uU-E8 for guix-patches@gnu.org; Sun, 07 Aug 2022 08:03:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1oKezm-0003f5-3e for guix-patches@gnu.org; Sun, 07 Aug 2022 08:03:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57034] [PATCH] gnu: packages: Add miniz. Resent-From: "(" <paren@disroot.org> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 07 Aug 2022 12:03:01 +0000 Resent-Message-ID: <handler.57034.B.165987375214036@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57034 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57034@debbugs.gnu.org Cc: "\(" <paren@disroot.org> X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165987375214036 (code B ref -1); Sun, 07 Aug 2022 12:03:01 +0000 Received: (at submit) by debbugs.gnu.org; 7 Aug 2022 12:02:32 +0000 Received: from localhost ([127.0.0.1]:36100 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1oKezH-0003eK-Gy for submit@debbugs.gnu.org; Sun, 07 Aug 2022 08:02:31 -0400 Received: from lists.gnu.org ([209.51.188.17]:43084) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <paren@disroot.org>) id 1oKezD-0003eB-Q6 for submit@debbugs.gnu.org; Sun, 07 Aug 2022 08:02:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37030) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <paren@disroot.org>) id 1oKez4-0005zY-4D for guix-patches@gnu.org; Sun, 07 Aug 2022 08:02:21 -0400 Received: from knopi.disroot.org ([178.21.23.139]:55952) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <paren@disroot.org>) id 1oKeyy-0001md-7d for guix-patches@gnu.org; Sun, 07 Aug 2022 08:02:15 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 8A85A43C4E; Sun, 7 Aug 2022 14:02:09 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id diJaSqZju3QF; Sun, 7 Aug 2022 14:02:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1659873726; bh=JXsYl94/vUk3bYKVYM4xEZJu15C4/STZWeinAo3EQ8A=; h=From:To:Cc:Subject:Date; b=E/8kEMZtVXBTTYjy6G+llEeI1OGBH6ArQgFzKsLjufcHbndNdtyT3gyjwrpeiSZen 0glBxVjPbXnKTlWuwXx3hk6Jt/xWLMXTY2kwi/AlhmAGmurpJh54fbu2hEWBdcan7P cc9x/VHMnFQREmXqbRZW5xbOKZPpbMw8SDBnBifIT/LSQZ24Wa4mGh+i7hOwKbLGbk 3EckY4c4O2z2NfYsuytDpq65rOAf+Cp2V5SFDnmc58QDFDoa5gFWubcXe2WVPuNYxl WBPZ2G5ST4aCEK8jgbXNWINUPN+UhtgV7LVtTGu8tVgTShsWRG05a2NqxzMgYTzahS avVI9fw0fZQ8Q== Date: Sun, 7 Aug 2022 13:02:01 +0100 Message-Id: <20220807120201.19970-1-paren@disroot.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=178.21.23.139; envelope-from=paren@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> Reply-to: "\(" <paren@disroot.org> X-ACL-Warn: , "\( via Guix-patches" <guix-patches@gnu.org> From: "\( via Guix-patches" via <guix-patches@gnu.org> X-getmail-retrieved-from-mailbox: Patches |
Series |
[bug#57034] gnu: packages: Add miniz.
|
|
Commit Message
\(
Aug. 7, 2022, 12:02 p.m. UTC
* gnu/packages/compression.scm (miniz): New variable. --- gnu/packages/compression.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+)
Comments
Hi (, last time I checked, the template was "gnu: Add PACKAGE", not "gnu: packages: Add PACKAGE." Am Sonntag, dem 07.08.2022 um 13:02 +0100 schrieb (: > * gnu/packages/compression.scm (miniz): New variable. > --- > gnu/packages/compression.scm | 32 ++++++++++++++++++++++++++++++++ > 1 file changed, 32 insertions(+) > > diff --git a/gnu/packages/compression.scm > b/gnu/packages/compression.scm > index 6070c5beb1..cb1283c9a1 100644 > --- a/gnu/packages/compression.scm > +++ b/gnu/packages/compression.scm > @@ -35,6 +35,7 @@ > ;;; Copyright © 2021 Simon Tournier <zimon.toutoune@gmail.com> > ;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com> > ;;; Copyright © 2021 Ahmad Jarara <git@ajarara.io> > +;;; Copyright © 2022 ( <paren@disroot.org> > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -2784,3 +2785,34 @@ (define-public fcrackzip > (synopsis "Zip password cracker") > (description "Fcrackzip is a Zip file password cracker.") > (license license:gpl2+))) > + > +(define-public miniz > + ;; Last release was on 27-06-2021; there have been many commits > since > + ;; then. And there might still be many more until a release. I don't think using untagged commits "just because" if the latest release is barely a year old is a good idea. > + (let ((commit "be92575500f71dfb5ac7b0c5bb47b6e736c23039") > + (revision "0")) > + (package > + (name "miniz") > + (version (git-version "2.2.0" revision commit)) > + (source (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/richgel999/miniz") > + (commit commit))) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 > + > "0w42vagcv4b0hcf0jk7vamrcpmw62dblx9856j98msdfm3qv1xzi")))) > + (build-system cmake-build-system) > + (arguments > + (list #:configure-flags > + #~(list "-DBUILD_SHARED_LIBS=ON") > + ;; No test target. > + #:tests? #f)) There is a test script you could use. > + (home-page "https://github.com/richgel999/miniz") > + (synopsis "Simple replacement for @code{zlib}") > + (description > + "@code{miniz} is a small, simple alternative to the > @code{zlib} > +data compression library for manipulating zlib, DEFLATE, PNG, and > ZIP > +files from C.") Avoid marketing terms :)
On Sun Aug 7, 2022 at 5:42 PM BST, Liliana Marie Prikler wrote: > last time I checked, the template was "gnu: Add PACKAGE", not "gnu: > packages: Add PACKAGE." Okay, I'll remember that for next time :) > And there might still be many more until a release. I don't think > using untagged commits "just because" if the latest release is barely a > year old is a good idea. > > + (let ((commit "be92575500f71dfb5ac7b0c5bb47b6e736c23039") > > + (revision "0")) > > + (package > > + (name "miniz") > > + (version (git-version "2.2.0" revision commit)) > > + (source (origin > > + (method git-fetch) > > + (uri (git-reference > > + (url "https://github.com/richgel999/miniz") > > + (commit commit))) > > + (file-name (git-file-name name version)) > > + (sha256 > > + (base32 > > + > > "0w42vagcv4b0hcf0jk7vamrcpmw62dblx9856j98msdfm3qv1xzi")))) > > + (build-system cmake-build-system) > > + (arguments > > + (list #:configure-flags > > + #~(list "-DBUILD_SHARED_LIBS=ON") > > + ;; No test target. > > + #:tests? #f)) > There is a test script you could use. It doesn't work; I tried it. > > + "@code{miniz} is a small, simple alternative to the > > @code{zlib} > > +data compression library for manipulating zlib, DEFLATE, PNG, and > > ZIP > > +files from C.") > Avoid marketing terms :) Do 'small' and 'simple' count as marketing terms? 'smaller than zlib' is objective fact, and 'simpler than zlib' is subjective but pretty obvious. Maybe I could rewrite it to say 'smaller, simpler alternative' instead? -- (
On Sun Aug 7, 2022 at 5:42 PM BST, Liliana Marie Prikler wrote: > And there might still be many more until a release. I don't think > using untagged commits "just because" if the latest release is barely a > year old is a good idea. Okay, I'll update it to use the latest release. -- (
Am Sonntag, dem 07.08.2022 um 17:59 +0100 schrieb (: > On Sun Aug 7, 2022 at 5:42 PM BST, Liliana Marie Prikler wrote: > > last time I checked, the template was "gnu: Add PACKAGE", not "gnu: > > packages: Add PACKAGE." > Okay, I'll remember that for next time :) > > > And there might still be many more until a release. I don't think > > using untagged commits "just because" if the latest release is > > barely a > > year old is a good idea. > > > > + (let ((commit "be92575500f71dfb5ac7b0c5bb47b6e736c23039") > > > + (revision "0")) > > > + (package > > > + (name "miniz") > > > + (version (git-version "2.2.0" revision commit)) > > > + (source (origin > > > + (method git-fetch) > > > + (uri (git-reference > > > + (url "https://github.com/richgel999/miniz") > > > + (commit commit))) > > > + (file-name (git-file-name name version)) > > > + (sha256 > > > + (base32 > > > + > > > "0w42vagcv4b0hcf0jk7vamrcpmw62dblx9856j98msdfm3qv1xzi")))) > > > + (build-system cmake-build-system) > > > + (arguments > > > + (list #:configure-flags > > > + #~(list "-DBUILD_SHARED_LIBS=ON") > > > + ;; No test target. > > > + #:tests? #f)) > > There is a test script you could use. > It doesn't work; I tried it. > > > > + "@code{miniz} is a small, simple alternative to the > > > @code{zlib} > > > +data compression library for manipulating zlib, DEFLATE, PNG, > > > and > > > ZIP > > > +files from C.") > > Avoid marketing terms :) > Do 'small' and 'simple' count as marketing terms? 'smaller than zlib' > is objective fact, and 'simpler than zlib' is subjective but pretty > obvious. Maybe I could rewrite it to say 'smaller, simpler > alternative' > instead? "subjective, but pretty obvious", how so? I think the fact that it doesn't have its own documentation and you need to instead refer to zlib kinda defeats that point. Several of its README claims seem either outdated already (the 550 lines one for example), or difficult to guarantee forever. I think the only claim we can reasonably make is that it is an alternative zlib implementation, and that it supports zlib, deflate, png and zip. Cheers
On Sun Aug 7, 2022 at 6:19 PM BST, Liliana Marie Prikler wrote: > "subjective, but pretty obvious", how so? I think the fact that it > doesn't have its own documentation and you need to instead refer to > zlib kinda defeats that point. Several of its README claims seem > either outdated already (the 550 lines one for example), or difficult > to guarantee forever. I think the only claim we can reasonably make is > that it is an alternative zlib implementation, and that it supports > zlib, deflate, png and zip. Okay. (There is a little documentation in the headers, by the way.) :) -- (
On 7 August 2022 16:42:35 UTC, Liliana Marie Prikler <liliana.prikler@gmail.com> wrote: >> + (synopsis "Simple replacement for @code{zlib}") >> + (description >> + "@code{miniz} is a small, simple alternative to the >> @code{zlib} >> +data compression library for manipulating zlib, DEFLATE, PNG, and >> ZIP >> +files from C.") >Avoid marketing terms :) (Small and simple are marketing terms? Be right back; I need to update my profile...) ...no: avoid misleading or meaningless drivel, puffery, and redundancy. Do, however, point out some basic features that might help users decide which of our oofteen deflate libraries fits their needs. Add -er if you think it helps, or add some examples. Otherwise, a common-sense guideline risks devolving into 'avoid adjectives; you might accidentally write a useful description'. Kind regards, T G-R Sent on the go. Excuse or enjoy my brevity.
Am Montag, dem 08.08.2022 um 00:36 +0000 schrieb Tobias Geerinckx-Rice: > On 7 August 2022 16:42:35 UTC, Liliana Marie Prikler > <liliana.prikler@gmail.com> wrote: > > > + (synopsis "Simple replacement for @code{zlib}") > > > + (description > > > + "@code{miniz} is a small, simple alternative to the > > > @code{zlib} > > > +data compression library for manipulating zlib, DEFLATE, PNG, > > > and > > > ZIP > > > +files from C.") > > Avoid marketing terms :) > > (Small and simple are marketing terms? Be right back; I need to > update my profile...) > > ...no: avoid misleading or meaningless drivel, puffery, and > redundancy. Do, however, point out some basic features that might > help users decide which of our oofteen deflate libraries fits their > needs. Add -er if you think it helps, or add some examples. Maybe not always, but I think in this context they are. Especially "simple", who decides that? Pardon my cynicism here, but my personal opinion w.r.t. compression libraries is that projects tend to pick the one they're already contractually obligated to use FSVO contractually obligated.
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index 6070c5beb1..cb1283c9a1 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm @@ -35,6 +35,7 @@ ;;; Copyright © 2021 Simon Tournier <zimon.toutoune@gmail.com> ;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com> ;;; Copyright © 2021 Ahmad Jarara <git@ajarara.io> +;;; Copyright © 2022 ( <paren@disroot.org> ;;; ;;; This file is part of GNU Guix. ;;; @@ -2784,3 +2785,34 @@ (define-public fcrackzip (synopsis "Zip password cracker") (description "Fcrackzip is a Zip file password cracker.") (license license:gpl2+))) + +(define-public miniz + ;; Last release was on 27-06-2021; there have been many commits since + ;; then. + (let ((commit "be92575500f71dfb5ac7b0c5bb47b6e736c23039") + (revision "0")) + (package + (name "miniz") + (version (git-version "2.2.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/richgel999/miniz") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0w42vagcv4b0hcf0jk7vamrcpmw62dblx9856j98msdfm3qv1xzi")))) + (build-system cmake-build-system) + (arguments + (list #:configure-flags + #~(list "-DBUILD_SHARED_LIBS=ON") + ;; No test target. + #:tests? #f)) + (home-page "https://github.com/richgel999/miniz") + (synopsis "Simple replacement for @code{zlib}") + (description + "@code{miniz} is a small, simple alternative to the @code{zlib} +data compression library for manipulating zlib, DEFLATE, PNG, and ZIP +files from C.") + (license license:expat))))