Override-build succeeded but the snap file is empty

I am trying to build my own openssl on core24, here is my snapcraft.yaml.

parts:
  openssl:
    plugin: nil
    override-pull: |
      wget https://github.com/openssl/openssl/releases/download/openssl-3.4.0/openssl-3.4.0.tar.gz -O openssl-src.tar.gz
      tar zxf openssl-src.tar.gz --strip-components=1
      rm -f openssl-src.tar.gz
    override-build: |
      ./config --prefix=/usr/local --libdir=lib
      make && make install
    build-packages:
      - wget
      - pkg-config

Can’t use autotools plugin cz openssl default configure files are config and Configure(With a capital C),which does not meet the requirements of autotools.

It‘s a simple build and I have no idea why, am I missing something?

How about the make plugin instead?

EDIT:

Like this:

parts:
  openssl:
    plugin: make
    source: https://github.com/openssl/openssl/releases/download/openssl-3.4.0/openssl-3.4.0.tar.gz
    override-build: |
      ./Configure --prefix=/usr --libdir=/lib
      craftctl default

Another thing to note is that openssl is already part of the base (core24) snap you use, you need to very carefully craft the LD_LIBRARY_PATH in your snap to override using this while not losing any other libs the base snap provides (i.e. libc). If one leaks into the other that might create “interesting” results :slight_smile:

This works. Thanks a lot !