From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1E0D1158089 for ; Sat, 14 Oct 2023 10:30:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 413B12BC019; Sat, 14 Oct 2023 10:30:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 282542BC019 for ; Sat, 14 Oct 2023 10:30:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5644B335C5D for ; Sat, 14 Oct 2023 10:30:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A66BB108A for ; Sat, 14 Oct 2023 10:30:00 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1697279094.614c75933d33c278bf77a69f87931e7a35c9d719.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: gui-wm/dwl/, gui-wm/dwl/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: gui-wm/dwl/dwl-0.4-r1.ebuild gui-wm/dwl/files/dwl-0.4-do-not-use-libX11.patch X-VCS-Directories: gui-wm/dwl/ gui-wm/dwl/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 614c75933d33c278bf77a69f87931e7a35c9d719 X-VCS-Branch: master Date: Sat, 14 Oct 2023 10:30:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 53961d38-b05c-46b9-a157-741ebf647450 X-Archives-Hash: c0df12037990e2a19c451c32ccb3d54b commit: 614c75933d33c278bf77a69f87931e7a35c9d719 Author: Leonardo Hernández Hernández proton me> AuthorDate: Tue Oct 10 04:49:46 2023 +0000 Commit: Sam James gentoo org> CommitDate: Sat Oct 14 10:24:54 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=614c7593 gui-wm/dwl: backport patch to use libxcb headers instead of libX11 no revbump because there is no functional change Signed-off-by: Leonardo Hernández Hernández proton.me> Closes: https://github.com/gentoo/gentoo/pull/33274 Signed-off-by: Sam James gentoo.org> gui-wm/dwl/dwl-0.4-r1.ebuild | 2 + gui-wm/dwl/files/dwl-0.4-do-not-use-libX11.patch | 60 ++++++++++++++++++++++++ 2 files changed, 62 insertions(+) diff --git a/gui-wm/dwl/dwl-0.4-r1.ebuild b/gui-wm/dwl/dwl-0.4-r1.ebuild index 13123b384a95..14e10e810266 100644 --- a/gui-wm/dwl/dwl-0.4-r1.ebuild +++ b/gui-wm/dwl/dwl-0.4-r1.ebuild @@ -35,6 +35,8 @@ LICENSE="CC0-1.0 GPL-3+ MIT" SLOT="0" IUSE="X" +PATCHES=( "${FILESDIR}/${P}-do-not-use-libX11.patch" ) + RDEPEND=" dev-libs/libinput:= dev-libs/wayland diff --git a/gui-wm/dwl/files/dwl-0.4-do-not-use-libX11.patch b/gui-wm/dwl/files/dwl-0.4-do-not-use-libX11.patch new file mode 100644 index 000000000000..65ef8a5b8186 --- /dev/null +++ b/gui-wm/dwl/files/dwl-0.4-do-not-use-libX11.patch @@ -0,0 +1,60 @@ +From 1a1ca779c7d79747dea355d03db74cd1d73787c7 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?= + +Date: Mon, 9 Oct 2023 21:35:49 -0600 +Subject: [PATCH] use instead of +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Leonardo Hernández Hernández +--- + dwl.c | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +diff --git a/dwl.c b/dwl.c +index 19bb6ce..92a1d3e 100644 +--- a/dwl.c ++++ b/dwl.c +@@ -54,7 +54,7 @@ + #include + #ifdef XWAYLAND + #include +-#include ++#include + #include + #endif + +@@ -387,14 +387,14 @@ static struct wl_listener session_lock_mgr_destroy = {.notify = destroysessionmg + static void activatex11(struct wl_listener *listener, void *data); + static void configurex11(struct wl_listener *listener, void *data); + static void createnotifyx11(struct wl_listener *listener, void *data); +-static Atom getatom(xcb_connection_t *xc, const char *name); ++static xcb_atom_t getatom(xcb_connection_t *xc, const char *name); + static void sethints(struct wl_listener *listener, void *data); + static void sigchld(int unused); + static void xwaylandready(struct wl_listener *listener, void *data); + static struct wl_listener new_xwayland_surface = {.notify = createnotifyx11}; + static struct wl_listener xwayland_ready = {.notify = xwaylandready}; + static struct wlr_xwayland *xwayland; +-static Atom netatom[NetLast]; ++static xcb_atom_t netatom[NetLast]; + #endif + + /* configuration, allows nested code to access above variables */ +@@ -2671,10 +2671,10 @@ createnotifyx11(struct wl_listener *listener, void *data) + LISTEN(&xsurface->events.request_fullscreen, &c->fullscreen, fullscreennotify); + } + +-Atom ++xcb_atom_t + getatom(xcb_connection_t *xc, const char *name) + { +- Atom atom = 0; ++ xcb_atom_t atom = 0; + xcb_intern_atom_reply_t *reply; + xcb_intern_atom_cookie_t cookie = xcb_intern_atom(xc, 0, strlen(name), name); + if ((reply = xcb_intern_atom_reply(xc, cookie, NULL))) +-- +2.42.0 +