diff options
Diffstat (limited to 'debian')
-rw-r--r-- | debian/README.source | 6 | ||||
-rw-r--r-- | debian/changelog | 112 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 29 | ||||
-rw-r--r-- | debian/copyright | 88 | ||||
-rw-r--r-- | debian/dwarfdump.dirs | 3 | ||||
-rw-r--r-- | debian/libdwarf-dev.copyright | 44 | ||||
-rw-r--r-- | debian/libdwarf-dev.dirs | 4 | ||||
-rw-r--r-- | debian/libdwarf-dev.install | 4 | ||||
-rw-r--r-- | debian/patches/dwarfutils_hurd.patch | 26 | ||||
-rw-r--r-- | debian/patches/fix_mapages.patch | 13 | ||||
-rw-r--r-- | debian/patches/series | 2 | ||||
-rwxr-xr-x | debian/rules | 57 |
13 files changed, 389 insertions, 0 deletions
diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 0000000..e8fc0cd --- /dev/null +++ b/debian/README.source @@ -0,0 +1,6 @@ +This package uses quilt to manage patches to the upstream source code. Patches +are stored in the source package as diffs in debian/patches and applied during +the build. For detailed information please refer to the Debian quilt +documentation: + +/usr/share/doc/quilt/README.source diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..58fc260 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,112 @@ +dwarfutils (20120410-2) unstable; urgency=low + + * Fix FTBFS on Debian GNU/Hurd by Barry deFreese <bdefreese@debian.org> + (closes: #678173) + + -- Troy Heber <troyh@debian.org> Mon, 25 Jun 2012 09:42:10 -0600 + +dwarfutils (20120410-1) unstable; urgency=low + + * New upstream release 20120410. + * libdwarf.h: A pointer "*" was right next to a "/*" so a space introduced + between them for clarity. Fixed comments on DW_DLC_SIZE_64 and + DW_DLC_SIZE_32. + * dwarf_die_deliv.c: Two local variables were declared in the middle of + code, accidentally creating C99 dependencies. Both trivially fixed with + no change in logic. + + -- Troy Heber <troyh@debian.org> Mon, 21 May 2012 09:25:24 -0600 + +dwarfutils (20111214-1) unstable; urgency=low + + * New upstream release: 20111214. + * dwarfdump[2]: Added support for DW_OP_GNU operators. Enhanced the + extended-extensions table so known GNU tag-attr dependencies get no + warning. Added support for DWARF3/4 line table values. libdwarf: Added + support for DW_OP_GNU operators. Added dwarf_lineoff_b() function making + dwarf_lineoff() obsolete (but still present). Added + dwarf_add_lineentry_b() as part of preparation for creating DWARF3/4 line + output (including isa and discriminator fields). Added + dwarf_prologue_end_etc() function to access line entry new fields. The + consumer documentation is now at version 2.02 and producer doc at version + 1.32 . dwarfgen: Added example code generating line tables. + * Now libdwarf and dwarfdump/dwarfdump2 support reading and printing the + DWARF4 .debug_types section. + * dwarfdump2: Major change! Now works just like dwarfdump -- with the same + options and capabilities as dwarfdump but by taking advantage of C++ + features it is simpler to read and a bit faster than C dwarfdump. + dwarfdump: Fixed some (minor) problems in detecting compilation units and + showing errors. libdwarf: Now a bit more robust in detecting errors in + object files + * Some minor changes. libdwarf: added -fPIC to enable-shared builds, and + implemented the ability to declare (in dwarfdump.conf) that address-size + is 4 or 8. dwarfdump: Fixed tsearch related call with a memory leak, added + a dwarfdump.conf example showing new includeabi: and address_size: command + lines, configure now sets HAVE_STDAFX_H if that header (non-Linux) exists, + verify checking is on before doing a duplicate-fde check. dwarfdump2: + verify checking is on before doing a duplicate-fde check. + + -- Troy Heber <troyh@debian.org> Fri, 16 Dec 2011 10:50:08 -0700 + +dwarfutils (20110612-2) unstable; urgency=low + + * Fix the description for dwarfdump to reflect it is built with the newer + C++ "dwarfdump2" version. (Closes: #633513) + + -- Troy Heber <troyh@debian.org> Tue, 12 Jul 2011 08:49:43 -0600 + +dwarfutils (20110612-1) unstable; urgency=low + + * New upstream version. + - A function is in the producer: dwarf_producer_init_c(). This provides a + user-defined void* pointer passed through from dwarf_producer_init_c() to + the callback so the user code can provide whatever data it wishes to itself + (in the callback). The library does not inspect the value in any way + - Now DW_FORM_sdata/udata allowed for DW_AT_data_member_location + - A very old bug (looking past the end of .debug_abbrev) fixed + - Added a new function making it easier to get the 'class' of an attribute. + Issues addressed, dwarfdump + - Corrected some line-table error checking and made the options work more + like they are described in a few cases + - Added a new function making it easier to get the 'class' of an + attribute. + - dwarfdump had unused local variables and critical missing () in two tests + made if statements incorrec + - One place = was used in a test erroneously + - The dwarfdump.1 man page is more informative about the -k options now + + -- Troy Heber <troyh@debian.org> Mon, 11 Jul 2011 14:51:21 -0600 + +dwarfutils (20100214-1) unstable; urgency=low + + * New upstream version. + - Dwarfdump now prints generic register names in frame printing instead of + using MIPS register names as the default + - Fixed libdwarf and dwarfdump to handle all DW_OP operators correctly + - Fixed libdwarf and dwarfdump to handle mismatch between elf63 object type + and compilation unity type (32bit). + - Fixed dwarfdump -M option to print all FORMs. + + -- Troy Heber <troyh@debian.org> Tue, 09 Mar 2010 08:25:12 -0700 + +dwarfutils (20091012-1) unstable; urgency=low + + * New upstream version. + - Lots of small bug fixes see the ChangeLog in the source for details + - Adds dwarfdump2 package + - Adds examples + + -- Troy Heber <troyh@debian.org> Thu, 05 Nov 2009 09:10:19 -0700 + +dwarfutils (20080409-2) unstable; urgency=low + + * conflicts with libdw-dev, as both packages provide /usr/include/dwarf.h, + (Closes: #479503) + + -- Troy Heber <troyh@debian.org> Mon, 05 May 2008 07:31:47 -0600 + +dwarfutils (20080409-1) unstable; urgency=low + + * Initial Release (Closes: #447775) + + -- Troy Heber <troyh@debian.org> Wed, 16 Apr 2008 09:49:33 -0600 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..e494c62 --- /dev/null +++ b/debian/control @@ -0,0 +1,29 @@ +Source: dwarfutils +Section: libs +Priority: optional +Maintainer: Troy Heber <troyh@debian.org> +Uploaders: +Build-Depends: debhelper (>> 9), quilt (>= 0.47), libelf-dev, binutils-dev +Standards-Version: 3.9.3.1 + +Package: dwarfdump +Section: utils +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: utility to dump DWARF debug information from ELF objects + This package contains the newer implementation of dwarfdump written in C++, + sometimes called dwarfdump2. + . + This utility is part of dwarfutils. + +Package: libdwarf-dev +Section: libdevel +Architecture: any +Conflicts: libdw-dev +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: library to consume and produce DWARF debug information + The libdwarf package provides a shared library which allows reading/consumer + and writing/producer of DWARF debugging information from object files, shared + libraries, and executables. + . + This library is part of dwarfutils. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..5995b0d --- /dev/null +++ b/debian/copyright @@ -0,0 +1,88 @@ +Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat +Upstream-Name: libdwarf +Upstream-Author: David Anderson, SGI +Original-Source-Location: http://reality.sgiweb.org/davea/dwarf.html +Packaged-By: Troy Heber <troyh@debian.org> +Packaged-Date: Tue, 22 Apr 2008 14:48:30 -0700 + +The code in the dwarfdump directory is (if you look +in each file) covered by the GPL (not the LGPL). The +DWARFDUMPCOPYRIGHT file, though, said (before December 24, +2006) the copyright is LGPL. There is no doubt in my (David +Anderson) mind that the intent was always that dwarfdump be +GPL and the copyright markings in each file are correct. + +Files: dwarfdump/*, dwarfdump2/* +Copyright: 2007-2010 David Anderson. + 1992-2009 Free Software Foundation, Inc. + 1993-2010 Silicon Graphics, Inc. + 2007-2010 Sun Microsystems, Inc. + 2008-2010 Arxan Technologies, Inc. + 2008-2010 SN Systems Ltd. +License: GPL-2 + + On Debian systems, the complete text of the GNU + General Public License can be found in `/usr/share/common-licenses/GPL-2'. + +Files: dwarfexample/* +Copyright: Copyright (c) 2009-2010 David Anderson, All rights reserved. +License: other + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of the example nor the + names of its contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY David Anderson ''AS IS'' AND ANY + EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL David Anderson BE LIABLE FOR ANY + DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +Files: libdwarf/* +Copyright: 2007-2010 David Anderson, Inc. + 1992,1993, UNIX International + 1991-2009 Free Software Foundation, Inc. + 1993 UNIX System Laboratories, Inc. + 1993-2010 Silicon Graphics, Inc. + 2002-2010 Sun Microsystems, Inc. + 2008-2010 Arxan Technologies, Inc. + 2009-2010 Novell Inc. + 2009-2010 SN Systems Ltd. +License: LGPL-2.1 + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + On Debian systems, the complete text of the GNU + General Public License can be found in `/usr/share/common-licenses/LGPL-2.1'. + +Files: debian/* +Copyright: 2010 Troy Heber <troyh@debian.org> +License: GPL-2 + + On Debian systems, the complete text of the GNU + General Public License can be found in `/usr/share/common-licenses/GPL-2'. diff --git a/debian/dwarfdump.dirs b/debian/dwarfdump.dirs new file mode 100644 index 0000000..8853732 --- /dev/null +++ b/debian/dwarfdump.dirs @@ -0,0 +1,3 @@ +usr/bin +usr/share/man/man1/ +usr/share/doc/dwarfdump/examples diff --git a/debian/libdwarf-dev.copyright b/debian/libdwarf-dev.copyright new file mode 100644 index 0000000..c04959b --- /dev/null +++ b/debian/libdwarf-dev.copyright @@ -0,0 +1,44 @@ +libdwarf-dev was originally packaged by Troy Heber <troyh@debian.org>, the +package is currently maintained by Troy Heber <troyh@debian.org>. + +It was downloaded from http://reality.sgiweb.org/davea/dwarf.html + +Upstream Author: David Anderson, SGI + + Copyright (C) 2000,2004 Silicon Graphics, Inc. All Rights Reserved. + + This program is free software; you can redistribute it and/or modify it + under the terms of version 2.1 of the GNU Lesser General Public License + as published by the Free Software Foundation. + + This program is distributed in the hope that it would be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + Further, this software is distributed without any warranty that it is + free of the rightful claim of any third person regarding infringement + or the like. Any license provided herein, whether implied or + otherwise, applies only to this software file. Patent licenses, if + any, provided herein do not apply to combinations of this program with + other software, or any other product whatsoever. + + You should have received a copy of the GNU Lesser General Public + License along with this program; if not, write the Free Software + Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston MA 02110-1301, + USA. + + Contact information: Silicon Graphics, Inc., 1500 Crittenden Lane, + Mountain View, CA 94043, or: + + http://www.sgi.com + + For further information regarding this notice, see: + + http://oss.sgi.com/projects/GenInfo/NoticeExplan + +On Debian systems, the complete text of the GNU Library +General Public License can be found in `/usr/share/common-licenses/LGPL-2.1'. +General Public License can be found in `/usr/share/common-licenses/GPL-2'. + +The Debian packaging is (C) 2007, Troy Heber <troyh@debian.org> and is licensed +under the GPL, see above. diff --git a/debian/libdwarf-dev.dirs b/debian/libdwarf-dev.dirs new file mode 100644 index 0000000..2418695 --- /dev/null +++ b/debian/libdwarf-dev.dirs @@ -0,0 +1,4 @@ +usr/lib +usr/include +usr/share/doc/libdwarf-dev +usr/share/doc/libdwarf-dev/examples diff --git a/debian/libdwarf-dev.install b/debian/libdwarf-dev.install new file mode 100644 index 0000000..86143be --- /dev/null +++ b/debian/libdwarf-dev.install @@ -0,0 +1,4 @@ +usr/include/* +usr/lib/lib*.a +usr/lib/lib*.so +usr/share/doc/* diff --git a/debian/patches/dwarfutils_hurd.patch b/debian/patches/dwarfutils_hurd.patch new file mode 100644 index 0000000..0f09007 --- /dev/null +++ b/debian/patches/dwarfutils_hurd.patch @@ -0,0 +1,26 @@ +Index: dwarfutils-20120410/dwarfdump2/print_die.cc +=================================================================== +--- dwarfutils-20120410.orig/dwarfdump2/print_die.cc 2012-06-19 16:52:34.000000000 +0000 ++++ dwarfutils-20120410/dwarfdump2/print_die.cc 2012-06-19 16:53:19.000000000 +0000 +@@ -1222,8 +1222,8 @@ + /* Get the global offset for reference */ + res = dwarf_global_formref(attrib, &ref_off, &err); + if (res != DW_DLV_OK) { +- int errno = dwarf_errno(err); +- if (errno == DW_DLE_REF_SIG8_NOT_HANDLED ) { ++ int ferrno = dwarf_errno(err); ++ if (ferrno == DW_DLE_REF_SIG8_NOT_HANDLED ) { + // No need to stop, ref_sig8 refers out of + // the current section. + break; +@@ -1234,8 +1234,8 @@ + } + res = dwarf_dieoffset(die, &die_off, &err); + if (res != DW_DLV_OK) { +- int errno = dwarf_errno(err); +- if (errno == DW_DLE_REF_SIG8_NOT_HANDLED ) { ++ int ferrno = dwarf_errno(err); ++ if (ferrno == DW_DLE_REF_SIG8_NOT_HANDLED ) { + // No need to stop, ref_sig8 refers out of + // the current section. + break; diff --git a/debian/patches/fix_mapages.patch b/debian/patches/fix_mapages.patch new file mode 100644 index 0000000..6cb5ca8 --- /dev/null +++ b/debian/patches/fix_mapages.patch @@ -0,0 +1,13 @@ +diff --git a/dwarfdump2/dwarfdump.1 b/dwarfdump2/dwarfdump.1 +index 4e7a40b..22c15cb 100644 +--- a/dwarfdump2/dwarfdump.1 ++++ b/dwarfdump2/dwarfdump.1 +@@ -500,8 +500,6 @@ dwarfdump + + dwarfdump.conf + +-./dwarfdump.conf +- + $(HOME)/.dwarfdump.conf + + $(HOME)/dwarfdump.conf diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..94543f7 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,2 @@ +fix_mapages.patch +dwarfutils_hurd.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..8a24d86 --- /dev/null +++ b/debian/rules @@ -0,0 +1,57 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 + +#!/usr/bin/make -f + +%: + dh $@ --with quilt + +override_dh_auto_build: + # configure and build library + cd libdwarf; ./configure --prefix=$(CURDIR)/debian/libdwarf-dev + cd libdwarf; make + # configure and build dwarfdump + cd dwarfdump; ./configure --prefix=$(CURDIR)/debian/dwarfdump + cd dwarfdump; make + # configure and build dwarfdump2 + cd dwarfdump2; ./configure --prefix=$(CURDIR)/debian/dwarfdump2 + cd dwarfdump2; make + dh_auto_build + +override_dh_auto_clean: + # configure and build library + cd libdwarf; ./configure --prefix=$(CURDIR)/debian/libdwarf-dev + cd libdwarf; make distclean + # configure and build dwarfdump + cd dwarfdump; ./configure --prefix=$(CURDIR)/debian/dwarfdump + cd dwarfdump; make distclean + # configure and build dwarfdump2 + cd dwarfdump2; ./configure --prefix=$(CURDIR)/debian/dwarfdump2 + cd dwarfdump2; make distclean + dh_auto_clean + +override_dh_auto_install: + cp libdwarf/libdwarf.a $(CURDIR)/debian/libdwarf-dev/usr/lib/ + cp libdwarf/dwarf.h libdwarf/libdwarf.h $(CURDIR)/debian/libdwarf-dev/usr/include/ + cp libdwarf/*.pdf $(CURDIR)/debian/libdwarf-dev/usr/share/doc/libdwarf-dev + cp libdwarf/[NR]* $(CURDIR)/debian/libdwarf-dev/usr/share/doc/libdwarf-dev + /bin/gzip -9 < libdwarf/ChangeLog > $(CURDIR)/debian/libdwarf-dev/usr/share/doc/libdwarf-dev/changelog.gz + /bin/gzip -9 < libdwarf/ChangeLog2008 > $(CURDIR)/debian/libdwarf-dev/usr/share/doc/libdwarf-dev/changelog2008.gz + /bin/gzip -9 < libdwarf/ChangeLog2007 > $(CURDIR)/debian/libdwarf-dev/usr/share/doc/libdwarf-dev/changelog2007.gz + /bin/gzip -9 < libdwarf/ChangeLog2006 > $(CURDIR)/debian/libdwarf-dev/usr/share/doc/libdwarf-dev/changelog2006.gz + cp dwarfexample/* $(CURDIR)/debian/libdwarf-dev/usr/share/doc/libdwarf-dev/examples/ + cp dwarfdump2/dwarfdump $(CURDIR)/debian/dwarfdump/usr/bin/ + /bin/gzip -9 < dwarfdump2/dwarfdump.1 > $(CURDIR)/debian/dwarfdump/usr/share/man/man1/dwarfdump.1.gz + /bin/gzip -9 < dwarfdump/README > $(CURDIR)/debian/dwarfdump/usr/share/doc/dwarfdump/README.gz + /bin/gzip -9 < dwarfdump/ChangeLog > $(CURDIR)/debian/dwarfdump/usr/share/doc/dwarfdump/changelog.gz + cp dwarfdump2/dwarfdump.conf $(CURDIR)/debian/dwarfdump/usr/share/doc/dwarfdump/examples/dwarfdump.conf + dh_auto_install + +override_dh_install: + # everything is installed + +override_dh_auto_test: + # dwarfutils does not provide a testsuite + |