Skip to content
Snippets Groups Projects
  1. Sep 24, 2021
  2. Sep 23, 2021
  3. Sep 22, 2021
  4. Sep 21, 2021
  5. Sep 17, 2021
  6. Sep 15, 2021
  7. Sep 14, 2021
  8. Sep 13, 2021
  9. Sep 10, 2021
  10. Sep 09, 2021
  11. Sep 08, 2021
  12. Sep 07, 2021
    • Esben Haabendal's avatar
      openjdk-7: Fix recipe parsing for riscv32 machines · 2f83a50d
      Esben Haabendal authored
      
      Using current meta-java in a project configured for a riscv32 machine gives
      the following error:
      
          ERROR: ExpansionError during parsing /home/esben/ostc/openharmony/poky/meta-java/recipes-core/openjdk/openjdk-7_99b00-2.6.5.bb
          Traceback (most recent call last):
            File "Var <LLVM_CONFIGURE_ARCH>", line 1, in <module>
            File "/home/esben/ostc/openharmony/poky/meta-java/classes/openjdk-build-helper.bbclass", line 86, in openjdk_build_helper_get_llvm_configure_arch(d=<bb.data_smart.DataSmart object at 0x7fc729388940>):
                   else:
              >        if 'shark' in d.getVar('PACKAGECONFIG').split():
                           bb.warn("%s does not support %s in Shark builds yet" % (d.getVar('PN'), arch) );
          bb.data_smart.ExpansionError: Failure expanding variable LLVM_CONFIGURE_ARCH, expression was ${@openjdk_build_helper_get_llvm_configure_arch(d)} which triggered exception AttributeError: 'NoneType' object has no attribute 'split'
      
      Which is caused by the attempt to expand PACKAGECONFIG variable, which is only
      set for selected architectures.  Defaulting it to empty is a sane fix to that.
      
      A patch for meta-java doing the same have been submitted.
      
      Signed-off-by: default avatarEsben Haabendal <esben.haabendal@huawei.com>
      2f83a50d
    • Esben Haabendal's avatar
      meta-java: Add dynamic layer for staging changes to meta-java recipes · dc2c2dbd
      Esben Haabendal authored
      
      We don't use meta-java in OHOS, and are re-using meta-ohos-staging in
      meta-openharmony, which does use meta-java.
      So in order to allow staging changes to meta-java recipes, we need this
      dynamic layer to avoid breaking OHOS.
      
      Signed-off-by: default avatarEsben Haabendal <esben.haabendal@huawei.com>
      dc2c2dbd
    • Bernhard Rosenkränzer's avatar
      util-linux: Remove -Werror=format-nonliteral from compiler flags · f982e7dc
      Bernhard Rosenkränzer authored
      
      util-linux uses autogenerated non-literal format strings in its hexdump
      code. Those strings have been verified to be safe in 2.35.1.
      
      Removing -Werror=format-nonliteral here allows us to use
      -Werror=format-nonliteral globally in OPTIMIZE_FOR=security mode
      while keeping util-linux building.
      
      Signed-off-by: default avatarBernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
      f982e7dc
    • Bernhard Rosenkränzer's avatar
      shadow: Remove -Werror=format-nonliteral from compiler flags · 8b6eb65c
      Bernhard Rosenkränzer authored
      
      shadow uses non-literal format strings to integrate system information
      into the login prompt. This is harmless because harmful format strings
      are checked for (and in the worst case, the strings come from a file
      that is writable by root only).
      
      Removing -Werror=format-nonliteral here allows us to use
      -Werror=format-nonliteral globally in OPTIMIZE_FOR=security mode
      while keeping shadow building.
      
      Signed-off-by: default avatarBernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
      8b6eb65c
Loading