1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
6 VARIANTS= api40 api41 api60
7 SDESC[api40]= Opensource browser engine using GTK+3 (API 4.0)
8 SDESC[api41]= Opensource browser engine using GTK+3 (API 4.1)
9 SDESC[api60]= Opensource browser engine using GTK4 (API 6.0)
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.40.0.tar.xz:main
18 SPKGS[api40]= complete
22 SPKGS[api41]= complete
26 SPKGS[api60]= complete
31 OPTIONS_AVAILABLE= API40 API41 API60
32 OPTIONS_STANDARD= none
33 VOPTS[api40]= API40=ON API41=OFF API60=OFF
34 VOPTS[api41]= API40=OFF API41=ON API60=OFF
35 VOPTS[api60]= API40=OFF API41=OFF API60=ON
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
48 unifdef:primary:standard
49 BUILDRUN_DEPENDS= enchant:primary:standard
51 libsecret:primary:standard
52 libnotify:primary:standard
53 hyphen:single:standard
56 libgcrypt:single:standard
57 gnutls:primary:standard
58 libtasn1:primary:standard
59 geoclue:primary:standard
61 gstreamer1-plugins-base:primary:standard
62 openjpeg:single:standard
63 lcms2:primary:standard
64 libavif:primary:standard
66 USES= png mesa cmake pkgconfig sqlite bison perl:build
67 python:build ruby:build fontconfig jpeg cpe
68 GNOME_COMPONENTS= gdkpixbuf introspection libxslt
69 XORG_COMPONENTS= x11 xcomposite xdamage xext xrender xt ice xfixes
71 DISTNAME= webkitgtk-2.40.0
73 LICENSE= GPLv2+:primary BSD3CLAUSE:primary
74 LICENSE_TERMS= primary:{{WRKDIR}}/TERMS
75 LICENSE_FILE= GPLv2+:stock
76 BSD3CLAUSE:{{WRKDIR}}/LICENSE_BSD
77 LICENSE_AWK= BSD3CLAUSE:"^$$"
79 LICENSE_SOURCE= BSD3CLAUSE:{{WRKSRC}}/Source/WebCore/css/parser/MediaQueryBlockWatcher.h
80 TERMS:{{WRKSRC}}/Source/WebCore/style/StyleScope.cpp
83 CPE_PRODUCT= webkitgtk
85 FPC_EQUIVALENT= www/webkit2-gtk3
87 CONFIGURE_ENV= XDG_CACHE_HOME={{WRKDIR}}
89 INSTALL_TARGET= install
90 INSTALL_REQ_TOOLCHAIN= yes
91 PLIST_SUB= INTRO="@comment "
93 CXXFLAGS= -DFIXED_EXECUTABLE_MEMORY_POOL_SIZE_IN_MB=32
94 CMAKE_ARGS= -DPORT=GTK
95 -DENABLE_GEOLOCATION:BOOL=ON
96 -DENABLE_GLES2:BOOL=ON
97 -DENABLE_MINIBROWSER:BOOL=ON
98 -DENABLE_WAYLAND_TARGET:BOOL=OFF
99 -DENABLE_BUBBLEWRAP_SANDBOX:BOOL=OFF
100 -DENABLE_GAMEPAD:BOOL=OFF
101 -DENABLE_INTROSPECTION:BOOL=OFF
102 -DENABLE_JOURNALD_LOG:BOOL=OFF
103 -DSUPPRESS_ASSERT:BOOL=ON
104 -DUSE_SYSTEMD:BOOL=OFF
105 -DUSE_GSTREAMER_GL:BOOL=OFF
106 -DUSE_GSTREAMER_TRANSCODER:BOOL=OFF
108 VAR_OPSYS[sunos]= CMAKE_ARGS=-DUSE_LD_GOLD:BOOL=OFF
110 [API40].DESCRIPTION= Build WebKit2 API 4.0 variant
111 [API40].BUILDRUN_DEPENDS_ON= libsoup-2.4:primary:standard
112 [API40].BUILD_DEPENDS_ON= libsoup-2.4:dev:standard
113 [API40].CMAKE_ARGS_ON= -DUSE_SOUP2=ON
114 [API40].GNOME_COMPONENTS_ON= gtk3
115 [API40].PLIST_SUB_ON= JSSOVERSION=18.22.9
122 [API41].DESCRIPTION= Build WebKit2 API 4.1 variant
123 [API41].BUILDRUN_DEPENDS_ON= libsoup:primary:standard
124 [API41].BUILD_DEPENDS_ON= libsoup:dev:standard
125 [API41].GNOME_COMPONENTS_ON= gtk3
126 [API41].PLIST_SUB_ON= JSSOVERSION=0.3.9
133 [API60].DESCRIPTION= Build WebKit2 API 6.0 variant
134 [API60].BUILDRUN_DEPENDS_ON= libsoup:primary:standard
135 libepoxy:dev:standard
136 [API60].BUILD_DEPENDS_ON= libsoup:dev:standard
137 libepoxy:dev:standard
138 [API60].CMAKE_ARGS_ON= -DUSE_GTK4=ON
139 [API60].GNOME_COMPONENTS_ON= gtk4
140 [API60].PLIST_SUB_ON= JSSOVERSION=1.0.2
148 echo 'add_compile_definitions("U_DEFINE_FALSE_AND_TRUE=1")' \
149 >> ${WRKSRC}/Source/WTF/wtf/CMakeLists.txt
151 post-install-API40-ON:
152 (cd ${STAGEDIR}${PREFIX}/bin && \
153 ${LN} -s ../libexec/webkit2gtk-4.0/jsc jsc-4.0 && \
154 ${LN} -s ../libexec/webkit2gtk-4.0/MiniBrowser MiniBrowser-4.0)
155 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/webkit2gtk-4.0/injected-bundle/*.so
156 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/webkit2gtk-4.0/*
157 ${MV} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver \
158 ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver-4.0
160 post-install-API60-ON:
161 (cd ${STAGEDIR}${PREFIX}/bin && \
162 ${LN} -s ../libexec/webkit2gtk-6.0/jsc jsc-6.0 && \
163 ${LN} -s ../libexec/webkit2gtk-6.0/MiniBrowser MiniBrowser-6.0)
164 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/webkitgtk-6.0/injected-bundle/*.so
165 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/webkitgtk-6.0/*
166 ${MV} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver \
167 ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver-6.0
170 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so.*.*
171 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver
173 post-install-API41-ON:
174 (cd ${STAGEDIR}${PREFIX}/bin && \
175 ${LN} -s ../libexec/webkit2gtk-4.1/jsc jsc-4.1 && \
176 ${LN} -s ../libexec/webkit2gtk-4.1/MiniBrowser MiniBrowser-4.1)
177 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/webkit2gtk-4.1/injected-bundle/*.so
178 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/webkit2gtk-4.1/*
179 ${MV} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver \
180 ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver-4.1
183 ${REINPLACE_CMD} -e '/USE_FILE_LOCK/ s|1|0|' \
184 ${WRKSRC}/Source/WTF/wtf/PlatformUse.h \
185 ${WRKSRC}/Source/WebCore/config.h
187 [FILE:574:descriptions/desc.primary]
188 WebKitGTK+ is a full-featured port of the WebKit rendering engine, suitable
189 for projects requiring any kind of web integration, from hybrid HTML/CSS
190 applications to full-fledged web browsers. It offers WebKit's full
191 functionality and is useful in a wide range of systems from desktop
192 computers to embedded systems like phones, tablets, and televisions.
194 WebKitGTK+ is made by a lively community of developers and designers,
195 who hope to bring the web platform to everyone. It's the official web
196 engine of the GNOME platform and is used in browsers such as Epiphany
201 a4607ea1bf89669e89b1cb2c63faaec513f93de09b6ae60cc71d6a8aab7ab393 40042140 webkitgtk-2.40.0.tar.xz
204 [FILE:660:manifests/plist.primary]
205 %%INTRO%%lib/girepository-1.0/
206 JavaScriptCore-%%WKAPI%%.typelib
207 WebKit2-%%WKAPI%%.typelib
208 WebKit2WebExtension-%%WKAPI%%.typelib
209 %%INTRO%%share/gir-1.0/
210 JavaScriptCore-%%WKAPI%%.gir
211 WebKit2-%%WKAPI%%.gir
212 WebKit2WebExtension-%%WKAPI%%.gir
214 MiniBrowser-%%WKAPI%%
215 WebKitWebDriver-%%WKAPI%%
218 libjavascriptcoregtk-%%WKAPI%%.so.%%JSSOMAJOR%%
219 libjavascriptcoregtk-%%WKAPI%%.so.%%JSSOVERSION%%
220 libwebkit2gtk-%%WKAPI%%.so.%%SOMAJOR%%
221 libwebkit2gtk-%%WKAPI%%.so.%%SOVERSION%%
222 lib/webkit2gtk-%%WKAPI%%/injected-bundle/libwebkit2gtkinjectedbundle.so
223 libexec/webkit2gtk-%%WKAPI%%/
230 [FILE:2619:manifests/plist.nls]
231 share/locale/ar/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
232 share/locale/as/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
233 share/locale/bg/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
234 share/locale/ca/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
235 share/locale/cs/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
236 share/locale/da/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
237 share/locale/de/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
238 share/locale/el/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
239 share/locale/en_CA/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
240 share/locale/en_GB/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
241 share/locale/eo/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
242 share/locale/es/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
243 share/locale/et/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
244 share/locale/eu/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
245 share/locale/fi/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
246 share/locale/fr/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
247 share/locale/gl/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
248 share/locale/gu/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
249 share/locale/he/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
250 share/locale/hi/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
251 share/locale/hr/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
252 share/locale/hu/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
253 share/locale/id/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
254 share/locale/it/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
255 share/locale/ja/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
256 share/locale/ka/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
257 share/locale/kn/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
258 share/locale/ko/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
259 share/locale/lt/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
260 share/locale/lv/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
261 share/locale/ml/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
262 share/locale/mr/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
263 share/locale/nb/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
264 share/locale/nl/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
265 share/locale/or/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
266 share/locale/pa/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
267 share/locale/pl/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
268 share/locale/pt/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
269 share/locale/pt_BR/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
270 share/locale/ro/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
271 share/locale/ru/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
272 share/locale/sl/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
273 share/locale/sr/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
274 share/locale/sr@latin/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
275 share/locale/sv/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
276 share/locale/ta/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
277 share/locale/te/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
278 share/locale/tr/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
279 share/locale/uk/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
280 share/locale/vi/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
281 share/locale/zh_CN/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
284 [FILE:5822:manifests/plist.dev]
285 include/webkitgtk-%%WKAPI%%/JavaScriptCore/
294 include/webkitgtk-%%WKAPI%%/jsc/
306 include/webkitgtk-%%WKAPI%%/webkit/
307 WebKitApplicationInfo.h
308 WebKitAuthenticationRequest.h
310 WebKitAutomationSession.h
311 WebKitBackForwardList.h
312 WebKitBackForwardListItem.h
313 WebKitColorChooserRequest.h
314 WebKitConsoleMessage.h
316 WebKitContextMenuActions.h
317 WebKitContextMenuItem.h
318 WebKitCookieManager.h
321 WebKitDeviceInfoPermissionRequest.h
323 WebKitEditingCommands.h
327 WebKitFaviconDatabase.h
328 WebKitFileChooserRequest.h
329 WebKitFindController.h
330 WebKitFormSubmissionRequest.h
332 WebKitGeolocationManager.h
333 WebKitGeolocationPermissionRequest.h
334 WebKitHitTestResult.h
335 WebKitInputMethodContext.h
336 WebKitInstallMissingMediaPluginsPermissionRequest.h
337 WebKitJavascriptResult.h
338 WebKitMediaKeySystemPermissionRequest.h
339 WebKitMemoryPressureSettings.h
341 WebKitNavigationAction.h
342 WebKitNavigationPolicyDecision.h
343 WebKitNetworkProxySettings.h
345 WebKitNotificationPermissionRequest.h
347 WebKitOptionMenuItem.h
348 WebKitPermissionRequest.h
349 WebKitPermissionStateQuery.h
351 WebKitPointerLockPermissionRequest.h
352 WebKitPolicyDecision.h
353 WebKitPrintCustomWidget.h
354 WebKitPrintOperation.h
355 WebKitResponsePolicyDecision.h
358 WebKitSecurityManager.h
359 WebKitSecurityOrigin.h
363 WebKitURISchemeRequest.h
364 WebKitURISchemeResponse.h
367 WebKitUserContentFilterStore.h
368 WebKitUserContentManager.h
369 WebKitUserMediaPermissionRequest.h
375 WebKitWebExtensionAutocleanups.h
376 WebKitWebFormManager.h
377 WebKitWebHitTestResult.h
380 WebKitWebProcessEnumTypes.h
384 WebKitWebViewSessionState.h
386 WebKitWebsiteDataAccessPermissionRequest.h
387 WebKitWebsiteDataManager.h
388 WebKitWebsitePolicies.h
389 WebKitWindowProperties.h
390 include/webkitgtk-%%WKAPI%%/webkit2/
391 webkit-web-extension.h
393 include/webkitgtk-%%WKAPI%%/webkitdom/
396 WebKitDOMCDATASection.h
398 WebKitDOMCSSRuleList.h
399 WebKitDOMCSSStyleDeclaration.h
400 WebKitDOMCSSStyleSheet.h
402 WebKitDOMCharacterData.h
403 WebKitDOMClientRect.h
404 WebKitDOMClientRectList.h
407 WebKitDOMCustomUnstable.h
408 WebKitDOMDOMImplementation.h
409 WebKitDOMDOMSelection.h
410 WebKitDOMDOMTokenList.h
412 WebKitDOMDOMWindowUnstable.h
413 WebKitDOMDeprecated.h
415 WebKitDOMDocumentFragment.h
416 WebKitDOMDocumentFragmentUnstable.h
417 WebKitDOMDocumentType.h
418 WebKitDOMDocumentUnstable.h
420 WebKitDOMElementUnstable.h
422 WebKitDOMEventTarget.h
425 WebKitDOMHTMLAnchorElement.h
426 WebKitDOMHTMLAppletElement.h
427 WebKitDOMHTMLAreaElement.h
428 WebKitDOMHTMLBRElement.h
429 WebKitDOMHTMLBaseElement.h
430 WebKitDOMHTMLBodyElement.h
431 WebKitDOMHTMLButtonElement.h
432 WebKitDOMHTMLCanvasElement.h
433 WebKitDOMHTMLCollection.h
434 WebKitDOMHTMLDListElement.h
435 WebKitDOMHTMLDirectoryElement.h
436 WebKitDOMHTMLDivElement.h
437 WebKitDOMHTMLDocument.h
438 WebKitDOMHTMLElement.h
439 WebKitDOMHTMLElementUnstable.h
440 WebKitDOMHTMLEmbedElement.h
441 WebKitDOMHTMLFieldSetElement.h
442 WebKitDOMHTMLFontElement.h
443 WebKitDOMHTMLFormElement.h
444 WebKitDOMHTMLFrameElement.h
445 WebKitDOMHTMLFrameSetElement.h
446 WebKitDOMHTMLHRElement.h
447 WebKitDOMHTMLHeadElement.h
448 WebKitDOMHTMLHeadingElement.h
449 WebKitDOMHTMLHtmlElement.h
450 WebKitDOMHTMLIFrameElement.h
451 WebKitDOMHTMLImageElement.h
452 WebKitDOMHTMLInputElement.h
453 WebKitDOMHTMLLIElement.h
454 WebKitDOMHTMLLabelElement.h
455 WebKitDOMHTMLLegendElement.h
456 WebKitDOMHTMLLinkElement.h
457 WebKitDOMHTMLMapElement.h
458 WebKitDOMHTMLMarqueeElement.h
459 WebKitDOMHTMLMenuElement.h
460 WebKitDOMHTMLMetaElement.h
461 WebKitDOMHTMLModElement.h
462 WebKitDOMHTMLOListElement.h
463 WebKitDOMHTMLObjectElement.h
464 WebKitDOMHTMLOptGroupElement.h
465 WebKitDOMHTMLOptionElement.h
466 WebKitDOMHTMLOptionsCollection.h
467 WebKitDOMHTMLParagraphElement.h
468 WebKitDOMHTMLParamElement.h
469 WebKitDOMHTMLPreElement.h
470 WebKitDOMHTMLQuoteElement.h
471 WebKitDOMHTMLScriptElement.h
472 WebKitDOMHTMLSelectElement.h
473 WebKitDOMHTMLStyleElement.h
474 WebKitDOMHTMLTableCaptionElement.h
475 WebKitDOMHTMLTableCellElement.h
476 WebKitDOMHTMLTableColElement.h
477 WebKitDOMHTMLTableElement.h
478 WebKitDOMHTMLTableRowElement.h
479 WebKitDOMHTMLTableSectionElement.h
480 WebKitDOMHTMLTextAreaElement.h
481 WebKitDOMHTMLTitleElement.h
482 WebKitDOMHTMLUListElement.h
483 WebKitDOMKeyboardEvent.h
485 WebKitDOMMouseEvent.h
486 WebKitDOMNamedNodeMap.h
488 WebKitDOMNodeFilter.h
489 WebKitDOMNodeIterator.h
492 WebKitDOMProcessingInstruction.h
494 WebKitDOMRangeUnstable.h
495 WebKitDOMStyleSheet.h
496 WebKitDOMStyleSheetList.h
498 WebKitDOMTreeWalker.h
500 WebKitDOMWheelEvent.h
501 WebKitDOMXPathExpression.h
502 WebKitDOMXPathNSResolver.h
503 WebKitDOMXPathResult.h
505 webkitdomautocleanups.h
508 libjavascriptcoregtk-%%WKAPI%%.so
509 libwebkit2gtk-%%WKAPI%%.so
511 javascriptcoregtk-%%WKAPI%%.pc
512 webkit2gtk-%%WKAPI%%.pc
513 webkit2gtk-web-extension-%%WKAPI%%.pc
516 [FILE:601:manifests/plist.primary.api60]
517 %%INTRO%%lib/girepository-1.0/
518 JavaScriptCore-%%WKAPI%%.typelib
519 WebKit2-%%WKAPI%%.typelib
520 WebKit2WebExtension-%%WKAPI%%.typelib
521 %%INTRO%%share/gir-1.0/
522 JavaScriptCore-%%WKAPI%%.gir
523 WebKit2-%%WKAPI%%.gir
524 WebKit2WebExtension-%%WKAPI%%.gir
530 libjavascriptcoregtk-6.0.so.%%JSSOMAJOR%%
531 libjavascriptcoregtk-6.0.so.%%JSSOVERSION%%
532 libwebkitgtk-6.0.so.%%SOMAJOR%%
533 libwebkitgtk-6.0.so.%%SOVERSION%%
534 lib/webkitgtk-6.0/injected-bundle/libwebkitgtkinjectedbundle.so
535 libexec/webkitgtk-6.0/
542 [FILE:2409:manifests/plist.dev.api60]
543 include/webkitgtk-6.0/jsc/
554 include/webkitgtk-6.0/webkit/
555 WebKitApplicationInfo.h
556 WebKitAuthenticationRequest.h
558 WebKitAutomationSession.h
559 WebKitBackForwardList.h
560 WebKitBackForwardListItem.h
561 WebKitColorChooserRequest.h
563 WebKitContextMenuActions.h
564 WebKitContextMenuItem.h
565 WebKitCookieManager.h
568 WebKitDeviceInfoPermissionRequest.h
570 WebKitEditingCommands.h
574 WebKitFaviconDatabase.h
575 WebKitFileChooserRequest.h
576 WebKitFindController.h
577 WebKitFormSubmissionRequest.h
579 WebKitGeolocationManager.h
580 WebKitGeolocationPermissionRequest.h
581 WebKitHitTestResult.h
582 WebKitInputMethodContext.h
583 WebKitInstallMissingMediaPluginsPermissionRequest.h
584 WebKitMediaKeySystemPermissionRequest.h
585 WebKitMemoryPressureSettings.h
586 WebKitNavigationAction.h
587 WebKitNavigationPolicyDecision.h
588 WebKitNetworkProxySettings.h
589 WebKitNetworkSession.h
591 WebKitNotificationPermissionRequest.h
593 WebKitOptionMenuItem.h
594 WebKitPermissionRequest.h
595 WebKitPermissionStateQuery.h
596 WebKitPointerLockPermissionRequest.h
597 WebKitPolicyDecision.h
598 WebKitPrintOperation.h
599 WebKitResponsePolicyDecision.h
602 WebKitSecurityManager.h
603 WebKitSecurityOrigin.h
607 WebKitURISchemeRequest.h
608 WebKitURISchemeResponse.h
611 WebKitUserContentFilterStore.h
612 WebKitUserContentManager.h
613 WebKitUserMediaPermissionRequest.h
618 WebKitWebFormManager.h
619 WebKitWebHitTestResult.h
622 WebKitWebProcessEnumTypes.h
623 WebKitWebProcessExtension.h
627 WebKitWebViewSessionState.h
629 WebKitWebsiteDataAccessPermissionRequest.h
630 WebKitWebsiteDataManager.h
631 WebKitWebsitePolicies.h
632 WebKitWindowProperties.h
633 webkit-web-process-extension.h
636 libjavascriptcoregtk-6.0.so
639 javascriptcoregtk-6.0.pc
641 webkitgtk-web-process-extension-6.0.pc
644 [FILE:431:patches/patch-CMakeLists.txt]
645 --- CMakeLists.txt.orig 2023-02-20 09:21:40 UTC
647 @@ -27,6 +27,11 @@ if (ENABLE_API_TESTS)
651 +if (SUPPRESS_ASSERT)
652 + add_definitions(-DNDEBUG=1)
653 + add_definitions(-D__OPTIMIZE__)
656 # -----------------------------------------------------------------------------
657 # Add module directories
658 # -----------------------------------------------------------------------------
661 [FILE:534:patches/patch-Source_JavaScriptCore_assembler_ARM64Assembler.h]
662 --- Source/JavaScriptCore/assembler/ARM64Assembler.h.orig 2023-02-20 09:22:04 UTC
663 +++ Source/JavaScriptCore/assembler/ARM64Assembler.h
664 @@ -3674,6 +3674,8 @@ public:
665 sys_cache_control(kCacheFunctionPrepareForExecution, code, size);
667 zx_cache_flush(code, size, ZX_CACHE_FLUSH_INSN);
668 +#elif OS(FREEBSD) || OS(NETBSD)
669 + __clear_cache(code, reinterpret_cast<char*>(code) + size);
671 size_t page = pageSize();
672 uintptr_t current = reinterpret_cast<uintptr_t>(code);
675 [FILE:4034:patches/patch-Source_JavaScriptCore_runtime_MachineContext.h]
676 $NetBSD: patch-Source_JavaScriptCore_runtime_MachineContext.h,v 1.2 2021/05/13 08:20:58 leot Exp $
678 Add support for NetBSD.
680 --- Source/JavaScriptCore/runtime/MachineContext.h.orig 2023-02-20 09:22:06 UTC
681 +++ Source/JavaScriptCore/runtime/MachineContext.h
682 @@ -193,6 +193,22 @@ static inline void*& stackPointerImpl(mc
683 #error Unknown Architecture
689 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_UESP]);
691 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RSP]);
693 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_SP]);
695 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_SP]);
697 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_SP]);
699 +#error Unknown Architecture
702 #elif OS(FUCHSIA) || OS(LINUX)
705 @@ -338,6 +354,22 @@ static inline void*& framePointerImpl(mc
706 #error Unknown Architecture
712 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EBP]);
714 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RBP]);
716 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_FP]);
718 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_FP]);
720 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_S8]);
722 +#error Unknown Architecture
725 #elif OS(FUCHSIA) || OS(LINUX)
727 // The following sequence depends on glibc's sys/ucontext.h.
728 @@ -495,6 +527,22 @@ static inline void*& instructionPointerI
730 #error Unknown Architecture
736 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EIP]);
738 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RIP]);
740 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_PC]);
742 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_PC]);
744 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EPC]);
746 +#error Unknown Architecture
749 #elif OS(FUCHSIA) || OS(LINUX)
751 @@ -651,6 +699,22 @@ inline void*& argumentPointer<1>(mcontex
753 #error Unknown Architecture
759 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EDX]);
761 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RSI]);
763 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R1]);
765 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_X1]);
767 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_A1]);
769 +#error Unknown Architecture
772 #elif OS(FUCHSIA) || OS(LINUX)
774 @@ -774,6 +838,22 @@ inline void*& llintInstructionPointer(mc
778 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_ESI]);
780 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R8]);
782 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R8]);
784 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_X4]);
786 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_T4]);
788 +#error Unknown Architecture
794 return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_ESI]);
796 return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R8]);
799 [FILE:597:patches/patch-Source_ThirdParty_ANGLE_src_common_aligned__memory.cpp]
800 --- Source/ThirdParty/ANGLE/src/common/aligned_memory.cpp.orig 2023-02-20 09:22:06 UTC
801 +++ Source/ThirdParty/ANGLE/src/common/aligned_memory.cpp
802 @@ -33,7 +33,7 @@ void *AlignedAlloc(size_t size, size_t a
803 // memalign() on Android returns pointers which can safely be used with
804 // free(), so we can use it instead. Issue filed to document this:
805 // http://code.google.com/p/android/issues/detail?id=35391
806 -#elif defined(ANGLE_PLATFORM_ANDROID)
807 +#elif defined(ANGLE_PLATFORM_ANDROID) || defined(__sun__)
808 ptr = memalign(alignment, size);
810 if (posix_memalign(&ptr, alignment, size))
813 [FILE:561:patches/patch-Source_WTF_wtf_Assertions.h]
814 $NetBSD: patch-Source_WTF_wtf_Assertions.h,v 1.1 2021/01/12 15:21:31 jperkin Exp $
816 Use regular static_assert on SunOS.
818 --- Source/WTF/wtf/Assertions.h.orig 2023-02-20 09:22:13 UTC
819 +++ Source/WTF/wtf/Assertions.h
820 @@ -473,7 +473,7 @@ constexpr bool assertionFailureDueToUnre
823 #ifndef COMPILE_ASSERT
824 -#if COMPILER_SUPPORTS(C_STATIC_ASSERT)
825 +#if COMPILER_SUPPORTS(C_STATIC_ASSERT) && !defined(__sun)
826 /* Unlike static_assert below, this also works in plain C code. */
827 #define COMPILE_ASSERT(exp, name) _Static_assert((exp), #name)
831 [FILE:638:patches/patch-Source_WTF_wtf_FastMalloc.cpp]
832 --- Source/WTF/wtf/FastMalloc.cpp.orig 2023-02-20 09:22:13 UTC
833 +++ Source/WTF/wtf/FastMalloc.cpp
834 @@ -205,7 +205,11 @@ void* fastAlignedMalloc(size_t alignment
836 ASSERT_IS_WITHIN_LIMIT(size);
839 + p = memalign(alignment, size);
841 posix_memalign(&p, alignment, size);
846 @@ -215,7 +219,11 @@ void* tryFastAlignedMalloc(size_t alignm
848 FAIL_IF_EXCEEDS_LIMIT(size);
851 + p = memalign(alignment, size);
853 posix_memalign(&p, alignment, size);
860 [FILE:502:patches/patch-Source_WTF_wtf_FileSystem.cpp]
861 $NetBSD: patch-Source_WTF_wtf_FileSystem.cpp,v 1.3 2020/09/11 14:47:35 leot Exp $
863 Support MAP_FILE if unavailable.
865 --- Source/WTF/wtf/FileSystem.cpp.orig 2023-02-20 09:22:13 UTC
866 +++ Source/WTF/wtf/FileSystem.cpp
867 @@ -367,6 +367,9 @@ bool MappedFileData::mapFileHandle(Platf
874 void* data = mmap(0, size, pageProtection, MAP_FILE | (mapMode == MappedFileMode::Shared ? MAP_SHARED : MAP_PRIVATE), fd, 0);
876 if (data == MAP_FAILED) {
879 [FILE:562:patches/patch-Source_WTF_wtf_MemoryPressureHandler.cpp]
880 --- Source/WTF/wtf/MemoryPressureHandler.cpp.orig 2023-02-20 09:22:13 UTC
881 +++ Source/WTF/wtf/MemoryPressureHandler.cpp
882 @@ -65,7 +65,7 @@ static MemoryPressureHandler* memoryPres
885 MemoryPressureHandler::MemoryPressureHandler()
886 -#if OS(LINUX) || OS(FREEBSD)
887 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
888 : m_holdOffTimer(RunLoop::main(), this, &MemoryPressureHandler::holdOffTimerFired)
890 : m_windowsMeasurementTimer(RunLoop::main(), this, &MemoryPressureHandler::windowsMeasurementTimerFired)
893 [FILE:677:patches/patch-Source_WTF_wtf_MemoryPressureHandler.h]
894 --- Source/WTF/wtf/MemoryPressureHandler.h.orig 2023-02-20 09:22:13 UTC
895 +++ Source/WTF/wtf/MemoryPressureHandler.h
896 @@ -81,7 +81,7 @@ public:
898 WTF_EXPORT_PRIVATE void setShouldUsePeriodicMemoryMonitor(bool);
900 -#if OS(LINUX) || OS(FREEBSD)
901 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
902 WTF_EXPORT_PRIVATE void triggerMemoryPressureEvent(bool isCritical);
905 @@ -274,7 +274,7 @@ private:
906 Win32Handle m_lowMemoryHandle;
909 -#if OS(LINUX) || OS(FREEBSD)
910 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
911 RunLoop::Timer m_holdOffTimer;
912 void holdOffTimerFired();
916 [FILE:326:patches/patch-Source_WTF_wtf_NumberOfCores.cpp]
917 --- Source/WTF/wtf/NumberOfCores.cpp.orig 2023-02-20 09:22:13 UTC
918 +++ Source/WTF/wtf/NumberOfCores.cpp
921 #include <sys/sysctl.h>
922 #elif OS(LINUX) || OS(AIX) || OS(OPENBSD) || OS(NETBSD) || OS(FREEBSD)
923 +#include <stdio.h> // sscanf
929 [FILE:402:patches/patch-Source_WTF_wtf_PlatformGTK.cmake]
930 --- Source/WTF/wtf/PlatformGTK.cmake.orig 2023-02-20 09:22:13 UTC
931 +++ Source/WTF/wtf/PlatformGTK.cmake
932 @@ -62,7 +62,7 @@ if (CMAKE_SYSTEM_NAME MATCHES "Linux")
934 unix/MemoryPressureHandlerUnix.cpp
936 -elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
937 +elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD|DragonFly|MidnightBSD")
938 list(APPEND WTF_SOURCES
939 generic/MemoryFootprintGeneric.cpp
943 [FILE:582:patches/patch-Source_WTF_wtf_StackBounds.cpp]
944 $NetBSD: patch-Source_WTF_wtf_StackBounds.cpp,v 1.2 2018/10/24 18:31:07 leot Exp $
946 SunOS does not have pthread_getattr_np.
948 --- Source/WTF/wtf/StackBounds.cpp.orig 2023-02-20 09:22:13 UTC
949 +++ Source/WTF/wtf/StackBounds.cpp
950 @@ -98,6 +98,7 @@ StackBounds StackBounds::newThreadStackB
951 #if HAVE(PTHREAD_NP_H) || OS(NETBSD)
952 // e.g. on FreeBSD 5.4, neundorf@kde.org
953 pthread_attr_get_np(thread, &sattr);
954 +#elif defined(__sun__)
956 // FIXME: this function is non-portable; other POSIX systems may have different np alternatives
957 pthread_getattr_np(thread, &sattr);
960 [FILE:1502:patches/patch-Source_WTF_wtf_unix_MemoryPressureHandlerUnix.cpp]
961 --- Source/WTF/wtf/unix/MemoryPressureHandlerUnix.cpp.orig 2023-02-20 09:22:14 UTC
962 +++ Source/WTF/wtf/unix/MemoryPressureHandlerUnix.cpp
965 #include <wtf/MemoryPressureHandler.h>
967 +#if OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
973 #include <wtf/Logging.h>
974 #include <wtf/MainThread.h>
978 #include <wtf/linux/CurrentProcessMemoryStatus.h>
980 +#elif OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
981 #include <sys/sysctl.h>
982 #include <sys/types.h>
983 #include <sys/user.h>
984 @@ -112,7 +116,7 @@ static size_t processMemoryUsage()
985 ProcessMemoryStatus memoryStatus;
986 currentProcessMemoryStatus(memoryStatus);
987 return (memoryStatus.resident - memoryStatus.shared);
989 +#elif OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
990 static size_t pageSize = sysconf(_SC_PAGE_SIZE);
991 struct kinfo_proc info;
992 size_t infolen = sizeof(info);
993 @@ -126,7 +130,11 @@ static size_t processMemoryUsage()
994 if (sysctl(mib, 4, &info, &infolen, nullptr, 0))
997 +# ifdef __DragonFly__
998 + return static_cast<size_t>(info.kp_vm_rssize - info.kp_vm_tsize) * pageSize;
1000 return static_cast<size_t>(info.ki_rssize - info.ki_tsize) * pageSize;
1003 #error "Missing a platform specific way of determining the memory usage"
1007 [FILE:848:patches/patch-Source_WebCore_Modules_fetch_FetchBodyConsumer.cpp]
1008 --- Source/WebCore/Modules/fetch/FetchBodyConsumer.cpp.orig 2023-02-20 09:22:14 UTC
1009 +++ Source/WebCore/Modules/fetch/FetchBodyConsumer.cpp
1011 #include <wtf/StringExtras.h>
1012 #include <wtf/URLParser.h>
1015 +static void *memmem(
1016 + const void *big, size_t big_len,
1017 + const void *little, size_t little_len)
1019 + const char *bp = (const char *)big;
1020 + const char *lp = (const char *)little;
1023 + if (big_len < little_len || little_len == 0 || big_len == 0)
1026 + while (big_len > 0) {
1027 + for (l = 0; l < little_len; l++) {
1028 + if (bp[l] != lp[l])
1031 + if (l == little_len)
1032 + return (void *)bp;
1042 static inline Ref<Blob> blobFromData(ScriptExecutionContext* context, Vector<uint8_t>&& data, const String& contentType)
1045 [FILE:610:patches/patch-Source_WebCore_platform_graphics_cpu_arm_filters_FELightingNEON.cpp]
1046 --- Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp.orig 2023-02-20 09:22:18 UTC
1047 +++ Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp
1048 @@ -403,7 +403,7 @@ TOSTRING(neonDrawLighting) ":" NL
1049 "vmin.f32 " TMP2_D0 ", " TMP2_D0 ", " CONST_ONE_HI_D NL
1050 "vmul.f32 " TMP3_Q ", " COLOR_Q ", " TMP2_D0 "[1]" NL
1051 "vcvt.u32.f32 " TMP3_Q ", " TMP3_Q NL
1052 - "vmov.u32 r2, r3, " TMP3_S0 ", " TMP3_S1 NL
1053 + "vmov r2, r3, " TMP3_S0 ", " TMP3_S1 NL
1054 // The color values are stored in-place.
1055 "strb r2, [" PIXELS_R ", #-11]" NL
1056 "strb r3, [" PIXELS_R ", #-10]" NL
1059 [FILE:350:patches/patch-Source_WebCore_platform_network_DNS.h]
1060 --- Source/WebCore/platform/network/DNS.h.orig 2023-02-20 09:22:19 UTC
1061 +++ Source/WebCore/platform/network/DNS.h
1063 #include <ws2tcpip.h>
1065 #include <netinet/in.h>
1066 +# if defined __DragonFly__ || defined __FreeBSD__ || defined __sun__ || defined __MidnightBSD__
1067 +# include <sys/socket.h>
1074 [FILE:336:patches/patch-Source_WebDriver_PlatformGTK.cmake]
1075 --- Source/WebDriver/PlatformGTK.cmake.orig 2023-02-20 09:22:19 UTC
1076 +++ Source/WebDriver/PlatformGTK.cmake
1077 @@ -5,6 +5,7 @@ add_definitions(-DLIBEXECDIR="${CMAKE_IN
1078 list(APPEND WebDriver_SYSTEM_INCLUDE_DIRECTORIES
1079 "${GLIB_INCLUDE_DIRS}"
1080 "${LIBSOUP_INCLUDE_DIRS}"
1081 + "${ICU_INCLUDE_DIRS}"
1084 list(APPEND WebDriver_SOURCES
1087 [FILE:507:patches/patch-Source_WebKit_CMakeLists.txt]
1088 $NetBSD: patch-Source_WebKit_CMakeLists.txt,v 1.1 2018/05/16 18:55:45 jperkin Exp $
1090 SunOS requires libsocket.
1092 --- Source/WebKit/CMakeLists.txt.orig 2023-02-20 09:22:20 UTC
1093 +++ Source/WebKit/CMakeLists.txt
1094 @@ -411,6 +411,10 @@ if (UNIX)
1098 +if (CMAKE_SYSTEM_NAME MATCHES "SunOS")
1099 + list(APPEND WebKit_LIBRARIES socket)
1102 macro(ADD_WEBKIT_PREFIX_HEADER _target)
1103 if (WebKit_USE_PREFIX_HEADER)
1104 get_target_property(OLD_COMPILE_FLAGS ${_target} COMPILE_FLAGS)
1107 [FILE:599:patches/patch-Source_WebKit_PlatformGTK.cmake]
1108 --- Source/WebKit/PlatformGTK.cmake.orig 2023-03-15 13:59:47 UTC
1109 +++ Source/WebKit/PlatformGTK.cmake
1110 @@ -40,7 +40,7 @@ add_definitions(-DDATADIR="${CMAKE_INSTA
1111 add_definitions(-DLIBDIR="${LIB_INSTALL_DIR}")
1112 add_definitions(-DPKGLIBDIR="${LIB_INSTALL_DIR}/webkit${WEBKITGTK_API_INFIX}gtk-${WEBKITGTK_API_VERSION}")
1114 -if (NOT DEVELOPER_MODE AND NOT CMAKE_SYSTEM_NAME MATCHES "Darwin")
1115 +if (NOT DEVELOPER_MODE AND NOT CMAKE_SYSTEM_NAME MATCHES "Darwin|SunOS")
1116 WEBKIT_ADD_TARGET_PROPERTIES(WebKit LINK_FLAGS "-Wl,--version-script,${CMAKE_CURRENT_SOURCE_DIR}/webkitglib-symbols.map")
1121 [FILE:1137:patches/patch-Source_WebKit_Platform_IPC_unix_ConnectionUnix.cpp]
1122 On NetBSD we see "Error sending IPC message: Message too long" due to
1123 the use of sendmsg with a large message body (EMSGSIZE).
1125 WebKit already uses shared memory to communicate the message body when
1126 the message is too large, so force it to always use this method to avoid
1127 encountering EMSGSIZE.
1129 --- Source/WebKit/Platform/IPC/unix/ConnectionUnix.cpp.orig 2023-02-20 09:22:20 UTC
1130 +++ Source/WebKit/Platform/IPC/unix/ConnectionUnix.cpp
1133 #endif // SOCK_SEQPACKET
1135 +#ifndef MSG_NOSIGNAL
1136 +#define MSG_NOSIGNAL 0
1141 static const size_t messageMaxSize = 4096;
1142 @@ -403,8 +407,12 @@ bool Connection::sendOutgoingMessage(Uni
1147 size_t messageSizeWithBodyInline = sizeof(MessageInfo) + (outputMessage.attachments().size() * sizeof(AttachmentInfo)) + outputMessage.bodySize();
1148 if (messageSizeWithBodyInline > messageMaxSize && outputMessage.bodySize()) {
1152 RefPtr<WebKit::SharedMemory> oolMessageBody = WebKit::SharedMemory::allocate(outputMessage.bodySize());
1153 if (!oolMessageBody)
1157 [FILE:586:patches/patch-Source_WebKit_Platform_unix_SharedMemoryUnix.cpp]
1158 --- Source/WebKit/Platform/unix/SharedMemoryUnix.cpp.orig 2023-02-20 09:22:20 UTC
1159 +++ Source/WebKit/Platform/unix/SharedMemoryUnix.cpp
1160 @@ -129,7 +129,11 @@ static UnixFileDescriptor createSharedMe
1163 for (int tries = 0; fileDescriptor == -1 && tries < 10; ++tries) {
1164 +# ifdef __DragonFly__
1165 + auto name = makeString("/tmp/WK2SharedMemory.", cryptographicallyRandomNumber<unsigned>());
1167 auto name = makeString("/WK2SharedMemory.", cryptographicallyRandomNumber<unsigned>());
1169 tempName = name.utf8();
1174 [FILE:681:patches/patch-Source_WebKit_UIProcess_Launcher_glib_ProcessLauncherGLib.cpp]
1175 --- Source/WebKit/UIProcess/Launcher/glib/ProcessLauncherGLib.cpp.orig 2023-02-20 09:22:21 UTC
1176 +++ Source/WebKit/UIProcess/Launcher/glib/ProcessLauncherGLib.cpp
1178 #include "ProcessProviderLibWPE.h"
1181 -#if !USE(SYSTEM_MALLOC) && OS(LINUX)
1182 -#include <bmalloc/valgrind.h>
1187 @@ -91,10 +88,6 @@ static int connectionOptions()
1189 static bool isSandboxEnabled(const ProcessLauncher::LaunchOptions& launchOptions)
1191 -#if !USE(SYSTEM_MALLOC)
1192 - if (RUNNING_ON_VALGRIND)
1196 if (const char* sandboxEnv = g_getenv("WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS")) {
1197 if (!strcmp(sandboxEnv, "1"))
1200 [FILE:1460:patches/patch-Source_bmalloc_bmalloc_AvailableMemory.cpp]
1201 --- Source/bmalloc/bmalloc/AvailableMemory.cpp.orig 2023-02-20 09:22:22 UTC
1202 +++ Source/bmalloc/bmalloc/AvailableMemory.cpp
1204 #import <mach/mach_error.h>
1207 -#if BOS(FREEBSD) || BOS(LINUX)
1209 #include <sys/sysinfo.h>
1212 @@ -161,7 +161,13 @@ static size_t computeAvailableMemory()
1213 // Round up the memory size to a multiple of 128MB because max_mem may not be exactly 512MB
1214 // (for example) and we have code that depends on those boundaries.
1215 return ((sizeAccordingToKernel + multiple - 1) / multiple) * multiple;
1216 -#elif BOS(FREEBSD) || BOS(LINUX)
1217 +#elif BOS(FREEBSD) || defined(__MidnightBSD__)
1218 + long pages = sysconf(_SC_PHYS_PAGES);
1219 + long pageSize = sysconf(_SC_PAGE_SIZE);
1220 + if (pages == -1 || pageSize == -1)
1221 + return availableMemoryGuess;
1222 + return pages * pageSize;
1224 struct sysinfo info;
1225 if (!sysinfo(&info))
1226 return info.totalram * info.mem_unit;
1227 @@ -212,7 +218,11 @@ MemoryStatus memoryStatus()
1229 size_t memoryFootprint = 0;
1230 if (!sysctl(mib, 4, &info, &infolen, nullptr, 0))
1231 +# ifdef __DragonFly__
1232 + memoryFootprint = static_cast<size_t>(info.kp_vm_rssize) * vmPageSize();
1234 memoryFootprint = static_cast<size_t>(info.ki_rssize) * vmPageSize();
1238 double percentInUse = static_cast<double>(memoryFootprint) / static_cast<double>(availableMemory());
1241 [FILE:1225:patches/patch-Source_bmalloc_libpas_src_libpas_pas__probabilistic__guard__malloc__allocator.c]
1242 --- Source/bmalloc/libpas/src/libpas/pas_probabilistic_guard_malloc_allocator.c.orig 2023-02-20 09:22:22 UTC
1243 +++ Source/bmalloc/libpas/src/libpas/pas_probabilistic_guard_malloc_allocator.c
1244 @@ -114,11 +114,13 @@ pas_allocation_result pas_probabilistic_
1245 * ensure physical addresses are released
1246 * TODO: investigate using MADV_FREE_REUSABLE instead
1248 + /* Linux 4.5, Ravenports uses 4.4
1249 int madvise_res = madvise((void *) upper_guard_page, page_size, MADV_FREE);
1250 PAS_ASSERT(!madvise_res);
1252 madvise_res = madvise((void *) lower_guard_page, page_size, MADV_FREE);
1253 PAS_ASSERT(!madvise_res);
1257 * the key is the location where the user's starting memory address is located.
1258 @@ -180,8 +182,10 @@ void pas_probabilistic_guard_malloc_deal
1260 // ensure physical addresses are released
1261 // TODO: investigate using MADV_FREE_REUSABLE instead
1262 + /* Requires linux 4.5
1263 int madvise_res = madvise((void *) value->start_of_data_pages, value->size_of_data_pages, MADV_FREE);
1264 PAS_ASSERT(!madvise_res);
1267 bool removed = pas_ptr_hash_map_remove(&pas_pgm_hash_map, key, NULL, &pas_large_utility_free_heap_allocation_config);
1268 PAS_ASSERT(removed);
1271 [FILE:971:patches/patch-Source_cmake_OptionsCommon.cmake]
1272 --- Source/cmake/OptionsCommon.cmake.orig 2023-03-17 10:00:23 UTC
1273 +++ Source/cmake/OptionsCommon.cmake
1274 @@ -158,10 +158,10 @@ endif ()
1275 option(USE_THIN_ARCHIVES "Produce all static libraries as thin archives" ${USE_THIN_ARCHIVES_DEFAULT})
1277 if (USE_THIN_ARCHIVES)
1278 - set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> crT <TARGET> <LINK_FLAGS> <OBJECTS>")
1279 - set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> crT <TARGET> <LINK_FLAGS> <OBJECTS>")
1280 - set(CMAKE_CXX_ARCHIVE_APPEND "<CMAKE_AR> rT <TARGET> <LINK_FLAGS> <OBJECTS>")
1281 - set(CMAKE_C_ARCHIVE_APPEND "<CMAKE_AR> rT <TARGET> <LINK_FLAGS> <OBJECTS>")
1282 + set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS>")
1283 + set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS>")
1284 + set(CMAKE_CXX_ARCHIVE_APPEND "<CMAKE_AR> r <TARGET> <LINK_FLAGS> <OBJECTS>")
1285 + set(CMAKE_C_ARCHIVE_APPEND "<CMAKE_AR> r <TARGET> <LINK_FLAGS> <OBJECTS>")
1288 set(ENABLE_DEBUG_FISSION_DEFAULT OFF)
1291 [FILE:520:patches/patch-Source_cmake_WebKitCompilerFlags.cmake]
1292 --- Source/cmake/WebKitCompilerFlags.cmake.orig 2023-02-20 09:22:22 UTC
1293 +++ Source/cmake/WebKitCompilerFlags.cmake
1294 @@ -275,7 +275,7 @@ if (NOT MSVC)
1295 string(REGEX MATCHALL "-fsanitize=[^ ]*" ENABLED_COMPILER_SANITIZERS ${CMAKE_CXX_FLAGS})
1298 -if (UNIX AND NOT APPLE AND NOT ENABLED_COMPILER_SANITIZERS)
1299 +if (UNIX AND NOT APPLE AND NOT ENABLED_COMPILER_SANITIZERS AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
1300 set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined ${CMAKE_SHARED_LINKER_FLAGS}")
1305 [FILE:358:patches/patch-Tools_MiniBrowser_gtk_CMakeLists.txt]
1306 --- Tools/MiniBrowser/gtk/CMakeLists.txt.orig 2023-02-20 09:22:22 UTC
1307 +++ Tools/MiniBrowser/gtk/CMakeLists.txt
1308 @@ -41,6 +41,10 @@ set(MiniBrowser_PRIVATE_LIBRARIES
1312 +if (CMAKE_SYSTEM_NAME MATCHES "SunOS")
1313 + list(APPEND MiniBrowser_PRIVATE_LIBRARIES intl)
1316 set(MiniBrowser_DEPENDENCIES