Build Machine(s) & Java

Chris Jones jonesc at hep.phy.cam.ac.uk
Wed Jul 5 12:46:58 UTC 2017


Hi,

On 05/07/17 13:38, Ryan Schmidt wrote:
> 
> 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?

All good questions. I don't have answers. Personally I avoid having java 
installed at all on my machines (probably should have said this before) 
as its a can of worms I'm not keen to open. It wouldn't be completely 
unreasonable to me to have a policy not to install java at all on the 
buildbots, and for ports that require it (how many are there b.t.w. ?) 
flag those ports as ones not to build on the build bots at all, and 
require the user to build themselves with whatever java version they prefer.

Chris


More information about the macports-dev mailing list