Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package diffoscope for openSUSE:Factory 
checked in at 2021-08-18 08:55:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/diffoscope (Old)
 and      /work/SRC/openSUSE:Factory/.diffoscope.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "diffoscope"

Wed Aug 18 08:55:40 2021 rev:15 rq:912302 version:180

Changes:
--------
--- /work/SRC/openSUSE:Factory/diffoscope/diffoscope.changes    2021-08-06 
22:45:34.165986660 +0200
+++ /work/SRC/openSUSE:Factory/.diffoscope.new.1899/diffoscope.changes  
2021-08-18 08:56:20.822944207 +0200
@@ -1,0 +2,14 @@
+Sun Aug  8 18:02:08 UTC 2021 - Sebastian Wagner <sebix+novell....@sebix.at>
+
+- update to version 180:
+ - Don't include specific ".debug"-like lines in the output, as it invariably
+   a duplicate of the debug ID that exists in a better form in the readelf(1)
+   differences for this file.
+ - Also ignore include short "GCC" lines that differs on a single prefix byte
+   too. These are distracting, not very useful and are simply the strings(1)
+   command's idea of the build ID, which, again, is displayed nearby in the
+   file's diff.
+ - Update the invocation arguments and tests for the latest version of
+   odt2txt.
+
+-------------------------------------------------------------------

Old:
----
  diffoscope-179.tar.bz2
  diffoscope-179.tar.bz2.asc

New:
----
  diffoscope-180.tar.bz2
  diffoscope-180.tar.bz2.asc

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ diffoscope.spec ++++++
--- /var/tmp/diff_new_pack.b8kDtw/_old  2021-08-18 08:56:21.782943078 +0200
+++ /var/tmp/diff_new_pack.b8kDtw/_new  2021-08-18 08:56:21.786943074 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           diffoscope
-Version:        179
+Version:        180
 Release:        0
 Summary:        In-depth comparison of files, archives, and directories
 License:        GPL-3.0-or-later

++++++ diffoscope-179.tar.bz2 -> diffoscope-180.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/diffoscope-179/debian/changelog 
new/diffoscope-180/debian/changelog
--- old/diffoscope-179/debian/changelog 2021-07-30 10:05:04.000000000 +0200
+++ new/diffoscope-180/debian/changelog 2021-08-06 14:57:33.000000000 +0200
@@ -1,3 +1,17 @@
+diffoscope (180) unstable; urgency=medium
+
+  * Don't include specific ".debug"-like lines in the output, as it invariably
+    a duplicate of the debug ID that exists in a better form in the readelf(1)
+    differences for this file.
+  * Also ignore include short "GCC" lines that differs on a single prefix byte
+    too. These are distracting, not very useful and are simply the strings(1)
+    command's idea of the build ID, which, again, is displayed nearby in the
+    file's diff.
+  * Update the invocation arguments and tests for the latest version of
+    odt2txt.
+
+ -- Chris Lamb <la...@debian.org>  Fri, 06 Aug 2021 13:57:31 +0100
+
 diffoscope (179) unstable; urgency=medium
 
   * Ensure that various LLVM tools are installed, even when testing whether
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/diffoscope-179/diffoscope/__init__.py 
new/diffoscope-180/diffoscope/__init__.py
--- old/diffoscope-179/diffoscope/__init__.py   2021-07-30 10:05:04.000000000 
+0200
+++ new/diffoscope-180/diffoscope/__init__.py   2021-08-06 14:57:33.000000000 
+0200
@@ -17,4 +17,4 @@
 # You should have received a copy of the GNU General Public License
 # along with diffoscope.  If not, see <https://www.gnu.org/licenses/>.
 
-VERSION = "179"
+VERSION = "180"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/diffoscope-179/diffoscope/comparators/elf.py 
new/diffoscope-180/diffoscope/comparators/elf.py
--- old/diffoscope-179/diffoscope/comparators/elf.py    2021-07-30 
10:05:04.000000000 +0200
+++ new/diffoscope-180/diffoscope/comparators/elf.py    2021-08-06 
14:57:33.000000000 +0200
@@ -640,10 +640,43 @@
 
 
 class Strings(Command):
+    re_debug_line = re.compile(r"^\s?\w{38,40}\.debug\n$")
+    re_gcc_line = re.compile(r"^.?GCC: \([^\)]+\)")
+
     @tool_required("strings")
     def cmdline(self):
         return ("strings", "--all", "--bytes=8", self.path)
 
+    def filter(self, line):
+        val = line.decode("utf-8")
+
+        # Don't include specific ".debug"-like lines in the output, as it
+        # invariably a duplicate of the debug ID that exists better in the
+        # readelf(1) differences for this file.
+        #
+        # For example:
+        #
+        #   b'0684311d738d2555027e737d5846e7478561fa.debug\n'
+        #   b'??Xu94356212e19a62aadc4db9c3c93076ac997706.debug\n'
+        #
+        if self.re_debug_line.match(val):
+            return b""
+
+        # Don't include short "GCC" lines that differs on a single prefix byte
+        # either. These are distracting, not very useful and are simply the
+        # strings(1) command's idea of the build ID, which is displayed
+        # elsewhere in the diff.
+        #
+        # For example:
+        #
+        #   ??? -GCC: (Debian 10.2.1-6) 10.2.1 20210110
+        #   ??? +QGCC: (Debian 10.2.1-6) 10.2.1 20210110
+        #
+        if self.re_gcc_line.match(val):
+            return line
+
+        return line
+
 
 class ElfFile(File):
     DESCRIPTION = "ELF binaries"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/diffoscope-179/diffoscope/comparators/odt.py 
new/diffoscope-180/diffoscope/comparators/odt.py
--- old/diffoscope-179/diffoscope/comparators/odt.py    2021-07-30 
10:05:04.000000000 +0200
+++ new/diffoscope-180/diffoscope/comparators/odt.py    2021-08-06 
14:57:33.000000000 +0200
@@ -28,7 +28,7 @@
 class Odt2txt(Command):
     @tool_required("odt2txt")
     def cmdline(self):
-        return ("odt2txt", "--encoding=UTF-8", self.path)
+        return ("odt2txt", "--stdout", self.path)
 
 
 class OdtFile(File):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/diffoscope-179/tests/comparators/test_elf.py 
new/diffoscope-180/tests/comparators/test_elf.py
--- old/diffoscope-179/tests/comparators/test_elf.py    2021-07-30 
10:05:04.000000000 +0200
+++ new/diffoscope-180/tests/comparators/test_elf.py    2021-08-06 
14:57:33.000000000 +0200
@@ -245,12 +245,10 @@
     assert dbgsym_differences.details[2].source1 == "data.tar.xz"
     bin_details = dbgsym_differences.details[2].details[0].details[0]
     assert bin_details.source1 == "./usr/bin/test"
-    assert bin_details.details[1].source1.startswith("strings --all")
-    assert "shstrtab" in bin_details.details[1].unified_diff
-    assert bin_details.details[2].source1.startswith("objdump")
+    assert bin_details.details[1].source1.startswith("objdump")
     assert (
         "test-cases/dbgsym/package/test.c:2"
-        in bin_details.details[2].unified_diff
+        in bin_details.details[1].unified_diff
     )
 
 
@@ -259,8 +257,8 @@
 @skip_unless_module_exists("debian.deb822")
 def test_original_gnu_debuglink(dbgsym_differences):
     bin_details = dbgsym_differences.details[2].details[0].details[0]
-    assert ".gnu_debuglink" in bin_details.details[3].source1
-    assert_diff(bin_details.details[3], "gnu_debuglink_expected_diff")
+    assert ".gnu_debuglink" in bin_details.details[2].source1
+    assert_diff(bin_details.details[2], "gnu_debuglink_expected_diff")
 
 
 def test_ignore_readelf_errors1_identify(ignore_readelf_errors1):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/diffoscope-179/tests/comparators/test_odt.py 
new/diffoscope-180/tests/comparators/test_odt.py
--- old/diffoscope-179/tests/comparators/test_odt.py    2021-07-30 
10:05:04.000000000 +0200
+++ new/diffoscope-180/tests/comparators/test_odt.py    2021-08-06 
14:57:33.000000000 +0200
@@ -17,17 +17,27 @@
 # along with diffoscope.  If not, see <https://www.gnu.org/licenses/>.
 
 import pytest
+import subprocess
 
 from diffoscope.comparators.odt import OdtFile
 
-from ..utils.data import load_fixture, get_data
-from ..utils.tools import skip_unless_tools_exist
+from ..utils.data import load_fixture, assert_diff
+from ..utils.tools import skip_unless_tool_is_at_least
+
 from ..utils.nonexisting import assert_non_existing
 
 odt1 = load_fixture("test1.odt")
 odt2 = load_fixture("test2.odt")
 
 
+def odt2txt_version():
+    try:
+        out = subprocess.check_output(["odt2txt", "--version"])
+    except subprocess.CalledProcessError as e:
+        out = e.output
+    return out.decode("UTF-8").splitlines()[0].split()[1].strip()
+
+
 def test_identification(odt1):
     assert isinstance(odt1, OdtFile)
 
@@ -42,12 +52,11 @@
     return odt1.compare(odt2).details
 
 
-@skip_unless_tools_exist("odt2txt")
+@skip_unless_tool_is_at_least("odt2txt", odt2txt_version, "0.7")
 def test_diff(differences):
-    expected_diff = get_data("odt_expected_diff")
-    assert differences[0].unified_diff == expected_diff
+    assert_diff(differences[0], "odt_expected_diff")
 
 
-@skip_unless_tools_exist("odt2txt")
+@skip_unless_tool_is_at_least("odt2txt", odt2txt_version, "0.7")
 def test_compare_non_existing(monkeypatch, odt1):
     assert_non_existing(monkeypatch, odt1, has_null_source=False)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/diffoscope-179/tests/data/odt_expected_diff 
new/diffoscope-180/tests/data/odt_expected_diff
--- old/diffoscope-179/tests/data/odt_expected_diff     2021-07-30 
10:05:04.000000000 +0200
+++ new/diffoscope-180/tests/data/odt_expected_diff     2021-08-06 
14:57:33.000000000 +0200
@@ -1,5 +1,3 @@
-@@ -1,3 +1,3 @@
- 
--a
-+b
- 
+@@ -1 +1 @@
+-???a
++???b

Reply via email to