unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#66811] [PATCH] gnu: Deprecate the "go-github-com-lucas-clemente-quic-go" variable.
@ 2023-10-29  8:57 Artyom V. Poptsov
  2024-01-24 12:46 ` Sharlatan Hellseher
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Artyom V. Poptsov @ 2023-10-29  8:57 UTC (permalink / raw)
  To: 66811


[-- Attachment #1.1: Type: text/plain, Size: 128 bytes --]

Hello,

this patch renames "go-github-com-lucas-clemente-quic-go" to
"go-github-com-quic-go-quic-go" to match the upstream. [1]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-Deprecate-the-go-github-com-lucas-clemente-quic-.patch --]
[-- Type: text/x-diff, Size: 3425 bytes --]

From 9052b1e875a5bebbb969d15c7b1bed4d62f93260 Mon Sep 17 00:00:00 2001
Message-ID: <9052b1e875a5bebbb969d15c7b1bed4d62f93260.1698569698.git.poptsov.artyom@gmail.com>
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Sun, 29 Oct 2023 11:54:49 +0300
Subject: [PATCH] gnu: Deprecate the "go-github-com-lucas-clemente-quic-go"
 variable.

* gnu/packages/golang.scm (go-github-com-lucas-clemente-quic-go): Rename to
  "go-github-com-quic-go-quic-go".
  [arguments]: Patch source files to replace "lucas-clemente" with "quic-go".
  [home-page]: Update.
  (go-github-com-lucas-clemente-quic-go): Define as deprecated by
  "go-github-com-quic-go-quic-go".

Change-Id: I9a99d4d904fadcf0b6854e806042ce5ad190ac0c
---
 gnu/packages/golang.scm | 25 ++++++++++++++++++-------
 1 file changed, 18 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index b32e379e47..e629c9c935 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -7691,14 +7691,14 @@ (define-public go-github-com-cheekybits-genny
     (home-page "https://github.com/cheekybits/genny/")
     (license license:expat)))
 
-(define-public go-github-com-lucas-clemente-quic-go
+(define-public go-github-com-quic-go-quic-go
   (package
-    (name "go-github-com-lucas-clemente-quic-go")
+    (name "go-github-com-quic-go-quic-go")
     (version "0.14.4")
     (source (origin
               (method git-fetch)
               (uri (git-reference
-                     (url "https://github.com/lucas-clemente/quic-go")
+                     (url "https://github.com/quic-go/quic-go")
                      (commit (string-append "v" version))))
               (file-name (git-file-name name version))
               (sha256
@@ -7706,20 +7706,31 @@ (define-public go-github-com-lucas-clemente-quic-go
                 "04l3gqbc3gh079n8vgnrsf8ypgv8sl63xjf28jqfrb45v2l73vyz"))))
     (build-system go-build-system)
     (arguments
-     '(#:import-path "github.com/lucas-clemente/quic-go"
+     '(#:import-path "github.com/quic-go/quic-go"
        ;; XXX More packages required...
-       #:tests? #f))
+       #:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'fix-repository-path
+           (lambda _
+             (substitute* (find-files "src/github.com/quic-go/quic-go/" ".*\\.go|.*\\.mod")
+               (("lucas-clemente")
+                "quic-go")))))))
     (propagated-inputs
-     (list go-golang-org-x-crypto go-github-com-cheekybits-genny
+     (list go-golang-org-x-crypto
+           go-github-com-cheekybits-genny
            go-github-com-marten-seemann-chacha20
            go-github-com-marten-seemann-qtls
            go-github-com-golang-protobuf-proto))
     (synopsis "QUIC in Go")
     (description "This package provides a Go language implementation of the QUIC
 network protocol.")
-    (home-page "https://github.com/lucas-clemente/quic-go")
+    (home-page "https://github.com/quic-go/quic-go")
     (license license:expat)))
 
+(define-public go-github-com-lucas-clemente-quic-go
+  (deprecated-package "go-github-com-lucas-clemente-quic-go" go-github-com-quic-go-quic-go))
+
 (define-public go-github-com-lunixbochs-vtclean
   (package
     (name "go-github-com-lunixbochs-vtclean")

base-commit: 2b5c6e1a41e4ddcf4cfa53a319ed784a856eac5d
-- 
2.41.0


[-- Attachment #1.3: Type: text/plain, Size: 281 bytes --]


Thanks,

- avp

References:
1. https://github.com/quic-go/quic-go

-- 
Artyom "avp" Poptsov <poptsov.artyom@gmail.com>
Home page: https://memory-heap.org/~avp/
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE  B57C E9C5 A2D9 0898 A02F

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

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

* [bug#66811] [PATCH] gnu: Deprecate the "go-github-com-lucas-clemente-quic-go" variable.
  2023-10-29  8:57 [bug#66811] [PATCH] gnu: Deprecate the "go-github-com-lucas-clemente-quic-go" variable Artyom V. Poptsov
@ 2024-01-24 12:46 ` Sharlatan Hellseher
  2024-04-06 22:15 ` bug#66811: " Sharlatan Hellseher
  2024-04-06 22:17 ` [bug#66811] " Sharlatan Hellseher
  2 siblings, 0 replies; 4+ messages in thread
From: Sharlatan Hellseher @ 2024-01-24 12:46 UTC (permalink / raw)
  To: 66811

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


Hi,

--8<---------------cut here---------------start------------->8---
+       #:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'fix-repository-path
+           (lambda _
+             (substitute* (find-files "src/github.com/quic-go/quic-go/" ".*\\.go|.*\\.mod")
+               (("lucas-clemente")
+                "quic-go")))))))
--8<---------------cut here---------------end--------------->8---

Did you try to build the packe with #:unpack-path?

Something like this:
--8<---------------cut here---------------start------------->8---
     (arguments
     '(#:import-path "github.com/quic-go/quic-go"
       #:unpack-path "github.com/quic-go/quic-go"
--8<---------------cut here---------------end--------------->8---

Thanks,
Oleg

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

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

* bug#66811: [PATCH] gnu: Deprecate the "go-github-com-lucas-clemente-quic-go" variable.
  2023-10-29  8:57 [bug#66811] [PATCH] gnu: Deprecate the "go-github-com-lucas-clemente-quic-go" variable Artyom V. Poptsov
  2024-01-24 12:46 ` Sharlatan Hellseher
@ 2024-04-06 22:15 ` Sharlatan Hellseher
  2024-04-06 22:17 ` [bug#66811] " Sharlatan Hellseher
  2 siblings, 0 replies; 4+ messages in thread
From: Sharlatan Hellseher @ 2024-04-06 22:15 UTC (permalink / raw)
  To: 66811-done

[-- Attachment #1: Type: application/pgp-encrypted, Size: 11 bytes --]

[-- Attachment #2: Type: application/octet-stream, Size: 1003 bytes --]

-----BEGIN PGP MESSAGE-----

hQIMA7MNkAS4N2gGARAAghcqrqoCzSee7jdzeqx/YGARHLXD4zo22ZsNhrK1JndY
MgjLuXYovT2BMbnQgFoDKUsHPT7c8/GdF9u3dI9dY1kjwdJbEyipX/uzmUHABFLR
cMWtoLrFVsO4c+cosftt26YBXDUMc4mMiEpLgF2MkpIkyPUorPHxzyLl4Q9p7WAg
em2P87OZA9tI689DHNBCMk0BfcT70AtwEXic4tfHpNLHg4ecdMKEV9djPYG+6h8K
aDM1r3p+Mia/URSr60EUgodqPQJ7CFekLsffDfqHfk0qGWRfjg3nOslstgrwxHxs
lf6lBgdHyBJh1TTnbtVcjapTs4zlOJAFK7e2liiIthDhTW5lvDB98NqBSbQrBSEO
mPyrOk2naRfWzJqoNNUODGeSs0ZxYLFXWO6MWL640qqxbwTMzdrOMXw+4J3yybMa
GTKxWvzS1NLXi+lQPfVx+e/moMulR1uy94hJuh+3J6ZoPFfrAprhFO+4MY7lyF4d
8oQRXrmkZPuBoSFe19Dv3lLFxAoaioFgDBny5TnujI4v3Jjek7Fvj6qTvN7u0iNl
dwm1xOZCL6DKRn3mDlcad1V8Z4YZwHbBYppRPnHqS9MOwyRRF0jWK5eG2brj275R
/BhSWXknFPTs24WAhsHPN68x3mzu6WOr2n9qWCa6dvLk3MqOP8uSE7Ds5UrZL1jS
pgFgjoYz8/qhcCzBnISy1JFzsa751HrbeF1CJF/W5pBB+QWItndA+zmhqD+JCkZq
FteryokBfYH/mXaqFpROwYaGZ9tq7f9dlChMpsoMYzF0UnhNxQVeMwok9ilHzbne
WD5SFfv+0iAG10lA3xv3T3Zsi39r0IIKy9mwlG9bqa17Jo9PPpm9oT0uhogB5q3y
tqqxYRLGopJX6r2nhnJlCqPkL735L+0=
=+3+t
-----END PGP MESSAGE-----

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

* [bug#66811] [PATCH] gnu: Deprecate the "go-github-com-lucas-clemente-quic-go" variable.
  2023-10-29  8:57 [bug#66811] [PATCH] gnu: Deprecate the "go-github-com-lucas-clemente-quic-go" variable Artyom V. Poptsov
  2024-01-24 12:46 ` Sharlatan Hellseher
  2024-04-06 22:15 ` bug#66811: " Sharlatan Hellseher
@ 2024-04-06 22:17 ` Sharlatan Hellseher
  2 siblings, 0 replies; 4+ messages in thread
From: Sharlatan Hellseher @ 2024-04-06 22:17 UTC (permalink / raw)
  To: 66811-done

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


Closing as it was pushed as 3634c55ce48a73a5b728f74a3e890ba3f9b43bcb to master.

--
Oleg

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

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

end of thread, other threads:[~2024-04-06 22:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-29  8:57 [bug#66811] [PATCH] gnu: Deprecate the "go-github-com-lucas-clemente-quic-go" variable Artyom V. Poptsov
2024-01-24 12:46 ` Sharlatan Hellseher
2024-04-06 22:15 ` bug#66811: " Sharlatan Hellseher
2024-04-06 22:17 ` [bug#66811] " Sharlatan Hellseher

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