summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-12-05 18:40:48 +0000
committerSam James <sam@gentoo.org>2024-12-05 18:40:48 +0000
commit9a1baaeb3522dffb5bd7d6a0d9f477ec24dbf782 (patch)
treed696cdf5b7be83ee7cdcf8f2a24e6d6c696dc5f4 /dev-libs
parentnet-firewall/firehol: Stabilize 3.1.7-r2 amd64, #945684 (diff)
downloadgentoo-9a1baaeb3522dffb5bd7d6a0d9f477ec24dbf782.tar.gz
gentoo-9a1baaeb3522dffb5bd7d6a0d9f477ec24dbf782.tar.bz2
gentoo-9a1baaeb3522dffb5bd7d6a0d9f477ec24dbf782.zip
dev-libs/json-glib: disable Werror-like-behaviour for introspection
As I noted in the bug, there's fixes for the warnings themselves too, but I'd rather see a bump to handle those. Closes: https://bugs.gentoo.org/945771 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/json-glib/files/json-glib-1.8.0-werror.patch27
-rw-r--r--dev-libs/json-glib/json-glib-1.8.0.ebuild4
2 files changed, 31 insertions, 0 deletions
diff --git a/dev-libs/json-glib/files/json-glib-1.8.0-werror.patch b/dev-libs/json-glib/files/json-glib-1.8.0-werror.patch
new file mode 100644
index 000000000000..776b2465d414
--- /dev/null
+++ b/dev-libs/json-glib/files/json-glib-1.8.0-werror.patch
@@ -0,0 +1,27 @@
+https://gitlab.gnome.org/GNOME/json-glib/-/commit/a5eb23ca06a6ec345fba376296bd4236b7fb7635
+
+From a5eb23ca06a6ec345fba376296bd4236b7fb7635 Mon Sep 17 00:00:00 2001
+From: Emmanuele Bassi <ebassi@gnome.org>
+Date: Sun, 26 Nov 2023 17:20:29 +0000
+Subject: [PATCH] build: Gate GIR fatal warnings to werror
+
+This way we consistently fail early.
+---
+ json-glib/meson.build | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/json-glib/meson.build b/json-glib/meson.build
+index e13e688..9e51931 100644
+--- a/json-glib/meson.build
++++ b/json-glib/meson.build
+@@ -113,7 +113,7 @@ if gir.found()
+ header: 'json-glib/json-glib.h',
+ install: true,
+ extra_args: gir_args,
+- fatal_warnings: true,
++ fatal_warnings: get_option('werror'),
+ )
+ else
+ json_glib_gir = []
+--
+GitLab
diff --git a/dev-libs/json-glib/json-glib-1.8.0.ebuild b/dev-libs/json-glib/json-glib-1.8.0.ebuild
index 97534a8956e4..04107ec75f33 100644
--- a/dev-libs/json-glib/json-glib-1.8.0.ebuild
+++ b/dev-libs/json-glib/json-glib-1.8.0.ebuild
@@ -29,6 +29,10 @@ BDEPEND="
virtual/pkgconfig
"
+PATCHES=(
+ "${FILESDIR}"/${P}-werror.patch
+)
+
src_prepare() {
xdg_environment_reset
default