I'm trying to build the latest Edison image from source.
In the end I will remove most of the bundled packages so removing them early is an acceptable solution to any errors that may occur.
I'm building the image using the following docker scripts.
After running these commands
source ./oe-init-build-env ../build_edison/ && \
bitbake -c fetchall edison-image u-boot
I get this error
ERROR: Fetcher failure for URL: 'http://icedtea.classpath.org/hg/release/icedtea7-forest-2.1/archive/f89009ada191.tar.bz2;name=openjdk;unpack=false'. Checksum mismatch!
File: '/home/edison/build_edison/downloads/f89009ada191.tar.bz2' has md5 checksum 2bc941373ca4b033c9a25f972eec7858 when c26bbb33addfaeb14d28a1329b4b5a3e was expected
File: '/home/edison/build_edison/downloads/f89009ada191.tar.bz2' has sha256 checksum 5efd8e66f18fcbf45527bcc74aa3e6ed11f66bc793c88e3841925c4acb4827ba when 54a0ef02b56b265b4122324e08a33c42ececbf2a300ada260611e7b6ccdba96d was expected
If this change is expected (e.g. you have upgraded to a new version without updating the checksums) then you can use these lines within the recipe:
SRC_URI[openjdk.md5sum] = "2bc941373ca4b033c9a25f972eec7858"
SRC_URI[openjdk.sha256sum] = "5efd8e66f18fcbf45527bcc74aa3e6ed11f66bc793c88e3841925c4acb4827ba"
Otherwise you should retry the download and/or check with upstream to determine if the file has become corrupted or otherwise unexpectedly modified.
ERROR: Function failed: Fetcher failure for URL: 'http://icedtea.classpath.org/hg/release/icedtea7-forest-2.1/archive/f89009ada191.tar.bz2;name=openjdk;unpack=false'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/edison/build_edison/tmp/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/temp/log.do_fetch.77672
NOTE: recipe icedtea7-native-2.1.3-r1.0: task do_fetch: Failed
ERROR: Task 370 (/home/edison/build_edison/../poky/meta-java/recipes-core/icedtea/icedtea7-native_2.1.3.bb, do_fetch) failed with exit code '1'
Since I won't use java I tried to remove it:
Append one line to build_edison/conf/local.conf:
PACKAGE_EXCLUDE += "openjdk-8-jdk"
Removed this line from build_edison/conf/bblayers.conf:
Running same bitbake as above...
ERROR: Nothing RPROVIDES 'openjdk-8-jdk' (but /home/edison/build_edison/../poky/meta-intel-edison/meta-intel-edison-distro/recipes-core/images/edison-image.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'openjdk-8-jdk' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['openjdk-8-jdk']
ERROR: Required build target 'edison-image' has no buildable providers.
Missing or unbuildable dependency chain was: ['edison-image', 'openjdk-8-jdk']
But edison-image.bb doesn't contain any reference to openjdk.
This is what I found:
meta-intel-iot-devkit/recipes-core/images/iot-devkit-image.bb:IMAGE_INSTALL += "openjdk-8-jdk"
meta-intel-iot-devkit/recipes-core/images/edison-image.bbappend:IMAGE_INSTALL += "openjdk-8-jdk"
meta-java/recipes-core/openjdk/openjdk-8_60b27-2.5.4.bb:# To enable compiling on target, install openjdk-8-jdk package.
I'm a bit confused here.
Should PACKAGE_EXCLUDE prevent the other lines found above?
My end goal is to get a successful build that I can flash to the Edison module.