Skip to content

msgfmt tries to open file named --xml when building AppStream or Desktop Entry filesΒ #36

@awilfox

Description

@awilfox

Environment

  • HexChat 2.14.1
  • Meson 0.47.0
  • gettext-tiny master

Steps to reproduce

mkdir _build
cd _build
meson -Dprefix=/usr -Dwith-lua=false
ninja

Actual results

[32/92] Generating io.github.Hexchat.desktop_merge with a custom command.
FAILED: data/misc/io.github.Hexchat.desktop 
/usr/bin/python3 /usr/bin/meson --internal msgfmthelper data/misc/io.github.Hexchat.desktop.in data/misc/io.github.Hexchat.desktop desktop ../data/misc/../../po
fopen: No such file or directory

Using strace we see the issue:

execve("/usr/bin/msgfmt", ["msgfmt", "--xml", "-d", "../data/misc/../../po", "--template", "../data/misc/io.github.Hexchat.a"..., "-o", "data/misc/io.github.Hexchat.appd"...], 0x3fffd39336a0 /* 46 vars */) = 0
open("--xml", O_RDONLY|O_LARGEFILE)     = -1 ENOENT (No such file or directory)

Notes

Even if --xml support was added (or just ignored), there's no support for --template which is used for Desktop Entry stuff in GNU msgfmt.

I don't have any experience with this stuff at all. I've always written my own Desktop Entry files using the embedded translation syntax, and I have no experience with AppStream. In fact this is the first time I've even heard of it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions