* [bug#67128] Use CDN instead of mirrors for Apache httpd
@ 2023-11-12 12:10 glaz--- via Guix-patches via
2023-11-14 13:57 ` Greg Hogan
2023-11-26 22:33 ` glaz--- via Guix-patches via
0 siblings, 2 replies; 3+ messages in thread
From: glaz--- via Guix-patches via @ 2023-11-12 12:10 UTC (permalink / raw)
To: 67128
[-- Attachment #1: Type: text/plain, Size: 809 bytes --]
Hello fellow guixers.
I've found that I cannot build httpd package because of download issues.
downloading from
http://www.eu.apache.org/dist/httpd/httpd-2.4.58.tar.bz2 ...
sha256 hash mismatch for
/gnu/store/sil2xmw01qmyygdbhvrsvyvmaviha2dy-httpd-2.4.58.tar.bz2:
expected hash: 1id45r2ccgkbjm9i998997ch32lvicpyynyx8x6aa4420wmdf5ps
actual hash: 0mdqa9w1p6cmli6976v4wi0sw9r4p5prkj7lzfd1877wk11c9c73
On the other hand, Apache web site states clearly that it doesn't use
mirror system anymore:
"As of the third quarter of 2021, the ASF stopped using its download
mirror system. It is now using a global content distribution network
(CDN)."
https://www.apache.org/mirrors.html
So I've made a patch that disables Apache mirrors for httpd@2.4.58 and
httpd/pinned@2.4.52 packages.
Dmitry Nikolaev
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: disable_apache_mirror_for_httpd.patch --]
[-- Type: text/x-diff; name=disable_apache_mirror_for_httpd.patch, Size: 886 bytes --]
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 66d09700db..0fef4fb928 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -281,7 +281,7 @@ (define-public httpd
(version "2.4.58")
(source (origin
(method url-fetch)
- (uri (string-append "mirror://apache/httpd/httpd-"
+ (uri (string-append "https://dlcdn.apache.org/httpd/httpd-"
version ".tar.bz2"))
(sha256
(base32
@@ -319,7 +319,7 @@ (define-public httpd/pinned
(version "2.4.52")
(source (origin
(method url-fetch)
- (uri (string-append "mirror://apache/httpd/httpd-"
+ (uri (string-append "https://dlcdn.apache.org/httpd/httpd-"
version ".tar.bz2"))
(sha256
(base32
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [bug#67128] Use CDN instead of mirrors for Apache httpd
2023-11-12 12:10 [bug#67128] Use CDN instead of mirrors for Apache httpd glaz--- via Guix-patches via
@ 2023-11-14 13:57 ` Greg Hogan
2023-11-26 22:33 ` glaz--- via Guix-patches via
1 sibling, 0 replies; 3+ messages in thread
From: Greg Hogan @ 2023-11-14 13:57 UTC (permalink / raw)
To: glaz; +Cc: 67128
On Sun, Nov 12, 2023 at 8:39 AM glaz--- via Guix-patches via
<guix-patches@gnu.org> wrote:
>
> Hello fellow guixers.
>
> I've found that I cannot build httpd package because of download issues.
>
> downloading from
> http://www.eu.apache.org/dist/httpd/httpd-2.4.58.tar.bz2 ...
>
> sha256 hash mismatch for
> /gnu/store/sil2xmw01qmyygdbhvrsvyvmaviha2dy-httpd-2.4.58.tar.bz2:
> expected hash: 1id45r2ccgkbjm9i998997ch32lvicpyynyx8x6aa4420wmdf5ps
> actual hash: 0mdqa9w1p6cmli6976v4wi0sw9r4p5prkj7lzfd1877wk11c9c73
>
> On the other hand, Apache web site states clearly that it doesn't use
> mirror system anymore:
> "As of the third quarter of 2021, the ASF stopped using its download
> mirror system. It is now using a global content distribution network
> (CDN)."
> https://www.apache.org/mirrors.html
>
> So I've made a patch that disables Apache mirrors for httpd@2.4.58 and
> httpd/pinned@2.4.52 packages.
>
> Dmitry Nikolaev
This looks to duplicate #63068, which instead fixes the list of
mirrors for all packages. Though, as noted in that thread, the linked
documentation lists downloads.apache.org rather than dlcdn.apache.org
^ permalink raw reply [flat|nested] 3+ messages in thread
* [bug#67128] Use CDN instead of mirrors for Apache httpd
2023-11-12 12:10 [bug#67128] Use CDN instead of mirrors for Apache httpd glaz--- via Guix-patches via
2023-11-14 13:57 ` Greg Hogan
@ 2023-11-26 22:33 ` glaz--- via Guix-patches via
1 sibling, 0 replies; 3+ messages in thread
From: glaz--- via Guix-patches via @ 2023-11-26 22:33 UTC (permalink / raw)
To: 67128
[-- Attachment #1: Type: text/plain, Size: 323 bytes --]
On 2023-11-12 15:10, glaz@zho.pa wrote:
> Hello fellow guixers.
>
> I've found that I cannot build httpd package because of download
> issues.
Previous patch was wrong. Here's better one.
httpd-2.4.58 is Ok. The problem is httpd-2.4.52 could not be downloaded
from Apache mirrors, only from Apache archive site.
Dmitry
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: download_httpd-2.4.52_from_archive.patch --]
[-- Type: text/x-diff; name=download_httpd-2.4.52_from_archive.patch, Size: 535 bytes --]
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 822f0e7612..0359b36a42 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -320,7 +320,7 @@ (define-public httpd/pinned
(version "2.4.52")
(source (origin
(method url-fetch)
- (uri (string-append "mirror://apache/httpd/httpd-"
+ (uri (string-append "https://archive.apache.org/dist/httpd/httpd-"
version ".tar.bz2"))
(sha256
(base32
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-11-26 22:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-12 12:10 [bug#67128] Use CDN instead of mirrors for Apache httpd glaz--- via Guix-patches via
2023-11-14 13:57 ` Greg Hogan
2023-11-26 22:33 ` glaz--- via Guix-patches via
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).