Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/xsnap/, x11-misc/xsnap/files/
Date: Fri, 30 Sep 2022 11:02:22
Message-Id: 1664534893.1c0bcea858a457034445af16010899e97f0d55fb.ionen@gentoo
1 commit: 1c0bcea858a457034445af16010899e97f0d55fb
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 30 09:24:43 2022 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 30 10:48:13 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c0bcea8
7
8 x11-misc/xsnap: fix build with clang
9
10 Includes fix specific to >=clang16 too.
11
12 Closes: https://bugs.gentoo.org/870811
13 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
14
15 x11-misc/xsnap/files/xsnap-1.5.15-clang.patch | 17 +++++++++++++++++
16 x11-misc/xsnap/xsnap-1.5.15-r2.ebuild | 7 ++++++-
17 2 files changed, 23 insertions(+), 1 deletion(-)
18
19 diff --git a/x11-misc/xsnap/files/xsnap-1.5.15-clang.patch b/x11-misc/xsnap/files/xsnap-1.5.15-clang.patch
20 new file mode 100644
21 index 000000000000..9b51bcb33e5b
22 --- /dev/null
23 +++ b/x11-misc/xsnap/files/xsnap-1.5.15-clang.patch
24 @@ -0,0 +1,17 @@
25 +https://bugs.gentoo.org/870811
26 +--- a/xsnap.c
27 ++++ b/xsnap.c
28 +@@ -150,2 +150,3 @@
29 + Window win;
30 ++int init_cursor;
31 + {
32 +@@ -1706,3 +1707,3 @@
33 + static Window win0 = None;
34 +- static w0 = 0, h0 = 0;
35 ++ static int w0 = 0, h0 = 0;
36 + int i, j, d, w, h;
37 +@@ -2254,3 +2255,3 @@
38 + if (op_mode == 0)
39 +- exitXsnap (NULL, NULL, snap_pixmap, copy_gc);
40 ++ exitXsnap ((Window)0, (Window)0, snap_pixmap, copy_gc);
41 +
42
43 diff --git a/x11-misc/xsnap/xsnap-1.5.15-r2.ebuild b/x11-misc/xsnap/xsnap-1.5.15-r2.ebuild
44 index bc17eb259842..e93eb8f85a7d 100644
45 --- a/x11-misc/xsnap/xsnap-1.5.15-r2.ebuild
46 +++ b/x11-misc/xsnap/xsnap-1.5.15-r2.ebuild
47 @@ -34,8 +34,13 @@ BDEPEND="
48 sys-devel/gcc
49 >=x11-misc/imake-1.0.8-r1
50 "
51 +
52 DOCS=( AUTHORS Changelog README )
53 -PATCHES=( "${FILESDIR}"/${P}-root_name.patch )
54 +
55 +PATCHES=(
56 + "${FILESDIR}"/${P}-root_name.patch
57 + "${FILESDIR}"/${P}-clang.patch
58 +)
59
60 src_prepare() {
61 default