pkgsrc-WIP-changes archive

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

ladybird-git: temp paper over build issues



Module Name:	pkgsrc-wip
Committed By:	Tobias Nygren <tnn%NetBSD.org@localhost>
Pushed By:	tnn
Date:		Fri May 9 10:31:25 2025 +0200
Changeset:	68f8109ec25265f590300cb4189838708886df1d

Added Files:
	ladybird-git/patches/patch-Libraries_LibCrypto_Curves_EdwardsCurve.cpp
	ladybird-git/patches/patch-Meta_Lagom_Tools_CodeGenerators_LibWeb_GenerateWebGLRenderingContext.cpp

Log Message:
ladybird-git: temp paper over build issues

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

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

diffstat:
 ...tch-Libraries_LibCrypto_Curves_EdwardsCurve.cpp | 24 ++++++++++++++++++++++
 ...rators_LibWeb_GenerateWebGLRenderingContext.cpp | 18 ++++++++++++++++
 2 files changed, 42 insertions(+)

diffs:
diff --git a/ladybird-git/patches/patch-Libraries_LibCrypto_Curves_EdwardsCurve.cpp b/ladybird-git/patches/patch-Libraries_LibCrypto_Curves_EdwardsCurve.cpp
new file mode 100644
index 0000000000..58a353f017
--- /dev/null
+++ b/ladybird-git/patches/patch-Libraries_LibCrypto_Curves_EdwardsCurve.cpp
@@ -0,0 +1,24 @@
+$NetBSD$
+
+--- Libraries/LibCrypto/Curves/EdwardsCurve.cpp.orig	2025-05-09 07:51:13.462450630 +0000
++++ Libraries/LibCrypto/Curves/EdwardsCurve.cpp
+@@ -50,10 +50,6 @@ ErrorOr<ByteBuffer> SignatureEdwardsCurv
+         OSSL_PARAM_END
+     };
+ 
+-    if (!context.is_null()) {
+-        params[0] = OSSL_PARAM_octet_string(OSSL_SIGNATURE_PARAM_CONTEXT_STRING, const_cast<u8*>(context.data()), context.size());
+-    }
+-
+     OPENSSL_TRY(EVP_DigestSignInit_ex(ctx.ptr(), nullptr, nullptr, nullptr, nullptr, key.ptr(), params));
+ 
+     size_t sig_len = 0;
+@@ -77,7 +73,7 @@ ErrorOr<bool> SignatureEdwardsCurve::ver
+     };
+ 
+     if (!context.is_null()) {
+-        params[0] = OSSL_PARAM_octet_string(OSSL_SIGNATURE_PARAM_CONTEXT_STRING, const_cast<u8*>(context.data()), context.size());
++        return false;
+     }
+ 
+     OPENSSL_TRY(EVP_DigestVerifyInit_ex(ctx.ptr(), nullptr, nullptr, nullptr, nullptr, key.ptr(), params));
diff --git a/ladybird-git/patches/patch-Meta_Lagom_Tools_CodeGenerators_LibWeb_GenerateWebGLRenderingContext.cpp b/ladybird-git/patches/patch-Meta_Lagom_Tools_CodeGenerators_LibWeb_GenerateWebGLRenderingContext.cpp
new file mode 100644
index 0000000000..030695f675
--- /dev/null
+++ b/ladybird-git/patches/patch-Meta_Lagom_Tools_CodeGenerators_LibWeb_GenerateWebGLRenderingContext.cpp
@@ -0,0 +1,18 @@
+$NetBSD$
+
+--- Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateWebGLRenderingContext.cpp.orig	2025-05-09 08:23:04.025562517 +0000
++++ Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateWebGLRenderingContext.cpp
+@@ -352,12 +352,7 @@ static void generate_get_internal_format
+     generator.append(R"~~~(
+     switch (pname) {
+     case GL_SAMPLES: {
+-        GLint num_sample_counts { 0 };
+-        glGetInternalformativ(target, internalformat, GL_NUM_SAMPLE_COUNTS, 1, &num_sample_counts);
+-        auto samples_buffer = MUST(ByteBuffer::create_zeroed(num_sample_counts * sizeof(GLint)));
+-        glGetInternalformativ(target, internalformat, GL_SAMPLES, num_sample_counts, reinterpret_cast<GLint*>(samples_buffer.data()));
+-        auto array_buffer = JS::ArrayBuffer::create(m_realm, move(samples_buffer));
+-        return JS::Int32Array::create(m_realm, num_sample_counts, array_buffer);
++        return JS::js_null();
+     }
+     default:
+         dbgln("Unknown WebGL internal format parameter name: {:x}", pname);


Home | Main Index | Thread Index | Old Index