[BACK]Return to patch-src_update-mime-database.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / databases / shared-mime-info / patches

File: [cvs.NetBSD.org] / pkgsrc / databases / shared-mime-info / patches / patch-src_update-mime-database.c (download)

Revision 1.1, Thu Oct 13 11:08:43 2022 UTC (11 months, 2 weeks ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, HEAD

shared-mime-info: update to 2.2.

shared-mime-info 2.2 (2022-03-27)
* model/3mf: new
* Match shared libraries with version suffix
* model/obj: add mtllib and Blender comment based magic
* model/mtl: add Blender comment magic, increase newmtl range
* model/obj, model/mtl: new types
* Add Electron Archive Format type application/x-asar
* text/x-qml: Lower match priority to avoid conflicts with Python
* Move '*.blend' to top of Blender glob list
* Adding SPARQL media types
* application/zip: Add `*.zipx` glob and test fixture
* Added DSD mime type
* Differentiate comic book archives
* FITS: Add missing `application/fits` and legacy globs
* Add Godot engine files
* Add FlashForge "xgcode" mime-type
* text/x-objc++src: new type
* image/heif: test .hif extension too
* image/hif: add *.hif glob
* image/heif: add another test case
* image/heif: add magics
* Add a build-tools option to allow installing only the mime data
* Add compressed SVG glob pattern `*.svg.gz`
* Add Apple Wallet pass type application/vnd.apple.pkpass
* migrate from custom itstool to builtin msgfmt for creating translated XML
* Make the remaining plain text types subclasses of text/plain
* audio/mobile-xmf: separate from audio/x-xmf
* Adding ZIM file
* Make text/x-mrml a subclass of application/xml
* image/avif: move acronym and expansion to separate fields from comment
* freedesktop_generate.sh: Don't hardcode ninja
* Add text/x-mpl2
* application/x-apple-systemprofiler+xml: require _SPCommandLineArguments in plist
* image/jpeg: add test case with embedded property list XML
* audio/vnd.dts.hd: include parent type magic in magic match
* model/gltf+json: new type
* model/gltf-binary: new type
* application/x-object: add *.mod and a test case
* application/x-mod: add some ProTracker magics and a test case
* image/jxl: include test files in test list
* tests: add trailing linefeed to mime-detection list
* Make application/x-mswinurl a subclass of text/plain
* Change description for *.desktop files to "desktop entry"
* application/x-x509-ca-cert: add magics and test cases
* application/pkix-cert: add BEGIN/END X509 CERTIFICATE magic
* application/pkix-crl: add magic and test case
* application/pkix-cert: add magic and test case
* image/jxl: new type
* Added .sc filename extension for Scala source code, as it is occasionally used
* application/schema+json: new type
* Add text/x-crystal
* application/x-krita: remove stray period from comment
* adding org-mode
* Add Elixir source code mime type
* Add two new offsets for .kra and .krz
* text/x-python3: add *.pyi glob (Python stub files)
* image/x-canon-cr3: new
* image/x-xpixmap: make XPM3 magic more specific
* image/x-xpixmap: add XPM2 magic
* application/x-troff-man: add *.[1-9] glob
* application/toml: new type
* Lower priority of "BEGIN {" for perl, awk uses that too
* Add Smacker video type video/vnd.radgamettools.smacker
* Clarify database license
* meson: make xmlto optional, build spec only if found
* application/x-7z-compressed: add *.7z.001 glob
* Add Bink video type video/vnd.radgamettools.bink
* image/x-nikon-nrw: add test case
* image/x-nikon-nrw: new type
* application/x-vhdx-disk: improve acronym and its expansion
* application/ovf: new
* application/x-qed-disk: new
* application/x-vdi-disk: new
* application/x-vmdk-disk: new
* application/x-vhd-disk, /x-vhdx-disk: new
* application/vnd.apple.numbers, .pages: add older magics and test cases
* Add text/x-dart
* application/vnd.apple.numbers, /vnd.apple.pages: new types
* xdgmime: configure as submodule

shared-mime-info 2.1 (2020-12-31)
* New maintainers: David Faure and Ville Skyttä
* Adapt to xdgmime behaviour change: in case of multiple glob matches, and the magic match is unrelated to all of them, ignore the magic and pick one of the glob matches. xdgmime was actually deviating from the spec on this. (#138)
* Improve text/vnd.trolltech.linguist magic to reduce false positives for MPEG TS files (#10)
* audio/mpeg: add layer 2, 2.5, and 1 protected magics (#46)
* Add many aliases for image/x-tga
* audio/x-mod: improve magic for 669 Composer files (#144)
* Add mime-type image/ktx2 (Khronos image texture format version 2)
* application/oxps: differentiate from /vnd.ms-xpsdocument
* Make image/g3fax the canonical name for image/fax-g3
* Make text/vnd.trolltech.linguist the canonical name for text/vnd.qt.linguist
* Make application/vnd.smaf the canonical name for application/x-smaf
* Make application/vnd.apple.keynote the canonical name for application/x-iwork-keynote-sffkey
* Add mime-type image/astc (Adaptive Scalable Texture Compression files)
* Add mime-type for SageMath script files (*.sage)
* Add mime-type for Kaitai Struct
* Remove application/x-dc-rom
* Add mime-type for MAME compressed hard disk image (application/x-mame-chd)
* Add mime-types application/nintendo-3ds-executable, application/x-nintendo-3ds-rom
* Add mime-types application/x-dreamcast-rom, application/x-gd-rom-cue, application/x-discjuggler-cd-image
* Add mime-type application/x-compressed-iso (*.cso)
* Remove image/avif-sequence
* Fix application/x-sharedlib vs application/x-executable confusion for PIE executables (#11)

shared-mime-info 2.0 (2020-06-05)
* Port build system to meson, and ship test suite with tarball
* Install ITS file to allow gettext to translate mime-type descriptions
* Add BPS and IPS patch formats
* Lower weight for "use strict" and similar in the perl mimetype
* Add new magic for Sega Mega Drive ROMs
* Add Common Lisp mime-type
* Rename text/x-tcl to text/tcl
* Add text/vbscript
* Add PySpread spreadsheet mime-types
* Add Kotlin source mime-type
* Add AVIF image mime-type
* Split versions of the Audible audio mime types
* Add *.spx glob for audio/x-speex+ogg
* Add Apple System Profiler XML mime-type

shared-mime-info 1.15 (2019-10-30)
* Add Kindle 8 eBook format
* Fix some HTML files being detected as XML

shared-mime-info 1.14 (2019-09-20)
* Add mime-type for QCOW images
* Fix matching SVG files in some circumstances (again)

shared-mime-info 1.13.1 (2019-09-11)
* Fix matching SVG files in some circumstances

shared-mime-info 1.13 (2019-09-11)
* Add code of conduct document
* Use itstool and gettext to generate translations
* Add content-tree type for OSTree USB repositories
* Add match for MPEG-4 v1 videos
* Adjust a lot of user readable mime-type descriptions
* Fix WOFF/WOFF2 mime-types
* Prefer text/html to XHTML for *.html files
* Better magic for text/html files
* Fix SVG magic for files embedded in HTML
* Add *.sgd as a glob for Mega Drive ROMs

Specification:
- Mention that sub-class-of can be aliases

Tools:
- Enable Large File Support in update-mime-database

Test suite:
- Make test suite failures fatal
- Add test for duplicate mime-types
- Fix WarpScript test
- Generate the specification in the CI, to avoid it becoming
  syntactically invalid

shared-mime-info 1.12 (2019-01-17)
* Fix build from tarball

shared-mime-info 1.11 (2019-01-17)
* Add mime-type for reStructuredText
* Add mime-type for Groovy scripting language
* Add mime-type for Gradle build tool
* Add mime-type for Maven
* Add mime-type for WarpScript source code
* Add mime-type for zstd and tar.zst archives
* Change the preferred suffix for image/jpeg from .jpeg to .jpg
* Assign *.html to XHTML pages
* Better detection for *.key files (Apple Keynote vs. GPG keys)
* Give weight to one of the appimage patterns

Tools:
- Link to GitLab for contributions and bug reports
- Loads of memory and file descriptor leak fixes

Spec:
- Clarify the availability of C character escape support

$NetBSD: patch-src_update-mime-database.c,v 1.1 2022/10/13 11:08:43 wiz Exp $

Adapt paths for pkgsrc.

--- src/update-mime-database.c.orig	2022-03-27 10:19:00.000000000 +0000
+++ src/update-mime-database.c
@@ -2174,7 +2174,7 @@ static void check_in_path_xdg_data(const
 
 	env = getenv("XDG_DATA_DIRS");
 	if (!env)
-		env = "/usr/local/share/"PATH_SEPARATOR"/usr/share/";
+		env = PREFIX "/share/"PATH_SEPARATOR"/usr/local/share/"PATH_SEPARATOR"/usr/share/";
 	dirs = g_strsplit(env, PATH_SEPARATOR, 0);
 	g_return_if_fail(dirs != NULL);
 	for (n = 0; dirs[n]; n++)