From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:54668) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jGkBw-0007Fl-OC for guix-patches@gnu.org; Tue, 24 Mar 2020 10:06:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jGkBu-0002lA-CU for guix-patches@gnu.org; Tue, 24 Mar 2020 10:06:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49417) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jGkBu-0002ky-8p for guix-patches@gnu.org; Tue, 24 Mar 2020 10:06:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jGkBu-0004tn-3E for guix-patches@gnu.org; Tue, 24 Mar 2020 10:06:02 -0400 Subject: [bug#40211] [PATCH 0/2] Enable udev support in SDL2 and bump version Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:54578) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jGkBO-0006Cu-Hq for guix-patches@gnu.org; Tue, 24 Mar 2020 10:05:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jGkBK-0001tN-Pr for guix-patches@gnu.org; Tue, 24 Mar 2020 10:05:30 -0400 Received: from araneo.si ([2001:15c0:2110:3400::2]:37666) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jGkBK-0001jr-9o for guix-patches@gnu.org; Tue, 24 Mar 2020 10:05:26 -0400 Received: from araneo.si (localhost.lan [127.0.0.1]) by araneo.si (OpenSMTPD) with ESMTP id 47f14c66 for ; Tue, 24 Mar 2020 14:05:20 +0000 (UTC) Received: by araneo.si (OpenSMTPD) with ESMTPSA id 3c4be8ef (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Tue, 24 Mar 2020 14:05:20 +0000 (UTC) From: Timotej Lazar Date: Tue, 24 Mar 2020 15:05:19 +0100 Message-ID: <87tv2dc0gw.fsf@araneo.si> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 40211@debbugs.gnu.org Hi, these patches update sdl2 to the latest release and enable udev support. Without udev I experienced freezes every few seconds in certain games (for instance hedgewars and supertux) as SDL searched through /dev/input for joysticks. Since libudev is dlopened, I add it to rpath in make-flags. During build this overrides LDFLAGS from the base package=E2=80=99s configure-flags, whi= ch add mesa to rpath. AFAICT this is OK as sdl2 already includes mesa by linking libgbm. (Perhaps we could move LDFLAGS to make-flags in the base package, and make the override explicit in the derived package? Or have sdl2 find and modify the LDFLAGS entry from the base configure-flags, but that seems more trouble than it=E2=80=99s worth.) I was able to rebuild all dependent packages with no (new) failures. I ran several games and everything appears OK, but I don=E2=80=99t have a joy= stick or gamepad to try. There have been some issues in the past with SDL not finding (correct) libraries=C2=B9, so it would be good to test this on a foreign Guix install. As for the version bump, the changelog=C2=B2 doesn=E2=80=99t mention any si= gnificant changes except for hidapi support, which is disabled by default. Thanks! Timotej =C2=B9 https://lists.gnu.org/archive/html/guix-devel/2015-03/msg00585.html =C2=B2 https://hg.libsdl.org/SDL/file/355a4f94a782/WhatsNew.txt Timotej Lazar (2): gnu: sdl2: Use udev to discover input devices. gnu: sdl2: Update to 2.0.12. gnu/local.mk | 1 - gnu/packages/patches/sdl2-mesa-compat.patch | 21 ---------------- gnu/packages/sdl.scm | 27 ++++++++++++--------- 3 files changed, 16 insertions(+), 33 deletions(-) delete mode 100644 gnu/packages/patches/sdl2-mesa-compat.patch --=20 2.25.1