All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* Re: [meta-java] openjdk-7-jre was skipped: missing required distro feature ['x11'] (not in DISTRO_FEATURES)
  2015-10-16 13:35 [meta-java] openjdk-7-jre was skipped: missing required distro feature ['x11'] (not in DISTRO_FEATURES) Federico Pietro Briata
@ 2015-10-16  9:45 ` Maxin B. John
  2015-10-16 15:09 ` Jens Rehsack
  1 sibling, 0 replies; 5+ messages in thread
From: Maxin B. John @ 2015-10-16  9:45 UTC (permalink / raw
  To: Federico Pietro Briata; +Cc: yocto

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 <mario@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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [meta-java] openjdk-7-jre was skipped: missing required distro feature ['x11'] (not in DISTRO_FEATURES)
@ 2015-10-16 13:35 Federico Pietro Briata
  2015-10-16  9:45 ` Maxin B. John
  2015-10-16 15:09 ` Jens Rehsack
  0 siblings, 2 replies; 5+ messages in thread
From: Federico Pietro Briata @ 2015-10-16 13:35 UTC (permalink / raw
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1161 bytes --]

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

regards
federico

[-- Attachment #2: Type: text/html, Size: 1455 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [meta-java] openjdk-7-jre was skipped: missing required distro feature ['x11'] (not in DISTRO_FEATURES)
  2015-10-16 13:35 [meta-java] openjdk-7-jre was skipped: missing required distro feature ['x11'] (not in DISTRO_FEATURES) Federico Pietro Briata
  2015-10-16  9:45 ` Maxin B. John
@ 2015-10-16 15:09 ` Jens Rehsack
  2015-10-16 19:21   ` Federico Pietro Briata
  1 sibling, 1 reply; 5+ messages in thread
From: Jens Rehsack @ 2015-10-16 15:09 UTC (permalink / raw
  To: Federico Pietro Briata; +Cc: yocto


> Am 16.10.2015 um 15:35 schrieb Federico Pietro Briata <federicobriata@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@gmail.com



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [meta-java] openjdk-7-jre was skipped: missing required distro feature ['x11'] (not in DISTRO_FEATURES)
  2015-10-16 15:09 ` Jens Rehsack
@ 2015-10-16 19:21   ` Federico Pietro Briata
  2015-10-16 19:26     ` Jens Rehsack
  0 siblings, 1 reply; 5+ messages in thread
From: Federico Pietro Briata @ 2015-10-16 19:21 UTC (permalink / raw
  To: Jens Rehsack; +Cc: yocto

2015-10-16 16:09 GMT+01:00, Jens Rehsack <rehsack@gmail.com>:
>
>> Am 16.10.2015 um 15:35 schrieb Federico Pietro Briata
>> <federicobriata@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@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?

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.

thanks
federico


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [meta-java] openjdk-7-jre was skipped: missing required distro feature ['x11'] (not in DISTRO_FEATURES)
  2015-10-16 19:21   ` Federico Pietro Briata
@ 2015-10-16 19:26     ` Jens Rehsack
  0 siblings, 0 replies; 5+ messages in thread
From: Jens Rehsack @ 2015-10-16 19:26 UTC (permalink / raw
  To: Federico Pietro Briata; +Cc: yocto


> Am 16.10.2015 um 21:21 schrieb Federico Pietro Briata <federicobriata@gmail.com>:
> 
> 2015-10-16 16:09 GMT+01:00, Jens Rehsack <rehsack@gmail.com>:
>> 
>>> Am 16.10.2015 um 15:35 schrieb Federico Pietro Briata
>>> <federicobriata@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@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@gmail.com



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-10-16 19:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-16 13:35 [meta-java] openjdk-7-jre was skipped: missing required distro feature ['x11'] (not in DISTRO_FEATURES) Federico Pietro Briata
2015-10-16  9:45 ` Maxin B. John
2015-10-16 15:09 ` Jens Rehsack
2015-10-16 19:21   ` Federico Pietro Briata
2015-10-16 19:26     ` Jens Rehsack

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.