diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-util/strace | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-util/strace')
-rw-r--r-- | dev-util/strace/Manifest | 9 | ||||
-rw-r--r-- | dev-util/strace/files/strace-4.5.20-sparc.patch | 42 | ||||
-rw-r--r-- | dev-util/strace/files/strace-4.7-glibc-2.15.patch | 53 | ||||
-rw-r--r-- | dev-util/strace/files/strace-4.7-x32.patch | 89 | ||||
-rw-r--r-- | dev-util/strace/metadata.xml | 13 | ||||
-rw-r--r-- | dev-util/strace/strace-4.10.ebuild | 47 | ||||
-rw-r--r-- | dev-util/strace/strace-4.5.19.ebuild | 32 | ||||
-rw-r--r-- | dev-util/strace/strace-4.5.20-r2.ebuild | 41 | ||||
-rw-r--r-- | dev-util/strace/strace-4.5.20.ebuild | 34 | ||||
-rw-r--r-- | dev-util/strace/strace-4.6.ebuild | 43 | ||||
-rw-r--r-- | dev-util/strace/strace-4.7.ebuild | 48 | ||||
-rw-r--r-- | dev-util/strace/strace-4.8.ebuild | 46 | ||||
-rw-r--r-- | dev-util/strace/strace-4.9.ebuild | 47 | ||||
-rw-r--r-- | dev-util/strace/strace-9999.ebuild | 47 |
14 files changed, 591 insertions, 0 deletions
diff --git a/dev-util/strace/Manifest b/dev-util/strace/Manifest new file mode 100644 index 000000000000..9fe530a61ce4 --- /dev/null +++ b/dev-util/strace/Manifest @@ -0,0 +1,9 @@ +DIST strace-4.10.tar.xz 601856 SHA256 e6180d866ef9e76586b96e2ece2bfeeb3aa23f5cc88153f76e9caedd65e40ee2 SHA512 53d55b749224927cfcc9783db57eb8a057fc1329b2f5da2f54299dab17d530f5d1359480f03bea307fb72f6f372e50a0dbf0bd25d36a57a77632d9c1f690fc1d WHIRLPOOL f177d980248892a99b2ed4c5d0275bc735200a597e9b6edf3bb68b8839b2bf090628f2760ffad1a4d1f862b83602cf587a63f3af288978ca2fa54cc221da4e6f +DIST strace-4.5.19.tar.bz2 499565 SHA256 8997ce919e971b0ec45cd7006c6e1f9c7c0bce68ab59e3a629e1ddeda5013d08 SHA512 a7e500a7f47b5b22621efa723d5d522dd26bf2de908c7056531378661977c5671bff9892519db5870b8d448f943879b03beeb31a323a2f2305f2042d0f7c05c4 WHIRLPOOL 95162fb6adfe667da717897b7902f06642a6ea70a09fb4fd12156a2030341d73ea959061d366131b9d361e4de7fe672b7323fb484e63158ceae477eec6192ca7 +DIST strace-4.5.20-ioctls.patch.bz2 3497 SHA256 41235dbda6cc054b6f0c65a860be25e3d1723dff53f553e4a87e41ecb5bd8250 SHA512 f9dfcfca8fb58184f7a99548efcda22ac574b34ec46038a68f04fe70b3a9bbd99e9746dc3681945d4ad3c66cc678ec672d66dd2007eb19ea95faaa7f78440262 WHIRLPOOL 3228eeaf82749e520fff5143930b46ce6f3214f32d7c4b37e4ea6b9e5db770e0b5fd38ae0df44e00e3ac4b3dfda72edab3670cfd429961824d114c09ad852e4e +DIST strace-4.5.20.tar.bz2 504078 SHA256 ea8c059369eaa5ad90b246f34eab247d0ee48bfdee2670c7196320a4669ccabd SHA512 b5adcbd00960580adf9441068d252216a40fcc4dca7888447f2de941b33e28bdd75058f3a7126eb487bc93f100b1f660d0fc5998885ca76929e5a0ce2069f2db WHIRLPOOL e75074d5fd04ed58da27ecb7d6c2ac2bd532ae52cfe2075fbdef965fe74e575acf07efb4d6bd0a57b3cba2d130f9e57cb93fa27efa95a2faebef0e96a9f831f9 +DIST strace-4.6-x32.patch.xz 142780 SHA256 78d196ea92d6d23a390ec8d00c7b4832f01204aa83b4ee52d1fadd32c993d72a SHA512 8ec318853964b7492e358f0513b1cd737ecb8bc526d76f0f89fe9d112259e48e2e4accf5f3059897fbe007bdf810f188504f702a40efd4d7d37c8c60b1b0e8cf WHIRLPOOL 2af1e353ffdcea032657322ea012a898e0de42bc7baae0c2f54ee86ef673c2fee910b5fadaf9d5c6eca3166e2b5df14babc8a8cc4c33a3bb5f1c0dc96bc29473 +DIST strace-4.6.tar.xz 403788 SHA256 9ef9aa41b6118578e33ef4833b8a04209d6cc062546c28efd715f283b172c28a SHA512 09246a2b104b66f407d35d25407def13a49aaab1fefdb5c3693503d066f18c20b68057fdf7954feaff7281b37b2e503b43eba89b7977108d84cb51e16b57cb43 WHIRLPOOL 603283ad88a421b2da9b785adb688edd25529947cdba9dfaa1beea7d095d613c6bfb5c6cb53590dd4779c40965a2fbdd87abee2e5a430a32d6d3f059f514ef77 +DIST strace-4.7.tar.xz 403280 SHA256 c49cd98873c119c5f201356200a9b9687da1ceea83a05047e2ae0a7ac1e41195 SHA512 52bcdd4b7a842b20233737197aeb5baf12533ea088568c9eeb644172420b98c79b86213c8068b49733da0a790031301b832489f87244bc65460971d1b0398d1e WHIRLPOOL 7f19233da30b0eb3d30aa79a881ad0bc6fed818557a55f9193511fb990e0af9ce7f8f792c395691bbedfb66b71427b0c743ea45819d039491cb02dccb29f4565 +DIST strace-4.8.tar.xz 441712 SHA256 f492291f07a7c805c07a8395cce1ea054a6401ad414f4cc12185672215e1d7f8 SHA512 c3316382f60cd4d02eec1eef46a0ef2d000afbccf2c176a6fec652e1b3391685f0e33f184497cb3ccf54d72d460471a4945d3a864fb5bce1f45f32fdf132cfe3 WHIRLPOOL 0ca28920b73d3b70a87bffff77c9af6bb9179f0918589f90613e68a499f84cc399e306b4f1832e1dd9e825c94671fcb69a5f08f6c64e6000411553e0b911e6d2 +DIST strace-4.9.tar.xz 521728 SHA256 095bfea5c540b91d297ccac73b21b92fd54a24599fd70395db87ff9eb7fd6f65 SHA512 70d03b74067ad03940cda72dc057a44a8a33fc55790a8a3bfffb1c4d7442c2de7f3e975a01dc7c7b0430342e492579b2f3a007242d13c8a0feba1a1989f42b7b WHIRLPOOL cbe2a859f6dfb82c3df652ed1fbe8982348f9c6ab61491153ce735e857275904639c003853a02188f8bc567d2eae7a710683b09d9cff67c3a4b8d7a0eb9a082e diff --git a/dev-util/strace/files/strace-4.5.20-sparc.patch b/dev-util/strace/files/strace-4.5.20-sparc.patch new file mode 100644 index 000000000000..daae6accdb42 --- /dev/null +++ b/dev-util/strace/files/strace-4.5.20-sparc.patch @@ -0,0 +1,42 @@ +https://bugs.gentoo.org/336939 + +From b7915d15b813c56a36510e942fa4e5ec21307924 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Frederik=20Sch=C3=BCler?= <fs@debian.org> +Date: Thu, 29 Apr 2010 00:48:45 +0200 +Subject: [PATCH] linux/sparc: add missing syscall declarations +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +* linux/sparc/syscall.h: Sync with linux/syscall.h + +Signed-off-by: Frederik Schüler <fs@debian.org> +--- + linux/sparc/syscall.h | 5 +++++ + 1 files changed, 5 insertions(+), 0 deletions(-) + +diff --git a/linux/sparc/syscall.h b/linux/sparc/syscall.h +index 03e3a71..07bc777 100644 +--- a/linux/sparc/syscall.h ++++ b/linux/sparc/syscall.h +@@ -208,12 +208,17 @@ int sys_timer_create(), sys_timer_settime(), sys_timer_gettime(); + int sys_io_setup(), sys_io_destroy(), sys_io_submit(), sys_io_cancel(), sys_io_getevents(); + int sys_mq_open(), sys_mq_unlink(), sys_mq_timedsend(), sys_mq_timedreceive(), sys_mq_notify(), sys_mq_getsetattr(); + int sys_waitid(); ++int sys_mbind(), sys_get_mempolicy(), sys_set_mempolicy(); ++int sys_utimensat(); ++int sys_fallocate(), sys_timerfd_create(), sys_timerfd_settime(), sys_timerfd_gettime(); + int sys_openat(), sys_mkdirat(), sys_mknodat(), sys_fchownat(), sys_futimesat(), sys_newfstatat(), sys_unlinkat(), sys_renameat(), sys_linkat(), sys_symlinkat(), sys_readlinkat(), sys_fchmodat(), sys_faccessat(); + int sys_pselect6(), sys_ppoll(); + int sys_unshare(); + int sys_move_pages(), sys_getcpu(); + int sys_epoll_pwait(); + int sys_signalfd(), sys_timerfd(), sys_eventfd(); ++int sys_signalfd4(), sys_eventfd2(), sys_epoll_create1(), sys_dup3(), sys_pipe2(); ++int sys_inotify_init1(); + + # define SYS_socket_subcall 353 + #define SYS_sub_socket (SYS_socket_subcall + 1) +-- +1.7.2 + diff --git a/dev-util/strace/files/strace-4.7-glibc-2.15.patch b/dev-util/strace/files/strace-4.7-glibc-2.15.patch new file mode 100644 index 000000000000..c23a86ff98a1 --- /dev/null +++ b/dev-util/strace/files/strace-4.7-glibc-2.15.patch @@ -0,0 +1,53 @@ +https://bugs.gentoo.org/414637 + +From 302e8ec6cd62912a3cd6494ce6702f4ad8dae0e2 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Fri, 4 May 2012 19:30:59 -0400 +Subject: [PATCH] util: fix building when glibc has a stub process_vm_readv + +If you have a newer glibc which provides process_vm_readv, but it is built +against older kernel headers which lack __NR_process_vm_readv, the library +will contain a stub implementation that just returns ENOSYS. Autoconf +checks for this case explicitly and will declare it as unavailable. So we +end up in a case where the headers provide the prototype, but autoconf has +not defined HAVE_PROCESS_VM_READV, so we hit the same build failure again: + +util.c:738:16: error: static declaration of 'process_vm_readv' follows non-static declaration +/usr/include/bits/uio.h:58:16: note: previous declaration of 'process_vm_readv' was here + +So rename our local function to something unique, and add a define so the +callers all hit the right place. + +* util.c (strace_process_vm_readv): Rename from process_vm_readv. +(process_vm_readv): Define to strace_process_vm_readv. + +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +--- + util.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/util.c b/util.c +index d347bd8..f27acdf 100644 +--- a/util.c ++++ b/util.c +@@ -735,7 +735,8 @@ static bool process_vm_readv_not_supported = 0; + + #if defined(__NR_process_vm_readv) + static bool process_vm_readv_not_supported = 0; +-static ssize_t process_vm_readv(pid_t pid, ++/* Have to avoid duplicating with the C library headers. */ ++static ssize_t strace_process_vm_readv(pid_t pid, + const struct iovec *lvec, + unsigned long liovcnt, + const struct iovec *rvec, +@@ -744,6 +745,7 @@ static ssize_t process_vm_readv(pid_t pid, + { + return syscall(__NR_process_vm_readv, (long)pid, lvec, liovcnt, rvec, riovcnt, flags); + } ++#define process_vm_readv strace_process_vm_readv + #else + static bool process_vm_readv_not_supported = 1; + # define process_vm_readv(...) (errno = ENOSYS, -1) +-- +1.7.9.7 + diff --git a/dev-util/strace/files/strace-4.7-x32.patch b/dev-util/strace/files/strace-4.7-x32.patch new file mode 100644 index 000000000000..4a7a3db41682 --- /dev/null +++ b/dev-util/strace/files/strace-4.7-x32.patch @@ -0,0 +1,89 @@ +From 364ed4f14c5edb5ddbc79c72d22498219033b29d Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Mon, 4 Jun 2012 13:19:42 -0400 +Subject: [PATCH] x32: update syscall table + +This syncs with the syscall table as it is in linux 3.4. + +* linux/x32/syscallent.h (59): Fix comment typo. +(78): Add missing getdents entry. +(174): Delete create_module entry (not in the kernel). +(181, 182, 183, 184, 185): Add missing entries. +(524, 536, 539, 540): Fix spacing. + +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +--- + linux/x32/syscallent.h | 24 ++++++++++++------------ + 1 file changed, 12 insertions(+), 12 deletions(-) + +diff --git a/linux/x32/syscallent.h b/linux/x32/syscallent.h +index fcb6a23..ee4c4ce 100644 +--- a/linux/x32/syscallent.h ++++ b/linux/x32/syscallent.h +@@ -57,7 +57,7 @@ + { 5, TP, sys_clone, "clone" }, /* 56 */ + { 0, TP, sys_fork, "fork" }, /* 57 */ + { 0, TP, sys_vfork, "vfork" }, /* 58 */ +- { }, /* 47 */ ++ { }, /* 59 */ + { 1, TP, sys_exit, "_exit" }, /* 60 */ + { 4, TP, sys_wait4, "wait4" }, /* 61 */ + { 2, TS, sys_kill, "kill" }, /* 62 */ +@@ -76,7 +76,7 @@ + { 1, TD, sys_fdatasync, "fdatasync" }, /* 75 */ + { 2, TF, sys_truncate, "truncate" }, /* 76 */ + { 2, TD, sys_ftruncate, "ftruncate" }, /* 77 */ +- { }, /* 78 */ ++ { 3, TD, sys_getdents, "getdents" }, /* 78 */ + { 2, TF, sys_getcwd, "getcwd" }, /* 79 */ + { 1, TF, sys_chdir, "chdir" }, /* 80 */ + { 1, TD, sys_fchdir, "fchdir" }, /* 81 */ +@@ -172,18 +172,18 @@ + { 2, 0, sys_setdomainname, "setdomainname" }, /* 171 */ + { 1, 0, sys_iopl, "iopl" }, /* 172 */ + { 3, 0, sys_ioperm, "ioperm" }, /* 173 */ +- { 2, 0, sys_create_module, "create_module" }, /* 174 */ ++ { }, /* 174 */ + { 3, 0, sys_init_module, "init_module" }, /* 175 */ + { 2, 0, sys_delete_module, "delete_module" }, /* 176 */ + { }, /* 177 */ + { }, /* 178 */ + { 4, 0, sys_quotactl, "quotactl" }, /* 179 */ + { }, /* 180 */ +- { }, /* 181 */ +- { }, /* 182 */ +- { }, /* 183 */ +- { }, /* 184 */ +- { }, /* 185 */ ++ { 5, 0, sys_getpmsg, "getpmsg" }, /* 181 */ ++ { 5, 0, sys_putpmsg, "putpmsg" }, /* 182 */ ++ { 5, 0, sys_afs_syscall, "afs_syscall" }, /* 183 */ ++ { 3, 0, sys_tuxcall, "tuxcall" }, /* 184 */ ++ { 3, 0, sys_security, "security" }, /* 185 */ + { 0, 0, sys_gettid, "gettid" }, /* 186 */ + { 4, TD, sys_readahead, "readahead" }, /* 187 */ + { 5, TF, sys_setxattr, "setxattr" }, /* 188 */ +@@ -325,7 +325,7 @@ + { 4, 0, sys_ptrace, "ptrace" }, /* 521 */ + { 2, TS, sys_rt_sigpending, "rt_sigpending" }, /* 522 */ + { 4, TS, sys_rt_sigtimedwait, "rt_sigtimedwait" }, /* 523 */ +- { 3, TS, sys_rt_sigqueueinfo, "rt_sigqueueinfo" }, /* 524 */ ++ { 3, TS, sys_rt_sigqueueinfo, "rt_sigqueueinfo" }, /* 524 */ + { 2, TS, sys_sigaltstack, "sigaltstack" }, /* 525 */ + { 3, 0, sys_timer_create, "timer_create" }, /* 526 */ + { 2, 0, sys_mq_notify, "mq_notify" }, /* 527 */ +@@ -337,8 +337,8 @@ + { 6, 0, sys_move_pages, "move_pages" }, /* 533 */ + { 5, TD, sys_preadv, "preadv" }, /* 534 */ + { 5, TD, sys_pwritev, "pwritev" }, /* 535 */ +- { 4, TP|TS, sys_rt_tgsigqueueinfo, "rt_tgsigqueueinfo"}, /* 536 */ ++ { 4, TP|TS, sys_rt_tgsigqueueinfo, "rt_tgsigqueueinfo" }, /* 536 */ + { 5, TN, sys_recvmmsg, "recvmmsg" }, /* 537 */ + { 4, TN, sys_sendmmsg, "sendmmsg" }, /* 538 */ +- { 6, 0, sys_process_vm_readv, "process_vm_readv"}, /* 539 */ +- { 6, 0, sys_process_vm_writev, "process_vm_writev"}, /* 540 */ ++ { 6, 0, sys_process_vm_readv, "process_vm_readv" }, /* 539 */ ++ { 6, 0, sys_process_vm_writev, "process_vm_writev" }, /* 540 */ +-- +1.7.9.7 + diff --git a/dev-util/strace/metadata.xml b/dev-util/strace/metadata.xml new file mode 100644 index 000000000000..392a501dd31a --- /dev/null +++ b/dev-util/strace/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>base-system</herd> + <use> + <flag name="aio"> + Enable <pkg>dev-libs/libaio</pkg> support for tracing Asynchronous I/O operations + </flag> + </use> + <upstream> + <remote-id type="sourceforge">strace</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-util/strace/strace-4.10.ebuild b/dev-util/strace/strace-4.10.ebuild new file mode 100644 index 000000000000..289f2f73c3e9 --- /dev/null +++ b/dev-util/strace/strace-4.10.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit flag-o-matic eutils + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://strace.git.sourceforge.net/gitroot/strace/strace" + inherit git-2 autotools +else + SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux" +fi + +DESCRIPTION="A useful diagnostic, instructional, and debugging tool" +HOMEPAGE="http://sourceforge.net/projects/strace/" + +LICENSE="BSD" +SLOT="0" +IUSE="aio perl static" + +# strace only uses the header from libaio to decode structs +DEPEND="aio? ( >=dev-libs/libaio-0.3.106 ) + sys-kernel/linux-headers" +RDEPEND="perl? ( dev-lang/perl )" + +src_prepare() { + if epatch_user || [[ ! -e configure ]] ; then + # git generation + ./xlat/gen.sh + eautoreconf + [[ ! -e CREDITS ]] && cp CREDITS{.in,} + fi + + filter-lfs-flags # configure handles this sanely + use static && append-ldflags -static + + export ac_cv_header_libaio_h=$(usex aio) +} + +src_install() { + default + use perl || rm "${ED}"/usr/bin/strace-graph + dodoc CREDITS +} diff --git a/dev-util/strace/strace-4.5.19.ebuild b/dev-util/strace/strace-4.5.19.ebuild new file mode 100644 index 000000000000..af80b230960d --- /dev/null +++ b/dev-util/strace/strace-4.5.19.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit flag-o-matic + +DESCRIPTION="A useful diagnostic, instructional, and debugging tool" +HOMEPAGE="http://sourceforge.net/projects/strace/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~ia64-linux ~x86-linux" +IUSE="static aio" + +# strace only uses the header from libaio +DEPEND="aio? ( >=dev-libs/libaio-0.3.106 )" +RDEPEND="" + +src_compile() { + filter-lfs-flags # configure handles this sanely + use static && append-ldflags -static + + use aio || export ac_cv_header_libaio_h=no # + econf || die + emake || die +} + +src_install() { + emake install DESTDIR="${D}" || die + dodoc ChangeLog CREDITS NEWS PORTING README* TODO +} diff --git a/dev-util/strace/strace-4.5.20-r2.ebuild b/dev-util/strace/strace-4.5.20-r2.ebuild new file mode 100644 index 000000000000..aea62df0f733 --- /dev/null +++ b/dev-util/strace/strace-4.5.20-r2.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit flag-o-matic eutils + +DESCRIPTION="A useful diagnostic, instructional, and debugging tool" +HOMEPAGE="http://sourceforge.net/projects/strace/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2 + http://dev.gentoo.org/~flameeyes/patches/${PN}/${P}-ioctls.patch.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~ia64-linux ~x86-linux" +IUSE="static aio" + +# strace only uses the header from libaio +DEPEND="aio? ( >=dev-libs/libaio-0.3.106 ) + sys-kernel/linux-headers" +RDEPEND="" + +src_prepare() { + epatch "${FILESDIR}"/${P}-sparc.patch #336939 + epatch "${WORKDIR}"/${P}-ioctls.patch +} + +src_configure() { + filter-lfs-flags # configure handles this sanely + use static && append-ldflags -static + + use aio || export ac_cv_header_libaio_h=no + + econf +} + +src_install() { + emake install DESTDIR="${D}" || die + dodoc ChangeLog CREDITS NEWS PORTING README* TODO +} diff --git a/dev-util/strace/strace-4.5.20.ebuild b/dev-util/strace/strace-4.5.20.ebuild new file mode 100644 index 000000000000..fa429f4ea691 --- /dev/null +++ b/dev-util/strace/strace-4.5.20.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit flag-o-matic eutils + +DESCRIPTION="A useful diagnostic, instructional, and debugging tool" +HOMEPAGE="http://sourceforge.net/projects/strace/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~ia64-linux ~x86-linux" +IUSE="static aio" + +# strace only uses the header from libaio +DEPEND="aio? ( >=dev-libs/libaio-0.3.106 )" +RDEPEND="" + +src_prepare() { + epatch "${FILESDIR}"/${P}-sparc.patch #336939 + + filter-lfs-flags # configure handles this sanely + use static && append-ldflags -static + + use aio || export ac_cv_header_libaio_h=no # +} + +src_install() { + emake install DESTDIR="${D}" || die + dodoc ChangeLog CREDITS NEWS PORTING README* TODO +} diff --git a/dev-util/strace/strace-4.6.ebuild b/dev-util/strace/strace-4.6.ebuild new file mode 100644 index 000000000000..258f0ad58bde --- /dev/null +++ b/dev-util/strace/strace-4.6.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" + +inherit flag-o-matic eutils autotools + +DESCRIPTION="A useful diagnostic, instructional, and debugging tool" +HOMEPAGE="http://sourceforge.net/projects/strace/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz + mirror://gentoo/${P}-x32.patch.xz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~ia64-linux ~x86-linux" +IUSE="static aio" + +# strace only uses the header from libaio +DEPEND="aio? ( >=dev-libs/libaio-0.3.106 ) + sys-kernel/linux-headers" +RDEPEND="" + +src_prepare() { + if has x32 $(get_all_abis) ; then + epatch "${WORKDIR}"/${P}-x32.patch + eautoreconf + fi +} + +src_configure() { + filter-lfs-flags # configure handles this sanely + use static && append-ldflags -static + + use aio || export ac_cv_header_libaio_h=no + + econf +} + +src_install() { + emake install DESTDIR="${D}" || die + dodoc ChangeLog CREDITS NEWS PORTING README* TODO +} diff --git a/dev-util/strace/strace-4.7.ebuild b/dev-util/strace/strace-4.7.ebuild new file mode 100644 index 000000000000..197651b5108b --- /dev/null +++ b/dev-util/strace/strace-4.7.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit flag-o-matic eutils + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://strace.git.sourceforge.net/gitroot/strace/strace" + inherit git-2 autotools +else + SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz" + KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux" +fi + +DESCRIPTION="A useful diagnostic, instructional, and debugging tool" +HOMEPAGE="http://sourceforge.net/projects/strace/" + +LICENSE="BSD" +SLOT="0" +IUSE="static aio" + +# strace only uses the header from libaio to decode structs +DEPEND="aio? ( >=dev-libs/libaio-0.3.106 ) + sys-kernel/linux-headers" +RDEPEND="" + +src_prepare() { + epatch "${FILESDIR}"/${P}-glibc-2.15.patch #414637 + epatch "${FILESDIR}"/${P}-x32.patch + + if epatch_user || [[ ! -e configure ]] ; then + # git generation + eautoreconf + [[ ! -e CREDITS ]] && cp CREDITS{.in,} + fi + + filter-lfs-flags # configure handles this sanely + use static && append-ldflags -static + + export ac_cv_header_libaio_h=$(usex aio) +} + +src_install() { + default + dodoc CREDITS +} diff --git a/dev-util/strace/strace-4.8.ebuild b/dev-util/strace/strace-4.8.ebuild new file mode 100644 index 000000000000..021671ea7dba --- /dev/null +++ b/dev-util/strace/strace-4.8.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit flag-o-matic eutils + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://strace.git.sourceforge.net/gitroot/strace/strace" + inherit git-2 autotools +else + SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz" + KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux" +fi + +DESCRIPTION="A useful diagnostic, instructional, and debugging tool" +HOMEPAGE="http://sourceforge.net/projects/strace/" + +LICENSE="BSD" +SLOT="0" +IUSE="aio +perl static" + +# strace only uses the header from libaio to decode structs +DEPEND="aio? ( >=dev-libs/libaio-0.3.106 ) + sys-kernel/linux-headers" +RDEPEND="" + +src_prepare() { + if epatch_user || [[ ! -e configure ]] ; then + # git generation + eautoreconf + [[ ! -e CREDITS ]] && cp CREDITS{.in,} + fi + + filter-lfs-flags # configure handles this sanely + use static && append-ldflags -static + + export ac_cv_header_libaio_h=$(usex aio) +} + +src_install() { + default + use perl || rm "${ED}"/usr/bin/strace-graph + dodoc CREDITS +} diff --git a/dev-util/strace/strace-4.9.ebuild b/dev-util/strace/strace-4.9.ebuild new file mode 100644 index 000000000000..287aa8b3dfb3 --- /dev/null +++ b/dev-util/strace/strace-4.9.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit flag-o-matic eutils + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://strace.git.sourceforge.net/gitroot/strace/strace" + inherit git-2 autotools +else + SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz" + KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux" +fi + +DESCRIPTION="A useful diagnostic, instructional, and debugging tool" +HOMEPAGE="http://sourceforge.net/projects/strace/" + +LICENSE="BSD" +SLOT="0" +IUSE="aio +perl static" + +# strace only uses the header from libaio to decode structs +DEPEND="aio? ( >=dev-libs/libaio-0.3.106 ) + sys-kernel/linux-headers" +RDEPEND="" + +src_prepare() { + if epatch_user || [[ ! -e configure ]] ; then + # git generation + ./xlat/gen.sh + eautoreconf + [[ ! -e CREDITS ]] && cp CREDITS{.in,} + fi + + filter-lfs-flags # configure handles this sanely + use static && append-ldflags -static + + export ac_cv_header_libaio_h=$(usex aio) +} + +src_install() { + default + use perl || rm "${ED}"/usr/bin/strace-graph + dodoc CREDITS +} diff --git a/dev-util/strace/strace-9999.ebuild b/dev-util/strace/strace-9999.ebuild new file mode 100644 index 000000000000..289f2f73c3e9 --- /dev/null +++ b/dev-util/strace/strace-9999.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit flag-o-matic eutils + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://strace.git.sourceforge.net/gitroot/strace/strace" + inherit git-2 autotools +else + SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux" +fi + +DESCRIPTION="A useful diagnostic, instructional, and debugging tool" +HOMEPAGE="http://sourceforge.net/projects/strace/" + +LICENSE="BSD" +SLOT="0" +IUSE="aio perl static" + +# strace only uses the header from libaio to decode structs +DEPEND="aio? ( >=dev-libs/libaio-0.3.106 ) + sys-kernel/linux-headers" +RDEPEND="perl? ( dev-lang/perl )" + +src_prepare() { + if epatch_user || [[ ! -e configure ]] ; then + # git generation + ./xlat/gen.sh + eautoreconf + [[ ! -e CREDITS ]] && cp CREDITS{.in,} + fi + + filter-lfs-flags # configure handles this sanely + use static && append-ldflags -static + + export ac_cv_header_libaio_h=$(usex aio) +} + +src_install() { + default + use perl || rm "${ED}"/usr/bin/strace-graph + dodoc CREDITS +} |