Ports: Add ReadMe files explaining port patches that have explanations

This commit is contained in:
Ali Mohammad Pur 2022-01-11 17:17:26 +03:30 committed by Ali Mohammad Pur
parent d543db0286
commit a906ff5884
Notes: sideshowbarker 2024-07-17 20:48:12 +09:00
14 changed files with 204 additions and 0 deletions

View file

@ -0,0 +1,6 @@
# Patches for SDL2-GNUBoy
## `fix-make.patch`
Rewrites the makefile, presumably to make it work for serenity.

View file

@ -0,0 +1,18 @@
# Patches for SDLPoP
## `sdl-path.patch`
Use the correct path to refer to SDL (instead of a MacOS specific path)
## `includes.patch`
Use `SDL2/` paths for includes.
## `disable_extra_features.patch`
Disables some (presumably) unsupported features.
## `remove_fscanf_unknwn_conversion_specfier.patch`
Removes some (presumably) unsupported scanf specifiers.

View file

@ -0,0 +1,6 @@
# Patches for SDL_sound
## `fix_cmakelists.patch`
Use `FindPkgConfig` to find SDL2 instead of `find_package`.

View file

@ -0,0 +1,23 @@
# Patches for Super-Mario
## `cwd.patch`
`chdir()`s to the installed directory before execution.
## `gcc-11-static-initializers.patch`
Removes global static initializers.
Presumably not needed anymore.
## `fix_cmakelists.patch`
Use `FindPkgConfig` instead of `find_package()` to locate SDL2.
## `fix_fireball_header.patch`
Fixes a header include name.
## `disable_graphic_acceleration.patch`
Disables SDL2 hardware acceleration as we don't support that.

View file

@ -0,0 +1,10 @@
# Patches for angband
## `use-sdl2-config.patch`
Replaces uses of the system `sdl2-config` with the one from serenity.
## `disable-accelerated-rendering.patch`
Disable SDL2 hardware acceleration as we do not support that.

View file

@ -0,0 +1,5 @@
# Patches for bash
## `include-sys-select.patch`
Include `<sys/select.h>` before using it.

View file

@ -0,0 +1,5 @@
# Patches for brogue
## `config.patch`
Switches the DATADIR to the installed directory.

View file

@ -0,0 +1,5 @@
# Patches for dmidecode
## `dmidecode.patch`
Remove IPv6 uses and set the correct path for the dmi firmware.

View file

@ -0,0 +1,5 @@
# Patches for dos2unix
## `Makefile.patch`
Link with `-lintl`.

View file

@ -0,0 +1,9 @@
# Patches for dungeonrush
## `sw-renderer.patch`
Disable SDL hardware acceleration.
## `cwd.patch`
`chdir()` to the installed directory as the game tries to load resources with relative paths.

View file

@ -0,0 +1,72 @@
# Patches for LibUV on SerenityOS
## `0001-unix-Stub-out-get-set-priority-for-serenity.patch`
Serenity does not have `{get,set}priority()`, this stubs them out.
### Status
- [X] Local?
- [ ] Should be merged to upstream?
- [X] Resolves issues(s) with our side of things
- [X] Hack
## `0002-fs-Stub-out-unsupported-syscalls.patch`
Makes libuv use `statvfs` instead of `statfs`.
### Status
- [ ] Local?
- [X] Should be merged to upstream?
- [ ] Resolves issues(s) with our side of things
- [ ] Hack
## `0003-stream-Don-t-use-AF_INET6.patch`
Serenity does not support IPv6, this removes them.
### Status
- [ ] Local?
- [ ] Should be merged to upstream?
- [X] Resolves issues(s) with our side of things
- [ ] Hack
## `0004-tcp-Don-t-use-SO_LINGER.patch`
Serenity does not support `SO_LINGER`, this removes them.
### Status
- [ ] Local?
- [ ] Should be merged to upstream?
- [X] Resolves issues(s) with our side of things
- [X] Hack
## `0005-build-Add-SerenityOS-platform-definitions.patch`
Adds SerenityOS platform definitions to the build.
### Status
- [ ] Local?
- [X] Should be merged to upstream?
- [ ] Resolves issues(s) with our side of things
- [ ] Hack
## `0006-include-Teach-the-header-about-serenity.patch`
Make the header include guards understand that SerenityOS is a thing.
### Status
- [ ] Local?
- [X] Should be merged to upstream?
- [ ] Resolves issues(s) with our side of things
- [ ] Hack
## `0007-build-Add-platform-specific-stubs-and-implementation.patch`
Adds implementations for libuv's primitives specific to SerenityOS.
### Status
- [ ] Local?
- [X] Should be merged to upstream?
- [ ] Resolves issues(s) with our side of things
- [ ] Hack

View file

@ -32,3 +32,14 @@ stack-smashing protection and building position-independent executables by defau
- [x] Should be merged to upstream?
- [ ] Resolves issue(s) with our side of things
- [ ] Hack
## `llvm-backport-objcopy-update-section.patch`
Backports support for `llvm-objcopy --update-section` used by our toolchain from reviews.llvm.org/D112116.
### Status
- [ ] Local?
- [ ] Should be merged to upstream?
- [ ] Resolves issues(s) with our side of things
- [ ] Hack

View file

@ -0,0 +1,29 @@
# Patches for mold on SerenityOS
## `0001-Disable-mold_preload.so-for-Serenity.patch`
This feature depends on RTLD_NEXT capabilities which are not yet
implemented in the Serenity DynamicLoader.
## `0002-Disable-mimalloc-for-serenity.patch`
mimalloc needs some help to compile on serenity. That's one yak too
far for right now.
## `0004-Add-POSIX-headers-for-timeval-and-select.patch`
mold was relying on other libc implementations leaking these definitions
from other headers.
## `0005-Tell-TBB-that-SerenityOS-does-not-support-weak-symbo.patch`
Something about the Clang toolchain configuration causes undefined weak
references to scalable_malloc to remain in the mold executable even
though there's no chance we'll be loading the tbbmalloc library at
runtime. So, just lie to TBB that we don't support weak symbols.
## `0006-Tell-TBB-that-SerenityOS-libraries-are-named-like-BS.patch`
We won't be loading these libraries when building TBB as a static
library for mold, but the OS detection logic still needs updated.
## `0007-Stub-out-a-definition-of-RTLD_NOLOAD.patch`
SerenityOS's DynamicLoader doesn't support this flag. However, we won't
be dynamically loading any tbb extensions for the static library build
mold uses, so we can just define it as a no-op as the code paths that
use it will never be used.