Problems with package downloading while building
When running omnibus build, the process is failing when trying to download some packages. The error is throwed by open-uri
when software download link is redirected from HTTPS
to HTTP
.
[NetFetcher: liblzma] I | Downloading from `http://tukaani.org/xz/xz-5.0.5.tar.gz'
(...)
/usr/local/lib/ruby/2.1.0/open-uri.rb:223:in `open_loop': redirection forbidden: https://sourceforge.net/projects/lzmautils/files/xz-5.0.5.tar.gz/download -> http://downloads.sourceforge.net/project/lzmautils/xz-5.0.5.tar.gz?r=&ts=1456017448&use_mirror=netix (RuntimeError)
from /usr/local/lib/ruby/2.1.0/open-uri.rb:149:in `open_uri'
from /cache/bundle/ruby/2.1.0/bundler/gems/omnibus-be6630690f17/lib/omnibus/core_extensions/open_uri.rb:51:in `open_uri'
from /usr/local/lib/ruby/2.1.0/open-uri.rb:704:in `open'
from /usr/local/lib/ruby/2.1.0/open-uri.rb:34:in `open'
from /cache/bundle/ruby/2.1.0/bundler/gems/omnibus-be6630690f17/lib/omnibus/fetchers/net_fetcher.rb:184:in `download'
from /cache/bundle/ruby/2.1.0/bundler/gems/omnibus-be6630690f17/lib/omnibus/fetchers/net_fetcher.rb:82:in `fetch'
from /cache/bundle/ruby/2.1.0/bundler/gems/omnibus-be6630690f17/lib/omnibus/software.rb:644:in `fetch'
from /cache/bundle/ruby/2.1.0/bundler/gems/omnibus-be6630690f17/lib/omnibus/project.rb:996:in `block (3 levels) in download'
from /cache/bundle/ruby/2.1.0/bundler/gems/omnibus-be6630690f17/lib/omnibus/thread_pool.rb:64:in `call'
from /cache/bundle/ruby/2.1.0/bundler/gems/omnibus-be6630690f17/lib/omnibus/thread_pool.rb:64:in `block (4 levels) in initialize'
from /cache/bundle/ruby/2.1.0/bundler/gems/omnibus-be6630690f17/lib/omnibus/thread_pool.rb:62:in `loop'
from /cache/bundle/ruby/2.1.0/bundler/gems/omnibus-be6630690f17/lib/omnibus/thread_pool.rb:62:in `block (3 levels) in initialize'
from /cache/bundle/ruby/2.1.0/bundler/gems/omnibus-be6630690f17/lib/omnibus/thread_pool.rb:61:in `catch'
from /cache/bundle/ruby/2.1.0/bundler/gems/omnibus-be6630690f17/lib/omnibus/thread_pool.rb:61:in `block (2 levels) in initialize'
[NetFetcher: libicu] I | Downloading from `http://download.icu-project.org/files/icu4c/54.1/icu4c-54_1-src.tgz'
/usr/local/lib/ruby/2.1.0/open-uri.rb:223:in `open_loop': redirection forbidden: https://sourceforge.net/projects/icu/files/ICU4C/54.1/icu4c-54_1-src.tgz/download -> http://downloads.sourceforge.net/project/icu/ICU4C/54.1/icu4c-54_1-src.tgz?r=&ts=1456017629&use_mirror=freefr (RuntimeError)
(...)
It looks like the problem is related with software downloaded from sourceforge.net. They are redirecting from archive link to https://sourceforge.net/.../download
and then to http://downloads.sourceforge.net/...
.
As for now I've noticed only two packages, that are generating this error:
- liblzma
- libicu
We should add unsafe: true
into the source
definitions of those packages.