Slightly adjusted the patch of Mikael Urankar to make sure it only
affects __arm__ builds.
The patch is similar to what fixed openjdk8 in
commit e13c811372.
Not bumping portrevision as nothing changes for existing pkgs.
PR: 255662
Approved by: java@ (maintainer timeout)