Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
140 changes: 140 additions & 0 deletions webkitgtk-6-gnome-2404-sdk/patches/fix-build-s390x-ppc64el.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
# https://bugs.webkit.org/show_bug.cgi?id=293980
# https://github.com/WebKit/WebKit/pull/46277
diff --git a/Source/WebCore/platform/graphics/cairo/PatternCairo.cpp b/Source/WebCore/platform/graphics/cairo/PatternCairo.cpp
index a3fcd68ff8b7..f0192cc2d69f 100644
--- a/Source/WebCore/platform/graphics/cairo/PatternCairo.cpp
+++ b/Source/WebCore/platform/graphics/cairo/PatternCairo.cpp
@@ -30,6 +30,7 @@

#include "CairoUtilities.h"
#include "GraphicsContext.h"
+#include "NativeImage.h"

namespace WebCore {

diff --git a/Source/WebCore/rendering/style/RenderStyleConstants.h b/Source/WebCore/rendering/style/RenderStyleConstants.h
index 50520bc3f2c0..db48b47f713f 100644
--- a/Source/WebCore/rendering/style/RenderStyleConstants.h
+++ b/Source/WebCore/rendering/style/RenderStyleConstants.h
@@ -26,6 +26,7 @@
#pragma once

#include <initializer_list>
+#include <limits>
#include <optional>

namespace WTF {

# https://bugs.webkit.org/show_bug.cgi?id=293853
# https://github.com/WebKit/WebKit/pull/46168
diff --git a/Source/WTF/wtf/SmallSet.h b/Source/WTF/wtf/SmallSet.h
index 65a5e48bfaa4..f1eaac631b16 100644
--- a/Source/WTF/wtf/SmallSet.h
+++ b/Source/WTF/wtf/SmallSet.h
@@ -25,6 +25,7 @@

#pragma once

+#include <limits>
#include <wtf/Assertions.h>
#include <wtf/FastMalloc.h>
#include <wtf/HashFunctions.h>

# https://github.com/WebKit/WebKit/pull/46231
# https://bugs.webkit.org/show_bug.cgi?id=293853
diff --git a/Source/JavaScriptCore/bytecode/SourceID.h b/Source/JavaScriptCore/bytecode/SourceID.h
index cfa489f29189..4e0e5f738db2 100644
--- a/Source/JavaScriptCore/bytecode/SourceID.h
+++ b/Source/JavaScriptCore/bytecode/SourceID.h
@@ -25,6 +25,8 @@

#pragma once

+#include <limits>
+
namespace JSC {

using SourceID = uint32_t;
diff --git a/Source/JavaScriptCore/jit/GdbJIT.cpp b/Source/JavaScriptCore/jit/GdbJIT.cpp
index f49de33b14fb..d574ff83ba0e 100644
--- a/Source/JavaScriptCore/jit/GdbJIT.cpp
+++ b/Source/JavaScriptCore/jit/GdbJIT.cpp
@@ -28,7 +28,8 @@

#include <wtf/TZoneMallocInlines.h>

-#if ENABLE(ASSEMBLER) && (OS(DARWIN) || OS(LINUX))
+#if ENABLE(ASSEMBLER)
+#if OS(DARWIN) || OS(LINUX)

#include "CallFrame.h"
#include "CallFrameInlines.h"
@@ -1492,4 +1493,5 @@ void GdbJIT::log(const CString&, MacroAssemblerCodeRef<LinkBufferPtrTag>) { }

} // namespace JSC

-#endif // ENABLE(ASSEMBLER) && (OS(DARWIN) || OS(LINUX))
+#endif // OS(DARWIN) || OS(LINUX)
+#endif // ENABLE(ASSEMBLER)
diff --git a/Source/JavaScriptCore/runtime/PureNaN.h b/Source/JavaScriptCore/runtime/PureNaN.h
index 8cab247c8d4a..f96f45b1b54b 100644
--- a/Source/JavaScriptCore/runtime/PureNaN.h
+++ b/Source/JavaScriptCore/runtime/PureNaN.h
@@ -26,6 +26,7 @@
#pragma once

#include <bit>
+#include <limits>
#include <wtf/Assertions.h>
#include <wtf/StdLibExtras.h>

diff --git a/Source/JavaScriptCore/yarr/Yarr.h b/Source/JavaScriptCore/yarr/Yarr.h
index 87a554fff25d..1fca142b3b6b 100644
--- a/Source/JavaScriptCore/yarr/Yarr.h
+++ b/Source/JavaScriptCore/yarr/Yarr.h
@@ -27,7 +27,7 @@

#pragma once

-#include <limits.h>
+#include <limits>
#include "YarrErrorCode.h"

namespace JSC { namespace Yarr {
diff --git a/Source/WTF/wtf/WeakRandom.h b/Source/WTF/wtf/WeakRandom.h
index 22aa3a3163e4..bb3c5695e380 100644
--- a/Source/WTF/wtf/WeakRandom.h
+++ b/Source/WTF/wtf/WeakRandom.h
@@ -30,7 +30,7 @@

#pragma once

-#include <limits.h>
+#include <limits>
#include <wtf/CryptographicallyRandomNumber.h>
#include <wtf/StdLibExtras.h>

diff --git a/Source/WTF/wtf/text/icu/UTextProvider.h b/Source/WTF/wtf/text/icu/UTextProvider.h
index e2f58542ecff..dc42629cac34 100644
--- a/Source/WTF/wtf/text/icu/UTextProvider.h
+++ b/Source/WTF/wtf/text/icu/UTextProvider.h
@@ -25,6 +25,7 @@

#pragma once

+#include <limits>
#include <unicode/utext.h>

namespace WTF {
diff --git a/Source/WebCore/platform/DateComponents.h b/Source/WebCore/platform/DateComponents.h
index 50069f3890c1..afc401067ff5 100644
--- a/Source/WebCore/platform/DateComponents.h
+++ b/Source/WebCore/platform/DateComponents.h
@@ -30,6 +30,7 @@

#pragma once

+#include <limits>
#include <optional>
#include <unicode/utypes.h>
#include <wtf/Forward.h>
3 changes: 3 additions & 0 deletions webkitgtk-6-gnome-2404-sdk/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ parts:
- -DENABLE_JOURNALD_LOG=OFF
- -DENABLE_DOCUMENTATION=OFF
- -DENABLE_MINIBROWSER=ON
override-pull: |
craftctl default
patch -p1 < ${CRAFT_PROJECT_DIR}/patches/fix-build-s390x-ppc64el.patch
build-packages:
- bubblewrap
- gettext
Expand Down