<html><head></head><body><div class="gmail_quote">Le 4 avril 2017 19:17:13 GMT+02:00, Eric Pratt <eric.b.pratt@gmail.com> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif"><div class="gmail_default">​<div class="gmail_default" style="display:inline">​</div><span style="font-family:arial,sans-serif">On Tue, Apr 4, 2017 at 7:33 AM, Evandro Alves</span><span style="font-family:arial,sans-serif"> </span><span dir="ltr" style="font-family:arial,sans-serif"><<a href="mailto:evandrofisico@gmail.com" target="_blank">evandrofisico@gmail.com</a>></span><span style="font-family:arial,sans-serif"> </span><span style="font-family:arial,sans-serif">wrote:</span></div><blockquote class="gmail_quote" style="font-family:arial,sans-serif;margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Fellype,<br /><br /></div>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.<br /></div><div class="gmail_extra"><div></div></div></blockquote></div><div class="gmail_extra"><br /></div><div class="gmail_extra"><div class="gmail_default" style="font-family:tahoma,sans-serif">​<div class="gmail_default" style="display:inline">​</div><span style="font-family:arial,sans-serif">On Tue, Apr 4, 2017 at 7:37 AM, Edward Koenig</span><span style="font-family:arial,sans-serif"> </span><span dir="ltr" style="font-family:arial,sans-serif"><<a href="mailto:kingbeowulf@gmail.com" target="_blank">kingbeowulf@gmail.com</a>></span><span style="font-family:arial,sans-serif"> </span><span style="font-family:arial,sans-serif">wrote:</span></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-"><br /></span>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.<br /><br />-Ed</blockquote><div class="gmail_default" style="font-family:tahoma,sans-serif">​</div><div class="gmail_quote"><div class="gmail_default" style="font-family:tahoma,sans-serif;display:inline">​​</div>On Tue, Apr 4, 2017 at 9:07 AM, Matteo Bernardini <span dir="ltr"><<a href="mailto:matteo.bernardini@gmail.com" target="_blank">matteo.bernardini@gmail.com</a>></span> wrote:<br /><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Fellype,<br />
<br />
it's written in the README<br />
<br />
<a href="https://slackbuilds.org/repository/14.2/development/jdk/" rel="noreferrer" target="_blank">https://slackbuilds.org/<wbr />repository/14.2/development/<wbr />jdk/</a><br />
<br />
remember it's assumed that you have read the READMEs of the things you<br />
build from SBo, also if you use some third party automated tool with<br />
the SBo's repository.<br />
<span class="gmail-HOEnZb"><font color="#888888"><br />
Matteo<br />
</font></span><div class="gmail-HOEnZb"><div class="gmail-h5"></div></div></blockquote><div><span style="font-family:tahoma,sans-serif">​</span></div><div><div><div class="gmail_default" style="font-family:tahoma,sans-serif;display:inline">​You can definitely download JDK via wget.  ​</div>I have a script that <div class="gmail_default" style="font-family:tahoma,sans-serif;display:inline">​</div>discovers the latest JDK, downloads it, <div class="gmail_default" style="font-family:tahoma,sans-serif;display:inline">​uses </div>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:</div><div><br /></div><div>  wget -q --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" "${JAVA_DOWNLOAD_URL}"</div><div><br /></div><div>This works as long as you find the actual download URL<div class="gmail_default" style="font-family:tahoma,sans-serif;display:inline">​ and​</div> not a URL that redirects to the <div class="gmail_default" style="font-family:tahoma,sans-serif;display:inline">​actual ​</div>download<div class="gmail_default" style="font-family:tahoma,sans-serif;display:inline">​ URL​</div>.<div class="gmail_default" style="font-family:tahoma,sans-serif;display:inline">​  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.</div></div></div><div><div class="gmail_default" style="font-family:tahoma,sans-serif;display:inline"><br /></div></div><div><div class="gmail_default" style="font-family:tahoma,sans-serif">​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 <a href="http://jdk.info">jdk.info</a> file.  That would tell automated tools like sbopkg what extra command line options are needed to download from the URL given in <a href="http://jdk.info">jdk.info</a>.</div><div class="gmail_default" style="font-family:tahoma,sans-serif">​</div></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Eric</div></div></div></div>
</blockquote></div><br clear="all">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...<br>
<br>
My 2 cents,<br>
-- <br>
Arnaud.</body></html>