From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:51459) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h5vhA-0008Gv-Dm for guix-patches@gnu.org; Mon, 18 Mar 2019 13:05:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h5vh9-0003wW-AC for guix-patches@gnu.org; Mon, 18 Mar 2019 13:05:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35566) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h5vh8-0003wK-Td for guix-patches@gnu.org; Mon, 18 Mar 2019 13:05:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h5vh8-00006p-KF for guix-patches@gnu.org; Mon, 18 Mar 2019 13:05:02 -0400 Subject: [bug#34906] [PATCH] gnu: Add go-github-com-burntsushi-locker Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:51300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h5vgb-0008Dp-HS for guix-patches@gnu.org; Mon, 18 Mar 2019 13:04:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h5vgZ-0003d6-KJ for guix-patches@gnu.org; Mon, 18 Mar 2019 13:04:29 -0400 Received: from ns13.heimat.it ([46.4.214.66]:42366) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h5vgX-0003bO-KO for guix-patches@gnu.org; Mon, 18 Mar 2019 13:04:26 -0400 Received: from localhost (ip6-localhost [127.0.0.1]) by ns13.heimat.it (Postfix) with ESMTP id 382693000D5 for ; Mon, 18 Mar 2019 17:04:23 +0000 (UTC) Received: from ns13.heimat.it ([127.0.0.1]) by localhost (ns13.heimat.it [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gSGoryPJValL for ; Mon, 18 Mar 2019 17:04:02 +0000 (UTC) Received: from bourrache.mug.xelera.it (unknown [93.56.161.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ns13.heimat.it (Postfix) with ESMTPSA id 5C1433000D0 for ; Mon, 18 Mar 2019 17:04:02 +0000 (UTC) Received: from roquette.mug.biscuolo.net (roquette.mug.biscuolo.net [10.38.2.14]) by bourrache.mug.xelera.it (Postfix) with SMTP id A5321300056 for ; Mon, 18 Mar 2019 18:04:01 +0100 (CET) From: Giovanni Biscuolo Date: Mon, 18 Mar 2019 18:04:00 +0100 Message-ID: <875zsgt8qn.fsf@roquette.mug.biscuolo.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 34906@debbugs.gnu.org --=-=-= Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" --==-=-= Content-Type: text/plain Hi Guix! I've packaged go-github-com-burntsushi-locker, it builds on my platform and it's linted --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEERcxjuFJYydVfNLI5030Op87MORIFAlyPz4EACgkQ030Op87M ORItTQ/+LuNdaUwsxJ2w6NmoPqByOOSE0IvGt7j9YYvq2tMCRr3tFsbfMKmoAll1 NhgX7TLECqvVpdVvPOsyftKmaeGw9s3FlxZv4lFMyeiURC7dYhRNuqFchPQnMPwu TRoXkSKrFSxe6gslf2UoBPkXiSMcdiwdNT59D4aAYtI+jRYtrFMglPnxmLYQyhTO /GxSjVmsdoPdvH5ABSPIH0cXhQlGvGJ3Xgut3FR0Pxo3bjZXQolZEQ1vZukD3QQ+ wLUH0jL7jeoq+jRaAVU9nONPn7ufno7qHxT2LGFv9HfCLn1H0TflsfikRBaSdWG7 T9lK0CPxsTTzMept3q7nyR0O+uL6ApcyXDDu9vrLA2KaUm/wfrzTU/Y0ISvDTeny TYzp0Y6UVt+2IzpIlAR2GApUtj2T164UI+7I/QhJqG30M1u//oPC84C4bM8dTkNS iZ0/ltZ3bKs2gH0MMnLBz3O/pcJcRbq3yuyLQZcJ1B+Q8gEzcLQV9PjZGOAdmLqZ 9+iJ4nJr2FVVYmCFAqrZcRTGYF4hN14JoZdPcFB59s2pplxGWsG7cgWHDQFXtjJY e13Ru6j2upzXFPTVz+515sglwexqP5LjJpHxyk8RvZ2ruWUV43PRqjkM8rjfABiv NGLZh2+4M187862WBAuJhpQoxs2vpkrJLxAumd/agkla9Jrwx6g= =jaBW -----END PGP SIGNATURE----- --==-=-=-- --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-go-github-com-burntsushi-locker.patch Content-Transfer-Encoding: quoted-printable >From 3601eec98d105cb657b80a0b0ba23c6cfc2fff41 Mon Sep 17 00:00:00 2001 From: Giovanni Biscuolo Date: Mon, 18 Mar 2019 17:46:05 +0100 Subject: [PATCH] gnu: Add go-github-com-burntsushi-locker * gnu/packages/golang.scm (go-github-com-burntsushi-locker): New variable. --- gnu/packages/golang.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 4bcd5cfcfe..d7b7ea3fef 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -13,6 +13,7 @@ ;;; Copyright =C2=A9 2018 Pierre-Antoine Rouby ;;; Copyright =C2=A9 2018 Pierre Neidhardt ;;; Copyright @ 2018 Katherine Cox-Buday +;;; Copyright @ 2019 Giovanni Biscuolo ;;; ;;; This file is part of GNU Guix. ;;; @@ -3177,3 +3178,37 @@ format in Go.") (description "This package provides a text formatting functions in Go.= ") (home-page "https://github.com/kr/text") (license license:expat))) + +(define-public go-github-com-burntsushi-locker + (let ((commit "a6e239ea1c69bff1cfdb20c4b73dadf52f784b6a") + (revision "0")) + (package + (name "go-github-com-burntsushi-locker") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/BurntSushi/locker") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1xak4aync4klswq5217qvw191asgla51jr42y94vp109lirm5dzg")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/BurntSushi/locker")) + (home-page "https://github.com/BurntSushi/locker") + (synopsis "Manage named ReadWrite mutexes in Go") + (description "Golang package for conveniently using named read/write +locks. These appear to be especially useful for synchronizing access to +session based information in web applications. + +The common use case is to use the package level functions, which use a pac= kage +level set of locks (safe to use from multiple goroutines +simultaneously). However, you may also create a new separate set of locks +test. + +All locks are implemented with read-write mutexes. To use them like a reg= ular +mutex, simply ignore the RLock/RUnlock functions.") + (license license:public-domain)))) --=20 2.11.0 --=-=-= Content-Type: text/plain Thanks! Gio -- Giovanni Biscuolo Xelera IT Infrastructures --=-=-=--