summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/build-compare/files/Ignore-DWARF-sections.patch
diff options
context:
space:
mode:
authorRandy Witt <randy.e.witt@linux.intel.com>2015-02-11 16:24:12 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-15 21:58:28 +0000
commitc0a79410b9ac27c79bd53444567de5546db51d0a (patch)
treeb99dc93b9ba38f3baefd33f7b52f00a2bc91c9c0 /meta/recipes-devtools/build-compare/files/Ignore-DWARF-sections.patch
parentc0a1f43aadbf1e18a4e0a402126f80955f15b446 (diff)
downloadpoky-c0a79410b9ac27c79bd53444567de5546db51d0a.tar.gz
build-compare: Add the build-compare_git.bb recipe.
The description for build-compare describes it as "This package contains scripts to find out if the build result differs to a former build." More specifically this contains a script that will display differences between "packages." It works with rpms, tarballs and other various types of packages. The idea is that it will eventually be used in Yocto to check for differences between sstate so that we can check for build reproducibility. It will also be used once an updateable sdk is in place, so that packages that have different hashes but are not different in contents, don't get updated. It could also be used in the same manner when updating packages from a package feed. [Yocto #6992] (From OE-Core rev: 48387f0c0c4cccc8bc89afd121b7d8315475964a) Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/build-compare/files/Ignore-DWARF-sections.patch')
-rw-r--r--meta/recipes-devtools/build-compare/files/Ignore-DWARF-sections.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-devtools/build-compare/files/Ignore-DWARF-sections.patch b/meta/recipes-devtools/build-compare/files/Ignore-DWARF-sections.patch
new file mode 100644
index 0000000000..7dda1acbf2
--- /dev/null
+++ b/meta/recipes-devtools/build-compare/files/Ignore-DWARF-sections.patch
@@ -0,0 +1,40 @@
1From 015715694eadd714b903f30ade876e0738d44974 Mon Sep 17 00:00:00 2001
2From: Randy Witt <randy.e.witt@linux.intel.com>
3Date: Mon, 5 Jan 2015 15:09:20 -0800
4Subject: [PATCH] Ignore DWARF sections.
5
6Assume for now that we don't care about the DWARF sections due to path
7differences. However, in the case the tool is ran on a "debug" package
8it will most likely falsely say the packages have no differences.
9
10Upstream-Status: Inappropriate [other]
11
12The package difference tool is correctly labelling the packages as different
13when the DWARF sections don't match due to paths. The paths in the debug info
14should actually be made to be the same using compile flags or some other
15mechanism.
16
17However, to make the tool more useful to Yocto until the work can be done
18to ensure identical paths in debug sections, this patch is being applied.
19
20Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
21---
22 pkg-diff.sh | 2 +-
23 1 file changed, 1 insertion(+), 1 deletion(-)
24
25diff --git a/pkg-diff.sh b/pkg-diff.sh
26index 56035c1..0f1fa76 100755
27--- a/pkg-diff.sh
28+++ b/pkg-diff.sh
29@@ -658,7 +658,7 @@ check_single_file()
30 echo "" >$file1
31 echo "" >$file2
32 # Don't compare .build-id and .gnu_debuglink sections
33- sections="$(objdump -s new/$file | grep "Contents of section .*:" | sed -r "s,.* (.*):,\1,g" | grep -v -e "\.build-id" -e "\.gnu_debuglink" | tr "\n" " ")"
34+ sections="$(objdump -s new/$file | grep "Contents of section .*:" | sed -r "s,.* (.*):,\1,g" | grep -v -e "\.build-id" -e "\.gnu_debuglink" -e "\.debug_abbrev" -e "\.debug_aranges" -e "\.debug_frame" -e "\.debug_info" -e "\.debug_line" -e "\.debug_loc" -e "\.debug_macinfo" -e "\.debug_pubnames" -e "\.debug_pubtypes" -e "\.debug_ranges" -e "\.debug_str" | tr "\n" " ")"
35 for section in $sections; do
36 objdump -s -j $section old/$file | sed "s,^old/,," > $file1
37 objdump -s -j $section new/$file | sed "s,^new/,," > $file2
38--
391.9.3
40