summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnderson Torres <anderson.torres.8519@gmail.com>2026-04-12 10:21:35 -0300
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2026-04-12 17:27:02 +0200
commit85834b72190865dc1a95acffc2aa9c3ee1c04e7e (patch)
tree6ace3a4f403c97bfb5e2aa7ba2efea1be3961156
parenta5a578b027c8c5966f8bfb876e995f3f128f75db (diff)
gnu: Migrate packages from (gnu packages adns) to (gnu packages dns).
* gnu/packages/adns.scm (adns, c-ares, c-ares-for-node-lts) (c-ares-for-node-bootstrap, c-ares/cmake): Move from here… * gnu/packages/dns.scm: … to here. Change-Id: I7fbdac74ff8da370ae74760005e99e3335658eb1 Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
-rw-r--r--gnu/packages/adns.scm172
-rw-r--r--gnu/packages/dns.scm165
2 files changed, 174 insertions, 163 deletions
diff --git a/gnu/packages/adns.scm b/gnu/packages/adns.scm
index 7de728a82fb..fa31dbbfaf4 100644
--- a/gnu/packages/adns.scm
+++ b/gnu/packages/adns.scm
@@ -1,9 +1,4 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org>
3;;; Copyright © 2015, 2016, 2018, 2020 Efraim Flashner <efraim@flashner.co.il>
4;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
5;;; Copyright © 2019, 2021 Marius Bakke <marius@gnu.org>
6;;; Copyright © 2023 Janneke Nieuwenhuizen <janneke@gnu.org>
7;;; Copyright © 2026 Anderson Torres <anderson.torres.8519@gmail.com> 2;;; Copyright © 2026 Anderson Torres <anderson.torres.8519@gmail.com>
8;;; 3;;;
9;;; This file is part of GNU Guix. 4;;; This file is part of GNU Guix.
@@ -22,163 +17,20 @@
22;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. 17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
23 18
24(define-module (gnu packages adns) 19(define-module (gnu packages adns)
25 #:use-module ((guix licenses) #:prefix license:) 20 #:use-module (gnu packages dns)
26 #:use-module (gnu packages m4) 21 #:use-module (guix deprecation))
27 #:use-module (gnu packages pkg-config)
28 #:use-module (guix build-system cmake)
29 #:use-module (guix build-system gnu)
30 #:use-module (guix download)
31 #:use-module (guix git-download)
32 #:use-module (guix gexp)
33 #:use-module (guix packages)
34 #:use-module (guix utils))
35 22
36(define-public adns 23(define-deprecated/public-alias adns
37 (package 24 (@ (guix packages dns) adns))
38 (name "adns")
39 (version "1.6.1")
40 (source
41 (origin
42 (method git-fetch)
43 (uri (git-reference
44 (url "git://git.chiark.greenend.org.uk/~ianmdlvl/adns.git")
45 (commit (string-append "adns-" version))))
46 (file-name (git-file-name name version))
47 (sha256
48 (base32
49 "0ln3l5j7wb1xazrzl76p9xar52p6l2k1cwy7jazxw1acl71k9h5n"))))
50 (build-system gnu-build-system)
51 (arguments
52 (list
53 ;; INFO: Tests expect real name resolution to work.
54 #:tests? #f
55 #:configure-flags
56 #~(list
57 ;; Make sure the programs under bin/ find libadns.so.
58 (string-append "LDFLAGS=-Wl,-rpath -Wl,"
59 #$output:out
60 "/lib"))))
61 (native-inputs
62 (list m4))
63 (home-page "https://www.gnu.org/software/adns/")
64 (synopsis "Asynchronous DNS client library and utilities")
65 (description
66 "GNU adns is a C library that provides easy-to-use @acronym{DNS, Domain
67Name System} resolution functionality. The library is asynchronous, allowing
68several concurrent calls. The package also includes several command-line
69utilities for use in scripts.")
70 (license license:gpl3+)))
71 25
72(define-public c-ares 26(define-deprecated/public-alias c-ares
73 (package 27 (@ (guix packages dns) c-ares))
74 (name "c-ares")
75 (version "1.34.4")
76 (source (origin
77 (method url-fetch)
78 (uri (string-append
79 "https://github.com/c-ares/c-ares/releases/download/v"
80 version "/" name "-" version ".tar.gz"))
81 (sha256
82 (base32
83 "0br2msk3bpl5myhjp9vr5j2scpspvbg2fpnz69dcrr4ycpnxnf7s"))))
84 (build-system gnu-build-system)
85 (arguments
86 (list
87 #:phases
88 #~(modify-phases %standard-phases
89 (add-before 'check 'filter-live-tests
90 (lambda _
91 ;; Filter tests that require internet access.
92 (setenv "GTEST_FILTER" "-*.Live*:*.FamilyV4*")))
93 #$@(if (system-hurd?)
94 #~((add-after 'unpack 'skip-tests
95 (lambda _
96 (substitute* "test/ares-test-main.cc"
97 (("(^| )main *\\(.*" all)
98 (string-append all " exit (77);\n")))))
99 (add-after 'filter-live-tests 'filter-hurd-tests
100 (lambda _
101 (setenv "GTEST_FILTER"
102 (string-append
103 (getenv "GTEST_FILTER")
104 ":.*Basic/2"
105 ":.*CancelImmediate/2"
106 ":.*CancelImmediateGetHostByAddr/2"
107 ":.*CancelLater/1"
108 ":.*FamilyUnspecified/2"
109 ":.*FamilyV6/2"
110 ":.*GetAddrInfoParallelLookups/1"
111 ":.*GetHostByAddrDestroy/2"
112 ":.*GetHostByNameCNAMENoData/2"
113 ":.*GetHostByNameDestroyAbsolute/2"
114 ":.*GetHostByNameDestroyRelative/2"
115 ":.*GetHostByNameParallelLookups/1"
116 ":.*HostAlias/2"
117 ":.*HostAliasMissing/2"
118 ":.*HostAliasMissingFile/2"
119 ":.*NotImplResponse/2"
120 ":.*RefusedResponse/2"
121 ":.*Resend/1"
122 ":.*RetryWithoutEDNS/2"
123 ":.*SearchDomains/2"
124 ":.*SearchDomainsBare/2"
125 ":.*SearchDomainsServFailOnAAAA/2"
126 ":.*SearchDomainsWithResentReply/1"
127 ":.*SearchHighNdots/2"
128 ":.*SearchNoDataThenFail/2"
129 ":.*SearchNoDataThenNoDataBare/2"
130 ":.*SearchNoDataThenSuccess/2"
131 ":.*ServFailResponse/2"
132 ":.*SimpleQuery/2"
133 ":.*SockCallback/2"
134 ":.*SockConfigureCallback/2"
135 ":.*SortListV4/2"
136 ":.*SortListV6/2"
137 ":.*ThirdServer/2"
138 ":.*TruncationRetry/1"
139 ":.*UnspecifiedFamilyCname6A4/2"
140 ":.*UnspecifiedFamilyV4/2"
141 ":.*UnspecifiedFamilyV6/2")))))
142 #~()))))
143 (native-inputs
144 (list pkg-config))
145 (home-page "https://c-ares.haxx.se/")
146 (synopsis "C library for asynchronous DNS requests")
147 (description
148 "C-ares is a C library that performs DNS requests and name resolution
149asynchronously. It is intended for applications which need to perform DNS
150queries without blocking, or need to perform multiple DNS queries in parallel.
151The primary examples of such applications are servers which communicate with
152multiple clients and programs with graphical user interfaces.")
153 (license (license:x11-style "https://c-ares.haxx.se/license.html"))))
154 28
155(define-public c-ares-for-node-lts 29(define-deprecated/public-alias c-ares-for-node-lts
156 (hidden-package c-ares)) 30 (@ (guix packages dns) c-ares-for-node-lts))
157 31
158(define-public c-ares-for-node-bootstrap 32(define-deprecated/public-alias c-ares-for-node-bootstrap
159 (hidden-package 33 (@ (guix packages dns) c-ares-for-node-bootstrap))
160 (package
161 (inherit c-ares)
162 (version "1.18.1")
163 (source (origin
164 (method url-fetch)
165 (uri (string-append
166 "https://c-ares.haxx.se/download/c-ares-" version
167 ".tar.gz"))
168 (sha256
169 (base32
170 "1kxviskwsaa7dcgscvssxa8ps88pdq7kq4z93gxvz7sam2l54z8s")))))))
171 34
172;; gRPC requires a c-ares built with CMake in order to get the .cmake modules. 35(define-deprecated/public-alias c-ares/cmake
173;; We can not build c-ares itself with CMake because that would introduce a 36 (@ (guix packages dns) c-ares/cmake))
174;; circular dependency through nghttp2.
175;; XXX: It would be nice if we could extract the modules somehow and make them
176;; work with the "normal" c-ares package instead of building a whole new library.
177(define-public c-ares/cmake
178 (hidden-package
179 (package
180 (inherit c-ares)
181 (build-system cmake-build-system)
182 (arguments
183 `(;; XXX: Tests require name resolution (the normal variant runs no tests).
184 #:tests? #f)))))
diff --git a/gnu/packages/dns.scm b/gnu/packages/dns.scm
index 75c92f5b11d..bc5401835c5 100644
--- a/gnu/packages/dns.scm
+++ b/gnu/packages/dns.scm
@@ -1,12 +1,13 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org>
2;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com> 3;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
3;;; Copyright © 2016 Mark H Weaver <mhw@netris.org> 4;;; Copyright © 2016 Mark H Weaver <mhw@netris.org>
4;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net> 5;;; Copyright © 2016, 2018 Ricardo Wurmus <rekado@elephly.net>
5;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il> 6;;; Copyright © 2015-2018, 2020 Efraim Flashner <efraim@flashner.co.il>
6;;; Copyright © 2016 John Darrington <jmd@gnu.org> 7;;; Copyright © 2016 John Darrington <jmd@gnu.org>
7;;; Copyright © 2016 Nikita <nikita@n0.is> 8;;; Copyright © 2016 Nikita <nikita@n0.is>
8;;; Copyright © 2016–2022 Tobias Geerinckx-Rice <me@tobias.gr> 9;;; Copyright © 2016–2022 Tobias Geerinckx-Rice <me@tobias.gr>
9;;; Copyright © 2016, 2020 Marius Bakke <mbakke@fastmail.com> 10;;; Copyright © 2016, 2019-2021 Marius Bakke <mbakke@fastmail.com>
10;;; Copyright © 2017 Vasile Dumitrascu <va511e@yahoo.com> 11;;; Copyright © 2017 Vasile Dumitrascu <va511e@yahoo.com>
11;;; Copyright © 2017 Gregor Giesen <giesen@zaehlwerk.net> 12;;; Copyright © 2017 Gregor Giesen <giesen@zaehlwerk.net>
12;;; Copyright © 2022 Oleg Pykhalov <go.wigust@gmail.com> 13;;; Copyright © 2022 Oleg Pykhalov <go.wigust@gmail.com>
@@ -21,9 +22,11 @@
21;;; Copyright © 2021, 2024 Zheng Junjie <873216071@qq.com> 22;;; Copyright © 2021, 2024 Zheng Junjie <873216071@qq.com>
22;;; Copyright © 2023 Bruno Victal <mirai@makinata.eu> 23;;; Copyright © 2023 Bruno Victal <mirai@makinata.eu>
23;;; Copyright © 2023 Hilton Chain <hako@ultrarare.space> 24;;; Copyright © 2023 Hilton Chain <hako@ultrarare.space>
25;;; Copyright © 2023 Janneke Nieuwenhuizen <janneke@gnu.org>
24;;; Copyright © 2024 John Kehayias <john.kehayias@protonmail.com> 26;;; Copyright © 2024 John Kehayias <john.kehayias@protonmail.com>
25;;; Copyright © 2024, 2025 Ashish SHUKLA <ashish.is@lostca.se> 27;;; Copyright © 2024, 2025 Ashish SHUKLA <ashish.is@lostca.se>
26;;; Copyright © 2025 Artyom V. Poptsov <poptsov.artyom@gmail.com> 28;;; Copyright © 2025 Artyom V. Poptsov <poptsov.artyom@gmail.com>
29;;; Copyright © 2026 Anderson Torres <anderson.torres.8519@gmail.com>
27;;; 30;;;
28;;; This file is part of GNU Guix. 31;;; This file is part of GNU Guix.
29;;; 32;;;
@@ -65,6 +68,7 @@
65 #:use-module (gnu packages libidn) 68 #:use-module (gnu packages libidn)
66 #:use-module (gnu packages linux) 69 #:use-module (gnu packages linux)
67 #:use-module (gnu packages lua) 70 #:use-module (gnu packages lua)
71 #:use-module (gnu packages m4)
68 #:use-module (gnu packages ncurses) 72 #:use-module (gnu packages ncurses)
69 #:use-module (gnu packages nettle) 73 #:use-module (gnu packages nettle)
70 #:use-module (gnu packages networking) 74 #:use-module (gnu packages networking)
@@ -96,6 +100,161 @@
96 #:use-module (guix build-system gnu) 100 #:use-module (guix build-system gnu)
97 #:use-module (guix build-system meson)) 101 #:use-module (guix build-system meson))
98 102
103(define-public adns
104 (package
105 (name "adns")
106 (version "1.6.1")
107 (source
108 (origin
109 (method git-fetch)
110 (uri (git-reference
111 (url "git://git.chiark.greenend.org.uk/~ianmdlvl/adns.git")
112 (commit (string-append "adns-" version))))
113 (sha256
114 (base32
115 "0ln3l5j7wb1xazrzl76p9xar52p6l2k1cwy7jazxw1acl71k9h5n"))))
116 (build-system gnu-build-system)
117 (arguments
118 (list
119 ;; INFO: Tests expect real name resolution to work.
120 #:tests? #f
121 #:configure-flags
122 #~(list
123 ;; Make sure the programs under bin/ find libadns.so.
124 (string-append "LDFLAGS=-Wl,-rpath -Wl,"
125 #$output:out
126 "/lib"))))
127 (native-inputs
128 (list m4))
129 (home-page "https://www.gnu.org/software/adns/")
130 (synopsis "Asynchronous DNS client library and utilities")
131 (description
132 "GNU adns is a C library that provides easy-to-use @acronym{DNS, Domain
133Name System} resolution functionality. The library is asynchronous, allowing
134several concurrent calls. The package also includes several command-line
135utilities for use in scripts.")
136 (license license:gpl3+)))
137
138(define-public c-ares
139 (package
140 (name "c-ares")
141 (version "1.34.4")
142 (source
143 (origin
144 (method url-fetch)
145 (uri (string-append
146 "https://github.com/c-ares/c-ares/releases/download/v"
147 version "/" name "-" version ".tar.gz"))
148 (sha256
149 (base32
150 "0br2msk3bpl5myhjp9vr5j2scpspvbg2fpnz69dcrr4ycpnxnf7s"))))
151 (build-system gnu-build-system)
152 (arguments
153 (list
154 #:phases
155 #~(modify-phases %standard-phases
156 (add-before 'check 'filter-live-tests
157 (lambda _
158 ;; Filter tests that require internet access.
159 (setenv "GTEST_FILTER" "-*.Live*:*.FamilyV4*")))
160 #$@(if (system-hurd?)
161 #~((add-after 'unpack 'skip-tests
162 (lambda _
163 (substitute* "test/ares-test-main.cc"
164 (("(^| )main *\\(.*" all)
165 (string-append all " exit (77);\n")))))
166 (add-after 'filter-live-tests 'filter-hurd-tests
167 (lambda _
168 (setenv "GTEST_FILTER"
169 (string-append
170 (getenv "GTEST_FILTER")
171 ":.*Basic/2"
172 ":.*CancelImmediate/2"
173 ":.*CancelImmediateGetHostByAddr/2"
174 ":.*CancelLater/1"
175 ":.*FamilyUnspecified/2"
176 ":.*FamilyV6/2"
177 ":.*GetAddrInfoParallelLookups/1"
178 ":.*GetHostByAddrDestroy/2"
179 ":.*GetHostByNameCNAMENoData/2"
180 ":.*GetHostByNameDestroyAbsolute/2"
181 ":.*GetHostByNameDestroyRelative/2"
182 ":.*GetHostByNameParallelLookups/1"
183 ":.*HostAlias/2"
184 ":.*HostAliasMissing/2"
185 ":.*HostAliasMissingFile/2"
186 ":.*NotImplResponse/2"
187 ":.*RefusedResponse/2"
188 ":.*Resend/1"
189 ":.*RetryWithoutEDNS/2"
190 ":.*SearchDomains/2"
191 ":.*SearchDomainsBare/2"
192 ":.*SearchDomainsServFailOnAAAA/2"
193 ":.*SearchDomainsWithResentReply/1"
194 ":.*SearchHighNdots/2"
195 ":.*SearchNoDataThenFail/2"
196 ":.*SearchNoDataThenNoDataBare/2"
197 ":.*SearchNoDataThenSuccess/2"
198 ":.*ServFailResponse/2"
199 ":.*SimpleQuery/2"
200 ":.*SockCallback/2"
201 ":.*SockConfigureCallback/2"
202 ":.*SortListV4/2"
203 ":.*SortListV6/2"
204 ":.*ThirdServer/2"
205 ":.*TruncationRetry/1"
206 ":.*UnspecifiedFamilyCname6A4/2"
207 ":.*UnspecifiedFamilyV4/2"
208 ":.*UnspecifiedFamilyV6/2")))))
209 #~()))))
210 (native-inputs
211 (list pkg-config))
212 (home-page "https://c-ares.haxx.se/")
213 (synopsis "C library for asynchronous DNS requests")
214 (description
215 "C-ares is a C library that performs DNS requests and name resolution
216asynchronously. It is intended for applications which need to perform DNS
217queries without blocking, or need to perform multiple DNS queries in parallel.
218The primary examples of such applications are servers which communicate with
219multiple clients and programs with graphical user interfaces.")
220 (license (license:x11-style "https://c-ares.haxx.se/license.html"))))
221
222(define-public c-ares-for-node-lts
223 (hidden-package c-ares))
224
225(define-public c-ares-for-node-bootstrap
226 (hidden-package
227 (package
228 (inherit c-ares)
229 (version "1.18.1")
230 (source
231 (origin
232 (method url-fetch)
233 (uri (string-append
234 "https://c-ares.haxx.se/download/c-ares-" version
235 ".tar.gz"))
236 (sha256
237 (base32
238 "1kxviskwsaa7dcgscvssxa8ps88pdq7kq4z93gxvz7sam2l54z8s")))))))
239
240;; INFO: gRPC requires a c-ares built with CMake in order to get the .cmake
241;; modules. We can not build c-ares itself with CMake because that would
242;; introduce a circular dependency through nghttp2.
243;;
244;; TODO: It would be nice if we could extract the modules somehow and make
245;; them work with the "normal" c-ares package instead of building a whole new
246;; library.
247(define-public c-ares/cmake
248 (hidden-package
249 (package
250 (inherit c-ares)
251 (build-system cmake-build-system)
252 (arguments
253 (list
254 ;; INFO: Tests require name resolution (the normal variant runs no
255 ;; tests).
256 #:tests? #f)))))
257
99(define-public cloudflare-cli 258(define-public cloudflare-cli
100 (let ((commit "2d986d3ec1b0e3158c4bd40e8918947cb74aa392") 259 (let ((commit "2d986d3ec1b0e3158c4bd40e8918947cb74aa392")
101 (revision "1")) 260 (revision "1"))