[Reproducible-builds] Bug#829115: diffoscope: …/comparators/ps.py: TypeError: cannot use a string pattern on a bytes-like object

Axel Beckert abe at debian.org
Thu Jun 30 16:25:23 UTC 2016

Package: diffoscope
Version: 54

Dear Maintainer,

running reprotest (It's there now, yay! :-) over my very recently
accepted package dpmb (from git commit
5f069a920df4e6f20a8eb9309c20c39ad60e6132) with

reprotest 'dpkg-buildpackage -b' ../debian-paketmanagement-buch_0\~2016.06.29_all.deb

caused diffoscope to bail out as follows:

dpkg-buildpackage: info: binary-only upload (no source included)
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/diffoscope/__main__.py", line 177, in main
  File "/usr/lib/python3/dist-packages/diffoscope/__main__.py", line 148, in run_diffoscope
    parsed_args.file1, parsed_args.file2)
  File "/usr/lib/python3/dist-packages/diffoscope/comparators/__init__.py", line 94, in compare_root_paths
    file1 = specialize(FilesystemFile(path1, container=container1))
  File "/usr/lib/python3/dist-packages/diffoscope/comparators/__init__.py", line 175, in specialize
    if cls.recognizes(file):
  File "/usr/lib/python3/dist-packages/diffoscope/comparators/ps.py", line 38, in recognizes
    return PsFile.RE_FILE_TYPE.match(file.magic_file_type)
TypeError: cannot use a string pattern on a bytes-like object
reprotest 'dpkg-buildpackage -b'   388.71s user 3.51s system 0% cpu 15:39:40.01 total

I'm not sure how reprotest called diffoscope so I can't tell the exact
diffoscope commandline to reproduce this.

I'm also not 100% sure if I used reprotest in the correct way since
there is just its --help message, but no man page with examples yet.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (600, 'testing'), (500, 'unstable-debug'), (500, 'buildd-unstable'), (110, 'experimental'), (1, 'experimental-debug'), (1, 'buildd-experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.6.0-trunk-amd64 (SMP w/8 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages diffoscope depends on:
ii  python3-libarchive-c   2.1-3
ii  python3-magic          1:5.28-2
ii  python3-pkg-resources  20.10.1-1.1
pn  python3:any            <none>

Versions of packages diffoscope recommends:
ii  acl                        2.2.52-3
ii  binutils-multiarch         2.26-12
ii  bzip2                      1.0.6-8
ii  caca-utils                 0.99.beta19-2+b1
ii  colord                     1:17
ii  cpio                       2.11+dfsg-5
pn  default-jdk | java-sdk     <none>
ii  enjarify                   1:1.0.2-1
ii  fontforge-extras           0.3-4
ii  fp-utils                   3.0.0+dfsg-6
ii  fp-utils-3.0.0 [fp-utils]  3.0.0+dfsg-6
ii  genisoimage                9:1.1.11-3
ii  gettext          
ii  ghc                        7.10.3-9
ii  ghostscript                9.19~dfsg-1+b1
ii  gnupg                      1.4.20-6
pn  mono-utils                 <none>
ii  pdftk                      2.02-4
ii  poppler-utils              0.44.0-3
ii  python3-debian             0.1.28
pn  python3-guestfs            <none>
pn  python3-rpm                <none>
ii  python3-tlsh               3.4.4+20151206-1+b1
pn  rpm2cpio                   <none>
ii  sng                        1.1.0-1+b1
ii  sqlite3                    3.13.0-1
ii  squashfs-tools             1:4.3-3
ii  unzip                      6.0-20
pn  vim-common                 <none>
ii  xz-utils                   5.1.1alpha+20120614-2.1

Versions of packages diffoscope suggests:
ii  libjs-jquery  1.12.4-1

-- no debconf information

More information about the Reproducible-builds mailing list