Created attachment 1826925 [details] Patch, fixing this bug Created attachment 1826925 [details] Patch, fixing this bug Description of problem: file spits out an error when examining a .wasm file (WebAssembly): Version-Release number of selected component (if applicable): 5.39-6-fc34 How reproducible: always Steps to Reproduce: 1. Fetch a .wasm file (e.g. this one: https://github.com/jitsi/jitsi-meet/raw/master/react/features/stream-effects/virtual-background/vendor/tflite/tflite.wasm) 2. run file on that file: file ./tflite.wasm 3. Actual results: ./tflite.wasm: ERROR: Bad magic format `version %#x (MVP)' (bad format char: #) Expected results: Should print: ./tflite.wasm: WebAssembly (wasm) binary module version 1 (MVP) Additional info:
Created attachment 1826941 [details] Patch against package source First patch was against wrong file.
Hi, problem was reported in: https://mailman.astron.com/pipermail/file/2020-June/000382.html and fix (different from what you suggested in the attachment) is already in upstream: https://github.com/file/file/commit/85b7ab83257b3191a1a7ca044589a092bcef2bb3 (this means also in fedora 35 and fedora rawhide). dist-git commit: https://src.fedoraproject.org/rpms/file/c/33fd181e723ff61712ecbb2a72aac88b20cc6c1c
(In reply to Vincent Mihalkovič from comment #2) > Hi, > problem was reported in: > https://mailman.astron.com/pipermail/file/2020-June/000382.html and fix > (different from what you suggested in the attachment) is already in > upstream: > https://github.com/file/file/commit/85b7ab83257b3191a1a7ca044589a092bcef2bb3 > (this means also in fedora 35 and fedora rawhide). > > dist-git commit: > https://src.fedoraproject.org/rpms/file/c/ > 33fd181e723ff61712ecbb2a72aac88b20cc6c1c In that case, PLEASE provide a release for Fedora 34.
FEDORA-2021-fb9d0de1d9 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-fb9d0de1d9
(In reply to Fedora Update System from comment #4) > FEDORA-2021-fb9d0de1d9 has been submitted as an update to Fedora 34. > https://bodhi.fedoraproject.org/updates/FEDORA-2021-fb9d0de1d9 Hmm. There seems to be missing something here (trying to install manually): $ rpm -Uvh https://kojipkgs.fedoraproject.org//packages/file/5.39/7.fc34/x86_64/file-5.39-7.fc34.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/file/5.39/7.fc34/x86_64/file-libs-5.39-7.fc34.x86_64.rpm Retrieving https://kojipkgs.fedoraproject.org//packages/file/5.39/7.fc34/x86_64/file-5.39-7.fc34.x86_64.rpm Retrieving https://kojipkgs.fedoraproject.org//packages/file/5.39/7.fc34/x86_64/file-libs-5.39-7.fc34.x86_64.rpm error: Failed dependencies: file = 5.39-6.fc34 is needed by (installed) python3-file-magic-5.39-6.fc34.noarch $ So, apparently in the old F34 version of file, there was a python wrapper included which has been moved elsewhere?
python3-file-magic-5.39-7.fc34.noarch.rpm is included in the build: https://koji.fedoraproject.org/koji/buildinfo?buildID=1838160 It is just missing in your `rpm -Uvh ...` command.
(In reply to Kamil Dudka from comment #6) > python3-file-magic-5.39-7.fc34.noarch.rpm is included in the build: > > https://koji.fedoraproject.org/koji/buildinfo?buildID=1838160 > > It is just missing in your `rpm -Uvh ...` command. I actually did not find it on koji and therefore its missing in my rpm cmdline. And YES, I'm somewhat stupid as I did not look in the noarch list, only at x86_64. Probably too tired at the time. Thanks anyway - voted +1 on bodhi now.
FEDORA-2021-fb9d0de1d9 has been pushed to the Fedora 34 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-fb9d0de1d9` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-fb9d0de1d9 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
No problem, I also had to look twice to find the subpackage in the noarch section. Thank you for testing the update!
FEDORA-2021-fb9d0de1d9 has been pushed to the Fedora 34 stable repository. If problem still persists, please make note of it in this bug report.