1 |
commit: dc6a5562a06951cb3fbfab4595463c73af3e2d0d |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 10 07:59:50 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 10 08:19:08 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc6a5562 |
7 |
|
8 |
xfce-base/xfwm4: Backport upstream fix for event mask length |
9 |
|
10 |
Closes: https://bugs.gentoo.org/664710 |
11 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
12 |
|
13 |
.../xfwm4/files/xfwm4-4.13.1-fix-mask-len.patch | 31 +++++++++ |
14 |
xfce-base/xfwm4/xfwm4-4.13.1-r2.ebuild | 79 ++++++++++++++++++++++ |
15 |
2 files changed, 110 insertions(+) |
16 |
|
17 |
diff --git a/xfce-base/xfwm4/files/xfwm4-4.13.1-fix-mask-len.patch b/xfce-base/xfwm4/files/xfwm4-4.13.1-fix-mask-len.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..640e297ce92 |
20 |
--- /dev/null |
21 |
+++ b/xfce-base/xfwm4/files/xfwm4-4.13.1-fix-mask-len.patch |
22 |
@@ -0,0 +1,31 @@ |
23 |
+From 2080fa3c81b3810228ae5a8abbb494c78dd1d566 Mon Sep 17 00:00:00 2001 |
24 |
+From: Timo <timo.teras@×××.fi> |
25 |
+Date: Thu, 13 Sep 2018 20:25:33 +0200 |
26 |
+Subject: device: Fix wrong mask len |
27 |
+ |
28 |
+Bug: 14695 |
29 |
+ |
30 |
+The `mask_len` field is setup incorrectly in |
31 |
+`xfwm_device_fill_xi2_event_mask()`. |
32 |
+ |
33 |
+The size is the pointer length, not the bitmask data area length. |
34 |
+--- |
35 |
+ src/device.c | 2 +- |
36 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
37 |
+ |
38 |
+diff --git a/src/device.c b/src/device.c |
39 |
+index b1e33ae2..01c0c81d 100644 |
40 |
+--- a/src/device.c |
41 |
++++ b/src/device.c |
42 |
+@@ -301,7 +301,7 @@ xfwm_device_fill_xi2_event_mask (XIEventMask *xievent_mask, gulong core_mask) |
43 |
+ guint i; |
44 |
+ |
45 |
+ xievent_mask->deviceid = XIAllMasterDevices; |
46 |
+- xievent_mask->mask_len = sizeof (mask); |
47 |
++ xievent_mask->mask_len = len; |
48 |
+ xievent_mask->mask = mask; |
49 |
+ |
50 |
+ for (i = 0; i < G_N_ELEMENTS (core_to_xi2); i++) |
51 |
+-- |
52 |
+cgit v1.2.1 |
53 |
+ |
54 |
|
55 |
diff --git a/xfce-base/xfwm4/xfwm4-4.13.1-r2.ebuild b/xfce-base/xfwm4/xfwm4-4.13.1-r2.ebuild |
56 |
new file mode 100644 |
57 |
index 00000000000..b929ce60b99 |
58 |
--- /dev/null |
59 |
+++ b/xfce-base/xfwm4/xfwm4-4.13.1-r2.ebuild |
60 |
@@ -0,0 +1,79 @@ |
61 |
+# Copyright 1999-2018 Gentoo Foundation |
62 |
+# Distributed under the terms of the GNU General Public License v2 |
63 |
+ |
64 |
+EAPI=6 |
65 |
+ |
66 |
+inherit gnome2-utils |
67 |
+ |
68 |
+DESCRIPTION="Window manager for the Xfce desktop environment" |
69 |
+HOMEPAGE="https://www.xfce.org/projects/" |
70 |
+SRC_URI="https://archive.xfce.org/src/xfce/${PN}/${PV%.*}/${P}.tar.bz2 |
71 |
+ https://dev.gentoo.org/~mgorny/dist/${P}-patchset.tar.bz2" |
72 |
+ |
73 |
+LICENSE="GPL-2" |
74 |
+SLOT="0" |
75 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-solaris" |
76 |
+IUSE="opengl startup-notification +xcomposite +xpresent" |
77 |
+ |
78 |
+RDEPEND="dev-libs/dbus-glib:= |
79 |
+ >=dev-libs/glib-2.20:= |
80 |
+ >=x11-libs/gtk+-3.20:3= |
81 |
+ x11-libs/libX11:= |
82 |
+ x11-libs/libXext:= |
83 |
+ x11-libs/libXinerama:= |
84 |
+ x11-libs/libXrandr:= |
85 |
+ x11-libs/libXrender:= |
86 |
+ x11-libs/pango:= |
87 |
+ >=x11-libs/libwnck-3.14:3= |
88 |
+ >=xfce-base/libxfce4util-4.10:= |
89 |
+ >=xfce-base/libxfce4ui-4.12:= |
90 |
+ >=xfce-base/xfconf-4.13:= |
91 |
+ opengl? ( media-libs/libepoxy:=[X(+)] ) |
92 |
+ startup-notification? ( x11-libs/startup-notification:= ) |
93 |
+ xpresent? ( x11-libs/libXpresent ) |
94 |
+ xcomposite? ( |
95 |
+ x11-libs/libXcomposite:= |
96 |
+ x11-libs/libXdamage:= |
97 |
+ x11-libs/libXfixes:= |
98 |
+ )" |
99 |
+# libICE/libSM: not really used anywhere but checked by configure |
100 |
+# https://bugzilla.xfce.org/show_bug.cgi?id=11914 |
101 |
+DEPEND="${RDEPEND} |
102 |
+ dev-util/intltool |
103 |
+ sys-devel/gettext |
104 |
+ x11-libs/libICE |
105 |
+ x11-libs/libSM |
106 |
+ xfce-base/exo |
107 |
+ virtual/pkgconfig" |
108 |
+ |
109 |
+DOCS=( AUTHORS ChangeLog COMPOSITOR NEWS README TODO ) |
110 |
+ |
111 |
+PATCHES=( |
112 |
+ # set of patches to fix refresh issues |
113 |
+ # https://bugs.gentoo.org/614564 |
114 |
+ "${WORKDIR}/${P}-patchset" |
115 |
+ |
116 |
+ "${FILESDIR}"/xfwm4-4.13.1-fix-mask-len.patch |
117 |
+) |
118 |
+ |
119 |
+src_configure() { |
120 |
+ local myconf=( |
121 |
+ $(use_enable opengl epoxy) |
122 |
+ $(use_enable startup-notification) |
123 |
+ --enable-xsync |
124 |
+ --enable-render |
125 |
+ --enable-randr |
126 |
+ $(use_enable xpresent) |
127 |
+ $(use_enable xcomposite compositor) |
128 |
+ ) |
129 |
+ |
130 |
+ econf "${myconf[@]}" |
131 |
+} |
132 |
+ |
133 |
+pkg_postinst() { |
134 |
+ gnome2_icon_cache_update |
135 |
+} |
136 |
+ |
137 |
+pkg_postrm() { |
138 |
+ gnome2_icon_cache_update |
139 |
+} |