Le 31/05/2015 13:56, Fernando de Oliveira a écrit :
> [snip]
> 
> One thing I noticed, as you wrote in the OJDK page, all the source
> packages are named after OJDK itself:
> 
> {{{
> The following files may be downladed from the OpenJDK mercurial
> repository using the addresses
> http://hg.openjdk.java.net/jdk8u/jdk8u/<component>/archive/jdk8u45-b14.tar.bz2,
> where <component> is the name of the JVM component (corba, hostspot, and
> so on), but that involves renaming the downloaded files, and renaming
> the extracted directories. For convenience, the BLFS editors have made
> the files available in an LFS website.
> }}}
> 
> I would like to propose changes for the page, for the *next* release,
> only, jdk8u60-bSomeBuildNumber.
> 
> Hope you don't mind for my suggestions, and of course, you can just
> ignore them.
> 
> In my build script, I am using the upstream files, then download with:
> 
> {{{
>   package=jdk8u45-b14.tar.bz2 &&
>   URL=http://hg.openjdk.java.net/jdk8u/jdk8u &&
>   URL_END=archive/$package &&
>   wget -c $URL/$URL_END &&
>   md5sum $package > OpenJDK-1.8.0.45-b14.md5 &&
>   for additional in corba hotspot jaxp jaxws langtools jdk nashorn
>   do
>     wget -c $URL/$additional/$URL_END -O $additional-$package &&
>     md5sum $additional-$package >> OpenJDK-1.8.0.45-b14.md5
>   done &&
> }}}
> 
> Of course this could be still further simplified.
> 
> This suggests to me that we could use the same stile as in Xorg libs and
> other Xorg pages (names, below are not well thought, just examples).
> Bruce is adopting same convention for KDE Frameworks (forgot the exact
> name):
> 
> {{{
> cat > jdk8u45-b14.md5 << "EOF"
> jdk8u45-b14.tar.bz2  <jdk8u45-b14.tar.bz2 md5sum>
> ...
> 
> nashorn-jdk8u45-b14.tar.bz2  <nashorn-jdk8u45-b14.tar.bz2 md5sum>
> EOF
> 
> wget ... &&
> 
> md5sum jdk8u45-b14.md5 &&
> 
> tar -xf jdk8u45-b14.tar.bz2 &&
> cd jdk8u45-b14 &&
> 
> for additional in corba hotspot jaxp jaxws langtools jdk nashorn
> do
>   tar -xf ../$additional-jdk8u45-b14.tar.bz2 &&
>   mv -v $additional-jdk8u45-b14 $additional
> done; unset additional &&
> 
> ...
> 
> }}}
> 
> Instead of mv, perhaps it could be ln -sv?
> 
> Well, these can also be simplified, but I wanted only to give the idea
> for your consideration, I am sure that if you accepted the idea, your
> final layout would be much simpler than mine.
> 
> Sorry to bother you with this.
> 

Thanks very much for that post, Fernando. I'm not bothered at all :-)

Actually, there are 3 alternatives for downloading the files. I summarize them
so that it is recorded on the list:
- maintain them on anduin, as we do now, and provide the anduin link to the 
book.
- using wget as described by Fernando. This adds wget as a dep. I guess most
people would not care, since wget is a basic package, which I guess is
installed by almost everybody.
- using mercurial to get jdk8u45-b14, and downloading all the other needed
files with "sh get_source.sh". This requires to install mercurial first.

2 notes:
- maintaining some files on anduin has to be done anyway, because we provide
binaries. Also, the jtreg tarball is rebuilt every other day or so, and is not
guaranteed to work the same as when the BLFS page was written, so it is better
to have it on anduin too. Actually, jtreg can be built from sources, but it
needs a half dozen specific deps, which I think is not worth it.
- the 2nd and 3rd method brake the (implicit and not always respected) rule
that all the needed files should be downloaded before starting to use the
instructions in the book.

I am not sure what is the best alternative. I would say the same as Fernando
(2nd alternative), but see notes above...

Thoughts?

Pierre
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to