Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Tudor Holton <tudor@smartguide.com.au>
To: buildroot@busybox.net
Subject: [Buildroot] Question about current OpenJDK source site.
Date: Mon, 25 Nov 2019 15:46:03 +1100	[thread overview]
Message-ID: <375e82152d2d6fa19fd628e83de963a7@smartguide.com.au> (raw)
In-Reply-To: <CADvTj4otBBgFvdbgJLydXU1t7CmRHVipZMtgVHh=+Ytrg+nRnA@mail.gmail.com>

On 2019-11-25 12:56, James Hilliard wrote:
> On Sun, Nov 24, 2019 at 6:29 PM Tudor Holton <tudor@smartguide.com.au> 
> wrote:
>> 
>> Hello all,
>> 
>> I'm working on upstreaming some development we've done on OpenJDK for
>> Buildroot over the past few years and I'm in the process of trying to
>> simplifying the diffs for submission.
>> 
>> I have a simple question which I'm directing towards Adam Duskett, but
>> I'm open to answers for anyone who contributed to making this 
>> decision.
>> 
>> I understand, historically, that getting a mirrorable copy of OpenJDK
>> was hard because of previous issues with Mercurial forests.  Our own
>> previous versions of this package have used an intermediate Mercurial
>> forest consolidation server so we can easily restart source downloads.
>> However, recent developments in Buildroot makes this no longer an 
>> issue.
>> 
>> I'm hesitant to make a diff submission that changes OPENJDK_SITE, but 
>> I
>> cannot seem to find any authoritative reference that says that source
>> downloads should come from anywhere other than java.net.  The current
>> release comes from github.com/AdoptOpenJDK which references
>> adoptopenjdk.net.  AdoptOpenJDK.net states that they are "a community 
>> of
>> Java User Group (JUG) members, Java developers and vendors" but not
>> anything that is conclusive about their relationship with Oracle or
>> upstream OpenJDK itself, and java.net never references them in any 
>> way.
>> This makes me suspicious about the guarantees of the source.
> AdoptOpenJDK is generally the recommended source for java from what
> I've seen, it's fairly well know and run by companies such as Red Hat 
> last
> I checked.

Thanks for your input.

I did a quick package management check:
Debian: Pulls from openjdk.java.net
Ubuntu: 
https://git.launchpad.net/~openjdk/ubuntu/+source/openjdk/+git/openjdk 
which looks like hg.openjdk.java.net/jdk-updates
Fedora: References openjdk.java.net and lists their additional patches

>> 
>> Why does the current version of the OpenJDK package* use AdoptOpenJDK 
>> as
>> the upstream source rather than the official source release at
>> https://hg.openjdk.java.net/[project]/[release]/archive?
> The java.net site is closed/deprecated from the looks of it.

The official download of Java SE 13 at 
https://www.oracle.com/technetwork/java/javase/downloads/jdk13-downloads-5672538.html

says:

"Oracle also provides the latest OpenJDK release under the open source 
GPL License at jdk.java.net."

While java.net itself is deprecated as a website ("We're sorry the 
java.net site has closed."), the domain as a whole is still technically 
the official source as it hosts all java-related things in other ways, 
including current source code.

If you go to jdk.java.net, it's still working, with no indication 
anything is deprecated, and links go to openjdk.java.net which house the 
Mercurial forests with up-to-the-minute source code and official "GA" 
releases.

Additionally, AdoptOpenJDK says "AdoptOpenJDK has the same source code + 
minor patches (under the same GPLv2+CE license) as OpenJDK"

So, I conclude that AdoptOpenJDK is a downstream release, since they 
applied patches which are not necessarily upstream from the OpenJDK 
itself, which makes the "release" less consistent with upstream and more 
aimed at a specific use case, which isn't necessarily what Buildroot is 
aimed at, from our experience.

Furthermore, the current openjdk package in Buildroot has no patch 
files, which suggests it is pure when it isn't (since AdoptOpenJDK has 
applied patches).  This makes patching during Buildroot compilation more 
difficult and caused our earlier attempts to move to Buildroot mainline 
to fail.   This is the main reason we chose to go to the source (without 
patches) so that we could maintain a clear patchset that works with 
Buildroot.

>> 
>> Is this just historic or is there some intended reason to use a
>> downstream source?
> From what I've seen it's generally not recommended to use oracle 
> distributions
> due to unstable download urls. For example you can no longer download
> Java 8 from oracle without an account since the latest version they 
> distribute
> moved to commercial licensing.
>> 
>> Regards,
>> Tudor Holton
>> 
>> P.S. For clarity, I am specifically referring to packages/openjdk and
>> not packages/openjdk-bin.  I understand the need to obtain binaries 
>> from
>> certain sources.
>> _______________________________________________
>> buildroot mailing list
>> buildroot at busybox.net
>> http://lists.busybox.net/mailman/listinfo/buildroot
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

      reply	other threads:[~2019-11-25  4:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-25  0:15 [Buildroot] Question about current OpenJDK source site Tudor Holton
2019-11-25  1:56 ` James Hilliard
2019-11-25  4:46   ` Tudor Holton [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=375e82152d2d6fa19fd628e83de963a7@smartguide.com.au \
    --to=tudor@smartguide.com.au \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox