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 0994F158094 for ; Tue, 4 Oct 2022 11:35:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 35BA7E0961; Tue, 4 Oct 2022 11:35:25 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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 1C8D4E0961 for ; Tue, 4 Oct 2022 11:35:25 +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 D20C1335D7D for ; Tue, 4 Oct 2022 11:35:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 34AD45F8 for ; Tue, 4 Oct 2022 11:35:22 +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: <1664883309.3c24f1026227c0be0e9a5b32532f8c6e73671bca.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libsdl2/, media-libs/libsdl2/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/libsdl2/files/libsdl2-2.24.0-fix-build-without-joystick.patch media-libs/libsdl2/libsdl2-2.24.0-r2.ebuild X-VCS-Directories: media-libs/libsdl2/ media-libs/libsdl2/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 3c24f1026227c0be0e9a5b32532f8c6e73671bca X-VCS-Branch: master Date: Tue, 4 Oct 2022 11:35:22 +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: e98d5c01-e0de-447c-9f39-4ac981d75b47 X-Archives-Hash: 7ebea12282237eecfceafcaf783abac5 commit: 3c24f1026227c0be0e9a5b32532f8c6e73671bca Author: Pavel Zhukov zhukoff net> AuthorDate: Tue Oct 4 09:57:28 2022 +0000 Commit: Sam James gentoo org> CommitDate: Tue Oct 4 11:35:09 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c24f102 media-libs/libsdl2: Fix build with libudev and joystick subsystem disabled Upstream commit: 71fb91f7e43c5f046a037bf5ca59214d93fe2d51 Signed-off-by: Pavel Zhukov zhukoff.net> Closes: https://github.com/gentoo/gentoo/pull/27607 Signed-off-by: Sam James gentoo.org> ...libsdl2-2.24.0-fix-build-without-joystick.patch | 32 ++++++++++++++++++++++ media-libs/libsdl2/libsdl2-2.24.0-r2.ebuild | 1 + 2 files changed, 33 insertions(+) diff --git a/media-libs/libsdl2/files/libsdl2-2.24.0-fix-build-without-joystick.patch b/media-libs/libsdl2/files/libsdl2-2.24.0-fix-build-without-joystick.patch new file mode 100644 index 000000000000..0370f66ef8c9 --- /dev/null +++ b/media-libs/libsdl2/files/libsdl2-2.24.0-fix-build-without-joystick.patch @@ -0,0 +1,32 @@ +# https://github.com/libsdl-org/SDL/commit/71fb91f7e43c5f046a037bf5ca59214d93fe2d51 +From 71fb91f7e43c5f046a037bf5ca59214d93fe2d51 Mon Sep 17 00:00:00 2001 +From: Cameron Gutman +Date: Mon, 26 Sep 2022 21:38:09 -0500 +Subject: [PATCH] evdev: Fix build with libudev and joystick subsystem disabled + +--- + src/core/linux/SDL_evdev_capabilities.h | 4 ---- + 1 file changed, 4 deletions(-) + +diff --git a/src/core/linux/SDL_evdev_capabilities.h b/src/core/linux/SDL_evdev_capabilities.h +index 26fa7400485b..990ebe01b872 100644 +--- a/src/core/linux/SDL_evdev_capabilities.h ++++ b/src/core/linux/SDL_evdev_capabilities.h +@@ -25,8 +25,6 @@ + #ifndef SDL_evdev_capabilities_h_ + #define SDL_evdev_capabilities_h_ + +-#if HAVE_LIBUDEV_H || defined(SDL_JOYSTICK_LINUX) +- + #include + + /* A device can be any combination of these classes */ +@@ -53,8 +51,6 @@ extern int SDL_EVDEV_GuessDeviceClass(unsigned long bitmask_ev[NBITS(EV_MAX)], + unsigned long bitmask_key[NBITS(KEY_MAX)], + unsigned long bitmask_rel[NBITS(REL_MAX)]); + +-#endif /* HAVE_LIBUDEV_H || defined(SDL_JOYSTICK_LINUX) */ +- + #endif /* SDL_evdev_capabilities_h_ */ + + /* vi: set ts=4 sw=4 expandtab: */ diff --git a/media-libs/libsdl2/libsdl2-2.24.0-r2.ebuild b/media-libs/libsdl2/libsdl2-2.24.0-r2.ebuild index df06e35c7b52..481ce62c0cdf 100644 --- a/media-libs/libsdl2/libsdl2-2.24.0-r2.ebuild +++ b/media-libs/libsdl2/libsdl2-2.24.0-r2.ebuild @@ -97,6 +97,7 @@ PATCHES=( "${FILESDIR}"/${PN}-2.0.16-static-libs.patch "${FILESDIR}"/${PN}-2.24.0-clang-15-configure.patch "${FILESDIR}"/${P}-cmake-target-fixes.patch + "${FILESDIR}"/${P}-fix-build-without-joystick.patch ) S="${WORKDIR}/${MY_P}"