gfngfn / SATySFi

A statically-typed, functional typesetting system
GNU Lesser General Public License v3.0
1.16k stars 82 forks source link

`opam install satysfi` doesn't terminate (due to timeout of unicode.org) #12

Closed nekketsuuu closed 6 years ago

nekketsuuu commented 6 years ago

Problem & Proposal

Sometimes, opam install satysfi doesn't terminate. In my environment, it seems that this is caused by the connection timeout of http://www.unicode.org, which hosts some Unicode data files (SATySFi downloads them in Makefile).

After some googling, I found that dodo/node-unicodetable#16 and dodo/node-unicodetable#19 say that http://www.unicode.org may throttle excess downloads. So opam install satysfi may fail when building SATySFi many times.

Therefore, how about using other ways to get UNIDATA files? There are some ways:

I don't know which way is the best :(

How to reproduce

$ git clone --recursive https://github.com/gfngfn/SATySFi.git
$ cd SATySFi
$ make lib && make clean  # run this some times...
$ opam pin add satysfi .
$ opam install satysfi  # sometimes not terminate

Environment

Workaround

For me, opam install satysfi succeeded after changing http://www.unicode.org/ in Makefile to ftp://ftp.unicode.org.

nekketsuuu commented 6 years ago

This issue is resolved by making UNIDATA files under git management at commit 82691e489f2786ebda2288ca799a84420da93b85.