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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 79B4A15ACFB for ; Tue, 18 Apr 2023 19:10:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 99397E0896; Tue, 18 Apr 2023 19:10:50 +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 73F17E0896 for ; Tue, 18 Apr 2023 19:10:50 +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 91720340D56 for ; Tue, 18 Apr 2023 19:10:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BDB18A1C for ; Tue, 18 Apr 2023 19:10:47 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1681845016.e5edf90120faab5fe44ee48f7ada78193d0c0303.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/virtualgl/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: x11-misc/virtualgl/files/virtualgl-3.0.1-libX11-1.8.patch X-VCS-Directories: x11-misc/virtualgl/files/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: e5edf90120faab5fe44ee48f7ada78193d0c0303 X-VCS-Branch: master Date: Tue, 18 Apr 2023 19:10:47 +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: ca2ad376-4831-4472-bf0e-4bd0a005d1c2 X-Archives-Hash: 4bab89792687a095fd3372788dfdcc42 commit: e5edf90120faab5fe44ee48f7ada78193d0c0303 Author: Michael Mair-Keimberger levelnine at> AuthorDate: Tue Apr 18 16:33:12 2023 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Tue Apr 18 19:10:16 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5edf901 x11-misc/virtualgl: remove unused patch Signed-off-by: Michael Mair-Keimberger levelnine.at> Closes: https://github.com/gentoo/gentoo/pull/30645 Signed-off-by: Conrad Kostecki gentoo.org> .../files/virtualgl-3.0.1-libX11-1.8.patch | 140 --------------------- 1 file changed, 140 deletions(-) diff --git a/x11-misc/virtualgl/files/virtualgl-3.0.1-libX11-1.8.patch b/x11-misc/virtualgl/files/virtualgl-3.0.1-libX11-1.8.patch deleted file mode 100644 index dd37d6c3b664..000000000000 --- a/x11-misc/virtualgl/files/virtualgl-3.0.1-libX11-1.8.patch +++ /dev/null @@ -1,140 +0,0 @@ -From 46d09529563127fef0d42a4fb2681ae8d65a856b Mon Sep 17 00:00:00 2001 -From: DRC -Date: Thu, 7 Jul 2022 17:22:57 -0500 -Subject: [PATCH] Build: Fix compilation errors with libX11 1.8.x - -Fixes #205 ---- - ChangeLog.md | 2 ++ - server/CMakeLists.txt | 10 ++++++++++ - server/FakePbuffer.cpp | 2 +- - server/faker-sym.h | 6 ++++++ - server/faker-x11.cpp | 7 ++++++- - server/faker.cpp | 4 ++-- - 6 files changed, 27 insertions(+), 4 deletions(-) - -diff --git a/ChangeLog.md b/ChangeLog.md -index 292a5a94..4b9cc36f 100644 ---- a/ChangeLog.md -+++ b/ChangeLog.md -@@ -8,6 +8,8 @@ module when using recent versions of nVidia's proprietary drivers. In some - cases, this led to incorrect device permissions for **/dev/nvidia*** after the - display manager was restarted. - -+2. Fixed compilation errors when building with libX11 1.8.x. -+ - - 3.0.1 - ===== -diff --git a/server/CMakeLists.txt b/server/CMakeLists.txt -index 574521a0..2ce92856 100644 ---- a/server/CMakeLists.txt -+++ b/server/CMakeLists.txt -@@ -91,6 +91,16 @@ add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/faker-mapfile - > ${CMAKE_CURRENT_BINARY_DIR}/faker-mapfile - DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/faker-mapfile.c) - -+include(CheckPrototypeDefinition) -+set(CMAKE_REQUIRED_INCLUDES ${X11_X11_INCLUDE_PATH}) -+check_prototype_definition(XkbOpenDisplay -+ "Display *XkbOpenDisplay(_Xconst char *, int *, int *, int *, int *, int *)" -+ NULL X11/XKBlib.h LIBX11_18) -+unset(CMAKE_REQUIRED_INCLUDES) -+if(LIBX11_18) -+ add_definitions(-DLIBX11_18) -+endif() -+ - set(FAKER_SOURCES - backend.cpp - ContextHash.cpp -diff --git a/server/FakePbuffer.cpp b/server/FakePbuffer.cpp -index bfa55279..64aab775 100644 ---- a/server/FakePbuffer.cpp -+++ b/server/FakePbuffer.cpp -@@ -10,11 +10,11 @@ - // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - // wxWindows Library License for more details. - -+#include - #include "FakePbuffer.h" - #include "TempContextEGL.h" - #include "BufferState.h" - #include "ContextHashEGL.h" --#include - - using namespace util; - using namespace backend; -diff --git a/server/faker-sym.h b/server/faker-sym.h -index 0fa1e5cd..3c6f94e8 100644 ---- a/server/faker-sym.h -+++ b/server/faker-sym.h -@@ -704,9 +704,15 @@ FUNCDEF2(int, XNextEvent, Display *, dpy, XEvent *, xe, XNextEvent) - - FUNCDEF1(Display *, XOpenDisplay, _Xconst char *, name, XOpenDisplay) - -+#ifdef LIBX11_18 -+FUNCDEF6(Display *, XkbOpenDisplay, _Xconst char *, display_name, -+ int *, event_rtrn, int *, error_rtrn, int *, major_in_out, -+ int *, minor_in_out, int *, reason_rtrn, XkbOpenDisplay) -+#else - FUNCDEF6(Display *, XkbOpenDisplay, char *, display_name, int *, event_rtrn, - int *, error_rtrn, int *, major_in_out, int *, minor_in_out, - int *, reason_rtrn, XkbOpenDisplay) -+#endif - - FUNCDEF5(Bool, XQueryExtension, Display *, dpy, _Xconst char *, name, - int *, major_opcode, int *, first_event, int *, first_error, -diff --git a/server/faker-x11.cpp b/server/faker-x11.cpp -index 99e8bf17..a233f3b1 100644 ---- a/server/faker-x11.cpp -+++ b/server/faker-x11.cpp -@@ -1,6 +1,6 @@ - // Copyright (C)2004 Landmark Graphics Corporation - // Copyright (C)2005, 2006 Sun Microsystems, Inc. --// Copyright (C)2009, 2011-2016, 2018-2021 D. R. Commander -+// Copyright (C)2009, 2011-2016, 2018-2022 D. R. Commander - // - // This library is free software and may be redistributed and/or modified under - // the terms of the wxWindows Library License, Version 3.1 or (at your option) -@@ -586,8 +586,13 @@ Display *XOpenDisplay(_Xconst char *name) - // within libX11, VirtualGL cannot intercept it on some platforms. Thus we - // need to interpose XkbOpenDisplay(). - -+#ifdef LIBX11_18 -+Display *XkbOpenDisplay(_Xconst char *display_name, int *event_rtrn, -+ int *error_rtrn, int *major_in_out, int *minor_in_out, int *reason_rtrn) -+#else - Display *XkbOpenDisplay(char *display_name, int *event_rtrn, int *error_rtrn, - int *major_in_out, int *minor_in_out, int *reason_rtrn) -+#endif - { - Display *dpy = NULL; - -diff --git a/server/faker.cpp b/server/faker.cpp -index ec537a62..601cfa3e 100644 ---- a/server/faker.cpp -+++ b/server/faker.cpp -@@ -1,6 +1,6 @@ - // Copyright (C)2004 Landmark Graphics Corporation - // Copyright (C)2005, 2006 Sun Microsystems, Inc. --// Copyright (C)2009, 2011, 2013-2016, 2019-2021 D. R. Commander -+// Copyright (C)2009, 2011, 2013-2016, 2019-2022 D. R. Commander - // - // This library is free software and may be redistributed and/or modified under - // the terms of the wxWindows Library License, Version 3.1 or (at your option) -@@ -14,6 +14,7 @@ - - #include - #include "Mutex.h" -+#include - #include "ContextHash.h" - #ifdef EGLBACKEND - #include "ContextHashEGL.h" -@@ -27,7 +28,6 @@ - #include "fakerconfig.h" - #include "threadlocal.h" - #include --#include - #include "faker.h" - -