5 Replies Latest reply on Jan 6, 2015 4:02 PM by Andre.M

    bitbake and recipes troubles

    Andre.M

      i wrote a recipe to have java packaged (java_1.8.0.bb) and placed the java source file in bitbake DL_DIR, a download from oracles web does not work because one need to accept the license...

       

      HOMEPAGE = ""
      SECTION = "support"
      LICENSE = ""
      LIC_FILES_CHKSUM = "file://${WORKDIR}/jdk${PV}_25/LICENSE;md5=98f46ab6481d87c4d77e0e91a6dbc15f"
      SUMMARY = ""

      # require the file within DL_DIR
      SRC_URI = "file://jdk-8u25-linux-i586.tar.gz"
      SRC_URI[md5sum] = "b5b16247f66643727d9b6d4bc7c5efda"
      SRC_URI[sha256sum] = "17f396a541db09c732032185f10f9c6eb42ac7b5776814602342de9655b2e0e2"

      S = "${WORKDIR}"

      do_install() {
          install -d ${D}${exec_prefix}/lib/jvm
          mv jdk${PV}_25 ${D}${exec_prefix}/lib/jvm
      }

       

      1. problem

      "WARNING: Getting checksum for java SRC_URI entry jdk-8u25-linux-i586.tar.gz: file not found except in DL_DIR"

       

      but the file exists in this location and bitbake is able to proceed...

      -rw-rw-r--  1 build build 162406866 Jän  2 15:29 jdk-8u25-linux-i586.tar.gz

      -rw-rw-r--  1 build build         0 Jän  2 15:32 jdk-8u25-linux-i586.tar.gz.done

      why is bitbake not able to get the checksum?

       

      2. problem

      ERROR: QA Issue: File '/usr/lib/jvm/jdk1.8.0_25/jre/lib/i386/libjfxwebkit.so' from java was already stripped, this will prevent future debugging! [already-stripped]

      ERROR: QA Issue: File '/usr/lib/jvm/jdk1.8.0_25/lib/missioncontrol/libcairo-swt.so' from java was already stripped, this will prevent future debugging! [already-stripped]

      ERROR: QA Issue: java: Files/directories were installed but not shipped

      which changes do i need to avoid this messages?

       

      3. problem

      i tried to debug with bitbake -f -n java and thought bitbake would force a run but the result is now

      "WARNING: /home/build/yocto/meta-flexsys/recipes-support/java/java_1.8.0.bb.do_build is tainted from a forced run"

      everytime i run bitbake java

       

      which steps must be done to solve that message?

      whats the best way to test a package and force bitbake to build a package again?