openoffice-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patricia Shanahan <p...@acm.org>
Subject Re: ./bootstrap: LWP::Protocol::https replaced by java.net.URLConnection
Date Sun, 24 Jul 2016 17:43:12 GMT
On 7/24/2016 10:24 AM, Damjan Jovanovic wrote:
...
> So how do we download files now?
>
> Java. Java supports https:// out of the box, is very portable between
> operating systems and CPUs, uses its own root CA certificates, is already
> used on all the buildbots, and is documented as being a mandatory build
> dependency (even though it doesn't seem that way in ./configure). A simple
> class main/solenv/javadownloader/AOOJavaDownloader.java gets compiled into
> main/solenv/<platform>/class/AOOJavaDownloader.class by the ./bootstrap
> script, and then called from Perl's main/solenv/bin/
> download_external_dependencies.pl and
> main/solenv/bin/modules/ExtensionsLst.pm using system(), in place of
> LWP::UserAgent. Internally, it uses java.net.URLConnection for http/https
> support, deals with HTTP redirection, also verifying MD5 and SHA1 hashes
> like the Perl DownloadFile() function it replaces.
>
> The way it's been set up is a bit of a hack, but it's working phenomenally
> well on both FreeBSD and Windows, and with it the Windows aoo-win7 buildbot
> has successfully bootstrapped for the first time in memorable history, and
> with VCVARS32.BAT eliminated it looks like it may even finish building
> successfully!

This sounds very promising. I hope it works.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Mime
View raw message