<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>9158</bug_id>
          
          <creation_ts>2016-02-23 21:48:26 +0000</creation_ts>
          <short_desc>Cannot build openjdk-8 on fido due to missing autotools patch</short_desc>
          <delta_ts>2016-09-30 16:38:31 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>1.8.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.8.3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Henry Bruce">henry.bruce</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>59412</commentid>
    <comment_count>0</comment_count>
    <who name="Henry Bruce">henry.bruce</who>
    <bug_when>2016-02-23 21:48:26 +0000</bug_when>
    <thetext>openjdk-8 requires the &quot;Allow recipe-individual configure scripts&quot; autotools.bbclass patch (see commit id 753f31e) that has been applied to master, but not fido. 

As a result openjdk-8 will build on master but not on fido.

Part of the openjdk-8 work includes a start at removing the x11 dependency to allow truly headless builds (not yet completed). As fido is still supported, it should benefit from this progress.

Steps to reproduce:
- get poky and meta-java from master
- added meta-java path to bblayers.conf
- add the following to local.conf
   CORE_IMAGE_EXTRA_INSTALL += &quot;openjre-8&quot;
   PREFERRED_PROVIDER_virtual/java-initial-native = &quot;cacao-initial-native&quot;
   PREFERRED_PROVIDER_virtual/java-native = &quot;jamvm-native&quot;
   PREFERRED_PROVIDER_virtual/javac-native = &quot;ecj-bootstrap-native&quot;
- bitbake core-image-minimal
- see error below

| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: SITE files [&apos;endian-little&apos;, &apos;common-linux&apos;, &apos;common-glibc&apos;, &apos;bit-64&apos;, &apos;x86_64-linux&apos;, &apos;common&apos;]
| DEBUG: Executing shell function autotools_preconfigure
| DEBUG: Shell function autotools_preconfigure finished
| DEBUG: Executing python function autotools_copy_aclocals
| DEBUG: Python function autotools_copy_aclocals finished
| DEBUG: Executing shell function do_configure
| ERROR: no configure script found at build/tmp/work/x86_64-linux/openjdk-8-native/72b05-r0/jdk8u-e8bed1496ff2/configure</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59798</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-03-08 17:07:23 +0000</bug_when>
    <thetext>I&apos;m a bit concerned about the impact of that patch - it&apos;s non-trivial.  Would it be possible for meta-java&apos;s fido branch to ship its own copy of the autotools class (renamed to avoid conflicts)?  I can produce a patch if you could test it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59808</commentid>
    <comment_count>2</comment_count>
    <who name="Henry Bruce">henry.bruce</who>
    <bug_when>2016-03-08 21:19:59 +0000</bug_when>
    <thetext>I understand you concern regarding the complexity of the patch. 

meta-java does not have yocto release branches (just master and master-next) so fido specific approach would not work.

iot-devkit and ostro teams forked meta-java to get openjdk-8 building before it became available upstream. I can look at those options as place holder.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59809</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-03-08 21:43:25 +0000</bug_when>
    <thetext>Well, easy enough to add a fido branch.  Or, add the new class to master and always use it with a note that it&apos;s an interim solution until fido is unsupported.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65403</commentid>
    <comment_count>4</comment_count>
    <who name="Henry Bruce">henry.bruce</who>
    <bug_when>2016-08-22 17:12:47 +0000</bug_when>
    <thetext>Happy to close this as &quot;Will Not Fix&quot; as fido is now in community support.
Also recent changes to meta-java means it now only builds with krogoth.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66766</commentid>
    <comment_count>5</comment_count>
    <who name="Henry Bruce">henry.bruce</who>
    <bug_when>2016-09-30 16:38:31 +0000</bug_when>
    <thetext>Closing as meta-java requires krogoth or later.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>