Build Machine(s) & Java

Ryan Schmidt ryandesign at macports.org
Wed Jul 5 12:38:50 UTC 2017


On Jul 5, 2017, at 04:00, Chris Jones wrote:

> On 05/07/17 01:14, Ryan Schmidt wrote:
>> On Jul 3, 2017, at 13:29, Mohamed Issa wrote:
>>> Do the build machines have Java installed? As it stands right now, any changes to the Bazel port (or others like it) will cause build failures. So I'm wondering what can be done to avoid that.
>> I haven't installed any separate Java on the build machines. Only what came with macOS, if any, is there.
>> There are some open tickets about this, some of which may date back to our previous build infrastructure.
>> Should I install Java, or a different Java, on them? If so, which one(s)? Because I know Apple distributed some versions of Java, and then there are others distributed by Oracle now.
> 
> Unless I am mis-remembering Apple stopped shipping any java version with OSX a while back. So unless you manually install something the build bots will not have any java version available.

Right. But for at least some of those macOS versions where Apple does not include Java anymore, a legacy version can still be downloaded and installed from Apple's site:

https://support.apple.com/kb/DL1572?viewlocale=en_US&locale=en_US

Should that go on those buildbot workers, or should the Oracle version be used?

What about on those macOS versions where the now-legacy Java was included -- should that be used, or should it be upgraded to the Oracle version?

Or can they both be installed? And if so, should we be doing that?

I seem to recall that there are differences between the Apple and Oracle distributions w.r.t. where things are installed. Is that important? Does our java portgroup work with both versions?

What happens if our buildbot has one Java installed but the user has a different Java installed? Does everything still work if the user gets a binary that was built on our servers?


> versions now should be downloaded direct from Oracle.
> 
> https://support.apple.com/en-gb/HT204036
> 
> I believe if you just run `java` in a terminal, it will provide a pop up that wll take you to the correct download location for that OSX release.



More information about the macports-dev mailing list