BLFS Trac wrote:
#9929: OpenJDK-1.8.0.152 -----------------------------+------------------------------ Reporter: pierre.labastie | Owner: pierre.labastie Type: enhancement | Status: assigned Priority: normal | Milestone: 8.2 Component: BOOK | Version: SVN Severity: normal | Resolution: Keywords: | -----------------------------+------------------------------Comment (by pierre.labastie): Replying to [comment:5 Krejzi]: > Also, as a side note. I was looking at getting the proper version using BLFS currency scripts. The problem with openjdk detection is that it detects packages available on LFS servers, not the actual upstream ones. > > However, the links in the jdk page [1] are integrated somehow differently from other packages, and because of that they do not appear in wget-list. If you could make the download part look more like other packages, the currency could be used to fetch every new version. Would that be a problem? The layout can certainly be changed (it would be nice to have those in wget-list), but the currency problem lies elsewhere: there are new "8uxxx- byy" tags every week or so, but those are not releases. The only way to know which xxx/yy combination is a true release is to monitor the http://www.oracle.com/technetwork/java/javase/overview/index.html site. Also their issue tracking system is hard to use: identical issues do not have the same number if they are applied to different xxx (for example 8u151 and 8u152) or different version (8 or 9).
The script can be changes to use http://www.oracle.com/technetwork/java/javase/overview/index.html and look for the line(s) with the word 'latest'. Then take the largest digit-dot-digit-dot-digit on any lines.
Unfortunately, they seem to be using a windows text format so the line in question right now is about 18000 characters long. The first match of digit-dot-digit-dot-digit is the correct one.
We have to use that technique on several sites now. For example sourceforge. However sourceforge is a bit more sane.
This works for now with version 9: grep latest /tmp/index.html|sed -r 's/^.*(9\.[0-9\.]+) .*$/\1/' It will fail when they go to version 10. -- Bruce -- http://lists.linuxfromscratch.org/listinfo/blfs-book FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
