Ali Mohammad Pur
06c6c046f3
AK: Use static_cast to cast to base type
...
This is an issue on systems that don't have the empty base class
optimisation (such as windows), and we normally don't need to care -
however static_cast is technically the right thing to use, so let's use
that instead.
Co-Authored-By: Daniel Bertalan <dani@danielbertalan.dev>
2022-05-21 02:18:40 +02:00
Peter Elliott
420f78ca8b
Tests: Add tests for posix_memalign(3) and aligned_alloc(3)
2022-05-20 22:18:54 +02:00
Peter Elliott
4e0adb638d
LibC: Implement posix_memalign(3) and aligned_alloc(3)
...
Some ports linked against posix_memalign, but didn't use it, and others
used it if it was Available. So I decided to implement posix_memalign.
My implementation adds almost no overhead to regular mallocs. However,
if an alignment is specified, it will use the smallest ChunkedBlock, for
which aligned chunks exist, and simply use one of the chunks that is
aligned. If it cannot use a ChunkedBlock, for size or alignment reasons,
it will use a BigAllocationBlock, and return a pointer to the first
aligned address past the start of the block. This implementation
supports alignments up to 32768, due to the limitations of the
BigAllocationBlock technique.
2022-05-20 22:18:54 +02:00
Daniel Bertalan
830f5c610d
Meta: Fix unused variable warning in lint-ports.py
...
This went undetected because I broke CI so the Python linter didn't run.
2022-05-20 12:44:12 +01:00
Daniel Bertalan
52710c2672
Toolchain: Fix shellcheck warning
2022-05-20 12:44:12 +01:00
Daniel Bertalan
012aff1f41
CI: Fix syntax error after d0edf2627c
2022-05-20 12:44:12 +01:00
Daniel Bertalan
124bcd743b
Documentation: Only install the x86 and AArch64 qemu backends on Arch
...
The qemu-emulators-full package installs qemu backends for *all*
supported architectures, but we only need x86 and AArch64.
This decreases the installed size of dependencies by 800 MiB.
2022-05-20 09:51:15 +01:00
Ali Mohammad Pur
6b8688228b
Meta: Disallow non-git patches for ports
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
80c745066b
Ports: Add a ReadMe.md for qt6-qtbase's patches
2022-05-19 20:17:10 +04:30
Daniel Bertalan
d0edf2627c
Toolchain+Ports: Split the GCC patches
...
This shouldn't cause any breaking changes, so a toolchain rebuild is not
required.
As per Hendiadyoin's request, math errno is disabled by default, which
should enable some extra compiler optimizations in LibGL and LibSoftGPU
code that uses math functions heavily.
Co-Authored-By: Ali Mohammad Pur <mpfard@serenityos.org>
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
83aa5dcbf6
Ports: Update cfunge's patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
b321d2b563
Ports: Update zstd's patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
a3ff011fcb
Ports: Update zsh's patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
26ca20a55d
Ports: Update x264's patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
73f92f49c2
Ports: Update vitetris' patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
4e979feb6e
Ports: Update tuxracer's patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
624c3c5a46
Ports: Update tr's patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
a20773b5ce
Ports: Update tinycc's patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
3531aa2b84
Ports: Update thesilversearcher's patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
6f6d1a8f76
Ports: Update tcl's patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
ee557a4145
Ports: Update sqlite's patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
54f191f25b
Ports: Update sl's patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
06f9a1bacc
Ports: Update scummvm's patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
0068f7f764
Ports: Update sam's patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
57bbe11933
Ports: Update ruby's patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
8e95236efb
Ports: Update the Ruby port to version 3.0.4
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
a9c362a4be
Ports: Update pfetch's patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
9e12cd0098
Ports: Update pcre2's patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
5b91e02dc9
Ports: Update patch's patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
848c883bb6
Ports: Update p7zip's patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
bb40ff80b2
Ports: Update opentyrian's patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
32c380b7f9
Ports: Update openttd's patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
2c71a62e09
Ports: Update openssl's patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
6e5509183f
Ports: Update openssh's patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
7077ce7779
Ports: Update oksh's patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
bb8febffac
Ports: Update nyancat's patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
288818eb29
Ports: Update npiet's patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
e16272eacd
Ports: Update ninja's patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
59156d0f0e
Ports: Update nethack's patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
b62503a142
Ports: Update neofetch's patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
bd0c78e40e
Ports: Update ncurses' patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
a2402faaf3
Ports: Update mruby's patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
37857a629d
Ports: Update milkytracker's patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
e1a5f63e1a
Ports: Update mgba's patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
79dc62af61
Ports: Update mbedtls' patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
1f64b93b21
Ports: Update mandoc's patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
490e97233d
Ports: Update make's patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
2ec53fd9c0
Ports: Update m4's patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
9424b610ed
Ports: Update luarocks' patches to use git patches
2022-05-19 20:17:10 +04:30
Ali Mohammad Pur
318cc0a188
Ports: Update lua's patches to use git patches
2022-05-19 20:17:10 +04:30