Skip to content

issue with i18n.merge_file #1565

@keszybz

Description

@keszybz

I have the following rule:

i18n.merge_file(
  'org.freedesktop.systemd1.policy',
  po_dir : po_dir,
  input : policy_in,
  output : 'org.freedesktop.systemd1.policy',
  install : true,
  install_dir : polkitpolicydir)

This fails like this:

FAILED: src/core/org.freedesktop.systemd1.policy 
'msgfmt' '--xml' '--template' 'src/core/org.freedesktop.systemd1.policy.in' '-d' '/home/zbyszek/src/systemd/po' '-o' 'src/core/org.freedesktop.systemd1.policy'
msgfmt: cannot locate ITS rules for src/core/org.freedesktop.systemd1.policy.in

I have no idea what "ITS rules" are ;(

Doing it "manually" works:

policy_in = configure_file(
    input : 'org.freedesktop.systemd1.policy.in.in',
    output : 'org.freedesktop.systemd1.policy.in',
    configuration : substs)

custom_target(
   'org.freedesktop.systemd1.policy',
  input : policy_in,
  output : 'org.freedesktop.systemd1.policy',
  command : intltool_command,
  install : true,
  install_dir : polkitpolicydir)

I saw similar message in #1441 (comment), it might be related...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions