1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
6 VARIANTS= api40 api41 api50
7 SDESC[api50]= Opensource browser engine using GTK4 (API 5.0)
8 SDESC[api40]= Opensource browser engine using GTK+3 (API 4.0)
9 SDESC[api41]= Opensource browser engine using GTK+3 (API 4.1)
10 HOMEPAGE= https://www.webkitgtk.org/
14 SITES[main]= https://www.webkitgtk.org/releases/
15 https://fossies.org/linux/www/
16 DISTFILE[1]= webkitgtk-2.38.5.tar.xz:main
18 SPKGS[api50]= complete
22 SPKGS[api40]= complete
26 SPKGS[api41]= complete
31 OPTIONS_AVAILABLE= API40 API41 API50
32 OPTIONS_STANDARD= none
33 VOPTS[api50]= API40=OFF API41=OFF API50=ON
34 VOPTS[api40]= API40=ON API41=OFF API50=OFF
35 VOPTS[api41]= API40=OFF API41=ON API50=OFF
37 BUILD_DEPENDS= geoclue:dev:standard
39 gperf:primary:standard
40 gstreamer1:dev:standard
41 gstreamer1-plugins-base:dev:standard
43 libgpg-error:dev:standard
44 libnotify:dev:standard
47 BUILDRUN_DEPENDS= enchant:primary:standard
49 libsecret:primary:standard
50 libnotify:primary:standard
51 hyphen:single:standard
54 libgcrypt:single:standard
55 gnutls:primary:standard
56 libtasn1:primary:standard
57 geoclue:primary:standard
59 gstreamer1-plugins-base:primary:standard
60 openjpeg:single:standard
61 lcms2:primary:standard
63 USES= png mesa cmake pkgconfig sqlite bison perl:build
64 python:build ruby:build fontconfig jpeg cpe
65 GNOME_COMPONENTS= gdkpixbuf introspection libxslt
66 XORG_COMPONENTS= x11 xcomposite xdamage xext xrender xt ice xfixes
68 DISTNAME= webkitgtk-2.38.5
70 LICENSE= GPLv2+:primary BSD3CLAUSE:primary
71 LICENSE_TERMS= primary:{{WRKDIR}}/TERMS
72 LICENSE_FILE= GPLv2+:stock
73 BSD3CLAUSE:{{WRKDIR}}/LICENSE_BSD
74 LICENSE_AWK= BSD3CLAUSE:"^$$"
76 LICENSE_SOURCE= BSD3CLAUSE:{{WRKSRC}}/Source/WebCore/css/parser/MediaQueryBlockWatcher.h
77 TERMS:{{WRKSRC}}/Source/WebCore/style/StyleScope.cpp
80 CPE_PRODUCT= webkitgtk
82 FPC_EQUIVALENT= www/webkit2-gtk3
84 CONFIGURE_ENV= XDG_CACHE_HOME={{WRKDIR}}
86 INSTALL_TARGET= install
87 INSTALL_REQ_TOOLCHAIN= yes
88 PLIST_SUB= INTRO="@comment "
90 CXXFLAGS= -DFIXED_EXECUTABLE_MEMORY_POOL_SIZE_IN_MB=32
91 CMAKE_ARGS= -DPORT=GTK
92 -DENABLE_GEOLOCATION:BOOL=ON
93 -DENABLE_GLES2:BOOL=ON
94 -DENABLE_MINIBROWSER:BOOL=ON
95 -DENABLE_WAYLAND_TARGET:BOOL=OFF
96 -DENABLE_BUBBLEWRAP_SANDBOX:BOOL=OFF
97 -DENABLE_GAMEPAD:BOOL=OFF
98 -DENABLE_INTROSPECTION:BOOL=OFF
99 -DENABLE_JOURNALD_LOG:BOOL=OFF
100 -DSUPPRESS_ASSERT:BOOL=ON
101 -DUSE_SYSTEMD:BOOL=OFF
102 -DUSE_GSTREAMER_GL:BOOL=OFF
103 VAR_OPSYS[sunos]= CMAKE_ARGS=-DUSE_LD_GOLD:BOOL=OFF
105 [API50].DESCRIPTION= Build WebKit2 API 5.0 variant
106 [API50].BUILDRUN_DEPENDS_ON= libsoup:primary:standard
107 [API50].BUILD_DEPENDS_ON= libsoup:dev:standard
108 [API50].CMAKE_ARGS_ON= -DUSE_GTK4=ON
109 [API50].GNOME_COMPONENTS_ON= gtk4
110 [API50].PLIST_SUB_ON= JSSOVERSION=0.0.0
117 [API40].DESCRIPTION= Build WebKit2 API 4.0 variant
118 [API40].BUILDRUN_DEPENDS_ON= libsoup-2.4:primary:standard
119 [API40].BUILD_DEPENDS_ON= libsoup-2.4:dev:standard
120 [API40].CMAKE_ARGS_ON= -DUSE_SOUP2=ON
121 [API40].GNOME_COMPONENTS_ON= gtk3
122 [API40].PLIST_SUB_ON= JSSOVERSION=18.21.8
129 [API41].DESCRIPTION= Build WebKit2 API 4.1 variant
130 [API41].BUILDRUN_DEPENDS_ON= libsoup:primary:standard
131 [API41].BUILD_DEPENDS_ON= libsoup:dev:standard
132 [API41].GNOME_COMPONENTS_ON= gtk3
133 [API41].PLIST_SUB_ON= JSSOVERSION=0.2.8
141 echo 'add_compile_definitions("U_DEFINE_FALSE_AND_TRUE=1")' \
142 >> ${WRKSRC}/Source/WTF/wtf/CMakeLists.txt
144 post-install-API40-ON:
145 (cd ${STAGEDIR}${PREFIX}/bin && \
146 ${LN} -s ../libexec/webkit2gtk-4.0/jsc jsc-4.0 && \
147 ${LN} -s ../libexec/webkit2gtk-4.0/MiniBrowser MiniBrowser-4.0)
148 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/webkit2gtk-4.0/injected-bundle/*.so
149 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/webkit2gtk-4.0/*
150 ${MV} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver \
151 ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver-4.0
153 post-install-API50-ON:
154 (cd ${STAGEDIR}${PREFIX}/bin && \
155 ${LN} -s ../libexec/webkit2gtk-5.0/jsc jsc-5.0 && \
156 ${LN} -s ../libexec/webkit2gtk-5.0/MiniBrowser MiniBrowser-5.0)
157 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/webkit2gtk-5.0/injected-bundle/*.so
158 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/webkit2gtk-5.0/*
159 ${MV} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver \
160 ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver-5.0
163 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so.*.*
164 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver
166 post-install-API41-ON:
167 (cd ${STAGEDIR}${PREFIX}/bin && \
168 ${LN} -s ../libexec/webkit2gtk-4.1/jsc jsc-4.1 && \
169 ${LN} -s ../libexec/webkit2gtk-4.1/MiniBrowser MiniBrowser-4.1)
170 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/webkit2gtk-4.1/injected-bundle/*.so
171 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/webkit2gtk-4.1/*
172 ${MV} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver \
173 ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver-4.1
176 ${REINPLACE_CMD} -e '/USE_FILE_LOCK/ s|1|0|' \
177 ${WRKSRC}/Source/WTF/wtf/PlatformUse.h \
178 ${WRKSRC}/Source/WebCore/config.h
180 [FILE:574:descriptions/desc.primary]
181 WebKitGTK+ is a full-featured port of the WebKit rendering engine, suitable
182 for projects requiring any kind of web integration, from hybrid HTML/CSS
183 applications to full-fledged web browsers. It offers WebKit's full
184 functionality and is useful in a wide range of systems from desktop
185 computers to embedded systems like phones, tablets, and televisions.
187 WebKitGTK+ is made by a lively community of developers and designers,
188 who hope to bring the web platform to everyone. It's the official web
189 engine of the GNOME platform and is used in browsers such as Epiphany
194 40c20c43022274df5893f22b1054fa894c3eea057389bb08aee08c5b0bb0c1a7 33011600 webkitgtk-2.38.5.tar.xz
197 [FILE:660:manifests/plist.primary]
198 %%INTRO%%lib/girepository-1.0/
199 JavaScriptCore-%%WKAPI%%.typelib
200 WebKit2-%%WKAPI%%.typelib
201 WebKit2WebExtension-%%WKAPI%%.typelib
202 %%INTRO%%share/gir-1.0/
203 JavaScriptCore-%%WKAPI%%.gir
204 WebKit2-%%WKAPI%%.gir
205 WebKit2WebExtension-%%WKAPI%%.gir
207 MiniBrowser-%%WKAPI%%
208 WebKitWebDriver-%%WKAPI%%
211 libjavascriptcoregtk-%%WKAPI%%.so.%%JSSOMAJOR%%
212 libjavascriptcoregtk-%%WKAPI%%.so.%%JSSOVERSION%%
213 libwebkit2gtk-%%WKAPI%%.so.%%SOMAJOR%%
214 libwebkit2gtk-%%WKAPI%%.so.%%SOVERSION%%
215 lib/webkit2gtk-%%WKAPI%%/injected-bundle/libwebkit2gtkinjectedbundle.so
216 libexec/webkit2gtk-%%WKAPI%%/
223 [FILE:2618:manifests/plist.nls]
224 share/locale/ar/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
225 share/locale/as/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
226 share/locale/bg/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
227 share/locale/ca/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
228 share/locale/cs/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
229 share/locale/da/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
230 share/locale/de/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
231 share/locale/el/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
232 share/locale/en_CA/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
233 share/locale/en_GB/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
234 share/locale/eo/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
235 share/locale/es/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
236 share/locale/et/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
237 share/locale/eu/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
238 share/locale/fi/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
239 share/locale/fr/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
240 share/locale/gl/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
241 share/locale/gu/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
242 share/locale/he/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
243 share/locale/hi/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
244 share/locale/hr/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
245 share/locale/hu/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
246 share/locale/id/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
247 share/locale/it/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
248 share/locale/ja/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
249 share/locale/kn/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
250 share/locale/ko/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
251 share/locale/lt/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
252 share/locale/lv/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
253 share/locale/ml/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
254 share/locale/mr/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
255 share/locale/nb/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
256 share/locale/nl/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
257 share/locale/or/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
258 share/locale/pa/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
259 share/locale/pl/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
260 share/locale/pt/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
261 share/locale/pt_BR/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
262 share/locale/ro/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
263 share/locale/ru/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
264 share/locale/sl/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
265 share/locale/sr/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
266 share/locale/sr@latin/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
267 share/locale/sv/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
268 share/locale/ta/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
269 share/locale/te/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
270 share/locale/tr/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
271 share/locale/uk/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
272 share/locale/vi/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
273 share/locale/zh_CN/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
276 [FILE:5761:manifests/plist.dev]
277 include/webkitgtk-%%WKAPI%%/JavaScriptCore/
286 include/webkitgtk-%%WKAPI%%/jsc/
298 include/webkitgtk-%%WKAPI%%/webkit2/
299 WebKitApplicationInfo.h
300 WebKitAuthenticationRequest.h
302 WebKitAutomationSession.h
303 WebKitBackForwardList.h
304 WebKitBackForwardListItem.h
305 WebKitColorChooserRequest.h
306 WebKitConsoleMessage.h
308 WebKitContextMenuActions.h
309 WebKitContextMenuItem.h
310 WebKitCookieManager.h
313 WebKitDeviceInfoPermissionRequest.h
315 WebKitEditingCommands.h
319 WebKitFaviconDatabase.h
320 WebKitFileChooserRequest.h
321 WebKitFindController.h
322 WebKitFormSubmissionRequest.h
323 WebKitForwardDeclarations.h
325 WebKitGeolocationManager.h
326 WebKitGeolocationPermissionRequest.h
327 WebKitHitTestResult.h
328 WebKitInputMethodContext.h
329 WebKitInstallMissingMediaPluginsPermissionRequest.h
330 WebKitJavascriptResult.h
331 WebKitMediaKeySystemPermissionRequest.h
332 WebKitMemoryPressureSettings.h
334 WebKitNavigationAction.h
335 WebKitNavigationPolicyDecision.h
336 WebKitNetworkProxySettings.h
338 WebKitNotificationPermissionRequest.h
340 WebKitOptionMenuItem.h
341 WebKitPermissionRequest.h
343 WebKitPointerLockPermissionRequest.h
344 WebKitPolicyDecision.h
345 WebKitPrintCustomWidget.h
346 WebKitPrintOperation.h
347 WebKitResponsePolicyDecision.h
350 WebKitSecurityManager.h
351 WebKitSecurityOrigin.h
355 WebKitURISchemeRequest.h
356 WebKitURISchemeResponse.h
359 WebKitUserContentFilterStore.h
360 WebKitUserContentManager.h
361 WebKitUserMediaPermissionRequest.h
367 WebKitWebExtensionAutocleanups.h
368 WebKitWebHitTestResult.h
371 WebKitWebProcessEnumTypes.h
375 WebKitWebViewSessionState.h
377 WebKitWebsiteDataAccessPermissionRequest.h
378 WebKitWebsiteDataManager.h
379 WebKitWebsitePolicies.h
380 WebKitWindowProperties.h
381 webkit-web-extension.h
383 include/webkitgtk-%%WKAPI%%/webkitdom/
386 WebKitDOMCDATASection.h
388 WebKitDOMCSSRuleList.h
389 WebKitDOMCSSStyleDeclaration.h
390 WebKitDOMCSSStyleSheet.h
392 WebKitDOMCharacterData.h
393 WebKitDOMClientRect.h
394 WebKitDOMClientRectList.h
397 WebKitDOMCustomUnstable.h
398 WebKitDOMDOMImplementation.h
399 WebKitDOMDOMSelection.h
400 WebKitDOMDOMTokenList.h
402 WebKitDOMDOMWindowUnstable.h
403 WebKitDOMDeprecated.h
405 WebKitDOMDocumentFragment.h
406 WebKitDOMDocumentFragmentUnstable.h
407 WebKitDOMDocumentType.h
408 WebKitDOMDocumentUnstable.h
410 WebKitDOMElementUnstable.h
412 WebKitDOMEventTarget.h
415 WebKitDOMHTMLAnchorElement.h
416 WebKitDOMHTMLAppletElement.h
417 WebKitDOMHTMLAreaElement.h
418 WebKitDOMHTMLBRElement.h
419 WebKitDOMHTMLBaseElement.h
420 WebKitDOMHTMLBodyElement.h
421 WebKitDOMHTMLButtonElement.h
422 WebKitDOMHTMLCanvasElement.h
423 WebKitDOMHTMLCollection.h
424 WebKitDOMHTMLDListElement.h
425 WebKitDOMHTMLDirectoryElement.h
426 WebKitDOMHTMLDivElement.h
427 WebKitDOMHTMLDocument.h
428 WebKitDOMHTMLElement.h
429 WebKitDOMHTMLElementUnstable.h
430 WebKitDOMHTMLEmbedElement.h
431 WebKitDOMHTMLFieldSetElement.h
432 WebKitDOMHTMLFontElement.h
433 WebKitDOMHTMLFormElement.h
434 WebKitDOMHTMLFrameElement.h
435 WebKitDOMHTMLFrameSetElement.h
436 WebKitDOMHTMLHRElement.h
437 WebKitDOMHTMLHeadElement.h
438 WebKitDOMHTMLHeadingElement.h
439 WebKitDOMHTMLHtmlElement.h
440 WebKitDOMHTMLIFrameElement.h
441 WebKitDOMHTMLImageElement.h
442 WebKitDOMHTMLInputElement.h
443 WebKitDOMHTMLLIElement.h
444 WebKitDOMHTMLLabelElement.h
445 WebKitDOMHTMLLegendElement.h
446 WebKitDOMHTMLLinkElement.h
447 WebKitDOMHTMLMapElement.h
448 WebKitDOMHTMLMarqueeElement.h
449 WebKitDOMHTMLMenuElement.h
450 WebKitDOMHTMLMetaElement.h
451 WebKitDOMHTMLModElement.h
452 WebKitDOMHTMLOListElement.h
453 WebKitDOMHTMLObjectElement.h
454 WebKitDOMHTMLOptGroupElement.h
455 WebKitDOMHTMLOptionElement.h
456 WebKitDOMHTMLOptionsCollection.h
457 WebKitDOMHTMLParagraphElement.h
458 WebKitDOMHTMLParamElement.h
459 WebKitDOMHTMLPreElement.h
460 WebKitDOMHTMLQuoteElement.h
461 WebKitDOMHTMLScriptElement.h
462 WebKitDOMHTMLSelectElement.h
463 WebKitDOMHTMLStyleElement.h
464 WebKitDOMHTMLTableCaptionElement.h
465 WebKitDOMHTMLTableCellElement.h
466 WebKitDOMHTMLTableColElement.h
467 WebKitDOMHTMLTableElement.h
468 WebKitDOMHTMLTableRowElement.h
469 WebKitDOMHTMLTableSectionElement.h
470 WebKitDOMHTMLTextAreaElement.h
471 WebKitDOMHTMLTitleElement.h
472 WebKitDOMHTMLUListElement.h
473 WebKitDOMKeyboardEvent.h
475 WebKitDOMMouseEvent.h
476 WebKitDOMNamedNodeMap.h
478 WebKitDOMNodeFilter.h
479 WebKitDOMNodeIterator.h
482 WebKitDOMProcessingInstruction.h
484 WebKitDOMRangeUnstable.h
485 WebKitDOMStyleSheet.h
486 WebKitDOMStyleSheetList.h
488 WebKitDOMTreeWalker.h
490 WebKitDOMWheelEvent.h
491 WebKitDOMXPathExpression.h
492 WebKitDOMXPathNSResolver.h
493 WebKitDOMXPathResult.h
495 webkitdomautocleanups.h
498 libjavascriptcoregtk-%%WKAPI%%.so
499 libwebkit2gtk-%%WKAPI%%.so
501 javascriptcoregtk-%%WKAPI%%.pc
502 webkit2gtk-%%WKAPI%%.pc
503 webkit2gtk-web-extension-%%WKAPI%%.pc
506 [FILE:431:patches/patch-CMakeLists.txt]
507 --- CMakeLists.txt.orig 2022-08-31 07:59:34 UTC
509 @@ -31,6 +31,11 @@ if (ENABLE_API_TESTS)
513 +if (SUPPRESS_ASSERT)
514 + add_definitions(-DNDEBUG=1)
515 + add_definitions(-D__OPTIMIZE__)
518 # -----------------------------------------------------------------------------
519 # Add module directories
520 # -----------------------------------------------------------------------------
523 [FILE:534:patches/patch-Source_JavaScriptCore_assembler_ARM64Assembler.h]
524 --- Source/JavaScriptCore/assembler/ARM64Assembler.h.orig 2022-08-31 07:59:51 UTC
525 +++ Source/JavaScriptCore/assembler/ARM64Assembler.h
526 @@ -2920,6 +2920,8 @@ public:
527 sys_cache_control(kCacheFunctionPrepareForExecution, code, size);
529 zx_cache_flush(code, size, ZX_CACHE_FLUSH_INSN);
530 +#elif OS(FREEBSD) || OS(NETBSD)
531 + __clear_cache(code, reinterpret_cast<char*>(code) + size);
533 size_t page = pageSize();
534 uintptr_t current = reinterpret_cast<uintptr_t>(code);
537 [FILE:4034:patches/patch-Source_JavaScriptCore_runtime_MachineContext.h]
538 $NetBSD: patch-Source_JavaScriptCore_runtime_MachineContext.h,v 1.2 2021/05/13 08:20:58 leot Exp $
540 Add support for NetBSD.
542 --- Source/JavaScriptCore/runtime/MachineContext.h.orig 2022-08-31 07:59:51 UTC
543 +++ Source/JavaScriptCore/runtime/MachineContext.h
544 @@ -193,6 +193,22 @@ static inline void*& stackPointerImpl(mc
545 #error Unknown Architecture
551 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_UESP]);
553 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RSP]);
555 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_SP]);
557 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_SP]);
559 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_SP]);
561 +#error Unknown Architecture
564 #elif OS(FUCHSIA) || OS(LINUX)
567 @@ -338,6 +354,22 @@ static inline void*& framePointerImpl(mc
568 #error Unknown Architecture
574 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EBP]);
576 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RBP]);
578 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_FP]);
580 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_FP]);
582 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_S8]);
584 +#error Unknown Architecture
587 #elif OS(FUCHSIA) || OS(LINUX)
589 // The following sequence depends on glibc's sys/ucontext.h.
590 @@ -495,6 +527,22 @@ static inline void*& instructionPointerI
592 #error Unknown Architecture
598 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EIP]);
600 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RIP]);
602 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_PC]);
604 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_PC]);
606 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EPC]);
608 +#error Unknown Architecture
611 #elif OS(FUCHSIA) || OS(LINUX)
613 @@ -651,6 +699,22 @@ inline void*& argumentPointer<1>(mcontex
615 #error Unknown Architecture
621 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EDX]);
623 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RSI]);
625 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R1]);
627 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_X1]);
629 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_A1]);
631 +#error Unknown Architecture
634 #elif OS(FUCHSIA) || OS(LINUX)
636 @@ -774,6 +838,22 @@ inline void*& llintInstructionPointer(mc
640 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_ESI]);
642 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R8]);
644 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R8]);
646 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_X4]);
648 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_T4]);
650 +#error Unknown Architecture
656 return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_ESI]);
658 return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R8]);
661 [FILE:597:patches/patch-Source_ThirdParty_ANGLE_src_common_aligned__memory.cpp]
662 --- Source/ThirdParty/ANGLE/src/common/aligned_memory.cpp.orig 2022-08-31 07:59:51 UTC
663 +++ Source/ThirdParty/ANGLE/src/common/aligned_memory.cpp
664 @@ -33,7 +33,7 @@ void *AlignedAlloc(size_t size, size_t a
665 // memalign() on Android returns pointers which can safely be used with
666 // free(), so we can use it instead. Issue filed to document this:
667 // http://code.google.com/p/android/issues/detail?id=35391
668 -#elif defined(ANGLE_PLATFORM_ANDROID)
669 +#elif defined(ANGLE_PLATFORM_ANDROID) || defined(__sun__)
670 ptr = memalign(alignment, size);
672 if (posix_memalign(&ptr, alignment, size))
675 [FILE:506:patches/patch-Source_ThirdParty_ANGLE_src_common_third__party_smhasher_src_PMurHash.cpp]
676 --- Source/ThirdParty/ANGLE/src/common/third_party/smhasher/src/PMurHash.cpp.orig 2022-08-31 07:59:51 UTC
677 +++ Source/ThirdParty/ANGLE/src/common/third_party/smhasher/src/PMurHash.cpp
678 @@ -48,6 +48,9 @@ on big endian machines, or a byte-by-byt
679 -----------------------------------------------------------------------------*/
681 #include "PMurHash.h"
683 +#define __BYTE_ORDER __LITTLE_ENDIAN
687 /* I used ugly type names in the header to avoid potential conflicts with
690 [FILE:561:patches/patch-Source_WTF_wtf_Assertions.h]
691 $NetBSD: patch-Source_WTF_wtf_Assertions.h,v 1.1 2021/01/12 15:21:31 jperkin Exp $
693 Use regular static_assert on SunOS.
695 --- Source/WTF/wtf/Assertions.h.orig 2022-10-19 08:11:34 UTC
696 +++ Source/WTF/wtf/Assertions.h
697 @@ -473,7 +473,7 @@ constexpr bool assertionFailureDueToUnre
700 #ifndef COMPILE_ASSERT
701 -#if COMPILER_SUPPORTS(C_STATIC_ASSERT)
702 +#if COMPILER_SUPPORTS(C_STATIC_ASSERT) && !defined(__sun)
703 /* Unlike static_assert below, this also works in plain C code. */
704 #define COMPILE_ASSERT(exp, name) _Static_assert((exp), #name)
708 [FILE:638:patches/patch-Source_WTF_wtf_FastMalloc.cpp]
709 --- Source/WTF/wtf/FastMalloc.cpp.orig 2022-09-14 11:58:10 UTC
710 +++ Source/WTF/wtf/FastMalloc.cpp
711 @@ -201,7 +201,11 @@ void* fastAlignedMalloc(size_t alignment
713 ASSERT_IS_WITHIN_LIMIT(size);
716 + p = memalign(alignment, size);
718 posix_memalign(&p, alignment, size);
723 @@ -211,7 +215,11 @@ void* tryFastAlignedMalloc(size_t alignm
725 FAIL_IF_EXCEEDS_LIMIT(size);
728 + p = memalign(alignment, size);
730 posix_memalign(&p, alignment, size);
737 [FILE:502:patches/patch-Source_WTF_wtf_FileSystem.cpp]
738 $NetBSD: patch-Source_WTF_wtf_FileSystem.cpp,v 1.3 2020/09/11 14:47:35 leot Exp $
740 Support MAP_FILE if unavailable.
742 --- Source/WTF/wtf/FileSystem.cpp.orig 2022-09-08 11:51:52 UTC
743 +++ Source/WTF/wtf/FileSystem.cpp
744 @@ -369,6 +369,9 @@ bool MappedFileData::mapFileHandle(Platf
751 void* data = mmap(0, size, pageProtection, MAP_FILE | (mapMode == MappedFileMode::Shared ? MAP_SHARED : MAP_PRIVATE), fd, 0);
753 if (data == MAP_FAILED) {
756 [FILE:534:patches/patch-Source_WTF_wtf_MemoryPressureHandler.cpp]
757 --- Source/WTF/wtf/MemoryPressureHandler.cpp.orig 2022-09-16 06:02:57 UTC
758 +++ Source/WTF/wtf/MemoryPressureHandler.cpp
759 @@ -56,7 +56,7 @@ MemoryPressureHandler& MemoryPressureHan
762 MemoryPressureHandler::MemoryPressureHandler()
763 -#if OS(LINUX) || OS(FREEBSD)
764 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__)
765 : m_holdOffTimer(RunLoop::main(), this, &MemoryPressureHandler::holdOffTimerFired)
767 : m_windowsMeasurementTimer(RunLoop::main(), this, &MemoryPressureHandler::windowsMeasurementTimerFired)
770 [FILE:644:patches/patch-Source_WTF_wtf_MemoryPressureHandler.h]
771 --- Source/WTF/wtf/MemoryPressureHandler.h.orig 2022-08-31 07:59:55 UTC
772 +++ Source/WTF/wtf/MemoryPressureHandler.h
773 @@ -81,7 +81,7 @@ public:
775 WTF_EXPORT_PRIVATE void setShouldUsePeriodicMemoryMonitor(bool);
777 -#if OS(LINUX) || OS(FREEBSD)
778 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__)
779 WTF_EXPORT_PRIVATE void triggerMemoryPressureEvent(bool isCritical);
782 @@ -277,7 +277,7 @@ private:
783 Win32Handle m_lowMemoryHandle;
786 -#if OS(LINUX) || OS(FREEBSD)
787 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__)
788 RunLoop::Timer<MemoryPressureHandler> m_holdOffTimer;
789 void holdOffTimerFired();
793 [FILE:326:patches/patch-Source_WTF_wtf_NumberOfCores.cpp]
794 --- Source/WTF/wtf/NumberOfCores.cpp.orig 2022-08-31 07:59:55 UTC
795 +++ Source/WTF/wtf/NumberOfCores.cpp
798 #include <sys/sysctl.h>
799 #elif OS(LINUX) || OS(AIX) || OS(OPENBSD) || OS(NETBSD) || OS(FREEBSD)
800 +#include <stdio.h> // sscanf
806 [FILE:390:patches/patch-Source_WTF_wtf_PlatformGTK.cmake]
807 --- Source/WTF/wtf/PlatformGTK.cmake.orig 2022-09-14 11:58:10 UTC
808 +++ Source/WTF/wtf/PlatformGTK.cmake
809 @@ -61,7 +61,7 @@ if (CMAKE_SYSTEM_NAME MATCHES "Linux")
811 unix/MemoryPressureHandlerUnix.cpp
813 -elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
814 +elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD|DragonFly")
815 list(APPEND WTF_SOURCES
816 generic/MemoryFootprintGeneric.cpp
820 [FILE:582:patches/patch-Source_WTF_wtf_StackBounds.cpp]
821 $NetBSD: patch-Source_WTF_wtf_StackBounds.cpp,v 1.2 2018/10/24 18:31:07 leot Exp $
823 SunOS does not have pthread_getattr_np.
825 --- Source/WTF/wtf/StackBounds.cpp.orig 2022-08-31 07:59:55 UTC
826 +++ Source/WTF/wtf/StackBounds.cpp
827 @@ -98,6 +98,7 @@ StackBounds StackBounds::newThreadStackB
828 #if HAVE(PTHREAD_NP_H) || OS(NETBSD)
829 // e.g. on FreeBSD 5.4, neundorf@kde.org
830 pthread_attr_get_np(thread, &sattr);
831 +#elif defined(__sun__)
833 // FIXME: this function is non-portable; other POSIX systems may have different np alternatives
834 pthread_getattr_np(thread, &sattr);
837 [FILE:1418:patches/patch-Source_WTF_wtf_unix_MemoryPressureHandlerUnix.cpp]
838 --- Source/WTF/wtf/unix/MemoryPressureHandlerUnix.cpp.orig 2022-08-31 07:59:55 UTC
839 +++ Source/WTF/wtf/unix/MemoryPressureHandlerUnix.cpp
842 #include <wtf/MemoryPressureHandler.h>
844 +#if OS(FREEBSD) || defined(__DragonFly__)
850 #include <wtf/Logging.h>
851 #include <wtf/MainThread.h>
855 #include <wtf/linux/CurrentProcessMemoryStatus.h>
857 +#elif OS(FREEBSD) || defined(__DragonFly__)
858 #include <sys/sysctl.h>
859 #include <sys/types.h>
860 #include <sys/user.h>
861 @@ -112,7 +116,7 @@ static size_t processMemoryUsage()
862 ProcessMemoryStatus memoryStatus;
863 currentProcessMemoryStatus(memoryStatus);
864 return (memoryStatus.resident - memoryStatus.shared);
866 +#elif OS(FREEBSD) || defined(__DragonFly__)
867 static size_t pageSize = sysconf(_SC_PAGE_SIZE);
868 struct kinfo_proc info;
869 size_t infolen = sizeof(info);
870 @@ -126,7 +130,11 @@ static size_t processMemoryUsage()
871 if (sysctl(mib, 4, &info, &infolen, nullptr, 0))
874 +# ifdef __DragonFly__
875 + return static_cast<size_t>(info.kp_vm_rssize - info.kp_vm_tsize) * pageSize;
877 return static_cast<size_t>(info.ki_rssize - info.ki_tsize) * pageSize;
880 #error "Missing a platform specific way of determining the memory usage"
884 [FILE:848:patches/patch-Source_WebCore_Modules_fetch_FetchBodyConsumer.cpp]
885 --- Source/WebCore/Modules/fetch/FetchBodyConsumer.cpp.orig 2022-09-14 11:58:10 UTC
886 +++ Source/WebCore/Modules/fetch/FetchBodyConsumer.cpp
888 #include <wtf/StringExtras.h>
889 #include <wtf/URLParser.h>
892 +static void *memmem(
893 + const void *big, size_t big_len,
894 + const void *little, size_t little_len)
896 + const char *bp = (const char *)big;
897 + const char *lp = (const char *)little;
900 + if (big_len < little_len || little_len == 0 || big_len == 0)
903 + while (big_len > 0) {
904 + for (l = 0; l < little_len; l++) {
905 + if (bp[l] != lp[l])
908 + if (l == little_len)
919 static inline Ref<Blob> blobFromData(ScriptExecutionContext* context, Vector<uint8_t>&& data, const String& contentType)
922 [FILE:610:patches/patch-Source_WebCore_platform_graphics_cpu_arm_filters_FELightingNEON.cpp]
923 --- Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp.orig 2022-08-31 07:59:56 UTC
924 +++ Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp
925 @@ -403,7 +403,7 @@ TOSTRING(neonDrawLighting) ":" NL
926 "vmin.f32 " TMP2_D0 ", " TMP2_D0 ", " CONST_ONE_HI_D NL
927 "vmul.f32 " TMP3_Q ", " COLOR_Q ", " TMP2_D0 "[1]" NL
928 "vcvt.u32.f32 " TMP3_Q ", " TMP3_Q NL
929 - "vmov.u32 r2, r3, " TMP3_S0 ", " TMP3_S1 NL
930 + "vmov r2, r3, " TMP3_S0 ", " TMP3_S1 NL
931 // The color values are stored in-place.
932 "strb r2, [" PIXELS_R ", #-11]" NL
933 "strb r3, [" PIXELS_R ", #-10]" NL
936 [FILE:323:patches/patch-Source_WebCore_platform_network_DNS.h]
937 --- Source/WebCore/platform/network/DNS.h.orig 2022-08-31 07:59:56 UTC
938 +++ Source/WebCore/platform/network/DNS.h
940 #include <ws2tcpip.h>
942 #include <netinet/in.h>
943 +# if defined __DragonFly__ || defined __FreeBSD__ || defined __sun__
944 +# include <sys/socket.h>
951 [FILE:336:patches/patch-Source_WebDriver_PlatformGTK.cmake]
952 --- Source/WebDriver/PlatformGTK.cmake.orig 2022-08-31 07:59:56 UTC
953 +++ Source/WebDriver/PlatformGTK.cmake
954 @@ -5,6 +5,7 @@ add_definitions(-DLIBEXECDIR="${CMAKE_IN
955 list(APPEND WebDriver_SYSTEM_INCLUDE_DIRECTORIES
956 "${GLIB_INCLUDE_DIRS}"
957 "${LIBSOUP_INCLUDE_DIRS}"
958 + "${ICU_INCLUDE_DIRS}"
961 list(APPEND WebDriver_SOURCES
964 [FILE:507:patches/patch-Source_WebKit_CMakeLists.txt]
965 $NetBSD: patch-Source_WebKit_CMakeLists.txt,v 1.1 2018/05/16 18:55:45 jperkin Exp $
967 SunOS requires libsocket.
969 --- Source/WebKit/CMakeLists.txt.orig 2022-08-31 07:59:56 UTC
970 +++ Source/WebKit/CMakeLists.txt
971 @@ -404,6 +404,10 @@ if (UNIX)
975 +if (CMAKE_SYSTEM_NAME MATCHES "SunOS")
976 + list(APPEND WebKit_LIBRARIES socket)
979 macro(ADD_WEBKIT_PREFIX_HEADER _target)
980 if (WebKit_USE_PREFIX_HEADER)
981 get_target_property(OLD_COMPILE_FLAGS ${_target} COMPILE_FLAGS)
984 [FILE:551:patches/patch-Source_WebKit_PlatformGTK.cmake]
985 --- Source/WebKit/PlatformGTK.cmake.orig 2022-09-14 11:58:10 UTC
986 +++ Source/WebKit/PlatformGTK.cmake
987 @@ -42,7 +42,7 @@ add_definitions(-DLOCALEDIR="${CMAKE_INS
988 add_definitions(-DDATADIR="${CMAKE_INSTALL_FULL_DATADIR}")
989 add_definitions(-DLIBDIR="${LIB_INSTALL_DIR}")
991 -if (NOT DEVELOPER_MODE AND NOT CMAKE_SYSTEM_NAME MATCHES "Darwin")
992 +if (NOT DEVELOPER_MODE AND NOT CMAKE_SYSTEM_NAME MATCHES "Darwin|SunOS")
993 WEBKIT_ADD_TARGET_PROPERTIES(WebKit LINK_FLAGS "-Wl,--version-script,${CMAKE_CURRENT_SOURCE_DIR}/webkitglib-symbols.map")
998 [FILE:1241:patches/patch-Source_WebKit_Platform_IPC_unix_ConnectionUnix.cpp]
999 $NetBSD: patch-Source_WebKit_Platform_IPC_unix_ConnectionUnix.cpp,v 1.3 2021/01/12 15:21:31 jperkin Exp $
1001 On NetBSD we see "Error sending IPC message: Message too long" due to
1002 the use of sendmsg with a large message body (EMSGSIZE).
1004 WebKit already uses shared memory to communicate the message body when
1005 the message is too large, so force it to always use this method to avoid
1006 encountering EMSGSIZE.
1008 --- Source/WebKit/Platform/IPC/unix/ConnectionUnix.cpp.orig 2022-08-31 07:59:56 UTC
1009 +++ Source/WebKit/Platform/IPC/unix/ConnectionUnix.cpp
1012 #endif // SOCK_SEQPACKET
1014 +#ifndef MSG_NOSIGNAL
1015 +#define MSG_NOSIGNAL 0
1020 static const size_t messageMaxSize = 4096;
1021 @@ -442,8 +446,12 @@ bool Connection::sendOutgoingMessage(Uni
1026 size_t messageSizeWithBodyInline = sizeof(MessageInfo) + (outputMessage.attachments().size() * sizeof(AttachmentInfo)) + outputMessage.bodySize();
1027 if (messageSizeWithBodyInline > messageMaxSize && outputMessage.bodySize()) {
1031 RefPtr<WebKit::SharedMemory> oolMessageBody = WebKit::SharedMemory::allocate(encoder->bufferSize());
1032 if (!oolMessageBody)
1036 [FILE:714:patches/patch-Source_WebKit_Platform_unix_SharedMemoryUnix.cpp]
1037 --- Source/WebKit/Platform/unix/SharedMemoryUnix.cpp.orig 2022-09-14 11:58:10 UTC
1038 +++ Source/WebKit/Platform/unix/SharedMemoryUnix.cpp
1039 @@ -148,7 +148,13 @@ static int createSharedMemory()
1042 for (int tries = 0; fileDescriptor == -1 && tries < 10; ++tries) {
1043 - auto name = makeString("/WK2SharedMemory.", static_cast<unsigned>(WTF::randomNumber() * (std::numeric_limits<unsigned>::max() + 1.0)));
1045 +#ifdef __DragonFly__
1046 + makeString("/tmp/WK2SharedMemory.",
1048 + makeString("/WK2SharedMemory.",
1050 + static_cast<unsigned>(WTF::randomNumber() * (std::numeric_limits<unsigned>::max() + 1.0)));
1051 tempName = name.utf8();
1056 [FILE:1432:patches/patch-Source_bmalloc_bmalloc_AvailableMemory.cpp]
1057 --- Source/bmalloc/bmalloc/AvailableMemory.cpp.orig 2022-08-31 07:59:57 UTC
1058 +++ Source/bmalloc/bmalloc/AvailableMemory.cpp
1060 #import <mach/mach_error.h>
1063 -#if BOS(FREEBSD) || BOS(LINUX)
1065 #include <sys/sysinfo.h>
1068 @@ -161,7 +161,13 @@ static size_t computeAvailableMemory()
1069 // Round up the memory size to a multiple of 128MB because max_mem may not be exactly 512MB
1070 // (for example) and we have code that depends on those boundaries.
1071 return ((sizeAccordingToKernel + multiple - 1) / multiple) * multiple;
1072 -#elif BOS(FREEBSD) || BOS(LINUX)
1074 + long pages = sysconf(_SC_PHYS_PAGES);
1075 + long pageSize = sysconf(_SC_PAGE_SIZE);
1076 + if (pages == -1 || pageSize == -1)
1077 + return availableMemoryGuess;
1078 + return pages * pageSize;
1080 struct sysinfo info;
1081 if (!sysinfo(&info))
1082 return info.totalram * info.mem_unit;
1083 @@ -212,7 +218,11 @@ MemoryStatus memoryStatus()
1085 size_t memoryFootprint = 0;
1086 if (!sysctl(mib, 4, &info, &infolen, nullptr, 0))
1087 +# ifdef __DragonFly__
1088 + memoryFootprint = static_cast<size_t>(info.kp_vm_rssize) * vmPageSize();
1090 memoryFootprint = static_cast<size_t>(info.ki_rssize) * vmPageSize();
1094 double percentInUse = static_cast<double>(memoryFootprint) / static_cast<double>(availableMemory());
1097 [FILE:1294:patches/patch-Source_bmalloc_libpas_src_libpas_pas__probabilistic__guard__malloc__allocator.c]
1098 --- Source/bmalloc/libpas/src/libpas/pas_probabilistic_guard_malloc_allocator.c.orig 2022-09-08 11:51:52 UTC
1099 +++ Source/bmalloc/libpas/src/libpas/pas_probabilistic_guard_malloc_allocator.c
1100 @@ -103,11 +103,13 @@ pas_allocation_result pas_probabilistic_
1102 // ensure physical addresses are released
1103 // TODO: investigate using MADV_FREE_REUSABLE instead
1104 + /* Linux 4.5, Ravenports uses 4.4
1105 int madvise_res = madvise((void *) upper_guard_page, page_size, MADV_FREE);
1106 PAS_ASSERT(!madvise_res);
1108 madvise_res = madvise((void *) lower_guard_page, page_size, MADV_FREE);
1109 PAS_ASSERT(!madvise_res);
1112 // the key is the location where the user's starting memory address is located.
1113 // allocations are right aligned, so the end backs up to the upper guard page.
1114 @@ -166,8 +168,10 @@ void pas_probabilistic_guard_malloc_deal
1116 // ensure physical addresses are released
1117 // TODO: investigate using MADV_FREE_REUSABLE instead
1118 + /* Requires linux 4.5
1119 int madvise_res = madvise((void *) value->start_of_data_pages, value->size_of_data_pages, MADV_FREE);
1120 PAS_ASSERT(!madvise_res);
1123 bool removed = pas_ptr_hash_map_remove(&pas_pgm_hash_map, key, NULL, &pas_large_utility_free_heap_allocation_config);
1124 PAS_ASSERT(removed);
1127 [FILE:971:patches/patch-Source_cmake_OptionsCommon.cmake]
1128 --- Source/cmake/OptionsCommon.cmake.orig 2022-08-31 07:59:57 UTC
1129 +++ Source/cmake/OptionsCommon.cmake
1130 @@ -128,10 +128,10 @@ endif ()
1131 option(USE_THIN_ARCHIVES "Produce all static libraries as thin archives" ${USE_THIN_ARCHIVES_DEFAULT})
1133 if (USE_THIN_ARCHIVES)
1134 - set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> crT <TARGET> <LINK_FLAGS> <OBJECTS>")
1135 - set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> crT <TARGET> <LINK_FLAGS> <OBJECTS>")
1136 - set(CMAKE_CXX_ARCHIVE_APPEND "<CMAKE_AR> rT <TARGET> <LINK_FLAGS> <OBJECTS>")
1137 - set(CMAKE_C_ARCHIVE_APPEND "<CMAKE_AR> rT <TARGET> <LINK_FLAGS> <OBJECTS>")
1138 + set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS>")
1139 + set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS>")
1140 + set(CMAKE_CXX_ARCHIVE_APPEND "<CMAKE_AR> r <TARGET> <LINK_FLAGS> <OBJECTS>")
1141 + set(CMAKE_C_ARCHIVE_APPEND "<CMAKE_AR> r <TARGET> <LINK_FLAGS> <OBJECTS>")
1144 set(ENABLE_DEBUG_FISSION_DEFAULT OFF)
1147 [FILE:520:patches/patch-Source_cmake_WebKitCompilerFlags.cmake]
1148 --- Source/cmake/WebKitCompilerFlags.cmake.orig 2022-08-31 07:59:57 UTC
1149 +++ Source/cmake/WebKitCompilerFlags.cmake
1150 @@ -252,7 +252,7 @@ if (NOT MSVC)
1151 string(REGEX MATCHALL "-fsanitize=[^ ]*" ENABLED_COMPILER_SANITIZERS ${CMAKE_CXX_FLAGS})
1154 -if (UNIX AND NOT APPLE AND NOT ENABLED_COMPILER_SANITIZERS)
1155 +if (UNIX AND NOT APPLE AND NOT ENABLED_COMPILER_SANITIZERS AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
1156 set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined ${CMAKE_SHARED_LINKER_FLAGS}")
1161 [FILE:358:patches/patch-Tools_MiniBrowser_gtk_CMakeLists.txt]
1162 --- Tools/MiniBrowser/gtk/CMakeLists.txt.orig 2022-08-31 07:59:57 UTC
1163 +++ Tools/MiniBrowser/gtk/CMakeLists.txt
1164 @@ -41,6 +41,10 @@ set(MiniBrowser_PRIVATE_LIBRARIES
1168 +if (CMAKE_SYSTEM_NAME MATCHES "SunOS")
1169 + list(APPEND MiniBrowser_PRIVATE_LIBRARIES intl)
1172 set(MiniBrowser_DEPENDENCIES