[yocto] [meta-java] openjdk-7-jre was skipped: missing required distro feature ['x11'] (not in DISTRO_FEATURES)

Jens Rehsack rehsack at gmail.com
Fri Oct 16 12:26:24 PDT 2015


> Am 16.10.2015 um 21:21 schrieb Federico Pietro Briata <federicobriata at gmail.com>:
> 
> 2015-10-16 16:09 GMT+01:00, Jens Rehsack <rehsack at gmail.com>:
>> 
>>> Am 16.10.2015 um 15:35 schrieb Federico Pietro Briata
>>> <federicobriata at gmail.com>:
>>> 
>>> Hi Folks,
>>> I'm trying to compile java without x11 and unfortunately also without
>>> success..
>>> 
>>> I've added in my local.conf:
>>> 
>>> DISTRO_FEATURES_remove = "x11"
>>> # Java build settings
>>> PREFERRED_PROVIDER_virtual/java-native = "jamvm-native"
>>> PREFERRED_PROVIDER_virtual/javac-native = "ecj-bootstrap-native"
>>> PREFERRED_VERSION_openjdk-7-jre = "85b01-2.6.1"
>>> PREFERRED_VERSION_icedtea7-native = "2.1.3"
>>> PREFERRED_PROVIDER_openjdk-7-jre = "openjdk-7-jre"
>>> 
>>> but I get this error
>>> 
>>> ERROR: Nothing RPROVIDES 'openjdk-7-jre' (but
>>> /home/f34389b/yocto/PCM/R5.0/sources/meta-fede/recipes-images/images/fede-java-test.bb
>>> RDEPENDS on or otherwise requires it)
>>> ERROR: openjdk-7-jre was skipped: missing required distro feature ['x11']
>>> (not in DISTRO_FEATURES)
>>> 
>>> Patching those files:
>>> meta-java/recipes-core/classpath/classpath.inc
>>> meta-java/recipes-core/jamvm/jamvm.inc
>>> meta-java/recipes-core/jamvm/jamvm_git.bb
>>> meta-java/recipes-core/openjdk/openjdk-common.inc
>>> poky/meta/recipes-graphics/xorg-lib/xorg-lib-common.inc
>>> 
>>> like this:
>>> -REQUIRED_DISTRO_FEATURES = "x11"
>>> +#REQUIRED_DISTRO_FEATURES = "x11"
>>> 
>>> seems to be a temporary workaround
>> 
>> Hi Federico,
>> 
>> unfortunately I missed
>> https://github.com/rehsack/meta-java/commit/11e30f2bf198bcad91c0d14104fcd8b91255ad69
>> when submitting my patchset.
>> 
>> I'm working on some jdk7 native fixes and layer cleanup and will send a new
>> patchset later today.
>> 
>> I do not intend to provide jdk7 for cross-compiling support without x11 -
>> when you want no-x11, from my point of view, go to jdk8.
>> 
>> Cheers
>> --
>> Jens Rehsack - rehsack at gmail.com
>> 
>> 
> 
> Hi Jens,
> 
> my machine it's a arm7 Imx6 display less.
> 
> I choose jdk7 because I thought was the best for my target, so for you
> should I go to jdk8?

Not for me, for yourself if you want to build an x11-less distro.

> Anyway I've compiled jdk7 now, but I'm not sure if I've to use some
> specific configuration set for build with no-x11.

I patched the jdk8 I submitted to build without x11, not because it's display less,
but because it uses EGL and framebuffer.

Because jdk8 requires https://github.com/rehsack/poky/commit/04f606795c29705e4e053895f1f007e3b4e3cd17 - you have to cherry-pick the jdk8 patch and revert-x11-disto-prereq from https://github.com/rehsack/meta-java/commits/master to use jdk8.

Cheers
-- 
Jens Rehsack - rehsack at gmail.com




More information about the yocto mailing list