diff options
author | pav <pav@FreeBSD.org> | 2008-12-04 07:04:46 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2008-12-04 07:04:46 +0800 |
commit | b7885bf2cba0e85c8a1c3bd8b6af91e0a070e79e (patch) | |
tree | 30d4805ed81afddbfb3a92c4dc7611b2bb8976ec /devel/dwarfdump | |
parent | 20e6ec073fd830759aa9b41517f3b355d9d5e281 (diff) | |
download | freebsd-ports-gnome-b7885bf2cba0e85c8a1c3bd8b6af91e0a070e79e.tar.gz freebsd-ports-gnome-b7885bf2cba0e85c8a1c3bd8b6af91e0a070e79e.tar.zst freebsd-ports-gnome-b7885bf2cba0e85c8a1c3bd8b6af91e0a070e79e.zip |
- Update to 20080615
PR: ports/126987
Submitted by: Pedro Giffuni <pfgshield-freebsd@yahoo.com>
Approved by: maintainer timeout (joerg; 3 months)
Diffstat (limited to 'devel/dwarfdump')
-rw-r--r-- | devel/dwarfdump/Makefile | 18 | ||||
-rw-r--r-- | devel/dwarfdump/distinfo | 6 | ||||
-rw-r--r-- | devel/dwarfdump/files/patch-print_reloc.c | 11 |
3 files changed, 24 insertions, 11 deletions
diff --git a/devel/dwarfdump/Makefile b/devel/dwarfdump/Makefile index d8cb62c5b203..5fada8b60fbc 100644 --- a/devel/dwarfdump/Makefile +++ b/devel/dwarfdump/Makefile @@ -6,8 +6,7 @@ # PORTNAME= dwarfdump -DISTVERSION= 20070703 -PORTREVISION= 1 +PORTVERSION= 20080615 CATEGORIES= devel MASTER_SITES= http://reality.sgiweb.org/davea/ DISTNAME= libdwarf-${PORTVERSION} @@ -15,23 +14,26 @@ DISTNAME= libdwarf-${PORTVERSION} MAINTAINER= joerg@FreeBSD.org COMMENT= A tool to display DWARF debugging information in ELF files -BUILD_DEPENDS= ${LOCALBASE}/lib/libelf.so.0:${PORTSDIR}/devel/libelf \ - ${LOCALBASE}/lib/libdwarf.a:${PORTSDIR}/devel/libdwarf -RUN_DEPENDS= ${LOCALBASE}/lib/libelf.so.0:${PORTSDIR}/devel/libelf +BUILD_DEPENDS= ${LOCALBASE}/lib/libdwarf.a:${PORTSDIR}/devel/libdwarf WRKSRC= ${WRKDIR}/dwarf-${PORTVERSION}/dwarfdump GNU_CONFIGURE= yes CONFIGURE_ENV+= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" -.if (${MACHINE_ARCH} == "amd64") -ARCH= x86_64 -.endif MAN1= dwarfdump.1 .include <bsd.port.pre.mk> +.if ${OSVERSION} < 700000 +LIB_DEPENDS+= elf.0:${PORTSDIR}/devel/libelf +.endif + +.if (${ARCH} == "amd64") +ARCH= x86_64 +.endif + FILES_TO_PATCH=print_reloc.c post-patch: diff --git a/devel/dwarfdump/distinfo b/devel/dwarfdump/distinfo index 85399c2faeea..6bca632a1efd 100644 --- a/devel/dwarfdump/distinfo +++ b/devel/dwarfdump/distinfo @@ -1,3 +1,3 @@ -MD5 (libdwarf-20070703.tar.gz) = 3c67d1df89f05421267ede59feec8152 -SHA256 (libdwarf-20070703.tar.gz) = 6e2194156928285bc192f6ac02f3be924c2980801e55e987c1051275b8dc9681 -SIZE (libdwarf-20070703.tar.gz) = 1064669 +MD5 (libdwarf-20080615.tar.gz) = 4ee8f6bcc5d7dfd58373dea387a9b957 +SHA256 (libdwarf-20080615.tar.gz) = f787bb48ecebdaadbfd3ebc5d01121decaaf00c11125d9c7636376ecf1daa988 +SIZE (libdwarf-20080615.tar.gz) = 1092542 diff --git a/devel/dwarfdump/files/patch-print_reloc.c b/devel/dwarfdump/files/patch-print_reloc.c new file mode 100644 index 000000000000..8d91589e8017 --- /dev/null +++ b/devel/dwarfdump/files/patch-print_reloc.c @@ -0,0 +1,11 @@ +--- print_reloc.c.orig 2008-08-30 21:13:43.000000000 -0500 ++++ print_reloc.c 2008-08-30 21:18:48.000000000 -0500 +@@ -409,7 +409,7 @@ + } + } else if (sym_data_64) { + size_t index = ELF64_R_SYM(p->r_info) - 1; +- if(index < sym_data_entry_count) { ++ if(index < sym_data_64_entry_count) { + name = sym_data_64[index].name; + } + } |