name: elfutils variant: scratch shell: /bin/bash install: - build-base - bash - m4 dependencies: - image: cgr.dev/chainguard/wolfi-base@{{ .WOLFI_BASE_REF }} - stage: zlib from: /rootfs steps: - sources: - url: https://sourceware.org/elfutils/ftp/{{ .ELFUTILS_VERSION }}/elfutils-{{ .ELFUTILS_VERSION }}.tar.bz2 destination: elfutils.tar.bz2 sha256: 8e00a3a9b5f04bc1dc273ae86281d2d26ed412020b391ffcc23198f10231d692 sha512: 9c4f5328097e028286c42f29e39dc3d80914b656cdfbbe05b639e91bc787ae8ae64dd4d69a6e317ce30c01648ded10281b86a51e718295f4c589df1225a48102 prepare: - | tar -xjf elfutils.tar.bz2 --strip-components=1 mkdir build cd build ../configure \ --prefix=/usr/local \ --with-zstd=no \ --disable-libdebuginfod \ --disable-debuginfod \ CFLAGS="${CFLAGS} -fPIC -Wno-error" build: - | cd build make -j $(nproc) install: - | cd build make DESTDIR=/rootfs install # we only need the libs and headers, remove everything else find /rootfs/usr/local/ -type d \( -name bin -o -name sbin -o -name share \) -prune -exec rm -rf {} \; finalize: - from: /rootfs to: /rootfs