[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>
>wrote:
>
>> Fellype,
>>
>> It has always been like this. The oracle website does not allow a
>direct
>> download through wget, to force people to accept their licence
>agreement.
>>
>
>>>On Tue, Apr 4, 2017 at 7:37 AM, Edward Koenig <kingbeowulf at gmail.com>
>wrote:
>
>>
>> Yes, old news discussed some time ago here. Some download sites
>require
>> extra steps and therefore you can't use wget, curl or any SBo
>inspired
>> automated tool.  Nothing any of us can do; you will have to yell at
>Oracle.
>>
>> -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
>you
>> 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,
>​uses
>java.Slackbuild in /extra to build a package, and installs it.  This is
>my
>wget command to download the latest JAVA once the script has located
>the
>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 ​
>download
>​ URL​
>.
>​  I found this by using HttpFox on Firefox to see what was happening
>when
>I clicked through the website and downloaded via a browser.  It's
>important
>to understand that you are still accepting the license agreement by
>using
>wget to download it.
>
>​I suspect Slackbuilds is against this practice for a number of
>reasons,
>especially the possibly too magical discovery of URLs via text parsing
>of
>HTML.  But it's something to consider.  Another idea might be an
>optional
>WGET_OPTIONS="" field in the jdk.info file.  That would tell automated
>tools like sbopkg what extra command line options are needed to
>download
>from the URL given in jdk.info.
>>Eric

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,
-- 
Arnaud.
-------------- 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