Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fails to build (on Fedora) since PR 951 (pkexec support) was merged #973

Closed
decathorpe opened this issue Mar 12, 2021 · 4 comments
Closed

Comments

@decathorpe
Copy link
Contributor

Starting with #951 , code fails to build on all current Fedora releases (from 32 to 35/rawhide), with an error about missing translation files:

+ /usr/bin/meson compile -C x86_64-redhat-linux-gnu -j 2 --verbose
ninja: Entering directory `x86_64-redhat-linux-gnu'
[...]
[6/134] /usr/bin/meson --internal msgfmthelper data/io.elementary.code.policy.in data/io.elementary.code.policy xml /builddir/build/BUILD/elementary-code-3.4.1+git210311.193015.d07b72e9/po/extra
FAILED: data/io.elementary.code.policy 
/usr/bin/meson --internal msgfmthelper data/io.elementary.code.policy.in data/io.elementary.code.policy xml /builddir/build/BUILD/elementary-code-3.4.1+git210311.193015.d07b72e9/po/extra
msgfmt: cannot locate ITS rules for data/io.elementary.code.policy.in
[...]
ninja: build stopped: subcommand failed.

Not sure how it's possible that this affects all Fedora releases but not elementary OS.

The only difference I could think of is that on elementary OS, you might use a different name for the "build" directory - on Fedora, we use the target triple x86_64-redhat-linux-gnu (of course, different, depending on the target architecture) as the name for the build directory.

@tintou
Copy link
Member

tintou commented Mar 12, 2021

You need a build-dependency on polkit-devel as it is the package providing the .its file.

@tintou tintou closed this as completed Mar 12, 2021
@decathorpe
Copy link
Contributor Author

Thanks, that fixed it. But shouldn't that dependency be added to meson.build if it fails with an obscure error without it (i. e. a dependency('polkit-agent-1'))?

@tintou
Copy link
Member

tintou commented Mar 15, 2021

We don't have any binary dependency so it doesn't make sense to add this, there is no warranty that the its file will be with polkit-agent-1 development files either.
The error was:

/usr/bin/meson --internal msgfmthelper data/io.elementary.code.policy.in data/io.elementary.code.policy xml /builddir/build/BUILD/elementary-code-3.4.1+git210311.193015.d07b72e9/po/extra
msgfmt: cannot locate ITS rules for data/io.elementary.code.policy.in

Which isn't really that obscure 😉

@landv
Copy link

landv commented Jan 10, 2023

nice!finally solved the problem。thank you very much。3Q
FAILED: data/io.elementary.code.policy
/usr/bin/msgfmt: 无法定位 data/io.elementary.code.policy.in 的 ITS 规则
msgfmt: cannot locate ITS rules for data/io.elementary.code.policy.in
You need a build-dependency on polkit-devel as it is the package providing the .its file.

Fedora Linux 37
sudo dnf install polkit-devel

到此一游~
A visit~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants