From patchwork Sun Feb 11 10:53:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 60019 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 F1C2F27BBE9; Sun, 11 Feb 2024 10:55:12 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS 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 C028827BBE2 for ; Sun, 11 Feb 2024 10:55:10 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rZ7U2-0003rO-HC; Sun, 11 Feb 2024 05:54:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rZ7U1-0003qF-9N for guix-patches@gnu.org; Sun, 11 Feb 2024 05:54:49 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rZ7U1-0005ZJ-0y for guix-patches@gnu.org; Sun, 11 Feb 2024 05:54:49 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rZ7UH-0005Qn-3s; Sun, 11 Feb 2024 05:55:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69042] [PATCH 28/30] gnu: go-github-com-klauspost-compress: Move to (gnu packages-compression). Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: cox.katherine.e+guix@gmail.com, sharlatanus@gmail.com, guix-patches@gnu.org Resent-Date: Sun, 11 Feb 2024 10:55:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69042 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69042@debbugs.gnu.org Cc: Sharlatan Hellseher , Katherine Cox-Buday , Sharlatan Hellseher X-Debbugs-Original-Xcc: Katherine Cox-Buday , Sharlatan Hellseher Received: via spool by 69042-submit@debbugs.gnu.org id=B69042.170764886120719 (code B ref 69042); Sun, 11 Feb 2024 10:55:05 +0000 Received: (at 69042) by debbugs.gnu.org; 11 Feb 2024 10:54:21 +0000 Received: from localhost ([127.0.0.1]:38379 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZ7TY-0005Nw-8a for submit@debbugs.gnu.org; Sun, 11 Feb 2024 05:54:21 -0500 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]:55366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZ7TP-0005ME-6b for 69042@debbugs.gnu.org; Sun, 11 Feb 2024 05:54:12 -0500 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-41090edfeb3so7014795e9.2 for <69042@debbugs.gnu.org>; Sun, 11 Feb 2024 02:53:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707648829; x=1708253629; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=iwpkzcMwQBtmsQN7ASgqY0ZYuZByJotboDgX/f3ktWA=; b=LN+Sxz6c7DzOTh2HMR26t35VWjuQKCwROlJrSig/adytR+/5xVhCP3hVPxOjX6a0N6 DSR2PE60zEkO1FCQy7QaiD/GgmeHzkaPebHtJkbhFhxFiummxoJYfHcYI5ve7hElUMCM sQN83AmN45D5uOxsfp0NLFB/giXs3LbUk8VHANGpl5AHISMx+dCLxz0+urZd/txdIZiX iPLHPSzUCBPT5L0+tYv5etRZFGkXeh9NEsLNTOuMe2iQYeTZFAmKdMnuL96XodbNGbyf h9Q5azcMm7QuKkQOcwUIoPOJXnTuRr4i9VyEBBEP9D9eG0yDTX9+u3/NorkXmqirWNDM 3t5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707648829; x=1708253629; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iwpkzcMwQBtmsQN7ASgqY0ZYuZByJotboDgX/f3ktWA=; b=BSkhVH0ND65i9l6M2NckQfxU0n8uacRXLErjq3nc70PEnAnoV2Jwqdlkhjxz8OEzNy FxdwD0tFAtzZa5IZse6bcVJCjws0OY6pk6roWFlEZJDhAe5PDe7yYzcF3wzZ+O0or53n T0AgCHGRSfTkOw4p6Rhc6e1l/7KDD8QaTCmEkAf8eUZ7HXNgbQA6jiJHt8gaPmOHCdHw UTur5+aTlMNtxjGW45r9tPw8mVWDndhqj2SzxW9kvkgHQcvV6eUYnT1y1bdRY3H+S1B3 hYzkh3/4VdZyYKDsCRqVWkbJU4wPcu/mzLO4d+fBGPr8N7aqCflSP9yfvUpqFkuZZwYa PoOA== X-Gm-Message-State: AOJu0Yy+sPA2z7oJEVRZGGKePsYIkNU5GWCoE5CGQoaaNWXmKRzYmqzr mOWR5kI359melNzuEqRr6Y4UQi+PiyYz6fge5uadG+uMmGBvYBwzNnGEv7Ttjyg= X-Google-Smtp-Source: AGHT+IGd3oBpWZQuq5T/4IR5GS6xTlP/qLisCMhtEVGGHWBrTNDtObOOcVo/0J/ErSfQ7bykeOEaYQ== X-Received: by 2002:a05:600c:6543:b0:410:10d1:b91e with SMTP id dn3-20020a05600c654300b0041010d1b91emr2844402wmb.14.1707648829247; Sun, 11 Feb 2024 02:53:49 -0800 (PST) Received: from localhost.localdomain (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id i19-20020a05600c355300b0040ff2933959sm5562615wmq.7.2024.02.11.02.53.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 02:53:48 -0800 (PST) From: Sharlatan Hellseher Date: Sun, 11 Feb 2024 10:53:17 +0000 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/golang.scm (go-github-com-klauspost-compress): Move from here ... * gnu/packages/golang-compression.scm: ... to here. * gnu/packages/golang-compression.scm: Add (gnu packages golang-compression) module. * gnu/packages/golang-crypto.scm: As above. * gnu/packages/golang-web.scm: As above. * gnu/packages/uucp.scm: As above. Change-Id: Ia99f1e6aae7f75940fc150eb02862c0b3e9f3325 --- gnu/packages/golang-compression.scm | 31 ++++++++++++++++++++++++++++ gnu/packages/golang-crypto.scm | 3 ++- gnu/packages/golang-web.scm | 1 + gnu/packages/golang.scm | 32 ----------------------------- gnu/packages/uucp.scm | 1 + 5 files changed, 35 insertions(+), 33 deletions(-) diff --git a/gnu/packages/golang-compression.scm b/gnu/packages/golang-compression.scm index 670572ea90..5aacc34a66 100644 --- a/gnu/packages/golang-compression.scm +++ b/gnu/packages/golang-compression.scm @@ -56,6 +56,37 @@ (define-public go-github-com-golang-snappy compression format.") (license license:bsd-3))) +(define-public go-github-com-klauspost-compress + (package + (name "go-github-com-klauspost-compress") + (version "1.13.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/klauspost/compress") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0ydnf9rizlhm8rilh14674qqx272sbwbkjx06xn9pqvy6mmn2r3r")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/klauspost/compress" + #:phases + (modify-phases %standard-phases + (add-before 'reset-gzip-timestamps 'fix-permissions + (lambda* (#:key outputs #:allow-other-keys) + ;; Provide write permissions on gzip files so that + ;; reset-gzip-timestamps has sufficient permissions. + (for-each make-file-writable + (find-files (assoc-ref outputs "out") ".gz$"))))))) + (propagated-inputs + (list go-github-com-golang-snappy)) + (home-page "https://github.com/klauspost/compress") + (synopsis "Go compression library") + (description "@code{compress} provides various compression algorithms.") + (license license:bsd-3))) + ;;; ;;; Avoid adding new packages to the end of this file. To reduce the chances ;;; of a merge conflict, place them above by existing packages with similar diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index 39e7412558..58fd9cb250 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -45,7 +45,8 @@ (define-module (gnu packages golang-crypto) #:use-module (gnu packages) #:use-module (gnu packages golang) #:use-module (gnu packages golang-build) - #:use-module (gnu packages golang-check)) + #:use-module (gnu packages golang-check) + #:use-module (gnu packages golang-compression)) ;;; Commentary: ;;; diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index d7fb7dd366..28a9fad113 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -50,6 +50,7 @@ (define-module (gnu packages golang-web) #:use-module (gnu packages golang) #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-check) + #:use-module (gnu packages golang-compression) #:use-module (gnu packages golang-crypto) #:use-module (gnu packages golang-xyz) #:use-module (gnu packages tls) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index e473c0880b..24ca39fc58 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -9477,38 +9477,6 @@ (define-public go-github-com-dustin-go-humanize back.") (license license:expat))) -(define-public go-github-com-klauspost-compress - (package - (name "go-github-com-klauspost-compress") - (version "1.13.1") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/klauspost/compress") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0ydnf9rizlhm8rilh14674qqx272sbwbkjx06xn9pqvy6mmn2r3r")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/klauspost/compress" - #:phases - (modify-phases %standard-phases - (add-before 'reset-gzip-timestamps 'fix-permissions - (lambda* (#:key outputs #:allow-other-keys) - ;; Provide write permissions on gzip files so that - ;; reset-gzip-timestamps has sufficient permissions. - (for-each make-file-writable - (find-files (assoc-ref outputs "out") ".gz$"))))))) - (propagated-inputs - (list go-github-com-golang-snappy)) - (home-page "https://github.com/klauspost/compress") - (synopsis "Go compression library") - (description "@code{compress} provides various compression algorithms.") - (license license:bsd-3))) - (define-public go-github-com-oneofone-xxhash (package (name "go-github-com-oneofone-xxhash") diff --git a/gnu/packages/uucp.scm b/gnu/packages/uucp.scm index 8f1759556e..8e47834fef 100644 --- a/gnu/packages/uucp.scm +++ b/gnu/packages/uucp.scm @@ -20,6 +20,7 @@ (define-module (gnu packages uucp) #:use-module (gnu packages golang) #:use-module (gnu packages golang-build) + #:use-module (gnu packages golang-compression) #:use-module (gnu packages golang-crypto) #:use-module (gnu packages golang-web) #:use-module (gnu packages texinfo)