Package Details: sdl3-git 3.4.8.r885.gbb3c613-3

Git Clone URL: https://aur.archlinux.org/sdl3-git.git (read-only, click to copy)
Package Base: sdl3-git
Description: Simple Directmedia Layer (Version 3)
Upstream URL: https://www.libsdl.org
Licenses: zlib
Conflicts: sdl3
Provides: sdl3
Submitter: VitalyR
Maintainer: VitalyR (HurricanePootis)
Last Packager: HurricanePootis
Votes: 3
Popularity: 0.000000
First Submitted: 2023-06-29 19:11 (UTC)
Last Updated: 2026-05-28 16:55 (UTC)

Dependencies (46)

Required by (203)

Sources (1)

Latest Comments

1 2 3 4 Next › Last »

Joomzie commented on 2026-07-31 20:56 (UTC) (edited on 2026-07-31 20:58 (UTC) by Joomzie)

Edit: Disregard. For whatever reason, the build went through on a retry. I've been dealing with this for a couple of days now, so I'm guessing Cachy's repos caught up with Arch's today. They tend to be behind by a day or two, so apologies for the false alarm.

Not sure if this is also affecting Arch, but I'm getting a build error on CachyOS. The same error happens when building in a clean chroot, as well. Since nobody else has mentioned this, I'm really not sure if this is an upstream issue, or something specific to my environment.

[488/691] Building C object CMakeFiles/SDL3-shared.dir/src/video/wayland/SDL_waylandvideo.c.o
FAILED: [code=1] CMakeFiles/SDL3-shared.dir/src/video/wayland/SDL_waylandvideo.c.o
/usr/bin/cc -DDLL_EXPORT -DSDL_BUILD_MAJOR_VERSION=3 -DSDL_BUILD_MICRO_VERSION=0 -DSDL_BUILD_MINOR_VERSION=5 -DUSING_GENERATED_CONFIG_H -I/home/user/.cache/yay/sdl3-git/src/build/include-config-none/build_config -I/home/user/.cache/yay/sdl3-git/src/build/include-revision -I/home/user/.cache/yay/sdl3-git/src/SDL/include -I/home/user/.cache/yay/sdl3-git/src/SDL/src -isystem /home/user/.cache/yay/sdl3-git/src/build/wayland-generated-protocols -isystem /usr/include/pipewire-0.3 -isystem /usr/include/spa-0.2 -isystem /usr/include/fribidi -isystem /usr/include/libdrm -isystem /usr/include/libdecor-0 -isystem /usr/include/dbus-1.0 -isystem /usr/lib/dbus-1.0/include -isystem /usr/include/ibus-1.0 -isystem /usr/include/glib-2.0 -isystem /usr/lib/glib-2.0/include -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/sysprof-6 -isystem /usr/include/libusb-1.0 -march=native -O3 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -DNDEBUG -fPIC -fvisibility=hidden -Wall -Wundef -Wfloat-conversion -fno-strict-aliasing -Wshadow -Wno-unused-local-typedefs -Wimplicit-fallthrough -fdiagnostics-color=always -idirafter/home/user/.cache/yay/sdl3-git/src/SDL/src/video/khronos -D_REENTRANT -Winvalid-pch -include /home/user/.cache/yay/sdl3-git/src/build/CMakeFiles/SDL3-shared.dir/cmake_pch.h -MD -MT CMakeFiles/SDL3-shared.dir/src/video/wayland/SDL_waylandvideo.c.o -MF CMakeFiles/SDL3-shared.dir/src/video/wayland/SDL_waylandvideo.c.o.d -o CMakeFiles/SDL3-shared.dir/src/video/wayland/SDL_waylandvideo.c.o -c /home/user/.cache/yay/sdl3-git/src/SDL/src/video/wayland/SDL_waylandvideo.c
/home/user/.cache/yay/sdl3-git/src/SDL/src/video/wayland/SDL_waylandvideo.c:1611:19: error: static declaration of ‘getresuid’ follows non-static declaration
 1611 | static inline int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid) {
      |                   ^~~~~~~~~
In file included from /home/user/.cache/yay/sdl3-git/src/SDL/src/video/wayland/SDL_waylandvideo.c:43:
/usr/include/unistd.h:755:12: note: previous declaration of ‘getresuid’ with type ‘int(__uid_t *, __uid_t *, __uid_t *)’ {aka ‘int(unsigned int *, unsigned int *, unsigned int *)’}
  755 | extern int getresuid (__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid)
      |            ^~~~~~~~~
/home/user/.cache/yay/sdl3-git/src/SDL/src/video/wayland/SDL_waylandvideo.c:1619:19: error: static declaration of ‘getresgid’ follows non-static declaration
 1619 | static inline int getresgid(uid_t *ruid, uid_t *euid, uid_t *suid) {
      |                   ^~~~~~~~~
/usr/include/unistd.h:760:12: note: previous declaration of ‘getresgid’ with type ‘int(__gid_t *, __gid_t *, __gid_t *)’ {aka ‘int(unsigned int *, unsigned int *, unsigned int *)’}
  760 | extern int getresgid (__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid)
      |            ^~~~~~~~~
[505/691] Building C object CMakeFiles/SDL3-shared.dir/src/video/wayland/SDL_waylandwindow.c.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().

patlefort commented on 2026-05-28 16:13 (UTC)

Missing git in makedepends.

rharish commented on 2026-01-20 18:51 (UTC)

Thanks a lot @HurricanePootis!

NoOneExpects commented on 2026-01-20 02:47 (UTC)

Thanks for adding a version to provides, @HurricanePootis!

@rharish That dependency conflict should be resolved now.

rharish commented on 2025-12-17 21:01 (UTC)

The pkgver() function doesn't handle prerelease at the beginning of the tags. Here's the diff:

diff --git a/PKGBUILD b/PKGBUILD
index c72978d..4a27570 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
 # Contributor: Christer Solskogen <christer.solskogen@gmail.com>

 pkgname=sdl3-git
-pkgver=3.3.2.r251.g6d60cc65cf
+pkgver=3.3.6.r7.g235f417616
 pkgrel=1
 pkgdesc="Simple Directmedia Layer (Version 3)"
 arch=('x86_64' 'aarch64' 'armv7h')
@@ -26,7 +26,7 @@ sha512sums=('SKIP')

 pkgver() {
   cd SDL
-  git describe --long --tags | sed 's/^release-//;s/\([^-]*-g\)/r\1/;s/-/./g' | sed 's/preview.//'
+  git describe --long --tags | sed 's/^\(pre\)\?release-//;s/\([^-]*-g\)/r\1/;s/-/./g' | sed 's/preview.//'
 }

 build() {

rharish commented on 2025-08-09 11:30 (UTC) (edited on 2025-08-10 19:26 (UTC) by rharish)

Can you add a version to the provides? Otherwise I have issues such as the shadps4-git AUR package insisting on sdl3 non-git from extra. Here are more details: https://gitlab.archlinux.org/pacman/pacman/-/issues/269.

The maintainer at that link suggests doing the following:

diff --git a/PKGBUILD b/PKGBUILD
index 375626f..bcaf059 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -20,7 +20,7 @@ optdepends=('alsa-lib: ALSA audio driver'
             'sndio: MIDI audio driver'
             'libdecor: Wayland client decorations')
 source=("git+https://github.com/libsdl-org/SDL.git")
-provides=("sdl3")
+provides=("sdl3=3.2.4")
 conflicts=("sdl3")
 sha512sums=('SKIP')

EDIT: Perhaps the following could be more automatic?

diff --git a/PKGBUILD b/PKGBUILD
index 375626f..032c37d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -20,7 +20,7 @@ optdepends=('alsa-lib: ALSA audio driver'
             'sndio: MIDI audio driver'
             'libdecor: Wayland client decorations')
 source=("git+https://github.com/libsdl-org/SDL.git")
-provides=("sdl3")
+provides=("sdl3=$(echo $pkgver | cut -d . -f 1-3)")
 conflicts=("sdl3")
 sha512sums=('SKIP')

XTREEMRAGE commented on 2025-03-05 20:01 (UTC)

With the latest stable update from manjaro, I could install this.

db47h commented on 2025-02-26 15:12 (UTC) (edited on 2025-02-26 15:30 (UTC) by db47h)

linux/blkdev.h missing is probably a manjaro issue where this file is not in linux-api-headers 6.10 (it's present in linux-api-headers 6.13 but not available yet on manjaro). Also provided in linux612-headers (but placed in /usr/lib/modules/6.6.75-2-MANJARO/build/include/linux/blkdev.h)

FabioLolix commented on 2025-02-24 17:39 (UTC)

Can't install because no such file or directory on linux/blkdev.h during compilation.

3.2.4.r143.g60b7faa987-1 build fine both with makepkg and devtools for me

XTREEMRAGE commented on 2025-02-24 12:29 (UTC)

@maxlefou I have the same problem, have you fixed it?