https://bugzilla.novell.com/show_bug.cgi?id=877078
https://bugzilla.novell.com/show_bug.cgi?id=877078#c4
Johannes Obermayr changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|build-compare: Don't |[PATCH] build-compare:
|publish a new package if |Don't publish a new package
|only build-id changes |if only build-id changes
--- Comment #4 from Johannes Obermayr 2014-05-10 10:20:43 UTC ---
Implementing it was really a fun ;)
(example:
https://pmbs.links2linux.de/package/live_build_log/Multimedia/aegisub/Factor...)
Since I am not using my home: repo on opensuse.org anymore:
Index: build-compare.changes
===================================================================
--- build-compare.changes (revision 2c653922c8632ecd86f859de8b7400c2)
+++ build-compare.changes (working copy)
@@ -1,3 +1,9 @@
+-------------------------------------------------------------------
+Fri May 9 18:30:26 UTC 2014 - johannesobermayr@gmx.de
+
+- Don't compare .note.gnu.build-id and .gnu_debuglink sections in ELF binaries
+ (bnc#877078).
+
-------------------------------------------------------------------
Thu Oct 17 12:44:19 UTC 2013 - schwab@suse.de
Index: build-compare.spec
===================================================================
--- build-compare.spec (revision 2c653922c8632ecd86f859de8b7400c2)
+++ build-compare.spec (working copy)
@@ -27,6 +27,7 @@
Source3: rpm-check.sh
Source4: functions.sh
Source5: srpm-check.sh
+BuildRequires: -build-compare
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Index: rpm-check.sh
===================================================================
--- rpm-check.sh (revision 2c653922c8632ecd86f859de8b7400c2)
+++ rpm-check.sh (working copy)
@@ -460,10 +460,13 @@
head -n 200 $dfile
return 1
fi
- objdump -s old/$file > $file1
- sed -i -e "s,old/,," $file1
- objdump -s new/$file > $file2
- sed -i -e "s,new/,," $file2
+ echo "" >$file1
+ echo "" >$file2
+ # Don't compare .build-id and .gnu_debuglink sections
+ for section in $(objdump -s $file | grep "Contents of section .*:" |
sed -r "s,.* (\..*):,\1,g" | grep -v -e "\.build-id" -e "\.gnu_debuglink" | tr
"\n" " "); do
+ objdump -s -j $section old/$file | sed "s,old/,," >> $file1
+ objdump -s -j $section new/$file | sed "s,new/,," >> $file2
+ done
if ! diff -u $file1 $file2 > $dfile; then
echo "$file differs in ELF sections"
head -n 200 $dfile
Index: same-build-result.sh
===================================================================
--- same-build-result.sh (revision 2c653922c8632ecd86f859de8b7400c2)
+++ same-build-result.sh (working copy)
@@ -79,9 +79,13 @@
echo "names differ: $oname $nname"
exit 1
fi
- bash $CMPSCRIPT "$opac" "$npac" || SUCCESS=0
- if test $SUCCESS -eq 0 -a -z "$check_all"; then
- exit 1
+ if [ $(echo "$opac" | grep -e "debuginfo") ]; then
+ echo "skipping -debuginfo package"
+ else
+ bash $CMPSCRIPT "$opac" "$npac" || SUCCESS=0
+ if test $SUCCESS -eq 0 -a -z "$check_all"; then
+ exit 1
+ fi
fi
done
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.