From e29c3979d451b81d64bfd537007477651a777d8b Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sat, 1 Nov 2025 11:30:18 +0200 Subject: [PATCH] Update package version to 0.194 --- pkg.info | 20 ++++++++++++++++++-- source.sh | 18 ++++++++---------- 2 files changed, 26 insertions(+), 12 deletions(-) diff --git a/pkg.info b/pkg.info index e98e812..f1d11b2 100644 --- a/pkg.info +++ b/pkg.info @@ -1,8 +1,24 @@ name: libelf description: ELF handling library -version: 0.193 +version: "0.194" +revision: 1 url: https://sourceware.org/elfutils/ license: GPL2-or-later OR LGPL3-or-later architecture: any -depends: ["pkgconf","bzip2","xz-utils","zlib","zstd"] type: source +depends: + - bzip2 + - curl + - glibc + - json-c + - xz-utils + - zlib + - zstd +make_depends: + - libarchive + - sqlite +downloads: + - url: https://sourceware.org/ftp/elfutils/${BPM_PKG_VERSION}/elfutils-${BPM_PKG_VERSION}.tar.bz2 + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: 09e2ff033d39baa8b388a2d7fbc5390bfde99ae3b7c67c7daaf7433fbcf0f01e diff --git a/source.sh b/source.sh index 9933530..c3b1387 100644 --- a/source.sh +++ b/source.sh @@ -2,14 +2,11 @@ # BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT -DOWNLOAD="https://sourceware.org/ftp/elfutils/${BPM_PKG_VERSION}/elfutils-${BPM_PKG_VERSION}.tar.bz2" -FILENAME="${DOWNLOAD##*/}" - # The prepare function is executed in the root of the temp directory -# This function is used for downloading files and putting them into the correct location +# This function is used for putting downloaded files to the correct location or applying patches prepare() { - wget "$DOWNLOAD" - tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE" + cd "$BPM_SOURCE" + autoreconf -fi } # The build function is executed in the source directory @@ -17,7 +14,8 @@ prepare() { build() { # Remove failing test sed -e 's/run-backtrace-native.sh//g' -i tests/Makefile.am - + + export CFLAGS="${CFLAGS} -ffat-lto-objects -g" ./configure --prefix=/usr \ --disable-debuginfod \ --enable-libdebuginfod=dummy \ @@ -29,9 +27,9 @@ build() { # The check function is executed in the source directory # This function is used to run tests to verify the package has been compiled correctly # Temporarily disabled due to failing test -#check() { -# make check -#} +check() { + make check +} # The package function is executed in the source directory # This function is used to move the compiled files into the output directory