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/wmctrl/, x11-misc/wmctrl/files/
Date: Thu, 11 Aug 2022 11:36:01
Message-Id: 1660217637.f70ea60e8aeaef480defaab569805b3514b33643.ionen@gentoo
1 commit: f70ea60e8aeaef480defaab569805b3514b33643
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 11 10:39:55 2022 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 11 11:33:57 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f70ea60e
7
8 x11-misc/wmctrl: EAPI7->8 with minor adjustments
9
10 * drop unnecessary dependency on libXt
11 * fix RedirectedUrl
12 * GPL-2 -> GPL-2+
13 * tidy patch
14
15 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
16
17 x11-misc/wmctrl/files/amd64-Xlib.patch | 28 ----------------------
18 x11-misc/wmctrl/files/wmctrl-1.07-64bit-xlib.patch | 12 ++++++++++
19 ...wmctrl-1.07-r2.ebuild => wmctrl-1.07-r3.ebuild} | 17 ++++++-------
20 3 files changed, 21 insertions(+), 36 deletions(-)
21
22 diff --git a/x11-misc/wmctrl/files/amd64-Xlib.patch b/x11-misc/wmctrl/files/amd64-Xlib.patch
23 deleted file mode 100644
24 index a1039a825023..000000000000
25 --- a/x11-misc/wmctrl/files/amd64-Xlib.patch
26 +++ /dev/null
27 @@ -1,28 +0,0 @@
28 ---- wmctrl-1.07.orig/main.c
29 -+++ wmctrl-1.07/main.c
30 -@@ -1425,6 +1425,16 @@
31 - *
32 - * long_length = Specifies the length in 32-bit multiples of the
33 - * data to be retrieved.
34 -+ *
35 -+ * NOTE: see
36 -+ * http://mail.gnome.org/archives/wm-spec-list/2003-March/msg00067.html
37 -+ * In particular:
38 -+ *
39 -+ * When the X window system was ported to 64-bit architectures, a
40 -+ * rather peculiar design decision was made. 32-bit quantities such
41 -+ * as Window IDs, atoms, etc, were kept as longs in the client side
42 -+ * APIs, even when long was changed to 64 bits.
43 -+ *
44 - */
45 - if (XGetWindowProperty(disp, win, xa_prop_name, 0, MAX_PROPERTY_VALUE_LEN / 4, False,
46 - xa_prop_type, &xa_ret_type, &ret_format,
47 -@@ -1441,6 +1451,8 @@
48 -
49 - /* null terminate the result to make string handling easier */
50 - tmp_size = (ret_format / 8) * ret_nitems;
51 -+ /* Correct 64 Architecture implementation of 32 bit data */
52 -+ if(ret_format==32) tmp_size *= sizeof(long)/4;
53 - ret = g_malloc(tmp_size + 1);
54 - memcpy(ret, ret_prop, tmp_size);
55 - ret[tmp_size] = '\0';
56
57 diff --git a/x11-misc/wmctrl/files/wmctrl-1.07-64bit-xlib.patch b/x11-misc/wmctrl/files/wmctrl-1.07-64bit-xlib.patch
58 new file mode 100644
59 index 000000000000..8888a0320870
60 --- /dev/null
61 +++ b/x11-misc/wmctrl/files/wmctrl-1.07-64bit-xlib.patch
62 @@ -0,0 +1,12 @@
63 +http://mail.gnome.org/archives/wm-spec-list/2003-March/msg00067.html
64 +--- a/main.c
65 ++++ b/main.c
66 +@@ -1441,6 +1451,8 @@
67 +
68 + /* null terminate the result to make string handling easier */
69 + tmp_size = (ret_format / 8) * ret_nitems;
70 ++ /* Correct 64 Architecture implementation of 32 bit data */
71 ++ if(ret_format==32) tmp_size *= sizeof(long)/4;
72 + ret = g_malloc(tmp_size + 1);
73 + memcpy(ret, ret_prop, tmp_size);
74 + ret[tmp_size] = '\0';
75
76 diff --git a/x11-misc/wmctrl/wmctrl-1.07-r2.ebuild b/x11-misc/wmctrl/wmctrl-1.07-r3.ebuild
77 similarity index 58%
78 rename from x11-misc/wmctrl/wmctrl-1.07-r2.ebuild
79 rename to x11-misc/wmctrl/wmctrl-1.07-r3.ebuild
80 index f7701592d694..a7bad8f520bc 100644
81 --- a/x11-misc/wmctrl/wmctrl-1.07-r2.ebuild
82 +++ b/x11-misc/wmctrl/wmctrl-1.07-r3.ebuild
83 @@ -1,25 +1,26 @@
84 -# Copyright 1999-2021 Gentoo Authors
85 +# Copyright 1999-2022 Gentoo Authors
86 # Distributed under the terms of the GNU General Public License v2
87
88 -EAPI=7
89 +EAPI=8
90
91 DESCRIPTION="Command line tool to interact with an EWMH/NetWM compatible X Window Manager"
92 -HOMEPAGE="http://sweb.cz/tripie/utils/wmctrl"
93 -SRC_URI="http://sweb.cz/tripie/utils/wmctrl/dist/${P}.tar.gz"
94 +HOMEPAGE="http://tripie.sweb.cz/utils/wmctrl/"
95 +SRC_URI="http://tripie.sweb.cz/utils/wmctrl/dist/${P}.tar.gz"
96
97 -LICENSE="GPL-2"
98 +LICENSE="GPL-2+"
99 SLOT="0"
100 KEYWORDS="amd64 arm64 ppc ~ppc64 ~riscv ~sparc x86 ~x86-linux"
101
102 RDEPEND="
103 dev-libs/glib:2
104 x11-libs/libX11
105 - x11-libs/libXmu
106 - x11-libs/libXt"
107 + x11-libs/libXmu"
108 DEPEND="
109 ${RDEPEND}
110 x11-base/xorg-proto"
111 BDEPEND="
112 virtual/pkgconfig"
113
114 -PATCHES=( "${FILESDIR}/amd64-Xlib.patch" )
115 +PATCHES=(
116 + "${FILESDIR}"/${P}-64bit-xlib.patch
117 +)