← Back to issue list

the snapcraft snap prints: using regular magic file `/usr/share/misc/magic'

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1685530
Type
issue
State
closed
Author
~elopio
Labels
snap
Created
Updated
Closed

Current evaluation

Warnings were fixed by merged PR snapcore/snapcraft#1283, which selects the magic database path when Snapcraft runs as a snap (commit 8694f55ec).

Resolution: closed resolved

Reason: PR snapcore/snapcraft#1283 was merged as commit 8694f55ec, predetermining python-magic's database path to prevent the regular-file warnings.

Evaluated by: mr-cal-bot

No scores available.

Issue body

I installed snapcraft 2.29 from the edge channel: $ sudo snap install snapcraft --edge When I run any command, it prints two warnings about magic file. $ snapcraft -v /etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic' /etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic' 2.29 This was in ubuntu gnome zesty. I will test in more platforms.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Warnings were fixed by merged PR snapcore/snapcraft#1283, which selects the magic database path when Snapcraft runs as a snap (commit 8694f55ec).
stealth/space-bunny-alpha — closed resolved Magic-file warnings in the snapcraft snap were fixed by merged PR #1283 (commit 8694f55ec), which predetermines the magic database path when running as a snap. Maintainer closed the Launchpad bug #1685530 pointing to that PR.
stealth/space-bunny-alpha — closed resolved Snap’s magic-file warnings were fixed by merged PR #1283 (commit 8694f55ec), which preselects the correct magic database when running as a snap.
qwen/qwen3.6-35b-a3b — — Closed as abandoned. The report of duplicate magic file warnings in snapcraft 2.29 received no discussion or fix and was left unresolved.
qwen/qwen3.6-35b-a3b — — The report about snapcraft printing magic file warnings was closed without comments or resolution, indicating it was abandoned. No fix was implemented.
qwen/qwen3.6-35b-a3b — — Closed without resolution or comments, likely abandoned or superseded. The magic file warning was not addressed.
qwen3.6-35b-a3b-mtp-q6 — — Reporting magic file warnings in the snapcraft snap was closed without resolution. No comments or fixes were provided, indicating the report was abandoned.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcore/snapcraft#1283 (confidence 100%)

    The maintainer linked this PR as the resolution; it was merged as commit 8694f55ec.

Related issues

Issue Project State Summary Similarity
#1742504 magic.mgc, 1: Warning: offset `' invalid snapcraft (launchpad) closed Fixed by merged PR snapcore/snapcraft#1870 (d20b9678d), replacing python-magic ELF detection with readelf and eliminating magic.mgc warnings and architecture-specific crashes.
71%