Re: Added hundreds of media types to /etc/mime.types
[Please CC me, I am not subscribed].
Le Fri, Jan 08, 2021 at 05:54:43PM +0100, Paul Gevers a écrit :
>
> autopkgtest [12:47:41]: test defconfig: [-----------------------
> Duplicate mimetype: '.png' => 'image/vnd.mozilla.apng' (already have
> 'image/png'), merging to 'application/octet-stream'
> Duplicate mimetype: '.pcx' => 'image/vnd.zbrush.pcx' (already have
> 'image/pcx'), merging to 'application/octet-stream'
> Error: duplicate array-key: .pgb. Please get rid of the duplicate entry.
> 2021-01-07 12:47:41: (configfile.c.1966) source:
> /usr/share/lighttpd/create-mime.conf.pl line: 495 pos: 8 parser failed
> somehow near here: (COMMA)
> 2021-01-07 12:47:41: (configfile.c.1966) source:
> /etc/lighttpd/lighttpd.conf line: 48 pos: 8 parser failed somehow near
> here: (EOL)
> autopkgtest [12:47:42]: test defconfig: -----------------------]
>
> found in
> https://ci.debian.net/data/autopkgtest/testing/armhf/l/lighttpd/9433211/log.gz
Thanks Paul,
I have removed `png` from `image/vnd.mozilla.apng` and will remove
`image/pcx` entirely as `image/vnd.zbrush.pcx` is preferred now.
I ran /usr/share/lighttpd/create-mime.conf.pl and only had duplicate
warnings, that do not cause errors (the scripts returns 0). With the
latest /etc/mime-types file in Sid, I do not have parser errors.
In the latest CI log of lighttpd on amd64, there is:
defconfig FAIL stderr: Duplicate mimetype: '.sdf' => 'application/vnd.stardivision.math' (already have 'application/vnd.Kinar'), merging to 'application/octet-stream'
Unfortunately, `sdf` is a legitimate extension for both media types. I
see that /usr/share/lighttpd/create-mime.conf.pl already has a section
for resolving such conflicts, so I think that the best solution is
to implement a choice in this script.
If this is too close to the freeze, I can temporarly remove `sdf` for
`application/vnd.stardivision.math` and re-add it later.
Have a nice day,
Charles
--
Charles Plessy Nagahama, Yomitan, Okinawa, Japan
Tooting from work, https://mastodon.technology/@charles_plessy
Tooting from home, https://framapiaf.org/@charles_plessy
Reply to: