Comment 1 for bug 1882255

Revision history for this message
Dmitrii Shcherbakov (dmitriis) wrote :

I came up with a pretty terrible workaround:

  libvirt:
    source: .
    source-subdir: libvirt-6.0.0/build-subdir
    # ...
    override-build: |
      # ...
      mkdir libvirt-6.0.0/build-subdir
      cd libvirt-6.0.0/build-subdir
      ../autogen.sh

      echo "#!/bin/sh
      exit 0
      " >> autogen.sh
      chmod +x autogen.sh
      ln -s ../configure configure
      cd ../..
      # Build
      snapcraftctl build

But it would be nice to have something more sane.