gupnp: fix reproducibility issue

- add a patch to fix a buildpath leakage

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Markus Volk 2024-04-24 19:57:22 +02:00 committed by Khem Raj
parent 5d6fa87b3f
commit ea701b46ba
No known key found for this signature in database
GPG Key ID: BB053355919D3314
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,32 @@
From f875a0afe24fdebdefc46d132f6722dfcb55115a Mon Sep 17 00:00:00 2001
From: Markus Volk <f_l_k@t-online.de>
Date: Wed, 24 Apr 2024 18:52:45 +0200
Subject: [PATCH] gupnp-enums.c.template: use @basename@ instead of @filename@
This would prevent the build path from leaking into the source code.
Signed-off-by: Markus Volk <f_l_k@t-online.de>
Upstream-Status: Submitted [https://gitlab.gnome.org/GNOME/gupnp/-/merge_requests/36]
---
libgupnp/gupnp-enums.c.template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libgupnp/gupnp-enums.c.template b/libgupnp/gupnp-enums.c.template
index 3ce5fa4..a7ff89c 100644
--- a/libgupnp/gupnp-enums.c.template
+++ b/libgupnp/gupnp-enums.c.template
@@ -3,8 +3,8 @@
/*** END file-header ***/
/*** BEGIN file-production ***/
-/* enumerations from "@filename@" */
-#include "@filename@"
+/* enumerations from "@basename@" */
+#include "@basename@"
/*** END file-production ***/
/*** BEGIN value-header ***/
GType
--
2.44.0

View File

@ -8,6 +8,8 @@ DEPENDS = "e2fsprogs gssdp libsoup-3.0 libxml2"
inherit gnomebase pkgconfig vala gobject-introspection
SRC_URI[archive.sha256sum] = "c9dc50e8c78b3792d1b0e6c5c5f52c93e9345d3dae2891e311a993a574f5a04f"
SRC_URI += "file://0001-gupnp-enums.c.template-use-basename-instead-of-filen.patch"
SYSROOT_PREPROCESS_FUNCS += "gupnp_sysroot_preprocess"