File: Add-gobject-example-source-code-to-path-for-mkhtml-test.patch

package info (click to toggle)
gtk-doc 1.35.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,192 kB
  • sloc: python: 9,923; ansic: 915; xml: 889; makefile: 535; sh: 364; lisp: 137; perl: 109
file content (34 lines) | stat: -rw-r--r-- 1,225 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From: Neil Hanlon <neil@shrug.pw>
Date: Fri, 9 Feb 2024 15:32:38 -0500
Subject: Add gobject example source code to path for mkhtml test

I'm not really sure why this is required, but I suspect it has to do
with changes in how GCC handles path traversal due to recent (ish)
security issues, as the code here is evaluated to
`../xml/../../examples/gobject.c` which probably looks unhealthy to
automatically include.

[In fact it is nothing to do with gcc; instead this appears to be a
behaviour change in libxml2 2.12.x. -smcv]

Signed-off-by: Neil Hanlon <neil@shrug.pw>
Bug: https://gitlab.gnome.org/GNOME/gtk-doc/-/issues/150
Forwarded: https://gitlab.gnome.org/GNOME/gtk-doc/-/merge_requests/74
Bug-Debian: https://bugs.debian.org/1073400
Bug-Debian: https://bugs.debian.org/1114142
---
 tests/gobject/docs/meson.build | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/gobject/docs/meson.build b/tests/gobject/docs/meson.build
index 6b7e04b..33b51d7 100644
--- a/tests/gobject/docs/meson.build
+++ b/tests/gobject/docs/meson.build
@@ -115,6 +115,7 @@ test(
     '--path=@0@'.format(':'.join([
       gobject_test_docs_dir,
       srcdir,
+      join_paths(srcdir, 'tests/gobject/examples'),
       ])
     ),
   ],