#1107543 libmagic-mgc: needs entries for GGML and GGUF

Package:
libmagic-mgc
Source:
libmagic-mgc
Description:
File type determination library using "magic" numbers (compiled magic file)
Submitter:
Russell Coker
Date:
2025-06-09 07:51:02 UTC
Severity:
normal
#1107543#5
Date:
2025-06-09 07:49:26 UTC
From:
To:
Need to have entries for GGML and GGUF.

For this one it doesn't work the second >32 needs to be an else condition from
the match on split.no, I haven't yet worked out how to do that.

# https://huggingface.co/docs/hub/en/gguf
# the string at offset 32 is actually a pstring with the length at offset 24
# the string at offset &11 is actually a pstring with the length at offset &3
0	string	GGUF	GGUF ML data

This one is good but I haven't yet found how get more info from it.

# https://github.com/ggml-org/llama.cpp/blob/master/convert_llama_ggml_to_gguf.py
0	string	lmgg	GGML ML data