Bug 131297 - [GTK] Change the server for downloading freetype source.
Summary: [GTK] Change the server for downloading freetype source.
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: ChangSeok Oh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-07 02:48 PDT by ChangSeok Oh
Modified: 2014-06-03 09:58 PDT (History)
4 users (show)

See Also:


Attachments
Patch (2.41 KB, patch)
2014-04-09 09:42 PDT, ChangSeok Oh
no flags Details | Formatted Diff | Diff
Patch (1.83 KB, patch)
2014-05-06 09:57 PDT, ChangSeok Oh
changseok: review-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ChangSeok Oh 2014-04-07 02:48:09 PDT
The freetype file server, download.savannah.gnu.org/releases/freetype/ seems very unstable nowadays. I've noticed frequent failures for downloading it.
So I propose to replace the file server with its git server.
Comment 1 Csaba Osztrogonác 2014-04-07 04:49:38 PDT
Additionally you can set JHBUILD_MIRROR environment variable to a local path
to cache jhbuild downloaded sources not to have to download them again and again.
( See https://trac.webkit.org/changeset/166061 for details.)
Comment 2 ChangSeok Oh 2014-04-09 09:42:01 PDT
Created attachment 228965 [details]
Patch
Comment 3 ChangSeok Oh 2014-04-09 09:42:58 PDT
(In reply to comment #1)
> Additionally you can set JHBUILD_MIRROR environment variable to a local path
> to cache jhbuild downloaded sources not to have to download them again and again.
> ( See https://trac.webkit.org/changeset/166061 for details.)

Good to know! Thanks. :)
Comment 4 Gustavo Noronha (kov) 2014-04-15 05:27:38 PDT
Comment on attachment 228965 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=228965&action=review

I haven't had trouble with this, and there is one problem: patches are not applied to git repositories, just to tarballs, so we can't do this. Perhaps we could instead store the tarball at a different location?

> Tools/ChangeLog:8
> +        The freetype server, serverdownload.savannah.gnu.org/releases/freetype/

s/serverdownload/download/
Comment 5 ChangSeok Oh 2014-05-06 09:04:41 PDT
(In reply to comment #4)
> (From update of attachment 228965 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=228965&action=review
> 
> I haven't had trouble with this, and there is one problem: patches are not applied to git repositories, just to tarballs, so we can't do this. Perhaps we could instead store the tarball at a different location?

This still annoys me. I don't know why you haven't faced this though, maybe the server blocks accessing from Asia? :(
I'd like to fix at this time. I'm thinking of uploading freetype-2.4.11.tar.bz2 to github. Better idea?
Comment 6 ChangSeok Oh 2014-05-06 09:57:44 PDT
Created attachment 230914 [details]
Patch
Comment 7 Martin Robinson 2014-05-06 10:07:59 PDT
Is there a way you can override this in your local environment only?
Comment 8 ChangSeok Oh 2014-05-06 10:15:09 PDT
(In reply to comment #7)
> Is there a way you can override this in your local environment only?

In other words.. Martin, you don't have any issue either, wget http://download.savannah.gnu.org/releases/freetype/freetype-2.4.11.tar.bz2?
If I'm the only guy having problem regarding this, yeah it's possible that using the override module.
Comment 9 Martin Robinson 2014-05-06 10:24:07 PDT
It works fine for me. Is it consistently broken for you?
Comment 10 ChangSeok Oh 2014-05-07 21:52:50 PDT
(In reply to comment #9)
> It works fine for me. Is it consistently broken for you?

Yes. it is. And I could hear that other Korean users have the same problem.  It seems public.p-knowledge.co.jp goes something wrong. It might be broken or block accessing from only korea. :\ 
Anyway this issue is not general and we know an workaround, overriding the server in local jhmodule. so I close this bug here with a note for records.
Comment 11 Martin Robinson 2014-05-07 21:59:17 PDT
(In reply to comment #10)
> (In reply to comment #9)
> > It works fine for me. Is it consistently broken for you?
> 
> Yes. it is. And I could hear that other Korean users have the same problem.  It seems public.p-knowledge.co.jp goes something wrong. It might be broken or block accessing from only korea. :\ 
> Anyway this issue is not general and we know an workaround, overriding the server in local jhmodule. so I close this bug here with a note for records.

It's really surprising that gnu.org is broken for so many people in Korea. Perhaps we can find another official GNU mirror that works for everyone.
Comment 12 Gyuyoung Kim 2014-05-07 22:29:40 PDT
(In reply to comment #11)
> (In reply to comment #10)
> > (In reply to comment #9)
> > > It works fine for me. Is it consistently broken for you?
> > 
> > Yes. it is. And I could hear that other Korean users have the same problem.  It seems public.p-knowledge.co.jp goes something wrong. It might be broken or block accessing from only korea. :\ 
> > Anyway this issue is not general and we know an workaround, overriding the server in local jhmodule. so I close this bug here with a note for records.
> 
> It's really surprising that gnu.org is broken for so many people in Korea. Perhaps we can find another official GNU mirror that works for everyone.

Yes, I haven failed to download the freetype tarball via the url as well. If this bug can find alternative url, EFL port needs to use it as well.
Comment 13 Gyuyoung Kim 2014-05-26 19:08:36 PDT
Any update ? Whenever Korean engineers need to download freetype tarball by using jhbuild, we can't download the freetype tarball on the download url. Can't we change the url for EFL and GTK ?
Comment 14 Martin Robinson 2014-05-26 19:38:53 PDT
(In reply to comment #13)
> Any update ? Whenever Korean engineers need to download freetype tarball by using jhbuild, we can't download the freetype tarball on the download url. Can't we change the url for EFL and GTK ?

Have you tried traceroute to determine the problem with the GNU download site?
Comment 15 ChangSeok Oh 2014-05-26 23:46:49 PDT
(In reply to comment #14)
> (In reply to comment #13)
> > Any update ? Whenever Korean engineers need to download freetype tarball by using jhbuild, we can't download the freetype tarball on the download url. Can't we change the url for EFL and GTK ?
> 
> Have you tried traceroute to determine the problem with the GNU download site?

Yes I did.

[shivamidow@iMacStation:temp]$ wget http://download.savannah.gnu.org/releases/freetype/freetype-2.4.11.tar.bz2

--2014-05-27 15:35:56--  http://download.savannah.gnu.org/releases/freetype/freetype-2.4.11.tar.bz2
Resolving download.savannah.gnu.org (download.savannah.gnu.org)... 140.186.70.73
Connecting to download.savannah.gnu.org (download.savannah.gnu.org)|140.186.70.73|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://download.savannah.gnu.org/releases-redirect/freetype/freetype-2.4.11.tar.bz2 [following]
--2014-05-27 15:35:57--  http://download.savannah.gnu.org/releases-redirect/freetype/freetype-2.4.11.tar.bz2
Reusing existing connection to download.savannah.gnu.org:80.
HTTP request sent, awaiting response... 302 Found
Location: http://public.p-knowledge.co.jp/Savannah-nongnu-mirror//freetype/freetype-2.4.11.tar.bz2 [following]
--2014-05-27 15:35:57--  http://public.p-knowledge.co.jp/Savannah-nongnu-mirror//freetype/freetype-2.4.11.tar.bz2
Resolving public.p-knowledge.co.jp (public.p-knowledge.co.jp)... 116.58.185.5
Connecting to public.p-knowledge.co.jp (public.p-knowledge.co.jp)|116.58.185.5|:80... 

It seems the gnu download server redirects eventually to p-knowledge.co.jp when asian user(not sure it happens on only Korean or else Asian) sends the server a request for downloading. Even though I poked 116.58.185.5, I could not receive any ack. Maybe it's dead or has been blocking access from any users.
Comment 16 Martin Robinson 2014-06-03 09:46:19 PDT
(In reply to comment #15)
> It seems the gnu download server redirects eventually to p-knowledge.co.jp when asian user(not sure it happens on only Korean or else Asian) sends the server a request for downloading. Even though I poked 116.58.185.5, I could not receive any ack. Maybe it's dead or has been blocking access from any users.

I'm able to access this server, so it seems like it might be a problem with your ISP. I think that we have a few options here:

1. We can contact a mirror directly with a comment explaining that a common mirror is blocked.
2. You can contact your ISP and figure out why you cannot access the site.
3. You can bring this issue to GNU with as much information as possible about why it is i blocked.

What do you think?
Comment 17 ChangSeok Oh 2014-06-03 09:58:52 PDT
(In reply to comment #16)
> (In reply to comment #15)
> > It seems the gnu download server redirects eventually to p-knowledge.co.jp when asian user(not sure it happens on only Korean or else Asian) sends the server a request for downloading. Even though I poked 116.58.185.5, I could not receive any ack. Maybe it's dead or has been blocking access from any users.
> 
> I'm able to access this server, so it seems like it might be a problem with your ISP. I think that we have a few options here:
> 
> 1. We can contact a mirror directly with a comment explaining that a common mirror is blocked.
> 2. You can contact your ISP and figure out why you cannot access the site.
> 3. You can bring this issue to GNU with as much information as possible about why it is i blocked.
> 
> What do you think?

I think those are worth to check and try. I'll do.