Date: Sun, 31 Aug 2008 01:47:58 GMT From: Pedro Giffuni <pfgshield-freebsd@yahoo.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/126986: update devel/libdwarf to version 20080615 Message-ID: <200808310147.m7V1lwMf031802@www.freebsd.org> Resent-Message-ID: <200808310150.m7V1o2mX014919@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 126986 >Category: ports >Synopsis: update devel/libdwarf to version 20080615 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Aug 31 01:50:02 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Pedro Giffuni >Release: 7.0-Release >Organization: >Environment: FreeBSD kakumen.cable.net.co 7.0-RELEASE-p3 FreeBSD 7.0-RELEASE-p3 #0: Fri Aug 8 16:42:27 COT 2008 root@kakumen.cable.net.co:/usr/src/sys/amd64/compile/GENERIC amd64 >Description: - Update libdwarf and fix some typos in a header. - Use BSDlibelf on FreeBSD >= 7.x - A followup for dwarfdump should follow soon. >How-To-Repeat: - Version 20080615 is not the latest but the latest doesn't build out-of-the-box, something to investigate later. >Fix: diff -ruN libdwarf.orig/Makefile libdwarf/Makefile --- libdwarf.orig/Makefile 2008-07-05 10:08:44.000000000 -0500 +++ libdwarf/Makefile 2008-08-30 20:30:12.000000000 -0500 @@ -6,15 +6,18 @@ # PORTNAME= libdwarf -PORTVERSION= 20070703 -PORTREVISION= 1 +PORTVERSION= 20080615 CATEGORIES= devel MASTER_SITES= http://reality.sgiweb.org/davea/ MAINTAINER= joerg@FreeBSD.org COMMENT= A library to analyze DWARF debugging information in ELF files +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 700000 BUILD_DEPENDS= ${LOCALBASE}/lib/libelf.so.0:${PORTSDIR}/devel/libelf +.endif WRKSRC= ${WRKDIR}/dwarf-${PORTVERSION}/libdwarf @@ -33,4 +36,4 @@ ${INSTALL_DATA} ${WRKSRC}/$$f ${PREFIX}/share/doc/libdwarf ; \ done -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff -ruN libdwarf.orig/distinfo libdwarf/distinfo --- libdwarf.orig/distinfo 2008-07-05 10:08:44.000000000 -0500 +++ libdwarf/distinfo 2008-08-30 20:30:20.000000000 -0500 @@ -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 -ruN libdwarf.orig/files/patch-dwarf_error.c libdwarf/files/patch-dwarf_error.c --- libdwarf.orig/files/patch-dwarf_error.c 1969-12-31 19:00:00.000000000 -0500 +++ libdwarf/files/patch-dwarf_error.c 2008-08-30 20:35:54.000000000 -0500 @@ -0,0 +1,11 @@ +--- dwarf_error.c.orig 2008-08-30 20:32:21.000000000 -0500 ++++ dwarf_error.c 2008-08-30 20:33:23.000000000 -0500 +@@ -281,7 +281,7 @@ + "DW_DLE_DF_FRAME_DECODING_ERROR(193)", + "DW_DLE_DEBUG_LOC_SECTION_SHORT(194)", + "DW_DLE_FRAME_AUGMENTATION_UNKNOWN(195)", +- "DW_DLA_PUBTYPE_CONTEXT(196)", ++ "DW_DLE_PUBTYPE_CONTEXT(196)", + "DW_DLE_DEBUG_PUBTYPES_LENGTH_BAD(197)", + "DW_DLE_DEBUG_PUBTYPES_VERSION_ERROR(198)", + "DW_DLE_DEBUG_PUBTYPES_DUPLICATE(199)", diff -ruN libdwarf.orig/files/patch-libdwarf.h libdwarf/files/patch-libdwarf.h --- libdwarf.orig/files/patch-libdwarf.h 1969-12-31 19:00:00.000000000 -0500 +++ libdwarf/files/patch-libdwarf.h 2008-08-30 20:35:06.000000000 -0500 @@ -0,0 +1,11 @@ +--- libdwarf.h.orig 2008-08-30 20:32:29.000000000 -0500 ++++ libdwarf.h 2008-08-30 20:33:43.000000000 -0500 +@@ -897,7 +897,7 @@ + #define DW_DLE_DF_FRAME_DECODING_ERROR 193 + #define DW_DLE_DEBUG_LOC_SECTION_SHORT 194 + #define DW_DLE_FRAME_AUGMENTATION_UNKNOWN 195 +-#define DW_DLA_PUBTYPE_CONTEXT 196 ++#define DW_DLE_PUBTYPE_CONTEXT 196 + #define DW_DLE_DEBUG_PUBTYPES_LENGTH_BAD 197 + #define DW_DLE_DEBUG_PUBTYPES_VERSION_ERROR 198 + #define DW_DLE_DEBUG_PUBTYPES_DUPLICATE 199 diff -ruN libdwarf.orig/files/patch-pro_incl.h libdwarf/files/patch-pro_incl.h --- libdwarf.orig/files/patch-pro_incl.h 2008-07-05 10:08:44.000000000 -0500 +++ libdwarf/files/patch-pro_incl.h 2008-07-05 10:16:24.000000000 -0500 @@ -1,12 +1,9 @@ ---- pro_incl.h.orig Mon Nov 22 19:20:35 2004 -+++ pro_incl.h Sat Feb 12 22:17:11 2005 -@@ -38,6 +38,18 @@ - #ifdef HAVE_ELF_H - #include <elf.h> +--- pro_incl.h.orig 2008-06-16 10:06:57.000000000 -0500 ++++ pro_incl.h 2008-07-05 10:15:46.000000000 -0500 +@@ -43,6 +43,14 @@ + type defined (a required type). */ + #include <libelf.h> #endif -+#ifdef __SGI_FAST_LIBELF -+#include <libelf_sgi.h> -+#else +#ifdef HAVE_LIBELF_H +#include <libelf.h> +#else @@ -14,8 +11,7 @@ +#include <libelf/libelf.h> +#endif +#endif -+#endif /* !defined(__SGI_FAST_LIBELF) */ + - /* The target address is given: the place in the source integer - is to be determined. + #if defined(sun) + #include <sys/elf_SPARC.h> >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808310147.m7V1lwMf031802>