pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

ladybird-git: add one more patch, now finishes startup but doesn't show any pages



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By:	wiz
Date:		Tue Feb 27 19:55:32 2024 +0100
Changeset:	381f1ddb09ff953d0c7cdc6f7a470773659a1353

Modified Files:
	ladybird-git/distinfo
Added Files:
	ladybird-git/patches/patch-Userland_Libraries_LibJS_Heap_BlockAllocator.cpp

Log Message:
ladybird-git: add one more patch, now finishes startup but doesn't show any pages

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=381f1ddb09ff953d0c7cdc6f7a470773659a1353

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 ladybird-git/distinfo                                 |  1 +
 ...h-Userland_Libraries_LibJS_Heap_BlockAllocator.cpp | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+)

diffs:
diff --git a/ladybird-git/distinfo b/ladybird-git/distinfo
index 131f607f39..c102b3ec2c 100644
--- a/ladybird-git/distinfo
+++ b/ladybird-git/distinfo
@@ -2,3 +2,4 @@ $NetBSD$
 
 SHA1 (patch-Userland_Libraries_LibCore_Environment.cpp) = e73bbb399803231f36f2bdf43d7c49810a3cdb2b
 SHA1 (patch-Userland_Libraries_LibGfx_EdgeFlagPathRasterizer.h) = 2c3e46cdd49aaea673a99d7a72b8b0ae2fd2380e
+SHA1 (patch-Userland_Libraries_LibJS_Heap_BlockAllocator.cpp) = 4d1074c79d67da28d1d16a69b90bf37386188227
diff --git a/ladybird-git/patches/patch-Userland_Libraries_LibJS_Heap_BlockAllocator.cpp b/ladybird-git/patches/patch-Userland_Libraries_LibJS_Heap_BlockAllocator.cpp
new file mode 100644
index 0000000000..b1fd7d2996
--- /dev/null
+++ b/ladybird-git/patches/patch-Userland_Libraries_LibJS_Heap_BlockAllocator.cpp
@@ -0,0 +1,19 @@
+$NetBSD$
+
+Fix compilation on NetBSD.
+https://github.com/SerenityOS/serenity/issues/23375
+
+--- Userland/Libraries/LibJS/Heap/BlockAllocator.cpp.orig	2024-02-27 18:49:14.164744463 +0000
++++ Userland/Libraries/LibJS/Heap/BlockAllocator.cpp
+@@ -52,8 +52,10 @@ void* BlockAllocator::allocate_block([[m
+         return block;
+     }
+ 
+-#ifdef AK_OS_SERENITY
++#if defined(AK_OS_SERENITY)
+     auto* block = (HeapBlock*)serenity_mmap(nullptr, HeapBlock::block_size, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_RANDOMIZED | MAP_PRIVATE, 0, 0, HeapBlock::block_size, name);
++#elif defined(AK_OS_NETBSD)
++    auto* block = (HeapBlock*)mmap(nullptr, HeapBlock::block_size, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);
+ #else
+     auto* block = (HeapBlock*)mmap(nullptr, HeapBlock::block_size, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, 0, 0);
+ #endif


Home | Main Index | Thread Index | Old Index