Import patchelf 0.12

PatchELF is a simple utility for modifying existing ELF executables and
libraries.  In particular, it can do the following:

* Change the dynamic loader ("ELF interpreter") of executables
* Change the `RPATH` of executables and libraries
* Shrink the `RPATH` of executables and libraries
* Remove declared dependencies on dynamic libraries (`DT_NEEDED` entries)
* Add a declared dependency on a dynamic library (`DT_NEEDED`)
* Replace a declared dependency on a dynamic library with another one
  (`DT_NEEDED`)
* Change `SONAME` of a dynamic library

OK abieber
This commit is contained in:
kn 2021-05-27 16:12:16 +00:00
parent 7ee2f8ae13
commit 6aad4dd8da
4 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,34 @@
# $OpenBSD: Makefile,v 1.1.1.1 2021/05/27 16:12:16 kn Exp $
COMMENT = utility for modifying existing ELF executables and libraries
V = 0.12
DISTNAME = patchelf-${V}
MASTER_SITES = https://github.com/NixOS/patchelf/releases/download/${V}/
EXTRACT_SUFX = .tar.bz2
CATEGORIES = sysutils
MAINTAINER = Klemens Nanni <kn@openbsd.org>
# GPLv3
PERMIT_PACKAGE = Yes
WANTLIB += ${COMPILER_LIBCXX} c m
# -std=c++11
COMPILER = base-clang ports-gcc
SEPARATE_BUILD = Yes
USE_GMAKE = Yes
CONFIGURE_STYLE = simple
CONFIGURE_ARGS = --mandir=${PREFIX}/man
WRKDIST = ${WRKDIR}/${DISTNAME}.20200827.8d3a16e
# XXX investigate
# TOTAL: 29, PASS: 28, FAIL: build-id.sh
TEST_TARGET = check
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (patchelf-0.12.tar.bz2) = aZoxz1IhHPWtbjWogB62N7x/PEMRcUBCZADWe3ur15I=
SIZE (patchelf-0.12.tar.bz2) = 165069

View File

@ -0,0 +1,11 @@
PatchELF is a simple utility for modifying existing ELF executables and
libraries. In particular, it can do the following:
* Change the dynamic loader ("ELF interpreter") of executables
* Change the `RPATH` of executables and libraries
* Shrink the `RPATH` of executables and libraries
* Remove declared dependencies on dynamic libraries (`DT_NEEDED` entries)
* Add a declared dependency on a dynamic library (`DT_NEEDED`)
* Replace a declared dependency on a dynamic library with another one
(`DT_NEEDED`)
* Change `SONAME` of a dynamic library

View File

@ -0,0 +1,5 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2021/05/27 16:12:16 kn Exp $
@bin bin/patchelf
@man man/man1/patchelf.1
share/doc/patchelf/
share/doc/patchelf/README.md