[Slackbuilds-users] sboinstall - jdk download fails

Arnaud yth at ythogtha.org
Tue Apr 4 17:23:04 UTC 2017

Le 4 avril 2017 19:17:13 GMT+02:00, Eric Pratt <eric.b.pratt at gmail.com> a écrit :
>>>On Tue, Apr 4, 2017 at 7:33 AM, Evandro Alves <evandrofisico at gmail.com>
>> Fellype,
>> It has always been like this. The oracle website does not allow a
>> download through wget, to force people to accept their licence
>>>On Tue, Apr 4, 2017 at 7:37 AM, Edward Koenig <kingbeowulf at gmail.com>
>> Yes, old news discussed some time ago here. Some download sites
>> extra steps and therefore you can't use wget, curl or any SBo
>> automated tool.  Nothing any of us can do; you will have to yell at
>> -Ed
>On Tue, Apr 4, 2017 at 9:07 AM, Matteo Bernardini <
>matteo.bernardini at gmail.com> wrote:
>> Hi Fellype,
>> it's written in the README
>> https://slackbuilds.org/repository/14.2/development/jdk/
>> remember it's assumed that you have read the READMEs of the things
>> build from SBo, also if you use some third party automated tool with
>> the SBo's repository.
>> Matteo
>>​You can definitely download JDK via wget.  ​
>I have a script that
>>discovers the latest JDK, downloads it,
>java.Slackbuild in /extra to build a package, and installs it.  This is
>wget command to download the latest JAVA once the script has located
>proper URL:
>  wget -q --no-check-certificate --no-cookies --header "Cookie:
>oraclelicense=accept-securebackup-cookie" "${JAVA_DOWNLOAD_URL}"
>This works as long as you find the actual download URL
>​ and​
>not a URL that redirects to the
>​actual ​
>​ URL​
>​  I found this by using HttpFox on Firefox to see what was happening
>I clicked through the website and downloaded via a browser.  It's
>to understand that you are still accepting the license agreement by
>wget to download it.
>​I suspect Slackbuilds is against this practice for a number of
>especially the possibly too magical discovery of URLs via text parsing
>HTML.  But it's something to consider.  Another idea might be an
>WGET_OPTIONS="" field in the jdk.info file.  That would tell automated
>tools like sbopkg what extra command line options are needed to
>from the URL given in jdk.info.

Since jdk is (as far as I know) the only one with that kind of wget option needed, I feel it would be the job of the third party tool to handle it specifically. Instead of adding a field into the .info file...

My 2 cents,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20170404/df57bc04/attachment-0001.html>

More information about the SlackBuilds-users mailing list