summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2021-11-18 16:19:47 -0500
committerMike Gilbert <floppym@gentoo.org>2021-11-18 16:19:47 -0500
commit99e2fdb7cc1c5596eb365292d7090c403f539a11 (patch)
tree8dc7331cdd44d1cdd9bea5b68c9005c1a7479cc6 /app-office/gtg/files
parentmedia-gfx/frogr: fix meson warning level option (diff)
downloadgentoo-99e2fdb7cc1c5596eb365292d7090c403f539a11.tar.gz
gentoo-99e2fdb7cc1c5596eb365292d7090c403f539a11.tar.bz2
gentoo-99e2fdb7cc1c5596eb365292d7090c403f539a11.zip
app-office/gtg: fix build with meson-0.60
Closes: https://bugs.gentoo.org/821622 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'app-office/gtg/files')
-rw-r--r--app-office/gtg/files/0.5-Revert-meson-plugin-translation-apply-thing.patch52
1 files changed, 52 insertions, 0 deletions
diff --git a/app-office/gtg/files/0.5-Revert-meson-plugin-translation-apply-thing.patch b/app-office/gtg/files/0.5-Revert-meson-plugin-translation-apply-thing.patch
new file mode 100644
index 000000000000..915e40cadfdc
--- /dev/null
+++ b/app-office/gtg/files/0.5-Revert-meson-plugin-translation-apply-thing.patch
@@ -0,0 +1,52 @@
+From 1809d10663ae3d8f69c04138b66f9b4e66ee14f6 Mon Sep 17 00:00:00 2001
+From: Neui <neuisen@googlemail.com>
+Date: Mon, 15 Nov 2021 01:53:40 +0100
+Subject: [PATCH] Revert meson plugin translation apply thing
+
+Since meson 0.60, the `build_always_stale` option was removed:
+https://github.com/mesonbuild/meson/commit/6b1a80024c79876dc3b75f2b525be24ca8fe671a
+
+However, meson doesn't make such files depend on the translation .po
+files, which is a known bug:
+https://github.com/mesonbuild/meson/issues/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.
+---
+ GTG/plugins/meson.build | 4 +---
+ docs/contributors/translating.md | 3 +++
+ 2 files changed, 4 insertions(+), 3 deletions(-)
+
+diff --git a/GTG/plugins/meson.build b/GTG/plugins/meson.build
+index eb20f0b85..556885280 100644
+--- a/GTG/plugins/meson.build
++++ b/GTG/plugins/meson.build
+@@ -24,9 +24,7 @@ foreach plugin : gtg_plugins
+ install_dir: plugin_install_dir,
+ type: 'desktop',
+ args: ['--keyword=name', '--keyword=short-description', '--keyword=description'],
+- build_by_default: true,
+- build_always_stale: true
+- # build always because otherwise new translations won't be applied
++ build_by_default: true
+ )
+ subdir(plugin.underscorify())
+ endforeach
+diff --git a/docs/contributors/translating.md b/docs/contributors/translating.md
+index 0af3e5f19..184f98843 100644
+--- a/docs/contributors/translating.md
++++ b/docs/contributors/translating.md
+@@ -75,5 +75,8 @@ Make sure to this AFTER COMMITING YOUR CHANGES!
+ * During launching, it might complain about certain files not being found in [`po/POTFILES.in`][POTFILES.IN].
+ It is safe to remove the lines from that file and re-run until it works.
+ It would be useful to comment about that if you're submitting your translation, just in case.
++* Plugin related strings don't update after updating the translation.
++ The cause is unknown, but you can delete the plugin files to re-generate
++ them using the new translations: `rm -f .local_build/GTG/plugins/*.gtg-plugin`
+
+ [POTFILES.IN]: ../../po/POTFILES.in