Hi,

On Fri, Oct 16, 2015 at 03:35:22PM +0200, Federico Pietro Briata wrote:
>
>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

These lines were added by this commit:

---
commit 24b98ac3a6ca7fadfba24709aac8d0b71316e299
Author: Mario Domenech Goulart <ma...@ossystems.com.br>
Date:   Tue Aug 18 17:14:30 2015 -0300

   Avoid parse time errors due to dependency on x11, for distros without x11
        
   BitBake raises some errors when processing recipes that depend on x11
   for distros that don't have x11 in DISTRO_FEATURES. To work around
   that issue, REQUIRED_DISTRO_FEATURES = "x11" (from
   distro_features_check.bbclass) has been set for the following recipes:
                            
    * cacao
    * classpath
    * jamvm
    * openjdk-6-release
    * openjdk-7-release
                                                   
 That makes BitBake skip those recipes during the cache generation
 (they'd still be parsed, but ignored).
---

Even if we revert this commit, the openjdk-7-jre build will fail 
due to dependency on gtk+, libxt...etc. 

Recently Jens Rehsack did some work in this direction for icedtea7:
http://lists.openembedded.org/pipermail/openembedded-devel/2015-October/103849.html

We will have to follow that way to get rid of the x11 dependency in other 
packages.

>
>regards
>federico

Best Regards,
Maxin
-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to