1 |
commit: 0e2df95027a2ed8c11d42b06dd4972de5e563f6a |
2 |
Author: Gerben Jan Dijkman <gjdijkman <AT> gjdwebserver <DOT> nl> |
3 |
AuthorDate: Sun Aug 22 17:21:19 2021 +0000 |
4 |
Commit: Gerben Jan Dijkman <gjdijkman <AT> gjdwebserver <DOT> nl> |
5 |
CommitDate: Sun Aug 22 17:21:25 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0e2df950 |
7 |
|
8 |
x11-wm/phoc: Fixed package |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Gerben jan Dijkman <gjdijkman <AT> gjdwebserver.nl> |
12 |
|
13 |
...shell-error-on-0-dimension-without-anchors.diff | 42 ++++++++++++++++++++++ |
14 |
...sor-fix-false-positive-stringop-truncation.diff | 21 +++++++++++ |
15 |
x11-wm/phoc/metadata.xml | 14 ++++++-- |
16 |
x11-wm/phoc/phoc-0.8.0.ebuild | 15 ++++---- |
17 |
4 files changed, 84 insertions(+), 8 deletions(-) |
18 |
|
19 |
diff --git a/x11-wm/phoc/files/Revert-layer-shell-error-on-0-dimension-without-anchors.diff b/x11-wm/phoc/files/Revert-layer-shell-error-on-0-dimension-without-anchors.diff |
20 |
new file mode 100644 |
21 |
index 000000000..be1eeb571 |
22 |
--- /dev/null |
23 |
+++ b/x11-wm/phoc/files/Revert-layer-shell-error-on-0-dimension-without-anchors.diff |
24 |
@@ -0,0 +1,42 @@ |
25 |
+From: =?utf-8?q?Guido_G=C3=BCnther?= <agx@×××××××.org> |
26 |
+Date: Fri, 1 Jan 2021 13:58:55 +0100 |
27 |
+Subject: Revert "layer-shell: error on 0 dimension without anchors" |
28 |
+ |
29 |
+This reverts commit 8dec751a6d84335fb04288b8efab6dd5c90288d3. |
30 |
+ |
31 |
+Revert this until phosh has a fixed release. |
32 |
+--- |
33 |
+ types/wlr_layer_shell_v1.c | 20 -------------------- |
34 |
+ 1 file changed, 20 deletions(-) |
35 |
+ |
36 |
+diff --git a/types/wlr_layer_shell_v1.c b/types/wlr_layer_shell_v1.c |
37 |
+index bc68111..d83b22b 100644 |
38 |
+--- a/types/wlr_layer_shell_v1.c |
39 |
++++ b/types/wlr_layer_shell_v1.c |
40 |
+@@ -307,26 +307,6 @@ static void layer_surface_role_commit(struct wlr_surface *wlr_surface) { |
41 |
+ return; |
42 |
+ } |
43 |
+ |
44 |
+- const uint32_t horiz = ZWLR_LAYER_SURFACE_V1_ANCHOR_LEFT | |
45 |
+- ZWLR_LAYER_SURFACE_V1_ANCHOR_RIGHT; |
46 |
+- if (surface->client_pending.desired_width == 0 && |
47 |
+- (surface->client_pending.anchor & horiz) != horiz) { |
48 |
+- wl_resource_post_error(surface->resource, |
49 |
+- ZWLR_LAYER_SURFACE_V1_ERROR_INVALID_SIZE, |
50 |
+- "width 0 requested without setting left and right anchors"); |
51 |
+- return; |
52 |
+- } |
53 |
+- |
54 |
+- const uint32_t vert = ZWLR_LAYER_SURFACE_V1_ANCHOR_TOP | |
55 |
+- ZWLR_LAYER_SURFACE_V1_ANCHOR_BOTTOM; |
56 |
+- if (surface->client_pending.desired_height == 0 && |
57 |
+- (surface->client_pending.anchor & vert) != vert) { |
58 |
+- wl_resource_post_error(surface->resource, |
59 |
+- ZWLR_LAYER_SURFACE_V1_ERROR_INVALID_SIZE, |
60 |
+- "height 0 requested without setting top and bottom anchors"); |
61 |
+- return; |
62 |
+- } |
63 |
+- |
64 |
+ if (surface->closed) { |
65 |
+ // Ignore commits after the compositor has closed it |
66 |
+ return; |
67 |
|
68 |
diff --git a/x11-wm/phoc/files/xcursor-fix-false-positive-stringop-truncation.diff b/x11-wm/phoc/files/xcursor-fix-false-positive-stringop-truncation.diff |
69 |
new file mode 100644 |
70 |
index 000000000..d08b859a3 |
71 |
--- /dev/null |
72 |
+++ b/x11-wm/phoc/files/xcursor-fix-false-positive-stringop-truncation.diff |
73 |
@@ -0,0 +1,21 @@ |
74 |
+Description: xcursor: strncpy truncation warning with GCC 10 on s390x |
75 |
+ Fix false positive stringop-truncation warning/error with GCC 10 on s390x |
76 |
+ . |
77 |
+Author: Lukas Märdian <slyon@××××××.com> |
78 |
+Bug: https://github.com/swaywm/wlroots/issues/2018 |
79 |
+Last-Update: 2021-03-03 |
80 |
+--- |
81 |
+--- wlroots-0.12.0.orig/xcursor/xcursor.c |
82 |
++++ wlroots-0.12.0/xcursor/xcursor.c |
83 |
+@@ -655,8 +655,11 @@ _XcursorAddPathElt (char *path, const ch |
84 |
+ elt++; |
85 |
+ len--; |
86 |
+ } |
87 |
++#pragma GCC diagnostic push |
88 |
++#pragma GCC diagnostic ignored "-Wstringop-truncation" |
89 |
+ strncpy (path + pathlen, elt, len); |
90 |
+ path[pathlen + len] = '\0'; |
91 |
++#pragma GCC diagnostic pop |
92 |
+ } |
93 |
+ |
94 |
+ static char * |
95 |
|
96 |
diff --git a/x11-wm/phoc/metadata.xml b/x11-wm/phoc/metadata.xml |
97 |
index b372191c7..d495e34d9 100644 |
98 |
--- a/x11-wm/phoc/metadata.xml |
99 |
+++ b/x11-wm/phoc/metadata.xml |
100 |
@@ -1,5 +1,15 @@ |
101 |
-<?xml version='1.0' encoding='UTF-8'?> |
102 |
+<?xml version="1.0" encoding="UTF-8"?> |
103 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
104 |
<pkgmetadata> |
105 |
- <!-- maintainer-needed --> |
106 |
+ <maintainer type="person"> |
107 |
+ <email>gjdijkman@××××××××××××.nl</email> |
108 |
+ <name>Gerben Jan Dijkman</name> |
109 |
+ </maintainer> |
110 |
+ <longdescription lang="en"> |
111 |
+ Wayland compositor for mobile phones like the Librem 5. |
112 |
+ </longdescription> |
113 |
+ <upstream> |
114 |
+ <doc>https://source.puri.sm/Librem5/phoc</doc> |
115 |
+ <bugs-to>https://source.puri.sm/Librem5/phoc/-/issues</bugs-to> |
116 |
+ </upstream> |
117 |
</pkgmetadata> |
118 |
|
119 |
diff --git a/x11-wm/phoc/phoc-0.8.0.ebuild b/x11-wm/phoc/phoc-0.8.0.ebuild |
120 |
index cda542c9d..0b27e0c08 100644 |
121 |
--- a/x11-wm/phoc/phoc-0.8.0.ebuild |
122 |
+++ b/x11-wm/phoc/phoc-0.8.0.ebuild |
123 |
@@ -3,7 +3,7 @@ |
124 |
|
125 |
EAPI=7 |
126 |
|
127 |
-inherit meson vala xdg |
128 |
+inherit meson vala xdg gnome2-utils |
129 |
|
130 |
MY_PV="v${PV}" |
131 |
MY_P="${PN}-${MY_PV}" |
132 |
@@ -12,7 +12,7 @@ WL_PV="0.12.0" |
133 |
WL_P="wlroots-${WL_PV}" |
134 |
|
135 |
DESCRIPTION="Wlroots based Phone compositor" |
136 |
-HOMEPAGE="https://source.puri.sm/Librem5/phoc" |
137 |
+HOMEPAGE="https://gitlab.gnome.org/World/Phosh/phoc" |
138 |
|
139 |
# we don't use the version on gentoo because it breaks |
140 |
# the phoc installation. we follow method used in archlinuxarm |
141 |
@@ -51,7 +51,6 @@ BDEPEND=" |
142 |
virtual/pkgconfig |
143 |
x11-base/xorg-server |
144 |
" |
145 |
- |
146 |
PATCHES=( |
147 |
"${FILESDIR}/0001-seat-Don-t-notify-on-key-release.patch" |
148 |
"${FILESDIR}/0002-seat-inhibit-touch-events-when-in-power-save-mode-or.patch" |
149 |
@@ -63,25 +62,29 @@ src_prepare() { |
150 |
default |
151 |
rm -r "${S}"/subprojects/wlroots || die "Failed to remove bundled wlroots" |
152 |
cp -r "${WORKDIR}/${WL_P}" "${S}"/subprojects/wlroots || die "Failed to copy right version of wlroots" |
153 |
+ |
154 |
+ cd "${S}"/subprojects/wlroots |
155 |
+ eapply "${FILESDIR}"/xcursor-fix-false-positive-stringop-truncation.diff |
156 |
+ eapply "${FILESDIR}"/Revert-layer-shell-error-on-0-dimension-without-anchors.diff |
157 |
+ |
158 |
} |
159 |
|
160 |
src_configure() { |
161 |
local emesonargs=( |
162 |
-Ddefault_library=shared |
163 |
-Dtests=false |
164 |
- -Dwlroots:logind-provider=systemd |
165 |
- -Dwlroots:libseat=disabled |
166 |
) |
167 |
meson_src_configure |
168 |
} |
169 |
|
170 |
src_install() { |
171 |
DESTDIR="${D}" meson_src_install |
172 |
-# dobin "${S}"/helpers/scale-to-fit |
173 |
+ dobin "${S}"/helpers/scale-to-fit |
174 |
} |
175 |
|
176 |
pkg_postinst() { |
177 |
xdg_pkg_postinst |
178 |
+ gnome2_schemas_update |
179 |
} |
180 |
|
181 |
pkg_postrm() { |