Closed oliverkwebb closed 1 day ago
One of the upcoming plans is to rip out a lot of the file I/O code in SwanStation and replace it with libretro VFS instead. This could take care of some of these portability issues here cross-linux distros.
Hi, sorry this took some time.
https://github.com/libretro/swanstation/commit/130b79295c8442a6a60bf7a8cecffe20aff9c7cd
I got rid of the direct stat calls and it now goes through libretro-common's VFS abstraction. This should hopefully take care of your problems. Let me know if issues remain.
Still broken on musl for similar reasons. Complete build log of 7a27436 (too long for github): https://paste.debian.net/plainh/31e56ae6
The exact system is PostMarketOS v23.12 on armv7l.
When building swan-station under Alpine Linux, this error will occur and the build will fail:
This is because Alpine Linux uses the musl implementation of libc, which does not have "struct stat64".
I don't know much about the configuration system, But I'm assuming there's a "if linux" check that allows it if and only if swanstation is being built on linux. (Windows I don't think has stat64)