From a906ff5884ded8345a62bcec76387a64ed56a4fb Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Tue, 11 Jan 2022 17:17:26 +0330 Subject: Ports: Add ReadMe files explaining port patches that have explanations --- Ports/SDL2-GNUBoy/patches/ReadMe.md | 6 ++ Ports/SDLPoP/patches/ReadMe.md | 18 ++++++ Ports/SDL_sound/patches/ReadMe.md | 6 ++ Ports/Super-Mario/patches/ReadMe.md | 23 ++++++++ Ports/angband/patches/ReadMe.md | 10 ++++ Ports/bash/patches/ReadMe.md | 5 ++ Ports/brogue/patches/ReadMe.md | 5 ++ Ports/dmidecode/patches/ReadMe.md | 5 ++ Ports/dos2unix/patches/ReadMe.md | 5 ++ Ports/dungeonrush/patches/ReadMe.md | 9 +++ Ports/glib/patches/README.md | 111 ------------------------------------ Ports/glib/patches/ReadMe.md | 111 ++++++++++++++++++++++++++++++++++++ Ports/libuv/patches/ReadMe.md | 72 +++++++++++++++++++++++ Ports/llvm/patches/ReadMe.md | 11 ++++ Ports/mold/patches/ReadMe.md | 29 ++++++++++ 15 files changed, 315 insertions(+), 111 deletions(-) create mode 100644 Ports/SDL2-GNUBoy/patches/ReadMe.md create mode 100644 Ports/SDLPoP/patches/ReadMe.md create mode 100644 Ports/SDL_sound/patches/ReadMe.md create mode 100644 Ports/Super-Mario/patches/ReadMe.md create mode 100644 Ports/angband/patches/ReadMe.md create mode 100644 Ports/bash/patches/ReadMe.md create mode 100644 Ports/brogue/patches/ReadMe.md create mode 100644 Ports/dmidecode/patches/ReadMe.md create mode 100644 Ports/dos2unix/patches/ReadMe.md create mode 100644 Ports/dungeonrush/patches/ReadMe.md delete mode 100644 Ports/glib/patches/README.md create mode 100644 Ports/glib/patches/ReadMe.md create mode 100644 Ports/libuv/patches/ReadMe.md create mode 100644 Ports/mold/patches/ReadMe.md diff --git a/Ports/SDL2-GNUBoy/patches/ReadMe.md b/Ports/SDL2-GNUBoy/patches/ReadMe.md new file mode 100644 index 0000000000..fd16886b00 --- /dev/null +++ b/Ports/SDL2-GNUBoy/patches/ReadMe.md @@ -0,0 +1,6 @@ +# Patches for SDL2-GNUBoy + +## `fix-make.patch` + +Rewrites the makefile, presumably to make it work for serenity. + diff --git a/Ports/SDLPoP/patches/ReadMe.md b/Ports/SDLPoP/patches/ReadMe.md new file mode 100644 index 0000000000..17fca39076 --- /dev/null +++ b/Ports/SDLPoP/patches/ReadMe.md @@ -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. + diff --git a/Ports/SDL_sound/patches/ReadMe.md b/Ports/SDL_sound/patches/ReadMe.md new file mode 100644 index 0000000000..c2ac5bfbd1 --- /dev/null +++ b/Ports/SDL_sound/patches/ReadMe.md @@ -0,0 +1,6 @@ +# Patches for SDL_sound + +## `fix_cmakelists.patch` + +Use `FindPkgConfig` to find SDL2 instead of `find_package`. + diff --git a/Ports/Super-Mario/patches/ReadMe.md b/Ports/Super-Mario/patches/ReadMe.md new file mode 100644 index 0000000000..eefd91cb69 --- /dev/null +++ b/Ports/Super-Mario/patches/ReadMe.md @@ -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. + diff --git a/Ports/angband/patches/ReadMe.md b/Ports/angband/patches/ReadMe.md new file mode 100644 index 0000000000..a55e0eceab --- /dev/null +++ b/Ports/angband/patches/ReadMe.md @@ -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. + diff --git a/Ports/bash/patches/ReadMe.md b/Ports/bash/patches/ReadMe.md new file mode 100644 index 0000000000..171c738f01 --- /dev/null +++ b/Ports/bash/patches/ReadMe.md @@ -0,0 +1,5 @@ +# Patches for bash + +## `include-sys-select.patch` + +Include `` before using it. diff --git a/Ports/brogue/patches/ReadMe.md b/Ports/brogue/patches/ReadMe.md new file mode 100644 index 0000000000..29527c4be3 --- /dev/null +++ b/Ports/brogue/patches/ReadMe.md @@ -0,0 +1,5 @@ +# Patches for brogue + +## `config.patch` + +Switches the DATADIR to the installed directory. diff --git a/Ports/dmidecode/patches/ReadMe.md b/Ports/dmidecode/patches/ReadMe.md new file mode 100644 index 0000000000..ce783b3e21 --- /dev/null +++ b/Ports/dmidecode/patches/ReadMe.md @@ -0,0 +1,5 @@ +# Patches for dmidecode + +## `dmidecode.patch` + +Remove IPv6 uses and set the correct path for the dmi firmware. diff --git a/Ports/dos2unix/patches/ReadMe.md b/Ports/dos2unix/patches/ReadMe.md new file mode 100644 index 0000000000..83e3b47c5b --- /dev/null +++ b/Ports/dos2unix/patches/ReadMe.md @@ -0,0 +1,5 @@ +# Patches for dos2unix + +## `Makefile.patch` + +Link with `-lintl`. diff --git a/Ports/dungeonrush/patches/ReadMe.md b/Ports/dungeonrush/patches/ReadMe.md new file mode 100644 index 0000000000..b0f4b905c7 --- /dev/null +++ b/Ports/dungeonrush/patches/ReadMe.md @@ -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. diff --git a/Ports/glib/patches/README.md b/Ports/glib/patches/README.md deleted file mode 100644 index 3918a11443..0000000000 --- a/Ports/glib/patches/README.md +++ /dev/null @@ -1,111 +0,0 @@ -# Patches for glib (and submodules) on SerenityOS - -## `0001-poll.h-is-located-at-root.patch` - -glib includes poll.h from sys/poll.h, but our poll.h is located at root. - -### Status -- [ ] Local? -- [X] Should be merged to upstream? -- [ ] Resolves issue(s) with our side of things -- [ ] Hack - -## `0002-use-glib-in-built-C_IN.patch` - -We do not have C_IN so use glib's in-built C_IN - -### Status -- [X] Local? -- [ ] Should be merged to upstream? -- [X] Resolves issue(s) with our side of things -- [ ] Hack - -## `0003-let-glib-know-where-our-resolv.h-is.patch` - -Let glib's res_query_test know where our resolv.h is located. - -### Status -- [ ] Local? -- [X] Should be merged to upstream? -- [ ] Resolves issue(s) with our side of things -- [ ] Hack - -## `0004-disable-IPV6-support.patch` - -Disable IPV6 support since we do not support that yet. - -### Status -- [X] Local? -- [ ] Should be merged to upstream? -- [X] Resolves issue(s) with our side of things -- [ ] Hack - -## `0005-serenity-does-not-have-IN_MULTICAST.patch` - -Since Serenity does not have IN_MULTICAST we just return 0 instead of calling IN_MULTICAST. - -### Status -- [ ] Local? -- [ ] Should be merged to upstream? -- [X] Resolves issue(s) with our side of things -- [X] Hack - -## `0006-conflict-rename-gio-mount-function.patch` - -Somehow we get a conflict with glib's mount function. This patch renames glib's mount function to gio_mount. - -### Status -- [ ] Local? -- [ ] Should be merged to upstream? -- [X] Resolves issue(s) with our side of things -- [X] Hack - -## `0009-include-section-with-missing-functionality.patch` - -This includes a bigger section with functionality that Serenity is missing. - -### Status -- [ ] Local? -- [ ] Should be merged to upstream? -- [X] Resolves issue(s) with our side of things -- [ ] Hack - -## `0010-stub-for-function-dn_expand.patch` - -Adds a stub for the function dn_expand. - -### Status -- [ ] Local? -- [ ] Should be merged to upstream? -- [X] Resolves issue(s) with our side of things -- [X] Hack - -## `0011-ntohl-ntohs-located-in-arpa-inet.h.patch` - -In Serenity ntohl/ntohs is located in arpa/inet.h, other stuff glib needs is included in 'netinet/in.h'. - -### Status -- [ ] Local? -- [X] Should be merged to upstream? -- [X] Resolves issue(s) with our side of things -- [ ] Hack - -## `0012-include-strings.h-for-strcasecmp.patch` - -Include 'strings.h' for strcasecmp. - -### Status -- [ ] Local? -- [X] Should be merged to upstream? -- [X] Resolves issue(s) with our side of things -- [ ] Hack - -## `0013-nameser.h-is-not-needed.patch` - -glib compiles fine without arpa/nameser.h so do not include since we do not yet support it. - -### Status -- [ ] Local? -- [ ] Should be merged to upstream? -- [X] Resolves issue(s) with our side of things -- [X] Hack diff --git a/Ports/glib/patches/ReadMe.md b/Ports/glib/patches/ReadMe.md new file mode 100644 index 0000000000..3918a11443 --- /dev/null +++ b/Ports/glib/patches/ReadMe.md @@ -0,0 +1,111 @@ +# Patches for glib (and submodules) on SerenityOS + +## `0001-poll.h-is-located-at-root.patch` + +glib includes poll.h from sys/poll.h, but our poll.h is located at root. + +### Status +- [ ] Local? +- [X] Should be merged to upstream? +- [ ] Resolves issue(s) with our side of things +- [ ] Hack + +## `0002-use-glib-in-built-C_IN.patch` + +We do not have C_IN so use glib's in-built C_IN + +### Status +- [X] Local? +- [ ] Should be merged to upstream? +- [X] Resolves issue(s) with our side of things +- [ ] Hack + +## `0003-let-glib-know-where-our-resolv.h-is.patch` + +Let glib's res_query_test know where our resolv.h is located. + +### Status +- [ ] Local? +- [X] Should be merged to upstream? +- [ ] Resolves issue(s) with our side of things +- [ ] Hack + +## `0004-disable-IPV6-support.patch` + +Disable IPV6 support since we do not support that yet. + +### Status +- [X] Local? +- [ ] Should be merged to upstream? +- [X] Resolves issue(s) with our side of things +- [ ] Hack + +## `0005-serenity-does-not-have-IN_MULTICAST.patch` + +Since Serenity does not have IN_MULTICAST we just return 0 instead of calling IN_MULTICAST. + +### Status +- [ ] Local? +- [ ] Should be merged to upstream? +- [X] Resolves issue(s) with our side of things +- [X] Hack + +## `0006-conflict-rename-gio-mount-function.patch` + +Somehow we get a conflict with glib's mount function. This patch renames glib's mount function to gio_mount. + +### Status +- [ ] Local? +- [ ] Should be merged to upstream? +- [X] Resolves issue(s) with our side of things +- [X] Hack + +## `0009-include-section-with-missing-functionality.patch` + +This includes a bigger section with functionality that Serenity is missing. + +### Status +- [ ] Local? +- [ ] Should be merged to upstream? +- [X] Resolves issue(s) with our side of things +- [ ] Hack + +## `0010-stub-for-function-dn_expand.patch` + +Adds a stub for the function dn_expand. + +### Status +- [ ] Local? +- [ ] Should be merged to upstream? +- [X] Resolves issue(s) with our side of things +- [X] Hack + +## `0011-ntohl-ntohs-located-in-arpa-inet.h.patch` + +In Serenity ntohl/ntohs is located in arpa/inet.h, other stuff glib needs is included in 'netinet/in.h'. + +### Status +- [ ] Local? +- [X] Should be merged to upstream? +- [X] Resolves issue(s) with our side of things +- [ ] Hack + +## `0012-include-strings.h-for-strcasecmp.patch` + +Include 'strings.h' for strcasecmp. + +### Status +- [ ] Local? +- [X] Should be merged to upstream? +- [X] Resolves issue(s) with our side of things +- [ ] Hack + +## `0013-nameser.h-is-not-needed.patch` + +glib compiles fine without arpa/nameser.h so do not include since we do not yet support it. + +### Status +- [ ] Local? +- [ ] Should be merged to upstream? +- [X] Resolves issue(s) with our side of things +- [X] Hack diff --git a/Ports/libuv/patches/ReadMe.md b/Ports/libuv/patches/ReadMe.md new file mode 100644 index 0000000000..92f7af10a4 --- /dev/null +++ b/Ports/libuv/patches/ReadMe.md @@ -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 + diff --git a/Ports/llvm/patches/ReadMe.md b/Ports/llvm/patches/ReadMe.md index 1f20713004..815e5a3336 100644 --- a/Ports/llvm/patches/ReadMe.md +++ b/Ports/llvm/patches/ReadMe.md @@ -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 + diff --git a/Ports/mold/patches/ReadMe.md b/Ports/mold/patches/ReadMe.md new file mode 100644 index 0000000000..597cbc1010 --- /dev/null +++ b/Ports/mold/patches/ReadMe.md @@ -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. -- cgit v1.2.3