1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 VARIANTS= api40 api41 api50
8 SDESC[api50]= Opensource browser engine using GTK4 (API 5.0)
9 SDESC[api40]= Opensource browser engine using GTK+3 (API 4.0)
10 SDESC[api41]= Opensource browser engine using GTK+3 (API 4.1)
11 HOMEPAGE= https://www.webkitgtk.org/
15 SITES[main]= https://www.webkitgtk.org/releases/
16 https://fossies.org/linux/www/
17 DISTFILE[1]= webkitgtk-2.38.3.tar.xz:main
19 SPKGS[api50]= complete
22 SPKGS[api40]= complete
25 SPKGS[api41]= complete
29 OPTIONS_AVAILABLE= API40 API41 API50
30 OPTIONS_STANDARD= none
31 VOPTS[api50]= API40=OFF API41=OFF API50=ON
32 VOPTS[api40]= API40=ON API41=OFF API50=OFF
33 VOPTS[api41]= API40=OFF API41=ON API50=OFF
35 BUILD_DEPENDS= gperf:primary:standard
36 libgpg-error:dev:standard
37 gstreamer1:dev:standard
38 gstreamer1-plugins-base:dev:standard
39 BUILDRUN_DEPENDS= enchant:single:standard
40 fontconfig:primary:standard
41 freetype:primary:standard
43 libsecret:primary:standard
44 libnotify:primary:standard
45 hyphen:single:standard
48 libgcrypt:single:standard
49 gnutls:primary:standard
50 libtasn1:primary:standard
51 geoclue:single:standard
53 gstreamer1-plugins-base:primary:standard
54 openjpeg:single:standard
56 USES= png mesa cmake pkgconfig sqlite bison perl:build
57 python:build ruby:build gettext-tools cpe
58 GNOME_COMPONENTS= gdkpixbuf introspection libxslt
59 XORG_COMPONENTS= x11 xcomposite xdamage xext xrender xt ice
61 DISTNAME= webkitgtk-2.38.3
63 LICENSE= GPLv2+:primary BSD3CLAUSE:primary
64 LICENSE_TERMS= primary:{{WRKDIR}}/TERMS
65 LICENSE_FILE= GPLv2+:stock
66 BSD3CLAUSE:{{WRKDIR}}/LICENSE_BSD
67 LICENSE_AWK= BSD3CLAUSE:"^$$"
69 LICENSE_SOURCE= BSD3CLAUSE:{{WRKSRC}}/Source/WebCore/css/parser/MediaQueryBlockWatcher.h
70 TERMS:{{WRKSRC}}/Source/WebCore/style/StyleScope.cpp
73 CPE_PRODUCT= webkitgtk
75 FPC_EQUIVALENT= www/webkit2-gtk3
77 CONFIGURE_ENV= XDG_CACHE_HOME={{WRKDIR}}
79 INSTALL_TARGET= install
80 INSTALL_REQ_TOOLCHAIN= yes
81 PLIST_SUB= INTRO="@comment "
83 CXXFLAGS= -DFIXED_EXECUTABLE_MEMORY_POOL_SIZE_IN_MB=32
84 CMAKE_ARGS= -DPORT=GTK
85 -DENABLE_GEOLOCATION:BOOL=ON
86 -DENABLE_GLES2:BOOL=ON
87 -DENABLE_MINIBROWSER:BOOL=ON
88 -DENABLE_WAYLAND_TARGET:BOOL=OFF
89 -DENABLE_BUBBLEWRAP_SANDBOX:BOOL=OFF
90 -DENABLE_GAMEPAD:BOOL=OFF
91 -DENABLE_INTROSPECTION:BOOL=OFF
92 -DENABLE_JOURNALD_LOG:BOOL=OFF
93 -DSUPPRESS_ASSERT:BOOL=ON
94 -DUSE_SYSTEMD:BOOL=OFF
95 -DUSE_GSTREAMER_GL:BOOL=OFF
96 VAR_OPSYS[sunos]= CMAKE_ARGS=-DUSE_LD_GOLD:BOOL=OFF
98 [API50].DESCRIPTION= Build WebKit2 API 5.0 variant
99 [API50].BUILDRUN_DEPENDS_ON= libsoup:primary:standard
100 [API50].CMAKE_ARGS_ON= -DUSE_GTK4=ON
101 [API50].GNOME_COMPONENTS_ON= gtk4
102 [API50].PLIST_SUB_ON= JSSOVERSION=0.0.0
109 [API40].DESCRIPTION= Build WebKit2 API 4.0 variant
110 [API40].BUILDRUN_DEPENDS_ON= libsoup-2.4:primary:standard
111 [API40].CMAKE_ARGS_ON= -DUSE_SOUP2=ON
112 [API40].GNOME_COMPONENTS_ON= gtk3
113 [API40].PLIST_SUB_ON= JSSOVERSION=18.21.6
120 [API41].DESCRIPTION= Build WebKit2 API 4.1 variant
121 [API41].BUILDRUN_DEPENDS_ON= libsoup:primary:standard
122 [API41].GNOME_COMPONENTS_ON= gtk3
123 [API41].PLIST_SUB_ON= JSSOVERSION=0.2.6
131 echo 'add_compile_definitions("U_DEFINE_FALSE_AND_TRUE=1")' \
132 >> ${WRKSRC}/Source/WTF/wtf/CMakeLists.txt
134 post-install-API40-ON:
135 (cd ${STAGEDIR}${PREFIX}/bin && \
136 ${LN} -s ../libexec/webkit2gtk-4.0/jsc jsc-4.0 && \
137 ${LN} -s ../libexec/webkit2gtk-4.0/MiniBrowser MiniBrowser-4.0)
138 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/webkit2gtk-4.0/injected-bundle/*.so
139 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/webkit2gtk-4.0/*
140 ${MV} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver \
141 ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver-4.0
143 post-install-API50-ON:
144 (cd ${STAGEDIR}${PREFIX}/bin && \
145 ${LN} -s ../libexec/webkit2gtk-5.0/jsc jsc-5.0 && \
146 ${LN} -s ../libexec/webkit2gtk-5.0/MiniBrowser MiniBrowser-5.0)
147 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/webkit2gtk-5.0/injected-bundle/*.so
148 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/webkit2gtk-5.0/*
149 ${MV} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver \
150 ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver-5.0
153 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so.*.*
154 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver
156 post-install-API41-ON:
157 (cd ${STAGEDIR}${PREFIX}/bin && \
158 ${LN} -s ../libexec/webkit2gtk-4.1/jsc jsc-4.1 && \
159 ${LN} -s ../libexec/webkit2gtk-4.1/MiniBrowser MiniBrowser-4.1)
160 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/webkit2gtk-4.1/injected-bundle/*.so
161 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/webkit2gtk-4.1/*
162 ${MV} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver \
163 ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver-4.1
166 ${REINPLACE_CMD} -e '/USE_FILE_LOCK/ s|1|0|' \
167 ${WRKSRC}/Source/WTF/wtf/PlatformUse.h \
168 ${WRKSRC}/Source/WebCore/config.h
170 [FILE:574:descriptions/desc.primary]
171 WebKitGTK+ is a full-featured port of the WebKit rendering engine, suitable
172 for projects requiring any kind of web integration, from hybrid HTML/CSS
173 applications to full-fledged web browsers. It offers WebKit's full
174 functionality and is useful in a wide range of systems from desktop
175 computers to embedded systems like phones, tablets, and televisions.
177 WebKitGTK+ is made by a lively community of developers and designers,
178 who hope to bring the web platform to everyone. It's the official web
179 engine of the GNOME platform and is used in browsers such as Epiphany
184 41f001d1ed448c6936b394a9f20e4640eebf83a7f08262df28504f7410604a5a 33003928 webkitgtk-2.38.3.tar.xz
187 [FILE:6416:manifests/plist.primary]
188 %%INTRO%%lib/girepository-1.0/
189 JavaScriptCore-%%WKAPI%%.typelib
190 WebKit2-%%WKAPI%%.typelib
191 WebKit2WebExtension-%%WKAPI%%.typelib
192 %%INTRO%%share/gir-1.0/
193 JavaScriptCore-%%WKAPI%%.gir
194 WebKit2-%%WKAPI%%.gir
195 WebKit2WebExtension-%%WKAPI%%.gir
197 MiniBrowser-%%WKAPI%%
198 WebKitWebDriver-%%WKAPI%%
200 include/webkitgtk-%%WKAPI%%/JavaScriptCore/
209 include/webkitgtk-%%WKAPI%%/jsc/
221 include/webkitgtk-%%WKAPI%%/webkit2/
222 WebKitApplicationInfo.h
223 WebKitAuthenticationRequest.h
225 WebKitAutomationSession.h
226 WebKitBackForwardList.h
227 WebKitBackForwardListItem.h
228 WebKitColorChooserRequest.h
229 WebKitConsoleMessage.h
231 WebKitContextMenuActions.h
232 WebKitContextMenuItem.h
233 WebKitCookieManager.h
236 WebKitDeviceInfoPermissionRequest.h
238 WebKitEditingCommands.h
242 WebKitFaviconDatabase.h
243 WebKitFileChooserRequest.h
244 WebKitFindController.h
245 WebKitFormSubmissionRequest.h
246 WebKitForwardDeclarations.h
248 WebKitGeolocationManager.h
249 WebKitGeolocationPermissionRequest.h
250 WebKitHitTestResult.h
251 WebKitInputMethodContext.h
252 WebKitInstallMissingMediaPluginsPermissionRequest.h
253 WebKitJavascriptResult.h
254 WebKitMediaKeySystemPermissionRequest.h
255 WebKitMemoryPressureSettings.h
257 WebKitNavigationAction.h
258 WebKitNavigationPolicyDecision.h
259 WebKitNetworkProxySettings.h
261 WebKitNotificationPermissionRequest.h
263 WebKitOptionMenuItem.h
264 WebKitPermissionRequest.h
266 WebKitPointerLockPermissionRequest.h
267 WebKitPolicyDecision.h
268 WebKitPrintCustomWidget.h
269 WebKitPrintOperation.h
270 WebKitResponsePolicyDecision.h
273 WebKitSecurityManager.h
274 WebKitSecurityOrigin.h
278 WebKitURISchemeRequest.h
279 WebKitURISchemeResponse.h
282 WebKitUserContentFilterStore.h
283 WebKitUserContentManager.h
284 WebKitUserMediaPermissionRequest.h
290 WebKitWebExtensionAutocleanups.h
291 WebKitWebHitTestResult.h
294 WebKitWebProcessEnumTypes.h
298 WebKitWebViewSessionState.h
300 WebKitWebsiteDataAccessPermissionRequest.h
301 WebKitWebsiteDataManager.h
302 WebKitWebsitePolicies.h
303 WebKitWindowProperties.h
304 webkit-web-extension.h
306 include/webkitgtk-%%WKAPI%%/webkitdom/
309 WebKitDOMCDATASection.h
311 WebKitDOMCSSRuleList.h
312 WebKitDOMCSSStyleDeclaration.h
313 WebKitDOMCSSStyleSheet.h
315 WebKitDOMCharacterData.h
316 WebKitDOMClientRect.h
317 WebKitDOMClientRectList.h
320 WebKitDOMCustomUnstable.h
321 WebKitDOMDOMImplementation.h
322 WebKitDOMDOMSelection.h
323 WebKitDOMDOMTokenList.h
325 WebKitDOMDOMWindowUnstable.h
326 WebKitDOMDeprecated.h
328 WebKitDOMDocumentFragment.h
329 WebKitDOMDocumentFragmentUnstable.h
330 WebKitDOMDocumentType.h
331 WebKitDOMDocumentUnstable.h
333 WebKitDOMElementUnstable.h
335 WebKitDOMEventTarget.h
338 WebKitDOMHTMLAnchorElement.h
339 WebKitDOMHTMLAppletElement.h
340 WebKitDOMHTMLAreaElement.h
341 WebKitDOMHTMLBRElement.h
342 WebKitDOMHTMLBaseElement.h
343 WebKitDOMHTMLBodyElement.h
344 WebKitDOMHTMLButtonElement.h
345 WebKitDOMHTMLCanvasElement.h
346 WebKitDOMHTMLCollection.h
347 WebKitDOMHTMLDListElement.h
348 WebKitDOMHTMLDirectoryElement.h
349 WebKitDOMHTMLDivElement.h
350 WebKitDOMHTMLDocument.h
351 WebKitDOMHTMLElement.h
352 WebKitDOMHTMLElementUnstable.h
353 WebKitDOMHTMLEmbedElement.h
354 WebKitDOMHTMLFieldSetElement.h
355 WebKitDOMHTMLFontElement.h
356 WebKitDOMHTMLFormElement.h
357 WebKitDOMHTMLFrameElement.h
358 WebKitDOMHTMLFrameSetElement.h
359 WebKitDOMHTMLHRElement.h
360 WebKitDOMHTMLHeadElement.h
361 WebKitDOMHTMLHeadingElement.h
362 WebKitDOMHTMLHtmlElement.h
363 WebKitDOMHTMLIFrameElement.h
364 WebKitDOMHTMLImageElement.h
365 WebKitDOMHTMLInputElement.h
366 WebKitDOMHTMLLIElement.h
367 WebKitDOMHTMLLabelElement.h
368 WebKitDOMHTMLLegendElement.h
369 WebKitDOMHTMLLinkElement.h
370 WebKitDOMHTMLMapElement.h
371 WebKitDOMHTMLMarqueeElement.h
372 WebKitDOMHTMLMenuElement.h
373 WebKitDOMHTMLMetaElement.h
374 WebKitDOMHTMLModElement.h
375 WebKitDOMHTMLOListElement.h
376 WebKitDOMHTMLObjectElement.h
377 WebKitDOMHTMLOptGroupElement.h
378 WebKitDOMHTMLOptionElement.h
379 WebKitDOMHTMLOptionsCollection.h
380 WebKitDOMHTMLParagraphElement.h
381 WebKitDOMHTMLParamElement.h
382 WebKitDOMHTMLPreElement.h
383 WebKitDOMHTMLQuoteElement.h
384 WebKitDOMHTMLScriptElement.h
385 WebKitDOMHTMLSelectElement.h
386 WebKitDOMHTMLStyleElement.h
387 WebKitDOMHTMLTableCaptionElement.h
388 WebKitDOMHTMLTableCellElement.h
389 WebKitDOMHTMLTableColElement.h
390 WebKitDOMHTMLTableElement.h
391 WebKitDOMHTMLTableRowElement.h
392 WebKitDOMHTMLTableSectionElement.h
393 WebKitDOMHTMLTextAreaElement.h
394 WebKitDOMHTMLTitleElement.h
395 WebKitDOMHTMLUListElement.h
396 WebKitDOMKeyboardEvent.h
398 WebKitDOMMouseEvent.h
399 WebKitDOMNamedNodeMap.h
401 WebKitDOMNodeFilter.h
402 WebKitDOMNodeIterator.h
405 WebKitDOMProcessingInstruction.h
407 WebKitDOMRangeUnstable.h
408 WebKitDOMStyleSheet.h
409 WebKitDOMStyleSheetList.h
411 WebKitDOMTreeWalker.h
413 WebKitDOMWheelEvent.h
414 WebKitDOMXPathExpression.h
415 WebKitDOMXPathNSResolver.h
416 WebKitDOMXPathResult.h
418 webkitdomautocleanups.h
421 libjavascriptcoregtk-%%WKAPI%%.so
422 libjavascriptcoregtk-%%WKAPI%%.so.%%JSSOMAJOR%%
423 libjavascriptcoregtk-%%WKAPI%%.so.%%JSSOVERSION%%
424 libwebkit2gtk-%%WKAPI%%.so
425 libwebkit2gtk-%%WKAPI%%.so.%%SOMAJOR%%
426 libwebkit2gtk-%%WKAPI%%.so.%%SOVERSION%%
428 javascriptcoregtk-%%WKAPI%%.pc
429 webkit2gtk-%%WKAPI%%.pc
430 webkit2gtk-web-extension-%%WKAPI%%.pc
431 lib/webkit2gtk-%%WKAPI%%/injected-bundle/libwebkit2gtkinjectedbundle.so
432 libexec/webkit2gtk-%%WKAPI%%/
439 [FILE:2618:manifests/plist.nls]
440 share/locale/ar/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
441 share/locale/as/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
442 share/locale/bg/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
443 share/locale/ca/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
444 share/locale/cs/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
445 share/locale/da/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
446 share/locale/de/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
447 share/locale/el/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
448 share/locale/en_CA/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
449 share/locale/en_GB/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
450 share/locale/eo/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
451 share/locale/es/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
452 share/locale/et/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
453 share/locale/eu/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
454 share/locale/fi/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
455 share/locale/fr/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
456 share/locale/gl/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
457 share/locale/gu/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
458 share/locale/he/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
459 share/locale/hi/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
460 share/locale/hr/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
461 share/locale/hu/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
462 share/locale/id/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
463 share/locale/it/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
464 share/locale/ja/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
465 share/locale/kn/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
466 share/locale/ko/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
467 share/locale/lt/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
468 share/locale/lv/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
469 share/locale/ml/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
470 share/locale/mr/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
471 share/locale/nb/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
472 share/locale/nl/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
473 share/locale/or/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
474 share/locale/pa/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
475 share/locale/pl/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
476 share/locale/pt/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
477 share/locale/pt_BR/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
478 share/locale/ro/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
479 share/locale/ru/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
480 share/locale/sl/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
481 share/locale/sr/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
482 share/locale/sr@latin/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
483 share/locale/sv/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
484 share/locale/ta/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
485 share/locale/te/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
486 share/locale/tr/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
487 share/locale/uk/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
488 share/locale/vi/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
489 share/locale/zh_CN/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
492 [FILE:431:patches/patch-CMakeLists.txt]
493 --- CMakeLists.txt.orig 2022-08-31 07:59:34 UTC
495 @@ -31,6 +31,11 @@ if (ENABLE_API_TESTS)
499 +if (SUPPRESS_ASSERT)
500 + add_definitions(-DNDEBUG=1)
501 + add_definitions(-D__OPTIMIZE__)
504 # -----------------------------------------------------------------------------
505 # Add module directories
506 # -----------------------------------------------------------------------------
509 [FILE:534:patches/patch-Source_JavaScriptCore_assembler_ARM64Assembler.h]
510 --- Source/JavaScriptCore/assembler/ARM64Assembler.h.orig 2022-08-31 07:59:51 UTC
511 +++ Source/JavaScriptCore/assembler/ARM64Assembler.h
512 @@ -2920,6 +2920,8 @@ public:
513 sys_cache_control(kCacheFunctionPrepareForExecution, code, size);
515 zx_cache_flush(code, size, ZX_CACHE_FLUSH_INSN);
516 +#elif OS(FREEBSD) || OS(NETBSD)
517 + __clear_cache(code, reinterpret_cast<char*>(code) + size);
519 size_t page = pageSize();
520 uintptr_t current = reinterpret_cast<uintptr_t>(code);
523 [FILE:4034:patches/patch-Source_JavaScriptCore_runtime_MachineContext.h]
524 $NetBSD: patch-Source_JavaScriptCore_runtime_MachineContext.h,v 1.2 2021/05/13 08:20:58 leot Exp $
526 Add support for NetBSD.
528 --- Source/JavaScriptCore/runtime/MachineContext.h.orig 2022-08-31 07:59:51 UTC
529 +++ Source/JavaScriptCore/runtime/MachineContext.h
530 @@ -193,6 +193,22 @@ static inline void*& stackPointerImpl(mc
531 #error Unknown Architecture
537 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_UESP]);
539 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RSP]);
541 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_SP]);
543 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_SP]);
545 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_SP]);
547 +#error Unknown Architecture
550 #elif OS(FUCHSIA) || OS(LINUX)
553 @@ -338,6 +354,22 @@ static inline void*& framePointerImpl(mc
554 #error Unknown Architecture
560 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EBP]);
562 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RBP]);
564 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_FP]);
566 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_FP]);
568 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_S8]);
570 +#error Unknown Architecture
573 #elif OS(FUCHSIA) || OS(LINUX)
575 // The following sequence depends on glibc's sys/ucontext.h.
576 @@ -495,6 +527,22 @@ static inline void*& instructionPointerI
578 #error Unknown Architecture
584 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EIP]);
586 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RIP]);
588 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_PC]);
590 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_PC]);
592 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EPC]);
594 +#error Unknown Architecture
597 #elif OS(FUCHSIA) || OS(LINUX)
599 @@ -651,6 +699,22 @@ inline void*& argumentPointer<1>(mcontex
601 #error Unknown Architecture
607 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EDX]);
609 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RSI]);
611 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R1]);
613 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_X1]);
615 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_A1]);
617 +#error Unknown Architecture
620 #elif OS(FUCHSIA) || OS(LINUX)
622 @@ -774,6 +838,22 @@ inline void*& llintInstructionPointer(mc
626 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_ESI]);
628 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R8]);
630 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R8]);
632 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_X4]);
634 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_T4]);
636 +#error Unknown Architecture
642 return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_ESI]);
644 return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R8]);
647 [FILE:597:patches/patch-Source_ThirdParty_ANGLE_src_common_aligned__memory.cpp]
648 --- Source/ThirdParty/ANGLE/src/common/aligned_memory.cpp.orig 2022-08-31 07:59:51 UTC
649 +++ Source/ThirdParty/ANGLE/src/common/aligned_memory.cpp
650 @@ -33,7 +33,7 @@ void *AlignedAlloc(size_t size, size_t a
651 // memalign() on Android returns pointers which can safely be used with
652 // free(), so we can use it instead. Issue filed to document this:
653 // http://code.google.com/p/android/issues/detail?id=35391
654 -#elif defined(ANGLE_PLATFORM_ANDROID)
655 +#elif defined(ANGLE_PLATFORM_ANDROID) || defined(__sun__)
656 ptr = memalign(alignment, size);
658 if (posix_memalign(&ptr, alignment, size))
661 [FILE:506:patches/patch-Source_ThirdParty_ANGLE_src_common_third__party_smhasher_src_PMurHash.cpp]
662 --- Source/ThirdParty/ANGLE/src/common/third_party/smhasher/src/PMurHash.cpp.orig 2022-08-31 07:59:51 UTC
663 +++ Source/ThirdParty/ANGLE/src/common/third_party/smhasher/src/PMurHash.cpp
664 @@ -48,6 +48,9 @@ on big endian machines, or a byte-by-byt
665 -----------------------------------------------------------------------------*/
667 #include "PMurHash.h"
669 +#define __BYTE_ORDER __LITTLE_ENDIAN
673 /* I used ugly type names in the header to avoid potential conflicts with
676 [FILE:561:patches/patch-Source_WTF_wtf_Assertions.h]
677 $NetBSD: patch-Source_WTF_wtf_Assertions.h,v 1.1 2021/01/12 15:21:31 jperkin Exp $
679 Use regular static_assert on SunOS.
681 --- Source/WTF/wtf/Assertions.h.orig 2022-10-19 08:11:34 UTC
682 +++ Source/WTF/wtf/Assertions.h
683 @@ -473,7 +473,7 @@ constexpr bool assertionFailureDueToUnre
686 #ifndef COMPILE_ASSERT
687 -#if COMPILER_SUPPORTS(C_STATIC_ASSERT)
688 +#if COMPILER_SUPPORTS(C_STATIC_ASSERT) && !defined(__sun)
689 /* Unlike static_assert below, this also works in plain C code. */
690 #define COMPILE_ASSERT(exp, name) _Static_assert((exp), #name)
694 [FILE:638:patches/patch-Source_WTF_wtf_FastMalloc.cpp]
695 --- Source/WTF/wtf/FastMalloc.cpp.orig 2022-09-14 11:58:10 UTC
696 +++ Source/WTF/wtf/FastMalloc.cpp
697 @@ -201,7 +201,11 @@ void* fastAlignedMalloc(size_t alignment
699 ASSERT_IS_WITHIN_LIMIT(size);
702 + p = memalign(alignment, size);
704 posix_memalign(&p, alignment, size);
709 @@ -211,7 +215,11 @@ void* tryFastAlignedMalloc(size_t alignm
711 FAIL_IF_EXCEEDS_LIMIT(size);
714 + p = memalign(alignment, size);
716 posix_memalign(&p, alignment, size);
723 [FILE:502:patches/patch-Source_WTF_wtf_FileSystem.cpp]
724 $NetBSD: patch-Source_WTF_wtf_FileSystem.cpp,v 1.3 2020/09/11 14:47:35 leot Exp $
726 Support MAP_FILE if unavailable.
728 --- Source/WTF/wtf/FileSystem.cpp.orig 2022-09-08 11:51:52 UTC
729 +++ Source/WTF/wtf/FileSystem.cpp
730 @@ -369,6 +369,9 @@ bool MappedFileData::mapFileHandle(Platf
737 void* data = mmap(0, size, pageProtection, MAP_FILE | (mapMode == MappedFileMode::Shared ? MAP_SHARED : MAP_PRIVATE), fd, 0);
739 if (data == MAP_FAILED) {
742 [FILE:534:patches/patch-Source_WTF_wtf_MemoryPressureHandler.cpp]
743 --- Source/WTF/wtf/MemoryPressureHandler.cpp.orig 2022-09-16 06:02:57 UTC
744 +++ Source/WTF/wtf/MemoryPressureHandler.cpp
745 @@ -56,7 +56,7 @@ MemoryPressureHandler& MemoryPressureHan
748 MemoryPressureHandler::MemoryPressureHandler()
749 -#if OS(LINUX) || OS(FREEBSD)
750 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__)
751 : m_holdOffTimer(RunLoop::main(), this, &MemoryPressureHandler::holdOffTimerFired)
753 : m_windowsMeasurementTimer(RunLoop::main(), this, &MemoryPressureHandler::windowsMeasurementTimerFired)
756 [FILE:644:patches/patch-Source_WTF_wtf_MemoryPressureHandler.h]
757 --- Source/WTF/wtf/MemoryPressureHandler.h.orig 2022-08-31 07:59:55 UTC
758 +++ Source/WTF/wtf/MemoryPressureHandler.h
759 @@ -81,7 +81,7 @@ public:
761 WTF_EXPORT_PRIVATE void setShouldUsePeriodicMemoryMonitor(bool);
763 -#if OS(LINUX) || OS(FREEBSD)
764 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__)
765 WTF_EXPORT_PRIVATE void triggerMemoryPressureEvent(bool isCritical);
768 @@ -277,7 +277,7 @@ private:
769 Win32Handle m_lowMemoryHandle;
772 -#if OS(LINUX) || OS(FREEBSD)
773 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__)
774 RunLoop::Timer<MemoryPressureHandler> m_holdOffTimer;
775 void holdOffTimerFired();
779 [FILE:326:patches/patch-Source_WTF_wtf_NumberOfCores.cpp]
780 --- Source/WTF/wtf/NumberOfCores.cpp.orig 2022-08-31 07:59:55 UTC
781 +++ Source/WTF/wtf/NumberOfCores.cpp
784 #include <sys/sysctl.h>
785 #elif OS(LINUX) || OS(AIX) || OS(OPENBSD) || OS(NETBSD) || OS(FREEBSD)
786 +#include <stdio.h> // sscanf
792 [FILE:390:patches/patch-Source_WTF_wtf_PlatformGTK.cmake]
793 --- Source/WTF/wtf/PlatformGTK.cmake.orig 2022-09-14 11:58:10 UTC
794 +++ Source/WTF/wtf/PlatformGTK.cmake
795 @@ -61,7 +61,7 @@ if (CMAKE_SYSTEM_NAME MATCHES "Linux")
797 unix/MemoryPressureHandlerUnix.cpp
799 -elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
800 +elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD|DragonFly")
801 list(APPEND WTF_SOURCES
802 generic/MemoryFootprintGeneric.cpp
806 [FILE:582:patches/patch-Source_WTF_wtf_StackBounds.cpp]
807 $NetBSD: patch-Source_WTF_wtf_StackBounds.cpp,v 1.2 2018/10/24 18:31:07 leot Exp $
809 SunOS does not have pthread_getattr_np.
811 --- Source/WTF/wtf/StackBounds.cpp.orig 2022-08-31 07:59:55 UTC
812 +++ Source/WTF/wtf/StackBounds.cpp
813 @@ -98,6 +98,7 @@ StackBounds StackBounds::newThreadStackB
814 #if HAVE(PTHREAD_NP_H) || OS(NETBSD)
815 // e.g. on FreeBSD 5.4, neundorf@kde.org
816 pthread_attr_get_np(thread, &sattr);
817 +#elif defined(__sun__)
819 // FIXME: this function is non-portable; other POSIX systems may have different np alternatives
820 pthread_getattr_np(thread, &sattr);
823 [FILE:1418:patches/patch-Source_WTF_wtf_unix_MemoryPressureHandlerUnix.cpp]
824 --- Source/WTF/wtf/unix/MemoryPressureHandlerUnix.cpp.orig 2022-08-31 07:59:55 UTC
825 +++ Source/WTF/wtf/unix/MemoryPressureHandlerUnix.cpp
828 #include <wtf/MemoryPressureHandler.h>
830 +#if OS(FREEBSD) || defined(__DragonFly__)
836 #include <wtf/Logging.h>
837 #include <wtf/MainThread.h>
841 #include <wtf/linux/CurrentProcessMemoryStatus.h>
843 +#elif OS(FREEBSD) || defined(__DragonFly__)
844 #include <sys/sysctl.h>
845 #include <sys/types.h>
846 #include <sys/user.h>
847 @@ -112,7 +116,7 @@ static size_t processMemoryUsage()
848 ProcessMemoryStatus memoryStatus;
849 currentProcessMemoryStatus(memoryStatus);
850 return (memoryStatus.resident - memoryStatus.shared);
852 +#elif OS(FREEBSD) || defined(__DragonFly__)
853 static size_t pageSize = sysconf(_SC_PAGE_SIZE);
854 struct kinfo_proc info;
855 size_t infolen = sizeof(info);
856 @@ -126,7 +130,11 @@ static size_t processMemoryUsage()
857 if (sysctl(mib, 4, &info, &infolen, nullptr, 0))
860 +# ifdef __DragonFly__
861 + return static_cast<size_t>(info.kp_vm_rssize - info.kp_vm_tsize) * pageSize;
863 return static_cast<size_t>(info.ki_rssize - info.ki_tsize) * pageSize;
866 #error "Missing a platform specific way of determining the memory usage"
870 [FILE:848:patches/patch-Source_WebCore_Modules_fetch_FetchBodyConsumer.cpp]
871 --- Source/WebCore/Modules/fetch/FetchBodyConsumer.cpp.orig 2022-09-14 11:58:10 UTC
872 +++ Source/WebCore/Modules/fetch/FetchBodyConsumer.cpp
874 #include <wtf/StringExtras.h>
875 #include <wtf/URLParser.h>
878 +static void *memmem(
879 + const void *big, size_t big_len,
880 + const void *little, size_t little_len)
882 + const char *bp = (const char *)big;
883 + const char *lp = (const char *)little;
886 + if (big_len < little_len || little_len == 0 || big_len == 0)
889 + while (big_len > 0) {
890 + for (l = 0; l < little_len; l++) {
891 + if (bp[l] != lp[l])
894 + if (l == little_len)
905 static inline Ref<Blob> blobFromData(ScriptExecutionContext* context, Vector<uint8_t>&& data, const String& contentType)
908 [FILE:610:patches/patch-Source_WebCore_platform_graphics_cpu_arm_filters_FELightingNEON.cpp]
909 --- Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp.orig 2022-08-31 07:59:56 UTC
910 +++ Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp
911 @@ -403,7 +403,7 @@ TOSTRING(neonDrawLighting) ":" NL
912 "vmin.f32 " TMP2_D0 ", " TMP2_D0 ", " CONST_ONE_HI_D NL
913 "vmul.f32 " TMP3_Q ", " COLOR_Q ", " TMP2_D0 "[1]" NL
914 "vcvt.u32.f32 " TMP3_Q ", " TMP3_Q NL
915 - "vmov.u32 r2, r3, " TMP3_S0 ", " TMP3_S1 NL
916 + "vmov r2, r3, " TMP3_S0 ", " TMP3_S1 NL
917 // The color values are stored in-place.
918 "strb r2, [" PIXELS_R ", #-11]" NL
919 "strb r3, [" PIXELS_R ", #-10]" NL
922 [FILE:323:patches/patch-Source_WebCore_platform_network_DNS.h]
923 --- Source/WebCore/platform/network/DNS.h.orig 2022-08-31 07:59:56 UTC
924 +++ Source/WebCore/platform/network/DNS.h
926 #include <ws2tcpip.h>
928 #include <netinet/in.h>
929 +# if defined __DragonFly__ || defined __FreeBSD__ || defined __sun__
930 +# include <sys/socket.h>
937 [FILE:336:patches/patch-Source_WebDriver_PlatformGTK.cmake]
938 --- Source/WebDriver/PlatformGTK.cmake.orig 2022-08-31 07:59:56 UTC
939 +++ Source/WebDriver/PlatformGTK.cmake
940 @@ -5,6 +5,7 @@ add_definitions(-DLIBEXECDIR="${CMAKE_IN
941 list(APPEND WebDriver_SYSTEM_INCLUDE_DIRECTORIES
942 "${GLIB_INCLUDE_DIRS}"
943 "${LIBSOUP_INCLUDE_DIRS}"
944 + "${ICU_INCLUDE_DIRS}"
947 list(APPEND WebDriver_SOURCES
950 [FILE:507:patches/patch-Source_WebKit_CMakeLists.txt]
951 $NetBSD: patch-Source_WebKit_CMakeLists.txt,v 1.1 2018/05/16 18:55:45 jperkin Exp $
953 SunOS requires libsocket.
955 --- Source/WebKit/CMakeLists.txt.orig 2022-08-31 07:59:56 UTC
956 +++ Source/WebKit/CMakeLists.txt
957 @@ -404,6 +404,10 @@ if (UNIX)
961 +if (CMAKE_SYSTEM_NAME MATCHES "SunOS")
962 + list(APPEND WebKit_LIBRARIES socket)
965 macro(ADD_WEBKIT_PREFIX_HEADER _target)
966 if (WebKit_USE_PREFIX_HEADER)
967 get_target_property(OLD_COMPILE_FLAGS ${_target} COMPILE_FLAGS)
970 [FILE:551:patches/patch-Source_WebKit_PlatformGTK.cmake]
971 --- Source/WebKit/PlatformGTK.cmake.orig 2022-09-14 11:58:10 UTC
972 +++ Source/WebKit/PlatformGTK.cmake
973 @@ -42,7 +42,7 @@ add_definitions(-DLOCALEDIR="${CMAKE_INS
974 add_definitions(-DDATADIR="${CMAKE_INSTALL_FULL_DATADIR}")
975 add_definitions(-DLIBDIR="${LIB_INSTALL_DIR}")
977 -if (NOT DEVELOPER_MODE AND NOT CMAKE_SYSTEM_NAME MATCHES "Darwin")
978 +if (NOT DEVELOPER_MODE AND NOT CMAKE_SYSTEM_NAME MATCHES "Darwin|SunOS")
979 WEBKIT_ADD_TARGET_PROPERTIES(WebKit LINK_FLAGS "-Wl,--version-script,${CMAKE_CURRENT_SOURCE_DIR}/webkitglib-symbols.map")
984 [FILE:1241:patches/patch-Source_WebKit_Platform_IPC_unix_ConnectionUnix.cpp]
985 $NetBSD: patch-Source_WebKit_Platform_IPC_unix_ConnectionUnix.cpp,v 1.3 2021/01/12 15:21:31 jperkin Exp $
987 On NetBSD we see "Error sending IPC message: Message too long" due to
988 the use of sendmsg with a large message body (EMSGSIZE).
990 WebKit already uses shared memory to communicate the message body when
991 the message is too large, so force it to always use this method to avoid
992 encountering EMSGSIZE.
994 --- Source/WebKit/Platform/IPC/unix/ConnectionUnix.cpp.orig 2022-08-31 07:59:56 UTC
995 +++ Source/WebKit/Platform/IPC/unix/ConnectionUnix.cpp
998 #endif // SOCK_SEQPACKET
1000 +#ifndef MSG_NOSIGNAL
1001 +#define MSG_NOSIGNAL 0
1006 static const size_t messageMaxSize = 4096;
1007 @@ -442,8 +446,12 @@ bool Connection::sendOutgoingMessage(Uni
1012 size_t messageSizeWithBodyInline = sizeof(MessageInfo) + (outputMessage.attachments().size() * sizeof(AttachmentInfo)) + outputMessage.bodySize();
1013 if (messageSizeWithBodyInline > messageMaxSize && outputMessage.bodySize()) {
1017 RefPtr<WebKit::SharedMemory> oolMessageBody = WebKit::SharedMemory::allocate(encoder->bufferSize());
1018 if (!oolMessageBody)
1022 [FILE:714:patches/patch-Source_WebKit_Platform_unix_SharedMemoryUnix.cpp]
1023 --- Source/WebKit/Platform/unix/SharedMemoryUnix.cpp.orig 2022-09-14 11:58:10 UTC
1024 +++ Source/WebKit/Platform/unix/SharedMemoryUnix.cpp
1025 @@ -148,7 +148,13 @@ static int createSharedMemory()
1028 for (int tries = 0; fileDescriptor == -1 && tries < 10; ++tries) {
1029 - auto name = makeString("/WK2SharedMemory.", static_cast<unsigned>(WTF::randomNumber() * (std::numeric_limits<unsigned>::max() + 1.0)));
1031 +#ifdef __DragonFly__
1032 + makeString("/tmp/WK2SharedMemory.",
1034 + makeString("/WK2SharedMemory.",
1036 + static_cast<unsigned>(WTF::randomNumber() * (std::numeric_limits<unsigned>::max() + 1.0)));
1037 tempName = name.utf8();
1042 [FILE:1432:patches/patch-Source_bmalloc_bmalloc_AvailableMemory.cpp]
1043 --- Source/bmalloc/bmalloc/AvailableMemory.cpp.orig 2022-08-31 07:59:57 UTC
1044 +++ Source/bmalloc/bmalloc/AvailableMemory.cpp
1046 #import <mach/mach_error.h>
1049 -#if BOS(FREEBSD) || BOS(LINUX)
1051 #include <sys/sysinfo.h>
1054 @@ -161,7 +161,13 @@ static size_t computeAvailableMemory()
1055 // Round up the memory size to a multiple of 128MB because max_mem may not be exactly 512MB
1056 // (for example) and we have code that depends on those boundaries.
1057 return ((sizeAccordingToKernel + multiple - 1) / multiple) * multiple;
1058 -#elif BOS(FREEBSD) || BOS(LINUX)
1060 + long pages = sysconf(_SC_PHYS_PAGES);
1061 + long pageSize = sysconf(_SC_PAGE_SIZE);
1062 + if (pages == -1 || pageSize == -1)
1063 + return availableMemoryGuess;
1064 + return pages * pageSize;
1066 struct sysinfo info;
1067 if (!sysinfo(&info))
1068 return info.totalram * info.mem_unit;
1069 @@ -212,7 +218,11 @@ MemoryStatus memoryStatus()
1071 size_t memoryFootprint = 0;
1072 if (!sysctl(mib, 4, &info, &infolen, nullptr, 0))
1073 +# ifdef __DragonFly__
1074 + memoryFootprint = static_cast<size_t>(info.kp_vm_rssize) * vmPageSize();
1076 memoryFootprint = static_cast<size_t>(info.ki_rssize) * vmPageSize();
1080 double percentInUse = static_cast<double>(memoryFootprint) / static_cast<double>(availableMemory());
1083 [FILE:1294:patches/patch-Source_bmalloc_libpas_src_libpas_pas__probabilistic__guard__malloc__allocator.c]
1084 --- Source/bmalloc/libpas/src/libpas/pas_probabilistic_guard_malloc_allocator.c.orig 2022-09-08 11:51:52 UTC
1085 +++ Source/bmalloc/libpas/src/libpas/pas_probabilistic_guard_malloc_allocator.c
1086 @@ -103,11 +103,13 @@ pas_allocation_result pas_probabilistic_
1088 // ensure physical addresses are released
1089 // TODO: investigate using MADV_FREE_REUSABLE instead
1090 + /* Linux 4.5, Ravenports uses 4.4
1091 int madvise_res = madvise((void *) upper_guard_page, page_size, MADV_FREE);
1092 PAS_ASSERT(!madvise_res);
1094 madvise_res = madvise((void *) lower_guard_page, page_size, MADV_FREE);
1095 PAS_ASSERT(!madvise_res);
1098 // the key is the location where the user's starting memory address is located.
1099 // allocations are right aligned, so the end backs up to the upper guard page.
1100 @@ -166,8 +168,10 @@ void pas_probabilistic_guard_malloc_deal
1102 // ensure physical addresses are released
1103 // TODO: investigate using MADV_FREE_REUSABLE instead
1104 + /* Requires linux 4.5
1105 int madvise_res = madvise((void *) value->start_of_data_pages, value->size_of_data_pages, MADV_FREE);
1106 PAS_ASSERT(!madvise_res);
1109 bool removed = pas_ptr_hash_map_remove(&pas_pgm_hash_map, key, NULL, &pas_large_utility_free_heap_allocation_config);
1110 PAS_ASSERT(removed);
1113 [FILE:971:patches/patch-Source_cmake_OptionsCommon.cmake]
1114 --- Source/cmake/OptionsCommon.cmake.orig 2022-08-31 07:59:57 UTC
1115 +++ Source/cmake/OptionsCommon.cmake
1116 @@ -128,10 +128,10 @@ endif ()
1117 option(USE_THIN_ARCHIVES "Produce all static libraries as thin archives" ${USE_THIN_ARCHIVES_DEFAULT})
1119 if (USE_THIN_ARCHIVES)
1120 - set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> crT <TARGET> <LINK_FLAGS> <OBJECTS>")
1121 - set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> crT <TARGET> <LINK_FLAGS> <OBJECTS>")
1122 - set(CMAKE_CXX_ARCHIVE_APPEND "<CMAKE_AR> rT <TARGET> <LINK_FLAGS> <OBJECTS>")
1123 - set(CMAKE_C_ARCHIVE_APPEND "<CMAKE_AR> rT <TARGET> <LINK_FLAGS> <OBJECTS>")
1124 + set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS>")
1125 + set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS>")
1126 + set(CMAKE_CXX_ARCHIVE_APPEND "<CMAKE_AR> r <TARGET> <LINK_FLAGS> <OBJECTS>")
1127 + set(CMAKE_C_ARCHIVE_APPEND "<CMAKE_AR> r <TARGET> <LINK_FLAGS> <OBJECTS>")
1130 set(ENABLE_DEBUG_FISSION_DEFAULT OFF)
1133 [FILE:520:patches/patch-Source_cmake_WebKitCompilerFlags.cmake]
1134 --- Source/cmake/WebKitCompilerFlags.cmake.orig 2022-08-31 07:59:57 UTC
1135 +++ Source/cmake/WebKitCompilerFlags.cmake
1136 @@ -252,7 +252,7 @@ if (NOT MSVC)
1137 string(REGEX MATCHALL "-fsanitize=[^ ]*" ENABLED_COMPILER_SANITIZERS ${CMAKE_CXX_FLAGS})
1140 -if (UNIX AND NOT APPLE AND NOT ENABLED_COMPILER_SANITIZERS)
1141 +if (UNIX AND NOT APPLE AND NOT ENABLED_COMPILER_SANITIZERS AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
1142 set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined ${CMAKE_SHARED_LINKER_FLAGS}")
1147 [FILE:358:patches/patch-Tools_MiniBrowser_gtk_CMakeLists.txt]
1148 --- Tools/MiniBrowser/gtk/CMakeLists.txt.orig 2022-08-31 07:59:57 UTC
1149 +++ Tools/MiniBrowser/gtk/CMakeLists.txt
1150 @@ -41,6 +41,10 @@ set(MiniBrowser_PRIVATE_LIBRARIES
1154 +if (CMAKE_SYSTEM_NAME MATCHES "SunOS")
1155 + list(APPEND MiniBrowser_PRIVATE_LIBRARIES intl)
1158 set(MiniBrowser_DEPENDENCIES