elementary/code

msgfmt: cannot locate ITS rules for data/io.elementary.code.policy.in

yonas opened this issue · 2 comments

What Happened?

$ ninja
...
NOTICE: Future-deprecated features used:
 * 1.1.0: {'"boolean option" keyword argument "value" of type str'}
WARNING: Deprecated features used:
 * 0.56.0: {'meson.source_root'}

io.elementary.code 7.2.0

  User defined options
    prefix: /usr/src/pacstall/elementary-code-editor/usr

Found ninja-1.11.1 at /usr/bin/ninja
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.
[1/356] Generating data/io.elementary.code.policy with a custom command
FAILED: data/io.elementary.code.policy 
/usr/bin/meson --internal msgfmthelper --msgfmt=/usr/bin/msgfmt data/io.elementary.code.policy.in data/io.elementary.code.policy xml /tmp/pacstall/code-7.2.0/po/extra
/usr/bin/msgfmt: cannot locate ITS rules for data/io.elementary.code.policy.in
[2/356] Generating code-resources_h with a custom command
[3/356] Generating code-resources_c with a custom command
[4/356] Generating data/io.elementary.code.desktop with a custom command
[5/356] Generating data/io.elementary.code.metainfo.xml with a custom command
[6/356] Compiling Vala source ../src/Application.vala ../src/MainWindow.vala ../src/Utils.vala ../src/Dialogs/PreferencesDialog.vala ../src/Dialogs/RestoreConfirmationDialog.vala ../src/Dialogs/GlobalSearchDialog.vala ../src/Dialogs/NewBranchDialog.vala ../src/FolderManager/ContractMenuItem.vala ../src/FolderManager/File.vala ../src/FolderManager/FileItem.vala ../src/FolderManager/FileView.vala ../src/FolderManager/FolderItem.vala ../src/FolderManager/Item.vala ../src/FolderManager/ProjectFolderItem.vala ../src/Services/CommentToggler.vala ../src/Services/Document.vala ../src/Services/DocumentManager.vala ../src/Services/FileHandler.vala ../src/Services/GitManager.vala ../src/Services/LocationJumpManager.vala ../src/Services/MonitoredRepository.vala ../src/Services/PluginManager.vala ../src/Services/RestoreOverride.vala ../src/Services/Settings.vala ../src/Services/TemplateManager.vala ../src/Widgets/ChooseProjectButton.vala ../src/Widgets/DocumentView.vala ../src/Widgets/FormatBar.vala ../src/Widgets/SourceGutterRenderer.vala ../src/Widgets/HeaderBar.vala ../src/Widgets/Sidebar.vala ../src/Widgets/PaneSwitcher.vala ../src/Widgets/SearchBar.vala ../src/Widgets/SourceView.vala ../src/Widgets/Terminal.vala ../src/Widgets/WelcomeView.vala ../src/SymbolPane/SymbolOutline.vala ../src/SymbolPane/Vala/ValaComparisonHelper.vala ../src/SymbolPane/Vala/ValaSymbolItem.vala ../src/SymbolPane/Vala/ValaSymbolOutline.vala ../src/SymbolPane/Vala/ValaSymbolResolver.vala ../src/SymbolPane/C/CtagsSymbol.vala ../src/SymbolPane/C/CtagsSymbolIter.vala ../src/SymbolPane/C/CtagsSymbolOutline.vala ../src/Structs/SelectionRange.vala src/config.vala
../src/Widgets/Terminal.vala:79.13-79.31: warning: `Vte.Terminal.spawn_sync' has been deprecated since 0.48
   79 |             terminal.spawn_sync (
      |             ^~~~~~~~~~~~~~~~~~~  
Compilation succeeded - 1 warning(s)
ninja: build stopped: subcommand failed.
[1/351] Generating data/io.elementary.code.policy with a custom command
FAILED: data/io.elementary.code.policy 
/usr/bin/meson --internal msgfmthelper --msgfmt=/usr/bin/msgfmt data/io.elementary.code.policy.in data/io.elementary.code.policy xml /tmp/pacstall/code-7.2.0/po/extra
/usr/bin/msgfmt: cannot locate ITS rules for data/io.elementary.code.policy.in
[2/351] Compiling C object src/io.elementary.code.p/meson-generated_.._.._code-resources.c.o
[3/351] Compiling C object src/io.elementary.code.p/meson-generated_Utils.c.o
[4/351] Compiling C object src/io.elementary.code.p/meson-generated_Dialogs_PreferencesDialog.c.o
[5/351] Compiling C object src/io.elementary.code.p/meson-generated_Application.c.o
[6/351] Compiling C object src/io.elementary.code.p/meson-generated_MainWindow.c.o

Steps to Reproduce

$ meson build
$ cd build
$ ninja test
$ sudo ninja install

Expected Behavior

Should compile without error.

OS Version

Other Linux

Software Version

Compiled from git

Log Output

No response

Hardware Info

amd64

You need the .its rules from the Polkit package provided by your distro.

Thanks, that worked! 👍