From c35dff53c2e0b45e988d163528ef21d507e07392 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Tue, 21 Mar 2023 19:07:43 +0100 Subject: [PATCH] patchelf: New package Signed-off-by: Stefan Schantl --- patchelf/patchelf.nm | 54 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 patchelf/patchelf.nm diff --git a/patchelf/patchelf.nm b/patchelf/patchelf.nm new file mode 100644 index 000000000..bccb2ba27 --- /dev/null +++ b/patchelf/patchelf.nm @@ -0,0 +1,54 @@ +############################################################################### +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # +############################################################################### + +name = patchelf +version = 0.17.2 +release = 1 + +groups = Development/Tools +url = http://nixos.org/patchelf.html +license = GPLv3+ +summary = A utility for patching ELF binaries + +description + PatchELF is a simple utility for modifying an existing ELF executable + or library. It can change the dynamic loader ("ELF interpreter") + of an executable and change the RPATH of an executable or library. +end + +source_dl = https://github.com/NixOS/%{name}/archive/%{version}/ +sources = %{thisapp}.tar.gz + +build + requires + autoconf + automake + end + + prepare_cmds + # Remove shipped elf header file and + # use the one from glibc instead. + rm -rvf src/elf.h + + # Disable test which requires DT_JMPREL. + # Our default compiler configuration does not allow to + # compile such an elf file. + sed -i '/phdr-corruption.sh/d' tests/Makefile.am + + ./bootstrap.sh + end + + test + make check + end +end + +packages + package %{name} + + package %{name}-debuginfo + template DEBUGINFO + end +end -- 2.39.2