Uploaded image for project: ' AGL Development'
  1. AGL Development
  2. SPEC-3990

distro-build-manifest failure on Ubuntu 21.04

    XMLWordPrintable

    Details

      Description

      AGL build fails on Ubuntu 21.04 in distro-build-manifest with error

      Exception: bb.process.ExecutionError: Execution of '.../tmp/work/virtio_aarch64-agl-linux/distro-build-manifest/1.0-r0/temp/run.do_compilestep2.894323' failed with exit code 99:
      The name of the generation script is not defined.
      The name of the data file is not defined.
      

      The problem seems to be due to snippet

      # special fragment to call distro-manifest-generator.sh from 
      # meta-agl-profile-core/recipes-core/distro-build-manifest/distro-build-manifest.bb
      append_fragment $BUILDDIR/conf/local.conf /dev/stdin "# generated by $(realpath $BASH_SOURCE)" <<-EOF
          DISTRO_SETUP_MANIFEST = "$(realpath -Ls $BUILDDIR)/$SETUP_MANIFEST"
          DISTRO_MANIFEST_GENERATOR = "$(dirname $(realpath $BASH_SOURCE))/distro-manifest-generator.sh"
      EOF
      

      in meta-agl/scripts/.aglsetup_genconfig.bash generates empty fragment

      # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
      # fragment { 
      #
      # generated by .../meta-agl/scripts/.aglsetup_genconfig.bash
      
      #
      # }
      # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
      

      I have found that

      [[ -f /dev/stdin ]]
      

      fails in append_fragment.

      Very similar problem is described here: https://github.com/containers/podman/issues/6659#issuecomment-661199469

      Looks like bash creates temporary file for heredocs and passes fd to deleted file to command that use heredocs. Somehow this worked before...

        Attachments

        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            opsyvvavrychuk Vasyl Vavrychuk
            Reporter:
            opsyvvavrychuk Vasyl Vavrychuk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: