From 9515d300d168c502a37fbb2604a9f4d7695d5437 Mon Sep 17 00:00:00 2001 From: vxtls <187420201+vxtls@users.noreply.github.com> Date: Sun, 22 Feb 2026 07:45:22 -0500 Subject: [PATCH] feat(elfutils): add steps-guix elfutils-0.194 pass1 with autotools regeneration and fts/argp env wiring --- steps-guix/elfutils-0.194/pass1.sh | 52 ++++++++++++++++++++++++++++++ steps-guix/elfutils-0.194/sources | 1 + steps-guix/manifest | 1 + 3 files changed, 54 insertions(+) create mode 100644 steps-guix/elfutils-0.194/pass1.sh create mode 100644 steps-guix/elfutils-0.194/sources diff --git a/steps-guix/elfutils-0.194/pass1.sh b/steps-guix/elfutils-0.194/pass1.sh new file mode 100644 index 00000000..327b11a6 --- /dev/null +++ b/steps-guix/elfutils-0.194/pass1.sh @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: GPL-3.0-or-later + +# Build elfutils against kernel-toolchain dependencies. +: "${KERNEL_SYSROOT:=/kernel-toolchain}" +: "${KERNEL_TARGET:=x86_64-unknown-linux-musl}" + +src_prepare() { + default + + # Regenerate autotools outputs from source metadata. + AUTOMAKE=automake-1.15 \ + ACLOCAL=aclocal-1.15 \ + AUTOCONF=autoconf-2.69 \ + AUTOHEADER=autoheader-2.69 \ + autoreconf-2.69 -fi +} + +src_configure() { + export PATH="${KERNEL_SYSROOT}/bin:${PATH}" + + mkdir build + cd build + + PKG_CONFIG_PATH="${KERNEL_SYSROOT}/lib/pkgconfig:${KERNEL_SYSROOT}/share/pkgconfig" \ + PKG_CONFIG_LIBDIR="${KERNEL_SYSROOT}/lib/pkgconfig:${KERNEL_SYSROOT}/share/pkgconfig" \ + CPPFLAGS="-I${KERNEL_SYSROOT}/include" \ + LDFLAGS="-L${KERNEL_SYSROOT}/lib" \ + LIBS="-lfts -largp" \ + CC="${KERNEL_TARGET}-gcc" \ + AR="${KERNEL_TARGET}-ar" \ + RANLIB="${KERNEL_TARGET}-ranlib" \ + ../configure \ + --prefix="${KERNEL_SYSROOT}" \ + --libdir="${KERNEL_SYSROOT}/lib" \ + --includedir="${KERNEL_SYSROOT}/include" \ + --build="${TARGET}" \ + --host="${KERNEL_TARGET}" \ + --disable-debuginfod \ + --disable-libdebuginfod +} + +src_compile() { + default_src_compile +} + +src_install() { + make "${MAKEJOBS}" install \ + DESTDIR="${DESTDIR}" \ + prefix="${KERNEL_SYSROOT}" \ + libdir="${KERNEL_SYSROOT}/lib" \ + includedir="${KERNEL_SYSROOT}/include" +} diff --git a/steps-guix/elfutils-0.194/sources b/steps-guix/elfutils-0.194/sources new file mode 100644 index 00000000..6b3ae4a9 --- /dev/null +++ b/steps-guix/elfutils-0.194/sources @@ -0,0 +1 @@ +f https://sourceware.org/elfutils/ftp/0.194/elfutils-0.194.tar.bz2 09e2ff033d39baa8b388a2d7fbc5390bfde99ae3b7c67c7daaf7433fbcf0f01e diff --git a/steps-guix/manifest b/steps-guix/manifest index d2c52047..e4aac5bb 100644 --- a/steps-guix/manifest +++ b/steps-guix/manifest @@ -7,3 +7,4 @@ build: binutils-2.41 build: gcc-15.2.0 build: argp-standalone-1.4.1 build: musl-fts-1.2.7 +build: elfutils-0.194