kpcyrd / rebuilderd

Independent verification of binary packages - reproducible builds
GNU General Public License v3.0
352 stars 23 forks source link

archlinux sync: no MIME magic files found #92

Closed SantiagoTorres closed 2 years ago

SantiagoTorres commented 2 years ago

Trying out a rebuilderd worker for arch, the sync service fails with:

Nov 24 21:19:31 localhost systemd[1]: Started rebuilderctl sync: periodically import packages.
Nov 24 21:19:31 localhost docker[15248]: [2021-11-24T21:19:31Z INFO  rebuildctl::schedule] Downloading "https://ftp.halifax.rwth-aachen.de/archlinux/core/os/x86_64/core.db"...
Nov 24 21:19:34 localhost docker[15248]: [2021-11-24T21:19:34Z INFO  rebuildctl::schedule::archlinux] Parsing index (139803 bytes)...
Nov 24 21:19:34 localhost docker[15248]: thread 'main' panicked at 'No MIME magic files found in the XDG default paths', /var/cache/buildkit/cargo/registry/src/github.com-1ecc6299db9ec823/tree_magic_mini-3.0.2/src/fdo_magic/builtin/runtim>
Nov 24 21:19:34 localhost docker[15248]: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Nov 24 21:19:34 localhost systemd[1]: rebuilderd-sync@archlinux-core.service: Main process exited, code=exited, status=101/n/a
Nov 24 21:19:34 localhost systemd[1]: rebuilderd-sync@archlinux-core.service: Failed with result 'exit-code'.

This makes me wonder whether tree_magic_mini is looking for some sort of xdg-mime database that's not populated...

kpcyrd commented 2 years ago

hi!

It's looking for a file from the shared-mime-info package that was missing in the Dockerfile, this should be fixed after #92.

Thanks for reporting this!