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

Revert meson plugin translation apply thing #729

Conversation

Neui
Copy link
Contributor

@Neui Neui commented Nov 15, 2021

Since meson 0.60, the build_always_stale option was removed:
mesonbuild/meson@6b1a800

However, meson doesn't make such files depend on the translation .po
files, which is a known bug:
mesonbuild/meson#2621

So with that option taken away, I tried passing a list to the input
which includes all .po files, since I saw it only uses the first element
for the translations, but that fails when trying to generate po files.

Since it seems you can't dynamically add dependencies after the fact,
this seems like a dead end, so I am reverting this for now to make it
compile on meson 0.60.

Reverts #555 to fix #720

Since meson 0.60, the `build_always_stale` option was removed:
mesonbuild/meson@6b1a800

However, meson doesn't make such files depend on the translation .po
files, which is a known bug:
mesonbuild/meson#2621

So with that option taken away, I tried passing a list to the input
which includes all .po files, since I saw it only uses the first element
for the translations, but that fails when trying to generate po files.

Since it seems you can't dynamically add dependencies after the fact,
this seems like a dead end, so I am reverting this for now to make it
compile on meson 0.60.
@diegogangl
Copy link
Contributor

Could we run rm -f .local_build/GTG/plugins/*.gtg-plugin as a step before building?

@Neui
Copy link
Contributor Author

Neui commented Nov 15, 2021

Could we run rm -f .local_build/GTG/plugins/*.gtg-plugin as a step before building?

You mean in the scripts/debug.sh script? We could do that.

@diegogangl diegogangl added this to the 0.6 (The future) milestone Nov 15, 2021
@diegogangl diegogangl merged commit 1809d10 into getting-things-gnome:master Nov 17, 2021
@diegogangl
Copy link
Contributor

Merged, we can take a look at the script afterwards. Thanks!

ncfavier added a commit to ncfavier/nixpkgs that referenced this pull request Jan 22, 2022
Adds upstream patch from getting-things-gnome/gtg#729
to fix the error about unknown keyword arguments
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

Successfully merging this pull request may close these issues.

Meson 0.60.0 build error: i18n.merge_file got unknown keyword arguments "build_always_stale"
2 participants