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
-rw-r--r--dev-util/patchelf/patchelf-0.9_p20180129.ebuild26
6 files changed, 130 insertions, 0 deletions
diff --git a/dev-util/patchelf/Manifest b/dev-util/patchelf/Manifest
new file mode 100644
index 000000000000..98c035d4c7f1
--- /dev/null
+++ b/dev-util/patchelf/Manifest
@@ -0,0 +1,8 @@
+AUX patchelf-0.8-dash.patch 1060 BLAKE2B 37361c4221be04e4a8e672578e8414bde1d03e39fbac60e9dba20ed407347e1e84d193469bc0fba6744953fde4cdf04c807135465edb5519f7b970189df9d7ab SHA512 35f32d43a85ddcfa0a1c3879b0a934dea8c58c7121d3d86157183a175bcf64fc0d4aadf96a91b5e4d5aeade773ff3145c683378fbee019f5293bc0f636104a7e
+DIST patchelf-0.8.tar.bz2 119369 BLAKE2B bfe7dceea9a79845c61bc7490faad5cd4d5e83bc0be4ec7e3b19fbed91ecb7d15e0a0688d4914731b94f0522c80ea9f940b6a8ad5595931df8826ef43f2fd209 SHA512 819ace0ee032612e8bef56f230ea470be9d44bc03ef561f98ffac84f2555e419f87309280df6d265a8ae56452e54d46fc90be13a449847e93e4e7b413dc8605a
+DIST patchelf-0.9.tar.bz2 159956 BLAKE2B 7e8543a98aa683eeafacfb836a02ad7cf2fb52409b0780edb614e30edc66f8f356a9bd19e133b185861fe9c6ae0e4868b0b307c174610eef80e3446610f76bcb SHA512 5bd3a1268b809f173debde5d34c3f736f38d7afb69decf609a422884c51eb1d5ccf62f2d454d4ef8b2c20e263ece49e3c2f801347ef1dfcceecd89c78a214790
+DIST patchelf-0.9_p20180129.tar.gz 99490 BLAKE2B a5372942f7f400085a1d5e15701a25f916012ae6afc90cc3065aebf6fd0fc7cae3a626496cae4a7ce7320e5c954b0b11a14defae0bacf3350bf6b201db952eb5 SHA512 eabeb34dbef68dc6e79374f46bdbe473ca3c21515962c684f3368fdf7a1dbea75ec152fdb7796f9d22c2f40da25e3f9c181cd1a29e52fbe5843a8cd02acb2c75
+EBUILD patchelf-0.8.ebuild 795 BLAKE2B 92efb5ae34357cbdc5676b473e89b3411241c3f506ee6904b6f4b69c974370c3d9a69c66c9413f573aa9c736236b31c436b063b9dab1a24419f955dfcb8e2f4d SHA512 ab5ab9ce393c12b5439646cda2d25226a65a9f262481357dac7c4fd12133790b6623b4ca8fd939306b6fe31d10082597e1b28319f9cc26b66b23316443eff191
+EBUILD patchelf-0.9.ebuild 573 BLAKE2B 7fcfb6054e32622a2143ed2bcfef63ea35fd06e6eae1727e06a1ec852f49e4ea0562b160466db7ced028d0c2864a56e9e63f25819e1513d68aeb9e8cd64ecf01 SHA512 4ddfecee6bf2198234b8aadc4f7f058e778d83b030c4b9c8ce3334c4a1ea6c3918eb257f97401b0fb217b2bbcccfe00d111e3ca49b800998f0b29d9a88b29968
+EBUILD patchelf-0.9_p20180129.ebuild 656 BLAKE2B aea76418c2d25afa969de73256da20c636cc26514c8aa1de5e36410217d1c56e188dde980ea926c6958ee35d924d401d8caa9b63fd3a7540f2c6c6cd8d4a2834 SHA512 3e03ca019847454a3da5f6b9e6908ab0a71d9a45137aaafa4413f53620cd005be71e60606205857f6d0a763a89de4c9908423758cf2d3f22fba403ae36e54a0b
+MISC metadata.xml 220 BLAKE2B 65b0d9db11c166b2887e1a22962830e288eb917a7f15d0ffcecb3c86a1845491cbcbf4ebc7e661ac7041443a8144b218123b4db7a962191a9e9f894ac086a4ed SHA512 512eee7a953300d5e721b64bade8be9bd1b62984e543552b58a7a72b42cb90973c8c6d557ecfe08c2355cab45f640c88dcd31ab8d116815bc01680a65c7a132c
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..334bfba21b47
--- /dev/null
+++ b/dev-util/patchelf/patchelf-0.9.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2017 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 ~sparc ~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
+}
diff --git a/dev-util/patchelf/patchelf-0.9_p20180129.ebuild b/dev-util/patchelf/patchelf-0.9_p20180129.ebuild
new file mode 100644
index 000000000000..0efbab73c0ab
--- /dev/null
+++ b/dev-util/patchelf/patchelf-0.9_p20180129.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools vcs-snapshot
+
+DESCRIPTION="Small utility to modify the dynamic linker and RPATH of ELF executables"
+HOMEPAGE="http://nixos.org/patchelf.html"
+COMMIT=1fa4d36fead44333528cbee4b5c04c207ce77ca4
+SRC_URI="https://github.com/NixOS/${PN^}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~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
+}