diff --git a/dwarves-no-DW_TAG_mutable.patch b/dwarves-no-DW_TAG_mutable.patch new file mode 100644 index 0000000..e56a876 --- /dev/null +++ b/dwarves-no-DW_TAG_mutable.patch @@ -0,0 +1,29 @@ +From 943a0de0679a34b5e630f85cd01cca35c0d0e544 Mon Sep 17 00:00:00 2001 +From: Mark Wielaard +Date: Wed, 18 Jun 2014 11:14:07 +0200 +Subject: dwarves_fprintf: DW_TAG_mutable_type doesn't exist. + +DW_TAG_mutable_type was a mistake in an early DWARFv3 draft and was +removed in the final version. + +http://dwarfstd.org/ShowIssue.php?issue=050223.1 + +Signed-off-by: Mark Wielaard +Signed-off-by: Arnaldo Carvalho de Melo + +diff --git a/dwarves_fprintf.c b/dwarves_fprintf.c +index 4d8e0f4..b746864 100644 +--- a/dwarves_fprintf.c ++++ b/dwarves_fprintf.c +@@ -75,7 +75,6 @@ static const char *dwarf_tag_names[] = { + [DW_TAG_unspecified_type] = "unspecified_type", + [DW_TAG_partial_unit] = "partial_unit", + [DW_TAG_imported_unit] = "imported_unit", +- [DW_TAG_mutable_type] = "mutable_type", + [DW_TAG_condition] = "condition", + [DW_TAG_shared_type] = "shared_type", + #ifdef STB_GNU_UNIQUE +-- +cgit v0.10.2 + + diff --git a/dwarves.changes b/dwarves.changes index 3648971..8d8d5ed 100644 --- a/dwarves.changes +++ b/dwarves.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Jan 22 08:47:19 UTC 2015 - dimstar@opensuse.org + +- Add dwarves-no-DW_TAG_mutable.patch: Fix build with newer + libdwarf versions: DW_TAG_mutable_type was a mistake in an early + DWARFv3 draft and was removed in the final version. + ------------------------------------------------------------------- Wed Oct 15 14:37:48 UTC 2014 - jengelh@inai.de diff --git a/dwarves.spec b/dwarves.spec index 31a3e8c..49daf8e 100644 --- a/dwarves.spec +++ b/dwarves.spec @@ -1,7 +1,7 @@ # # spec file for package dwarves # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -29,6 +29,7 @@ Url: http://acmel.wordpress.com/ #DL-URL: http://fedorapeople.org/~acme/dwarves/ Source: http://fedorapeople.org/~acme/dwarves/%name-%version.tar.bz2 Source2: baselibs.conf +Patch1: dwarves-no-DW_TAG_mutable.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: cmake BuildRequires: libdw-devel >= 0.142 @@ -85,6 +86,7 @@ for processing DWARF, a debugging data format for ELF files. %prep %setup -q -c +%patch -P 1 -p1 %build export CFLAGS="%optflags"