Bug#897099: diffoscope FTBFS with file 5.33

Chris Lamb lamby at debian.org
Sun Apr 29 06:15:51 BST 2018


clone 897099 -1
reassign -1 file
retitle -1 returns empty string for Berkeley DB databases
severity -1 important
found -1 5.33-1
affects -1 + diffoscope
thanks

Hi Adrian,

> FTBFS with file 5.33

So, the causes of these are different. The following tests:

  tests/comparators/test_gzip.py::test_metadata
  tests/comparators/test_ipk.py::test_metadata
  tests/test_presenters.py::test_text_proper_indentation
  tests/test_quines.py::test_difference
  tests/comparators/test_gzip.py::test_metadata
  tests/comparators/test_ipk.py::test_metadata

.. are failing because file 5.33 is now appending a ", original size
XXX" to some output:

  $ buster file -v | head -n1
  file-5.32
  
  $ buster file tests/data/quine.gz
  tests/data/quine.gz: gzip compressed data, was "recursive", from
          FAT filesystem (MS-DOS, OS/2, NT)

  $ sid file -v | head -n1
  file-5.33
  
  $ sid tests/data/quine.gz
  tests/data/quine.gz: gzip compressed data, was "recursive", from
           FAT filesystem (MS-DOS, OS/2, NT), original size 250

However, the following failing tests:

  tests/comparators/test_berkeley_db.py::test_identification
  tests/comparators/test_berkeley_db.py::test_diff
  tests/comparators/test_berkeley_db.py::test_compare_non_existing

... are caused by file returning an empty string for berkeley DB databases:

  $ file ./tests/data/test1.db
  ./tests/data/test1.db: , created: Thu Jan  1 00:38:24 1970
                        ^

Cloning and re-assigning this second issue.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-



More information about the Reproducible-builds mailing list