summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Walker <ka0ttic@gentoo.org>2005-02-10 12:16:00 +0000
committerAaron Walker <ka0ttic@gentoo.org>2005-02-10 12:16:00 +0000
commit62a8d4e889b42fc98e46fca7778f1a0fd09e2d6e (patch)
treeb9669bbbd893f7c82ffe9eed3c259fd7b80c9942 /dev-util
parentadd patch (diff)
downloadhistorical-62a8d4e889b42fc98e46fca7778f1a0fd09e2d6e.tar.gz
historical-62a8d4e889b42fc98e46fca7778f1a0fd09e2d6e.tar.bz2
historical-62a8d4e889b42fc98e46fca7778f1a0fd09e2d6e.zip
Version bump; 64-bit fixes are no longer required. Also uncompressed 64-bit patch as compressed files are evil (and it's only 5k uncompressed).
Package-Manager: portage-2.0.51-r15
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/ltrace/ChangeLog13
-rw-r--r--dev-util/ltrace/Manifest19
-rw-r--r--dev-util/ltrace/files/digest-ltrace-0.3.362
-rw-r--r--dev-util/ltrace/files/ltrace-0.3.31-64bit-fixes.patch183
-rw-r--r--dev-util/ltrace/files/ltrace-0.3.31-64bit-fixes.patch.bz2bin1998 -> 0 bytes
-rw-r--r--dev-util/ltrace/ltrace-0.3.31.ebuild6
-rw-r--r--dev-util/ltrace/ltrace-0.3.36.ebuild40
-rw-r--r--dev-util/ltrace/metadata.xml9
8 files changed, 264 insertions, 8 deletions
diff --git a/dev-util/ltrace/ChangeLog b/dev-util/ltrace/ChangeLog
index 41a23476c545..5c0490c0f9f5 100644
--- a/dev-util/ltrace/ChangeLog
+++ b/dev-util/ltrace/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for dev-util/ltrace
-# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/ltrace/ChangeLog,v 1.17 2004/07/02 05:10:21 eradicator Exp $
+# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/ltrace/ChangeLog,v 1.18 2005/02/10 12:16:00 ka0ttic Exp $
+
+*ltrace-0.3.36 (10 Feb 2005)
+
+ 10 Feb 2005; Aaron Walker <ka0ttic@gentoo.org> +metadata.xml,
+ +files/ltrace-0.3.31-64bit-fixes.patch,
+ -files/ltrace-0.3.31-64bit-fixes.patch.bz2, ltrace-0.3.31.ebuild,
+ +ltrace-0.3.36.ebuild:
+ Version bump; 64-bit fixes are no longer required. Also uncompressed 64-bit
+ patch as compressed files are evil (and it's only 5k uncompressed).
01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org> ltrace-0.3.31.ebuild:
virtual/glibc -> virtual/libc
diff --git a/dev-util/ltrace/Manifest b/dev-util/ltrace/Manifest
index b165847615e4..509ecb158e4d 100644
--- a/dev-util/ltrace/Manifest
+++ b/dev-util/ltrace/Manifest
@@ -1,4 +1,17 @@
-MD5 f74d1efc052934d74d53fcbede414479 ChangeLog 2036
-MD5 810fbc6f92437f8afccb278e503cffcc ltrace-0.3.31.ebuild 1189
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 76d9314e35a37853037e4b019bd74f55 ltrace-0.3.36.ebuild 1041
+MD5 b6578e9b7d81761f57705b97ae9c45a6 ltrace-0.3.31.ebuild 1182
+MD5 23b9543aceea2fe8654069a99f887814 ChangeLog 2411
+MD5 f8d10f350e91f30316ea4e1bd1e76470 metadata.xml 254
MD5 bdd8f496365cbecd525f682a272b724b files/digest-ltrace-0.3.31 136
-MD5 455b619b8ad9fe2bc7507178efef0e58 files/ltrace-0.3.31-64bit-fixes.patch.bz2 1998
+MD5 e47294592c0a563211ba0514190db9f1 files/digest-ltrace-0.3.36 136
+MD5 f196bc8262608da52e8a9cb90dbac6e5 files/ltrace-0.3.31-64bit-fixes.patch 5964
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.0 (GNU/Linux)
+
+iD8DBQFCC1D4EZCkKN40op4RAj4JAKC8FrkCbMNYK+U1MHY/Z+V6ZVZE5gCcDqJv
+KFDcFyfVeXJTBnH1km2dPy0=
+=891Q
+-----END PGP SIGNATURE-----
diff --git a/dev-util/ltrace/files/digest-ltrace-0.3.36 b/dev-util/ltrace/files/digest-ltrace-0.3.36
new file mode 100644
index 000000000000..ee055fb95407
--- /dev/null
+++ b/dev-util/ltrace/files/digest-ltrace-0.3.36
@@ -0,0 +1,2 @@
+MD5 674c9a7ddbe2a4ec10564dbb09b2261a ltrace_0.3.36.orig.tar.gz 122098
+MD5 39a34a5ef5fe98f82b1cc2aa16ee1f67 ltrace_0.3.36-2.diff.gz 7844
diff --git a/dev-util/ltrace/files/ltrace-0.3.31-64bit-fixes.patch b/dev-util/ltrace/files/ltrace-0.3.31-64bit-fixes.patch
new file mode 100644
index 000000000000..4bcb7801e83e
--- /dev/null
+++ b/dev-util/ltrace/files/ltrace-0.3.31-64bit-fixes.patch
@@ -0,0 +1,183 @@
+--- ltrace-0.3.31/sysdeps/linux-gnu/breakpoint.c.64bit-fixes 2002-03-03 02:25:55.000000000 +0100
++++ ltrace-0.3.31/sysdeps/linux-gnu/breakpoint.c 2003-02-11 16:37:32.000000000 +0100
+@@ -14,7 +14,7 @@ enable_breakpoint(pid_t pid, struct brea
+ int i,j;
+
+ if (opt_d>1) {
+- output_line(0, "enable_breakpoint(%d,0x%08x)", pid, sbp->addr);
++ output_line(0, "enable_breakpoint(%d,%p)", pid, sbp->addr);
+ }
+
+ for(i=0; i < 1+((BREAKPOINT_LENGTH-1)/sizeof(long)); i++) {
+@@ -34,7 +34,7 @@ disable_breakpoint(pid_t pid, const stru
+ int i,j;
+
+ if (opt_d>1) {
+- output_line(0, "disable_breakpoint(%d,0x%08x)", pid, sbp->addr);
++ output_line(0, "disable_breakpoint(%d,%p)", pid, sbp->addr);
+ }
+
+ for(i=0; i < 1+((BREAKPOINT_LENGTH-1)/sizeof(long)); i++) {
+--- ltrace-0.3.31/elf.h.64bit-fixes 2001-07-02 16:53:04.000000000 +0200
++++ ltrace-0.3.31/elf.h 2003-02-11 16:37:32.000000000 +0100
+@@ -4,12 +4,18 @@
+ #include <elf.h>
+ #include "ltrace.h"
+
++#if defined(__x86_64__)
++#define ELF_(X) Elf64_##X
++#else
++#define ELF_(X) Elf32_##X
++#endif
++
+ struct ltelf {
+ int fd;
+ void* maddr;
+- Elf32_Ehdr* ehdr;
++ ELF_(Ehdr)* ehdr;
+ char* strtab;
+- Elf32_Sym* symtab;
++ ELF_(Sym)* symtab;
+ int symtab_len;
+ };
+
+--- ltrace-0.3.31/output.c.64bit-fixes 2003-02-02 22:51:33.000000000 +0100
++++ ltrace-0.3.31/output.c 2003-02-11 16:37:32.000000000 +0100
+@@ -88,11 +88,11 @@ begin_of_line(enum tof type, struct proc
+ }
+ if (opt_i) {
+ if (type==LT_TOF_FUNCTION) {
+- current_column += fprintf(output, "[%08x] ",
+- (unsigned)proc->return_addr);
++ current_column += fprintf(output, "[%p] ",
++ proc->return_addr);
+ } else {
+- current_column += fprintf(output, "[%08x] ",
+- (unsigned)proc->instruction_pointer);
++ current_column += fprintf(output, "[%p] ",
++ proc->instruction_pointer);
+ }
+ }
+ if (opt_n > 0 && type!=LT_TOF_NONE) {
+--- ltrace-0.3.31/elf.c.64bit-fixes 2003-01-31 10:48:12.000000000 +0100
++++ ltrace-0.3.31/elf.c 2003-02-11 16:37:32.000000000 +0100
+@@ -62,7 +62,7 @@ do_init_elf(struct ltelf *lte, const cha
+ );
+ exit(1);
+ }
+- if (sbuf.st_size < sizeof(Elf32_Ehdr)) {
++ if (sbuf.st_size < sizeof(ELF_(Ehdr))) {
+ fprintf(
+ stderr,
+ "\"%s\" is not an ELF binary object\n",
+@@ -114,8 +114,8 @@ do_close_elf(struct ltelf *lte) {
+ static void
+ do_load_elf_symtab(struct ltelf *lte) {
+ void *maddr = lte->maddr;
+- Elf32_Ehdr *ehdr = lte->ehdr;
+- Elf32_Shdr *shdr = (Elf32_Shdr *)(maddr + ehdr->e_shoff);
++ ELF_(Ehdr) *ehdr = lte->ehdr;
++ ELF_(Shdr) *shdr = (ELF_(Shdr) *)(maddr + ehdr->e_shoff);
+ int i;
+
+ /*
+@@ -126,7 +126,7 @@ do_load_elf_symtab(struct ltelf *lte) {
+
+ for(i = 0; i < ehdr->e_shnum; i++) {
+ if (shdr[i].sh_type == SHT_DYNSYM) {
+- lte->symtab = (Elf32_Sym *)(maddr + shdr[i].sh_offset);
++ lte->symtab = (ELF_(Sym) *)(maddr + shdr[i].sh_offset);
+ lte->symtab_len = shdr[i].sh_size;
+ lte->strtab = (char *)(
+ maddr + shdr[shdr[i].sh_link].sh_offset
+@@ -134,9 +134,9 @@ do_load_elf_symtab(struct ltelf *lte) {
+ }
+ }
+
+- debug(2, "symtab: 0x%08x", (unsigned)lte->symtab);
++ debug(2, "symtab: %p", lte->symtab);
+ debug(2, "symtab_len: %lu", lte->symtab_len);
+- debug(2, "strtab: 0x%08x", (unsigned)lte->strtab);
++ debug(2, "strtab: %p", lte->strtab);
+ }
+
+ static void
+@@ -160,8 +160,8 @@ add_library_symbol(
+ library_symbols->name = &lte->strtab[lte->symtab[i].st_name];
+ library_symbols->next = tmp;
+
+- debug(2, "addr: 0x%08x, symbol: \"%s\"",
+- (unsigned)lte->symtab[i].st_value,
++ debug(2, "addr: %p, symbol: \"%s\"",
++ (void *)lte->symtab[i].st_value,
+ &lte->strtab[lte->symtab[i].st_name]);
+ }
+
+@@ -199,12 +199,12 @@ in_load_libraries(const char *func) {
+ if (library_num == 0) return 1;
+
+ for (i = 0; i < library_num; i++) {
+- Elf32_Sym *symtab = library_lte[i].symtab;
++ ELF_(Sym) *symtab = library_lte[i].symtab;
+ char *strtab = library_lte[i].strtab;
+
+ for(
+ j = 0;
+- j < library_lte[i].symtab_len / sizeof(Elf32_Sym);
++ j < library_lte[i].symtab_len / sizeof(ELF_(Sym));
+ j++
+ ) {
+ if (
+@@ -230,8 +230,8 @@ read_elf(const char *filename) {
+ do_load_elf_symtab(&lte);
+ do_init_load_libraries();
+
+- for(i = 0; i < lte.symtab_len / sizeof(Elf32_Sym); i++) {
+- Elf32_Sym *symtab = lte.symtab;
++ for(i = 0; i < lte.symtab_len / sizeof(ELF_(Sym)); i++) {
++ ELF_(Sym) *symtab = lte.symtab;
+ char *strtab = lte.strtab;
+
+ if (!symtab[i].st_shndx && symtab[i].st_value) {
+--- ltrace-0.3.31/process_event.c.64bit-fixes 2003-02-04 22:48:21.000000000 +0100
++++ ltrace-0.3.31/process_event.c 2003-02-11 16:37:32.000000000 +0100
+@@ -221,7 +221,7 @@ process_breakpoint(struct event * event)
+ struct library_symbol * tmp;
+ int i,j;
+
+- debug(2, "event: breakpoint (0x%08x)", event->e_un.brk_addr);
++ debug(2, "event: breakpoint (%p)", event->e_un.brk_addr);
+ if (event->proc->breakpoint_being_enabled) {
+ /* Reinsert breakpoint */
+ continue_enabling_breakpoint(event->proc->pid, event->proc->breakpoint_being_enabled);
+@@ -277,8 +277,8 @@ process_breakpoint(struct event * event)
+ }
+ tmp = tmp->next;
+ }
+- output_line(event->proc, "breakpointed at 0x%08x (?)",
+- (unsigned)event->e_un.brk_addr);
++ output_line(event->proc, "breakpointed at %p (?)",
++ event->e_un.brk_addr);
+ continue_process(event->proc->pid);
+ }
+
+--- ltrace-0.3.31/display_args.c.64bit-fixes 2002-03-01 17:15:14.000000000 +0100
++++ ltrace-0.3.31/display_args.c 2003-02-11 16:37:32.000000000 +0100
+@@ -39,7 +39,7 @@ display_arg(enum tof type, struct proces
+ if (!arg) {
+ return fprintf(output, "NULL");
+ } else {
+- return fprintf(output, "0x%08x", (unsigned)arg);
++ return fprintf(output, "%p", (void *)arg);
+ }
+ case ARGTYPE_FORMAT:
+ return display_format(type, proc, arg_num);
+@@ -134,7 +134,7 @@ display_unknown(enum tof type, struct pr
+ if (tmp<1000000 && tmp>-1000000) {
+ return fprintf(output, "%ld", tmp);
+ } else {
+- return fprintf(output, "0x%08lx", tmp);
++ return fprintf(output, "0x%0*lx", 2 * sizeof(tmp), tmp);
+ }
+ }
+
diff --git a/dev-util/ltrace/files/ltrace-0.3.31-64bit-fixes.patch.bz2 b/dev-util/ltrace/files/ltrace-0.3.31-64bit-fixes.patch.bz2
deleted file mode 100644
index 6176d201171b..000000000000
--- a/dev-util/ltrace/files/ltrace-0.3.31-64bit-fixes.patch.bz2
+++ /dev/null
Binary files differ
diff --git a/dev-util/ltrace/ltrace-0.3.31.ebuild b/dev-util/ltrace/ltrace-0.3.31.ebuild
index b19c6077ff52..9ecb31065be4 100644
--- a/dev-util/ltrace/ltrace-0.3.31.ebuild
+++ b/dev-util/ltrace/ltrace-0.3.31.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/ltrace/ltrace-0.3.31.ebuild,v 1.13 2004/07/02 05:10:21 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/ltrace/ltrace-0.3.31.ebuild,v 1.14 2005/02/10 12:16:00 ka0ttic Exp $
inherit eutils
@@ -25,7 +25,7 @@ src_unpack() {
unpack ltrace-0.3.26-x86_64.tar.bz2
fi
- epatch ${FILESDIR}/${P}-64bit-fixes.patch.bz2
+ epatch ${FILESDIR}/${P}-64bit-fixes.patch
}
src_compile() {
diff --git a/dev-util/ltrace/ltrace-0.3.36.ebuild b/dev-util/ltrace/ltrace-0.3.36.ebuild
new file mode 100644
index 000000000000..295d7f4cd22f
--- /dev/null
+++ b/dev-util/ltrace/ltrace-0.3.36.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/ltrace/ltrace-0.3.36.ebuild,v 1.1 2005/02/10 12:16:00 ka0ttic Exp $
+
+inherit eutils
+
+MY_P="${P/-/_}"
+DEB_P="${MY_P}-2"
+
+DESCRIPTION="ltrace shows runtime library call information for dynamically linked executables"
+HOMEPAGE="http://packages.debian.org/unstable/utils/ltrace.html"
+SRC_URI="mirror://debian/pool/main/l/ltrace/${MY_P}.orig.tar.gz
+ mirror://debian/pool/main/l/ltrace/${DEB_P}.diff.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc -sparc ~alpha ~hppa ~mips ~amd64 ~ia64"
+IUSE=""
+
+DEPEND="virtual/libc
+ dev-libs/elfutils"
+
+src_unpack() {
+ unpack ${A}
+ epatch ${WORKDIR}/${DEB_P}.diff
+}
+
+#src_compile() {
+# econf || die "econf failed"
+# emake CFLAGS="${CFLAGS}" || die "make failed"
+#}
+
+src_install() {
+# einstall || die
+ make DESTDIR="${D}" install || die "make install failed"
+
+ # documentation
+ rm -rvf ${D}usr/doc/
+ dodoc BUGS COPYING debian/changelog README TODO
+}
diff --git a/dev-util/ltrace/metadata.xml b/dev-util/ltrace/metadata.xml
new file mode 100644
index 000000000000..d31152aca840
--- /dev/null
+++ b/dev-util/ltrace/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>ka0ttic@gentoo.org</email>
+ <name>Aaron Walker</name>
+ </maintainer>
+</pkgmetadata>