summaryrefslogtreecommitdiff
path: root/dev-util/patchelf
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/patchelf')
-rw-r--r--dev-util/patchelf/Manifest8
-rw-r--r--dev-util/patchelf/files/patchelf-0.8-dash.patch28
-rw-r--r--dev-util/patchelf/metadata.xml7
-rw-r--r--dev-util/patchelf/patchelf-0.8.ebuild36
-rw-r--r--dev-util/patchelf/patchelf-0.9.ebuild25
5 files changed, 104 insertions, 0 deletions
diff --git a/dev-util/patchelf/Manifest b/dev-util/patchelf/Manifest
new file mode 100644
index 000000000000..d6a94e859a3f
--- /dev/null
+++ b/dev-util/patchelf/Manifest
@@ -0,0 +1,8 @@
+AUX patchelf-0.8-dash.patch 1060 SHA256 4c8edea1661401e914047ed96ec793bf7282abcae87fe0f39af71cf3e717bc5a SHA512 35f32d43a85ddcfa0a1c3879b0a934dea8c58c7121d3d86157183a175bcf64fc0d4aadf96a91b5e4d5aeade773ff3145c683378fbee019f5293bc0f636104a7e WHIRLPOOL f6bc55c9a7760ab5140a5b25fd807ae8060e7df718d5a01019430902f53c69ad2e58b6876a2f7591080f9ad04b9cfb89f0c5a0e8705d905016e289f39ae53158
+DIST patchelf-0.8.tar.bz2 119369 SHA256 c99f84d124347340c36707089ec8f70530abd56e7827c54d506eb4cc097a17e7 SHA512 819ace0ee032612e8bef56f230ea470be9d44bc03ef561f98ffac84f2555e419f87309280df6d265a8ae56452e54d46fc90be13a449847e93e4e7b413dc8605a WHIRLPOOL 64c56eda439dc114e4450428d7bde754a894ecbd8d2e0d1a29c3a53965527f76723fef9a240cd3686532f9202c84b23dd25cfe8e4f664ac33e08ca4056ef6780
+DIST patchelf-0.9.tar.bz2 159956 SHA256 a0f65c1ba148890e9f2f7823f4bedf7ecad5417772f64f994004f59a39014f83 SHA512 5bd3a1268b809f173debde5d34c3f736f38d7afb69decf609a422884c51eb1d5ccf62f2d454d4ef8b2c20e263ece49e3c2f801347ef1dfcceecd89c78a214790 WHIRLPOOL 040b568fcac1e73cdf4ef928af7171e74402e2197918a00573624a92c9db444f7c45facd4cc629d8fdc629ba771a04236420444b4f67d0a732a636c51ecc16a4
+EBUILD patchelf-0.8.ebuild 795 SHA256 c4b36075761d3d17fde9271f983bb5e8aa4bf3ec86b6cca49d62d438fca6a1a5 SHA512 ab5ab9ce393c12b5439646cda2d25226a65a9f262481357dac7c4fd12133790b6623b4ca8fd939306b6fe31d10082597e1b28319f9cc26b66b23316443eff191 WHIRLPOOL 68e6d2108e29931169942d3014d91c4b8302d57697b583716a3e4ac9d2be8db207394bb9a1e769786ec64bb3c8e8ddf62050561199d4c2cd55775cd39f1fc731
+EBUILD patchelf-0.9.ebuild 566 SHA256 e2969060c96fd1aca0bf14bf73aab4e535ba4043fc63f6d6eab3f36ac3841be9 SHA512 16c5341ace2673ffd4b8bbc6fe259ee53a1e4759c271a72a988274a39d40689ca666bc648d2a94033536eed41f64bbcfb93f4cd1089e17a15b64896b78c166fd WHIRLPOOL 811d526444e2408459149b2833ddc494972753e430e2ab98f80f08ac5564fe553c0f52cf769296a88856eb9ac210856db3ccf6fea87bbf2560c2d0b163f3441d
+MISC ChangeLog 2915 SHA256 35efc966837043a43d1a802029145dd8377f3ee9fbb822e38ccd3ced18f9218a SHA512 9657d6f98893db5e7cd64f05a92534f0ed8863b884efe33e7b814fed91a15228e922d6f53c0d8432c54e0f2f72e3d48461418866ee28ca85ed8e00e11bdbc2c9 WHIRLPOOL e0530f3c824908bea1e081e79766a0eb34a610312a6fdd39335ab2dd84a9bfddb021e822b75d7acb1a2a5a93cfa79f0f1a4d4ea6e86d186a06ae3155b6576124
+MISC ChangeLog-2015 2431 SHA256 ddd2fa25679a4693f5d7ffcfde09b598f515ce513024e399dc162bde180d1f65 SHA512 c4cd27d122d87b8233eedd489d04f1eb7fb195580b2e73213d5bb3d2ba2ae74f86f6ac6016d71e0fafcb975209103cddc1b215031129873560d5da4d00f756e7 WHIRLPOOL 3a7faa274a76f4cd5964c2ae0817a321dd376181923d549a0c85fd63addac1c369752ee55f4d32877821ccf5fed8ad54565fcb61b4e45ddd3b9f44b0b7dd951d
+MISC metadata.xml 220 SHA256 e158dc6d5b70da38970f840171880631a82b0bcabfa5a2a2fd1f9e7b3bdeb348 SHA512 512eee7a953300d5e721b64bade8be9bd1b62984e543552b58a7a72b42cb90973c8c6d557ecfe08c2355cab45f640c88dcd31ab8d116815bc01680a65c7a132c WHIRLPOOL c548f59f38696a783105fbd7b017590d0480b3af100de5cf5556fbf95a89f306b5c20aa9e1a326449f91fbe997334efa6bf6ffab8ba7d09c50ed67cefcd79928
diff --git a/dev-util/patchelf/files/patchelf-0.8-dash.patch b/dev-util/patchelf/files/patchelf-0.8-dash.patch
new file mode 100644
index 000000000000..4210b1c054d0
--- /dev/null
+++ b/dev-util/patchelf/files/patchelf-0.8-dash.patch
@@ -0,0 +1,28 @@
+From 3b9e7913a6d14cb09ed91ce8a1110955bda200ef Mon Sep 17 00:00:00 2001
+From: Alexandre Pretyman <alexandre.pretyman@gmail.com>
+Date: Tue, 14 Jul 2015 09:12:38 -0400
+Subject: [PATCH] Change configure.ac from OpenWrt to support Mac OS
+
+This change is from the OpenWrt project, from the URL:
+https://dev.openwrt.org/ticket/18998
+It enables patchelf to sucessfully compile and run under Mac OS and
+keeps compatibility with Linux.
+
+Tested under Mac OS X 10.9.5 and Ubuntu 15.04 to patch a binary of type
+ELF 32-bit LSB executable - the patch fully worked
+
+This patch is credited to Felix Fietkau
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 8ca9ad4..69e12de 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1,4 +1,4 @@
+-AC_INIT([patchelf], m4_esyscmd([echo -n $(cat ./version)]))
++AC_INIT([patchelf], m4_esyscmd([printf $(cat ./version)]))
+ AC_CONFIG_SRCDIR([src/patchelf.cc])
+ AC_CONFIG_AUX_DIR([build-aux])
+ AM_INIT_AUTOMAKE([-Wall -Werror dist-bzip2 foreign color-tests parallel-tests])
diff --git a/dev-util/patchelf/metadata.xml b/dev-util/patchelf/metadata.xml
new file mode 100644
index 000000000000..1769853ef7e2
--- /dev/null
+++ b/dev-util/patchelf/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>chewi@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/patchelf/patchelf-0.8.ebuild b/dev-util/patchelf/patchelf-0.8.ebuild
new file mode 100644
index 000000000000..92c86cecf1a4
--- /dev/null
+++ b/dev-util/patchelf/patchelf-0.8.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=true
+
+inherit autotools-utils
+
+DESCRIPTION="Small utility to modify the dynamic linker and RPATH of ELF executables"
+HOMEPAGE="http://nixos.org/patchelf.html"
+SRC_URI="http://releases.nixos.org/${PN}/${P}/${P}.tar.bz2"
+
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86 ~amd64-linux ~x86-linux"
+LICENSE="GPL-3"
+IUSE=""
+
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+PATCHES=( "${FILESDIR}"/${P}-dash.patch )
+
+src_prepare() {
+ rm src/elf.h || die
+ sed -e 's:-Werror::g' -i configure.ac || die
+ autotools-utils_src_prepare
+}
+
+src_configure() {
+ local myeconfargs=( --docdir="${EPREFIX}"/usr/share/doc/${PF} )
+ autotools-utils_src_configure
+}
+
+src_test() {
+ autotools-utils_src_test -j1
+}
diff --git a/dev-util/patchelf/patchelf-0.9.ebuild b/dev-util/patchelf/patchelf-0.9.ebuild
new file mode 100644
index 000000000000..47264579ddde
--- /dev/null
+++ b/dev-util/patchelf/patchelf-0.9.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="Small utility to modify the dynamic linker and RPATH of ELF executables"
+HOMEPAGE="http://nixos.org/patchelf.html"
+SRC_URI="http://releases.nixos.org/${PN}/${P}/${P}.tar.bz2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+LICENSE="GPL-3"
+
+src_prepare() {
+ default
+ rm src/elf.h || die
+
+ sed -i \
+ -e 's:-Werror::g' \
+ -e 's:parallel-tests:serial-tests:g' \
+ configure.ac || die
+
+ eautoreconf
+}