From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-util/pretrace/Manifest | 5 ++++ .../pretrace/files/pretrace-0.4--as-needed.diff | 12 ++++++++ dev-util/pretrace/files/pretrace-0.4-build.patch | 15 ++++++++++ dev-util/pretrace/metadata.xml | 8 ++++++ dev-util/pretrace/pretrace-0.4-r1.ebuild | 33 ++++++++++++++++++++++ 5 files changed, 73 insertions(+) create mode 100644 dev-util/pretrace/Manifest create mode 100644 dev-util/pretrace/files/pretrace-0.4--as-needed.diff create mode 100644 dev-util/pretrace/files/pretrace-0.4-build.patch create mode 100644 dev-util/pretrace/metadata.xml create mode 100644 dev-util/pretrace/pretrace-0.4-r1.ebuild (limited to 'dev-util/pretrace') diff --git a/dev-util/pretrace/Manifest b/dev-util/pretrace/Manifest new file mode 100644 index 000000000000..720089bb2f92 --- /dev/null +++ b/dev-util/pretrace/Manifest @@ -0,0 +1,5 @@ +AUX pretrace-0.4--as-needed.diff 511 BLAKE2B 24e47775031a3a9070a4e4c27432572c5b941029659d08e7123847610af6e71bf7bd12e642e91522e4fe8eea68edbc011c24b06245b3b12fb62016bc935994ec SHA512 f12393152ac127e2edc32e51ae185517d053e9022537f69b0ffb74a95ea86551375b70423e8d661f5bed2c252f035023262da66b128750eb8809dfb4a0e8e8b3 +AUX pretrace-0.4-build.patch 315 BLAKE2B 2747739ef3fb6cc33b431d8b4ed65c72fe8073a324bc575fe4463c26f09796dc86b7baa1f2c497fd9954bd594f00fa53883a60aa2c8fb7259113dad3725dbe76 SHA512 282315443239ea2baa12e125d84c6a768010d57a2a7a5050c887ecb9d20b2df1fdf4f7901d80746b809a008cc83af53f20172a8fedf7bef43b1e4ece13f13b5c +DIST libpretrace-0.4.tar.gz 7370 BLAKE2B 08fb2022433af807675ef089dcf1fbd642c165b353959f81547c2f65fd9e60c49b7494c661f81698c738bd27a3cdbd28d6a227589ef7a2906c5fa930d9709fc6 SHA512 64d1041ce398c73342ed371ebac4f656620c9ae4bc6da1b56b43bccd9898564a44dfe7bfaf3d4c865b89c5924b9d03aa21f393dcbafc185f84ac4b9ea2eb17d8 +EBUILD pretrace-0.4-r1.ebuild 821 BLAKE2B 7c208871ffb91f64ab7aa944342693bb39b334a11ce00673b39e87bbecef6887f22acc12799a88765cdb720f04199980c0cfd5bfed4860bb1dbde9dd112ba080 SHA512 3a73362df6f543c43d776182d763254eb11d0f8aa522aae409a8709711434b5900cd53ad7fc22d66f9b27f5345ec91c2b8f9f1b9c8398691502eb9fac9ee0b3f +MISC metadata.xml 256 BLAKE2B f970beb47a5cc598eaf22967c64cdb8a46f9dd94a369a636419862c04bc53fe5e1bddc4c2b9cdaf8f038d0de69d5ab8299b62addaeb7e1dfea3846f884357e4e SHA512 eb8e446afc52f5f079733bdaf0db316e97194ba08e3b1370a287db29ea0bd7974bb237dfc67ff22a115538ec830b632b98390a8e59ace9634a89dfa9c02037b5 diff --git a/dev-util/pretrace/files/pretrace-0.4--as-needed.diff b/dev-util/pretrace/files/pretrace-0.4--as-needed.diff new file mode 100644 index 000000000000..19b66ed40c09 --- /dev/null +++ b/dev-util/pretrace/files/pretrace-0.4--as-needed.diff @@ -0,0 +1,12 @@ +diff -uNr libpretrace-0.4/Makefile libpretrace-0.4.new/Makefile +--- libpretrace-0.4/Makefile 2005-12-15 12:50:06.000000000 +0000 ++++ libpretrace-0.4.new/Makefile 2006-04-01 23:53:00.000000000 +0100 +@@ -14,7 +14,7 @@ + @echo 'type `make install` to install to $(PREFIX)' + + ptgenmap: libpretrace.so ptgenmap.o +- $(CC) $(CFLAGS) $(LDFLAGS) -g -L. -lpretrace ptgenmap.o -o ptgenmap ++ $(CC) $(CFLAGS) $(LDFLAGS) -g -L. ptgenmap.o -lpretrace -o ptgenmap + + ptgenmap.o: + $(CC) $(CFLAGS) -Wall -g -fPIC -c ptgenmap.c diff --git a/dev-util/pretrace/files/pretrace-0.4-build.patch b/dev-util/pretrace/files/pretrace-0.4-build.patch new file mode 100644 index 000000000000..4d7056fa83f7 --- /dev/null +++ b/dev-util/pretrace/files/pretrace-0.4-build.patch @@ -0,0 +1,15 @@ +fix building with newer glibc + +http://bugs.gentoo.org/227923 + +--- pretrace.h ++++ pretrace.h +@@ -20,3 +20,8 @@ + #include + # define RANDOMIZE(x) { struct timeval tv; gettimeofday(&tv, NULL); x = tv.tv_usec; } + #endif ++ ++#include ++#ifndef ARG_MAX ++# define ARG_MAX sysconf(_SC_ARG_MAX) ++#endif diff --git a/dev-util/pretrace/metadata.xml b/dev-util/pretrace/metadata.xml new file mode 100644 index 000000000000..b4a27e94fc24 --- /dev/null +++ b/dev-util/pretrace/metadata.xml @@ -0,0 +1,8 @@ + + + + + bircoph@gentoo.org + Andrew Savchenko + + diff --git a/dev-util/pretrace/pretrace-0.4-r1.ebuild b/dev-util/pretrace/pretrace-0.4-r1.ebuild new file mode 100644 index 000000000000..998da63f1052 --- /dev/null +++ b/dev-util/pretrace/pretrace-0.4-r1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit readme.gentoo-r1 + +DESCRIPTION="start dynamically linked applications under debugging environment" +HOMEPAGE="http://dev.inversepath.com/trac/pretrace" +SRC_URI="http://dev.inversepath.com/pretrace/libpretrace-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +S="${WORKDIR}/lib${P}" + +DOC_CONTENTS="Remember to execute ptgenmap after modifying pretrace.conf" + +PATCHES=( + "${FILESDIR}"/${P}--as-needed.diff + "${FILESDIR}"/${P}-build.patch #227923 +) + +src_install() { + dodir /usr/bin /usr/share/man/man3 /usr/share/man/man8 + emake DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" PREFIX="${D}/usr" install + readme.gentoo_create_doc +} + +pkg_postinst() { + readme.gentoo_print_elog +} -- cgit v1.2.3