* [bug#72810] [PATCH 0/4] Add four libp2p libraries.
@ 2024-08-25 21:22 Artyom V. Poptsov
2024-08-25 21:23 ` [bug#72810] [PATCH 1/4] gnu: Add go-github-com-libp2p-go-reuseport Artyom V. Poptsov
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Artyom V. Poptsov @ 2024-08-25 21:22 UTC (permalink / raw)
To: 72810; +Cc: Artyom V. Poptsov
This patchset adds four libp2p libraries that are indirectly used by Kubo
(IPFS.)
Artyom V. Poptsov (4):
gnu: Add go-github-com-libp2p-go-reuseport.
gnu: Add go-github-com-libp2p-go-libp2p-asn-util.
gnu: Add go-github-com-libp2p-go-yamux-v4.
gnu: Add go-github-com-libp2p-go-cidranger.
gnu/packages/golang-web.scm | 116 ++++++++++++++++++++++++++++++++++++
1 file changed, 116 insertions(+)
base-commit: 4299b4cc881deaadf908937cda1e9cbc48a40a38
--
2.45.2
^ permalink raw reply [flat|nested] 6+ messages in thread
* [bug#72810] [PATCH 1/4] gnu: Add go-github-com-libp2p-go-reuseport.
2024-08-25 21:22 [bug#72810] [PATCH 0/4] Add four libp2p libraries Artyom V. Poptsov
@ 2024-08-25 21:23 ` Artyom V. Poptsov
2024-08-25 21:23 ` [bug#72810] [PATCH 2/4] gnu: Add go-github-com-libp2p-go-libp2p-asn-util Artyom V. Poptsov
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Artyom V. Poptsov @ 2024-08-25 21:23 UTC (permalink / raw)
To: 72810; +Cc: Artyom V. Poptsov
* gnu/packages/golang-web.scm (go-github-com-libp2p-go-reuseport): New variable.
Change-Id: Iafbf09d6537cd5a92825830b64f952ad903ed96d
---
gnu/packages/golang-web.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 28eba7f5d2..dd226b6c96 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -2266,6 +2266,37 @@ (define-public go-github-com-libp2p-go-netroute
gopacket/routing.Router} interface for Golang.")
(license license:bsd-3)))
+(define-public go-github-com-libp2p-go-reuseport
+ (package
+ (name "go-github-com-libp2p-go-reuseport")
+ (version "0.4.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/libp2p/go-reuseport")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "012kgriw1bchf0apk6ff4y34n9mffbh0cmi15348v9vj3h4w3sa5"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/libp2p/go-reuseport"))
+ (native-inputs (list go-github-com-stretchr-testify))
+ (propagated-inputs (list go-github-com-google-gopacket go-golang-org-x-net
+ go-golang-org-x-sys))
+ (home-page "https://github.com/libp2p/go-reuseport")
+ (synopsis "Reuse TCP/UDP ports in Golang")
+ (description
+ "@code{go-reuseport} enables listening and dialing from the same TCP or UDP
+port. This means that @code{SO_REUSEADDR} and @code{SO_REUSEPORT} socket options may
+be set. This is particularly important when attempting to do TCP NAT hole-punching,
+which requires a process to both @code{Listen} and @code{Dial} on the same TCP port.
+@code{go-reuseport} provides some utilities around enabling this behaviour on various
+operating systems.")
+ (license license:isc)))
+
(define-public go-github-com-makeworld-the-better-one-go-gemini
(package
(name "go-github-com-makeworld-the-better-one-go-gemini")
--
2.45.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [bug#72810] [PATCH 2/4] gnu: Add go-github-com-libp2p-go-libp2p-asn-util.
2024-08-25 21:22 [bug#72810] [PATCH 0/4] Add four libp2p libraries Artyom V. Poptsov
2024-08-25 21:23 ` [bug#72810] [PATCH 1/4] gnu: Add go-github-com-libp2p-go-reuseport Artyom V. Poptsov
@ 2024-08-25 21:23 ` Artyom V. Poptsov
2024-08-25 21:23 ` [bug#72810] [PATCH 3/4] gnu: Add go-github-com-libp2p-go-yamux-v4 Artyom V. Poptsov
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Artyom V. Poptsov @ 2024-08-25 21:23 UTC (permalink / raw)
To: 72810; +Cc: Artyom V. Poptsov
* gnu/packages/golang-web.scm (go-github-com-libp2p-go-libp2p-asn-util): New variable.
Change-Id: Ieb69266f5d637fcbe6b7b5ef1f687852a1a8df20
---
gnu/packages/golang-web.scm | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index dd226b6c96..28d5b89040 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -2201,6 +2201,33 @@ (define-public go-github-com-koron-go-ssdp
@acronym{Simple Service Discovery Protocol, SSDP}} library for Golang.")
(license license:expat)))
+(define-public go-github-com-libp2p-go-libp2p-asn-util
+ (package
+ (name "go-github-com-libp2p-go-libp2p-asn-util")
+ (version "0.4.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/libp2p/go-libp2p-asn-util")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1c94sq43bl1kp04lllcfrfyiy5z3zcfz0s65sm1vgb2s40zrwpr7"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/libp2p/go-libp2p-asn-util"))
+ (native-inputs (list go-github-com-stretchr-testify))
+ (propagated-inputs (list go-golang-org-x-exp))
+ (home-page "https://github.com/libp2p/go-libp2p-asn-util")
+ (synopsis "Golang library for IP to ASN mapping")
+ (description
+ "@code{go-libp2p-asn-util} is a Golang library to lookup the ASN (Autonomous
+System Number) for an IP address. It uses the IPv6 to ASN database downloaded from
+https://iptoasn.com/. Supports only IPv6 addresses for now.")
+ (license license:expat)))
+
(define-public go-github-com-libp2p-go-nat
(package
(name "go-github-com-libp2p-go-nat")
--
2.45.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [bug#72810] [PATCH 3/4] gnu: Add go-github-com-libp2p-go-yamux-v4.
2024-08-25 21:22 [bug#72810] [PATCH 0/4] Add four libp2p libraries Artyom V. Poptsov
2024-08-25 21:23 ` [bug#72810] [PATCH 1/4] gnu: Add go-github-com-libp2p-go-reuseport Artyom V. Poptsov
2024-08-25 21:23 ` [bug#72810] [PATCH 2/4] gnu: Add go-github-com-libp2p-go-libp2p-asn-util Artyom V. Poptsov
@ 2024-08-25 21:23 ` Artyom V. Poptsov
2024-08-25 21:23 ` [bug#72810] [PATCH 4/4] gnu: Add go-github-com-libp2p-go-cidranger Artyom V. Poptsov
2024-08-26 23:42 ` bug#72810: [PATCH 0/4] Add four libp2p libraries Sharlatan Hellseher
4 siblings, 0 replies; 6+ messages in thread
From: Artyom V. Poptsov @ 2024-08-25 21:23 UTC (permalink / raw)
To: 72810; +Cc: Artyom V. Poptsov
* gnu/packages/golang-web.scm (go-github-com-libp2p-go-yamux-v4): New
variable.
Change-Id: I2c0303c8253bbadde69aee0f15a83fe504fd7b12
---
gnu/packages/golang-web.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 28d5b89040..288d81b7dd 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -2324,6 +2324,34 @@ (define-public go-github-com-libp2p-go-reuseport
operating systems.")
(license license:isc)))
+(define-public go-github-com-libp2p-go-yamux-v4
+ (package
+ (name "go-github-com-libp2p-go-yamux-v4")
+ (version "4.0.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/libp2p/go-yamux")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "13px8fcjjp02cricabbf3x410jkr8sb6r369nqq1zrgr7v90s22j"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/libp2p/go-yamux/v4"))
+ (native-inputs (list go-github-com-stretchr-testify))
+ (propagated-inputs (list go-github-com-libp2p-go-buffer-pool))
+ (home-page "https://github.com/libp2p/go-yamux")
+ (synopsis "Reuse TCP/UDP ports in Golang")
+ (description
+ "Yamux (Yet another Multiplexer) is a multiplexing library for Golang. It
+relies on an underlying connection to provide reliability and ordering, such as TCP
+or Unix domain sockets, and provides stream-oriented multiplexing. It is inspired by
+SPDY but is not interoperable with it.")
+ (license (list license:mpl2.0 license:bsd-3))))
+
(define-public go-github-com-makeworld-the-better-one-go-gemini
(package
(name "go-github-com-makeworld-the-better-one-go-gemini")
--
2.45.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [bug#72810] [PATCH 4/4] gnu: Add go-github-com-libp2p-go-cidranger.
2024-08-25 21:22 [bug#72810] [PATCH 0/4] Add four libp2p libraries Artyom V. Poptsov
` (2 preceding siblings ...)
2024-08-25 21:23 ` [bug#72810] [PATCH 3/4] gnu: Add go-github-com-libp2p-go-yamux-v4 Artyom V. Poptsov
@ 2024-08-25 21:23 ` Artyom V. Poptsov
2024-08-26 23:42 ` bug#72810: [PATCH 0/4] Add four libp2p libraries Sharlatan Hellseher
4 siblings, 0 replies; 6+ messages in thread
From: Artyom V. Poptsov @ 2024-08-25 21:23 UTC (permalink / raw)
To: 72810; +Cc: Artyom V. Poptsov
* gnu/packages/golang-web.scm (go-github-com-libp2p-go-cidranger): New variable.
Change-Id: I4e21f87c7b77ae8a5f7fa2e098330ec15bff079e
---
gnu/packages/golang-web.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 288d81b7dd..ab5333cf6e 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -2201,6 +2201,36 @@ (define-public go-github-com-koron-go-ssdp
@acronym{Simple Service Discovery Protocol, SSDP}} library for Golang.")
(license license:expat)))
+(define-public go-github-com-libp2p-go-cidranger
+ (package
+ (name "go-github-com-libp2p-go-cidranger")
+ (version "1.1.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/libp2p/go-cidranger")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "05hzlk5hx7qna5znr3q1crr0qb7h8yrv1v96pj015dh0kbdkdaba"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/libp2p/go-cidranger"))
+ (native-inputs (list go-github-com-stretchr-testify))
+ (propagated-inputs (list go-github-com-ipfs-go-detect-race))
+ (home-page "https://github.com/libp2p/go-cidranger")
+ (synopsis "Fast IP to CIDR lookup in Golang")
+ (description
+ "Fast IP to @url{https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing,
+CIDR} block(s) lookup using trie in Golang, inspired by
+@url{https://vincent.bernat.im/en/blog/2017-ipv4-route-lookup-linux, IPv4 route
+lookup Linux}. Possible use cases include detecting if a IP address is from
+published cloud provider CIDR blocks (e.g. 52.95.110.1 is contained in published AWS
+Route53 CIDR 52.95.110.0/24), IP routing rules, etc.")
+ (license license:expat)))
+
(define-public go-github-com-libp2p-go-libp2p-asn-util
(package
(name "go-github-com-libp2p-go-libp2p-asn-util")
--
2.45.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* bug#72810: [PATCH 0/4] Add four libp2p libraries.
2024-08-25 21:22 [bug#72810] [PATCH 0/4] Add four libp2p libraries Artyom V. Poptsov
` (3 preceding siblings ...)
2024-08-25 21:23 ` [bug#72810] [PATCH 4/4] gnu: Add go-github-com-libp2p-go-cidranger Artyom V. Poptsov
@ 2024-08-26 23:42 ` Sharlatan Hellseher
4 siblings, 0 replies; 6+ messages in thread
From: Sharlatan Hellseher @ 2024-08-26 23:42 UTC (permalink / raw)
To: 72810-done
[-- Attachment #1: Type: text/plain, Size: 251 bytes --]
Hi,
Thank you for the patches.
I've rebased them to the latest master and resolved some conflicts.
Pushed as d09b78904a..8625e4200d to master with minor indentation
adjustments.
Packages were added to Kubo and vendored one were removed.
--
Oleg
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-08-26 23:44 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-25 21:22 [bug#72810] [PATCH 0/4] Add four libp2p libraries Artyom V. Poptsov
2024-08-25 21:23 ` [bug#72810] [PATCH 1/4] gnu: Add go-github-com-libp2p-go-reuseport Artyom V. Poptsov
2024-08-25 21:23 ` [bug#72810] [PATCH 2/4] gnu: Add go-github-com-libp2p-go-libp2p-asn-util Artyom V. Poptsov
2024-08-25 21:23 ` [bug#72810] [PATCH 3/4] gnu: Add go-github-com-libp2p-go-yamux-v4 Artyom V. Poptsov
2024-08-25 21:23 ` [bug#72810] [PATCH 4/4] gnu: Add go-github-com-libp2p-go-cidranger Artyom V. Poptsov
2024-08-26 23:42 ` bug#72810: [PATCH 0/4] Add four libp2p libraries 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).