mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Ports: Add ReadMe files explaining port patches that have explanations
This commit is contained in:
parent
d543db0286
commit
a906ff5884
Notes:
sideshowbarker
2024-07-17 20:48:12 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/a906ff5884d Pull-request: https://github.com/SerenityOS/serenity/pull/11809 Reviewed-by: https://github.com/bgianfo
14 changed files with 204 additions and 0 deletions
6
Ports/SDL2-GNUBoy/patches/ReadMe.md
Normal file
6
Ports/SDL2-GNUBoy/patches/ReadMe.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
# Patches for SDL2-GNUBoy
|
||||
|
||||
## `fix-make.patch`
|
||||
|
||||
Rewrites the makefile, presumably to make it work for serenity.
|
||||
|
18
Ports/SDLPoP/patches/ReadMe.md
Normal file
18
Ports/SDLPoP/patches/ReadMe.md
Normal 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.
|
||||
|
6
Ports/SDL_sound/patches/ReadMe.md
Normal file
6
Ports/SDL_sound/patches/ReadMe.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
# Patches for SDL_sound
|
||||
|
||||
## `fix_cmakelists.patch`
|
||||
|
||||
Use `FindPkgConfig` to find SDL2 instead of `find_package`.
|
||||
|
23
Ports/Super-Mario/patches/ReadMe.md
Normal file
23
Ports/Super-Mario/patches/ReadMe.md
Normal 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.
|
||||
|
10
Ports/angband/patches/ReadMe.md
Normal file
10
Ports/angband/patches/ReadMe.md
Normal 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.
|
||||
|
5
Ports/bash/patches/ReadMe.md
Normal file
5
Ports/bash/patches/ReadMe.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Patches for bash
|
||||
|
||||
## `include-sys-select.patch`
|
||||
|
||||
Include `<sys/select.h>` before using it.
|
5
Ports/brogue/patches/ReadMe.md
Normal file
5
Ports/brogue/patches/ReadMe.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Patches for brogue
|
||||
|
||||
## `config.patch`
|
||||
|
||||
Switches the DATADIR to the installed directory.
|
5
Ports/dmidecode/patches/ReadMe.md
Normal file
5
Ports/dmidecode/patches/ReadMe.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Patches for dmidecode
|
||||
|
||||
## `dmidecode.patch`
|
||||
|
||||
Remove IPv6 uses and set the correct path for the dmi firmware.
|
5
Ports/dos2unix/patches/ReadMe.md
Normal file
5
Ports/dos2unix/patches/ReadMe.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Patches for dos2unix
|
||||
|
||||
## `Makefile.patch`
|
||||
|
||||
Link with `-lintl`.
|
9
Ports/dungeonrush/patches/ReadMe.md
Normal file
9
Ports/dungeonrush/patches/ReadMe.md
Normal 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.
|
72
Ports/libuv/patches/ReadMe.md
Normal file
72
Ports/libuv/patches/ReadMe.md
Normal 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
|
||||
|
|
@ -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
|
||||
|
||||
|
|
29
Ports/mold/patches/ReadMe.md
Normal file
29
Ports/mold/patches/ReadMe.md
Normal 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.
|
Loading…
Reference in a new issue