Skip to content
  1. Dec 06, 2024
  2. Dec 04, 2024
  3. Nov 08, 2024
  4. Oct 25, 2024
  5. Oct 23, 2024
  6. Oct 18, 2024
  7. Oct 17, 2024
  8. Oct 14, 2024
  9. Oct 11, 2024
  10. Oct 07, 2024
  11. Sep 30, 2024
    • Chris Lamb's avatar
      Drop removal of calculated basename from readelf output. (Closes:... · 74bd931d
      Chris Lamb authored
      Drop removal of calculated basename from readelf output. (Closes: #394)
      
      I don't think readelf includes the name anymore, at least how diffoscope calls it:
      
               if (optind < (argc - 1))
                 /* When displaying information for more than one file,
                    prefix the information with the file name.  */
                 show_name = true;
                 ...
      74bd931d
  12. Sep 27, 2024
  13. Sep 24, 2024
  14. Sep 23, 2024
  15. Aug 30, 2024
  16. Aug 24, 2024
    • Sergei Trofimovich's avatar
      file: don't crash when hashing directory symlinks · f545e70a
      Sergei Trofimovich authored
      Noticed the crash today when tried to compare glibc directories:
      
          $ diffoscope /nix/store/shybiq9nx8j3sp3ax2gb6c4lni1djabl-glibc-2.39-52/ /nix/store/bsin40d5wph9yr28rrd0j0zq6qm6982s-glibc-2.39-52/
            File "...-diffoscope-276/lib/python3.12/site-packages/diffoscope/comparators/directory.py", line 280, in compare
              differences.extend(my_container.compare(other_container))
            File "...-diffoscope-276/lib/python3.12/site-packages/diffoscope/comparators/utils/container.py", line 164, in comparisons
              for my_name, other_name, score in self.perform_fuzzy_matching(
            File "...-diffoscope-276/lib/python3.12/site-packages/diffoscope/comparators/utils/fuzzy.py", line 45, in perform_fuzzy_matching
              if file1.is_directory() or not file1.fuzzy_hash:
                                             ^^^^^^^^^^^^^^^^
            File "...-diffoscope-276/lib/python3.12/site-packages/diffoscope/comparators/utils/file.py", line 380, in fuzzy_hash
              self._fuzzy_hash = calc()
                                 ^^^^^^
            File "...-diffoscope-276/lib/python3.12/site-packages/diffoscope/comparators/utils/file.py", line 368, in calc
              with open(self.path, "rb") as f:
                   ^^^^^^^^^^^^^^^^^^^^^
          IsADirectoryError: [Errno 21] Is a directory: '/nix/store/shybiq9nx8j3sp3ax2gb6c4lni1djabl-glibc-2.39-52/lib64'
      
      It looks like `diffoscope` was confused by a symlink to a directory:
      
          $ ls -l /nix/store/shybiq9nx8j3sp3ax2gb6c4lni1djabl-glibc-2.39-52/lib64
          lrwxrwxrwx 907 root root 3 Jan  1  1970 /nix/store/shybiq9nx8j3sp3ax2gb6c4lni1djabl-glibc-2.39-52/lib64 -> lib
      
      THe change ignores `IsADirectoryError` for this case.
      f545e70a
  17. Aug 18, 2024
    • Chris Lamb's avatar
      Open new changelog entry for version 277. · 8878f55d
      Chris Lamb authored
      Gbp-Dch: ignore
      8878f55d
    • Chris Lamb's avatar
      releasing package diffoscope version 276 · 25b7e4ca
      Chris Lamb authored
      276
      25b7e4ca
    • Chris Lamb's avatar
      Update copyright years. · 010b4511
      Chris Lamb authored
      010b4511
    • Chris Lamb's avatar
      Also catch RuntimeError when importing PyPDF so that PyPDF or, crucially, its... · c1aa6259
      Chris Lamb authored
      Also catch RuntimeError when importing PyPDF so that PyPDF or, crucially, its transitive dependencies do not cause diffoscope to traceback at runtime and build time. (Closes: Debian:#1078944, #389)
      
      The root or even primary cause of this bug is not in diffoscope itself; rather,
      the cause is to be found between src:python3-cryptography and src:openssl — see
      bugs #1078747 and #965041 for more details.
      
      However, diffoscope should (and easily can…) be mindful that importing external
      libraries could result in exceptions other than ImportError when we have reason
      to believe that they might do so.
      
      We already do so in fsimage.py for a complicated library (guestfs), so I think
      it's not at all unreasonable to catch it here, too.
      
      Alas I can't seem to reproduce this on my local machine or in a clean sid
      chroot, so I am uploading the following patch after simply having a hard stare
      at the code… albeit on a warm Sunday afternoon.
      c1aa6259
  18. Aug 16, 2024
Loading