diff options
author | davidovski <david@davidovski.xyz> | 2022-03-10 11:59:16 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-03-10 11:59:16 +0000 |
commit | bb499959d88da1b3937c23b5405089c907188a81 (patch) | |
tree | d9ddba6d0c8f1152c3919067a52250c6bf0759f9 /repo/system/elfutils.xibuild | |
parent | 3602ce227f784f1c6233ef6ad3cd8f5ccad28e66 (diff) |
added and patched broken packages
Diffstat (limited to 'repo/system/elfutils.xibuild')
-rw-r--r-- | repo/system/elfutils.xibuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/repo/system/elfutils.xibuild b/repo/system/elfutils.xibuild new file mode 100644 index 0000000..a68827f --- /dev/null +++ b/repo/system/elfutils.xibuild @@ -0,0 +1,54 @@ +#!/bin/sh + +MAKEDEPS="bison flex zlib bzip2 xz argp-standalone libtool fts musl-obstack" +DEPS="musl zlib" + +PKG_VER=0.186 +SOURCE=https://sourceware.org/elfutils/ftp/$PKG_VER/elfutils-$PKG_VER.tar.bz2 +ADDITIONAL=" + files/error.h + patches/fix-aarch64_fregs.patch + patches/fix-uninitialized.patch + patches/musl-macros.patch + patches/musl-strndupa.patch + patches/musl-asm-ptrace-h.patch +" + +DESC="Utilities and DSOs to handle ELF files and DWARF data" + +prepare () { + apply_patches + + cp error.h lib + cp error.h src + + cat > lib/libintl.h <<-EOF + #ifndef LIBINTL_H + #define LIBINTL_H + #define _(x) (x) + #endif + EOF + +} + +build () { + CFLAGS="$CFLAGS -Wno-error -Wno-null-dereference" \ + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var \ + --disable-werror \ + --program-prefix=eu- \ + --enable-deterministic-archives \ + --disable-nls \ + --disable-libdebuginfod \ + --disable-debuginfod + make +} + +package() { + make DESTDIR=$PKG_DEST install + rm -r "$PKG_DEST"/usr/lib/libelf.so.* + rm -r "$PKG_DEST"/usr/include/libelf.h +} |