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 libgcrypt:dev:standard
44 libnotify:dev:standard
48 libsecret:dev:standard
49 unifdef:primary:standard
50 BUILDRUN_DEPENDS= enchant:primary:standard
52 libsecret:primary:standard
53 libnotify:primary:standard
54 hyphen:single:standard
57 libgcrypt:primary:standard
58 gnutls:primary:standard
59 libtasn1:primary:standard
60 geoclue:primary:standard
62 gstreamer1-plugins-base:primary:standard
63 openjpeg:single:standard
64 lcms2:primary:standard
65 libavif:primary:standard
67 USES= png mesa cmake pkgconfig sqlite bison perl:build
68 python:build ruby:build fontconfig jpeg cpe
69 GNOME_COMPONENTS= gdkpixbuf introspection libxslt
70 XORG_COMPONENTS= x11 xcomposite xdamage xext xrender xt ice xfixes
72 DISTNAME= webkitgtk-2.40.0
74 LICENSE= GPLv2+:primary BSD3CLAUSE:primary
75 LICENSE_TERMS= primary:{{WRKDIR}}/TERMS
76 LICENSE_FILE= GPLv2+:stock
77 BSD3CLAUSE:{{WRKDIR}}/LICENSE_BSD
78 LICENSE_AWK= BSD3CLAUSE:"^$$"
80 LICENSE_SOURCE= BSD3CLAUSE:{{WRKSRC}}/Source/WebCore/css/parser/MediaQueryBlockWatcher.h
81 TERMS:{{WRKSRC}}/Source/WebCore/style/StyleScope.cpp
84 CPE_PRODUCT= webkitgtk
86 FPC_EQUIVALENT= www/webkit2-gtk3
88 CONFIGURE_ENV= XDG_CACHE_HOME={{WRKDIR}}
90 INSTALL_TARGET= install
91 INSTALL_REQ_TOOLCHAIN= yes
92 PLIST_SUB= INTRO="@comment "
94 CXXFLAGS= -DFIXED_EXECUTABLE_MEMORY_POOL_SIZE_IN_MB=32
95 CMAKE_ARGS= -DPORT=GTK
96 -DENABLE_GEOLOCATION:BOOL=ON
97 -DENABLE_GLES2:BOOL=ON
98 -DENABLE_MINIBROWSER:BOOL=ON
99 -DENABLE_WAYLAND_TARGET:BOOL=OFF
100 -DENABLE_BUBBLEWRAP_SANDBOX:BOOL=OFF
101 -DENABLE_GAMEPAD:BOOL=OFF
102 -DENABLE_INTROSPECTION:BOOL=OFF
103 -DENABLE_JOURNALD_LOG:BOOL=OFF
104 -DSUPPRESS_ASSERT:BOOL=ON
105 -DUSE_SYSTEMD:BOOL=OFF
106 -DUSE_GSTREAMER_GL:BOOL=OFF
107 -DUSE_GSTREAMER_TRANSCODER:BOOL=OFF
109 VAR_OPSYS[sunos]= CMAKE_ARGS=-DUSE_LD_GOLD:BOOL=OFF
111 [API40].DESCRIPTION= Build WebKit2 API 4.0 variant
112 [API40].BUILDRUN_DEPENDS_ON= libsoup-2.4:primary:standard
113 [API40].BUILD_DEPENDS_ON= libsoup-2.4:dev:standard
114 [API40].CMAKE_ARGS_ON= -DUSE_SOUP2=ON
115 [API40].GNOME_COMPONENTS_ON= gtk3
116 [API40].PLIST_SUB_ON= JSSOVERSION=18.22.9
123 [API41].DESCRIPTION= Build WebKit2 API 4.1 variant
124 [API41].BUILDRUN_DEPENDS_ON= libsoup:primary:standard
125 [API41].BUILD_DEPENDS_ON= libsoup:dev:standard
126 [API41].GNOME_COMPONENTS_ON= gtk3
127 [API41].PLIST_SUB_ON= JSSOVERSION=0.3.9
134 [API60].DESCRIPTION= Build WebKit2 API 6.0 variant
135 [API60].BUILDRUN_DEPENDS_ON= libsoup:primary:standard
136 libepoxy:dev:standard
137 [API60].BUILD_DEPENDS_ON= libsoup:dev:standard
138 libepoxy:dev:standard
139 [API60].CMAKE_ARGS_ON= -DUSE_GTK4=ON
140 [API60].GNOME_COMPONENTS_ON= gtk4
141 [API60].PLIST_SUB_ON= JSSOVERSION=1.0.2
149 echo 'add_compile_definitions("U_DEFINE_FALSE_AND_TRUE=1")' \
150 >> ${WRKSRC}/Source/WTF/wtf/CMakeLists.txt
152 post-install-API40-ON:
153 (cd ${STAGEDIR}${PREFIX}/bin && \
154 ${LN} -s ../libexec/webkit2gtk-4.0/jsc jsc-4.0 && \
155 ${LN} -s ../libexec/webkit2gtk-4.0/MiniBrowser MiniBrowser-4.0)
156 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/webkit2gtk-4.0/injected-bundle/*.so
157 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/webkit2gtk-4.0/*
158 ${MV} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver \
159 ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver-4.0
161 post-install-API60-ON:
162 (cd ${STAGEDIR}${PREFIX}/bin && \
163 ${LN} -s ../libexec/webkit2gtk-6.0/jsc jsc-6.0 && \
164 ${LN} -s ../libexec/webkit2gtk-6.0/MiniBrowser MiniBrowser-6.0)
165 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/webkitgtk-6.0/injected-bundle/*.so
166 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/webkitgtk-6.0/*
167 ${MV} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver \
168 ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver-6.0
171 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so.*.*
172 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver
174 post-install-API41-ON:
175 (cd ${STAGEDIR}${PREFIX}/bin && \
176 ${LN} -s ../libexec/webkit2gtk-4.1/jsc jsc-4.1 && \
177 ${LN} -s ../libexec/webkit2gtk-4.1/MiniBrowser MiniBrowser-4.1)
178 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/webkit2gtk-4.1/injected-bundle/*.so
179 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/webkit2gtk-4.1/*
180 ${MV} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver \
181 ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver-4.1
184 ${REINPLACE_CMD} -e '/USE_FILE_LOCK/ s|1|0|' \
185 ${WRKSRC}/Source/WTF/wtf/PlatformUse.h \
186 ${WRKSRC}/Source/WebCore/config.h
188 [FILE:574:descriptions/desc.primary]
189 WebKitGTK+ is a full-featured port of the WebKit rendering engine, suitable
190 for projects requiring any kind of web integration, from hybrid HTML/CSS
191 applications to full-fledged web browsers. It offers WebKit's full
192 functionality and is useful in a wide range of systems from desktop
193 computers to embedded systems like phones, tablets, and televisions.
195 WebKitGTK+ is made by a lively community of developers and designers,
196 who hope to bring the web platform to everyone. It's the official web
197 engine of the GNOME platform and is used in browsers such as Epiphany
202 a4607ea1bf89669e89b1cb2c63faaec513f93de09b6ae60cc71d6a8aab7ab393 40042140 webkitgtk-2.40.0.tar.xz
205 [FILE:660:manifests/plist.primary]
206 %%INTRO%%lib/girepository-1.0/
207 JavaScriptCore-%%WKAPI%%.typelib
208 WebKit2-%%WKAPI%%.typelib
209 WebKit2WebExtension-%%WKAPI%%.typelib
210 %%INTRO%%share/gir-1.0/
211 JavaScriptCore-%%WKAPI%%.gir
212 WebKit2-%%WKAPI%%.gir
213 WebKit2WebExtension-%%WKAPI%%.gir
215 MiniBrowser-%%WKAPI%%
216 WebKitWebDriver-%%WKAPI%%
219 libjavascriptcoregtk-%%WKAPI%%.so.%%JSSOMAJOR%%
220 libjavascriptcoregtk-%%WKAPI%%.so.%%JSSOVERSION%%
221 libwebkit2gtk-%%WKAPI%%.so.%%SOMAJOR%%
222 libwebkit2gtk-%%WKAPI%%.so.%%SOVERSION%%
223 lib/webkit2gtk-%%WKAPI%%/injected-bundle/libwebkit2gtkinjectedbundle.so
224 libexec/webkit2gtk-%%WKAPI%%/
231 [FILE:2619:manifests/plist.nls]
232 share/locale/ar/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
233 share/locale/as/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
234 share/locale/bg/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
235 share/locale/ca/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
236 share/locale/cs/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
237 share/locale/da/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
238 share/locale/de/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
239 share/locale/el/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
240 share/locale/en_CA/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
241 share/locale/en_GB/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
242 share/locale/eo/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
243 share/locale/es/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
244 share/locale/et/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
245 share/locale/eu/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
246 share/locale/fi/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
247 share/locale/fr/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
248 share/locale/gl/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
249 share/locale/gu/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
250 share/locale/he/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
251 share/locale/hi/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
252 share/locale/hr/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
253 share/locale/hu/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
254 share/locale/id/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
255 share/locale/it/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
256 share/locale/ja/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
257 share/locale/ka/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
258 share/locale/kn/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
259 share/locale/ko/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
260 share/locale/lt/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
261 share/locale/lv/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
262 share/locale/ml/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
263 share/locale/mr/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
264 share/locale/nb/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
265 share/locale/nl/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
266 share/locale/or/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
267 share/locale/pa/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
268 share/locale/pl/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
269 share/locale/pt/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
270 share/locale/pt_BR/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
271 share/locale/ro/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
272 share/locale/ru/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
273 share/locale/sl/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
274 share/locale/sr/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
275 share/locale/sr@latin/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
276 share/locale/sv/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
277 share/locale/ta/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
278 share/locale/te/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
279 share/locale/tr/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
280 share/locale/uk/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
281 share/locale/vi/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
282 share/locale/zh_CN/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
285 [FILE:5822:manifests/plist.dev]
286 include/webkitgtk-%%WKAPI%%/JavaScriptCore/
295 include/webkitgtk-%%WKAPI%%/jsc/
307 include/webkitgtk-%%WKAPI%%/webkit/
308 WebKitApplicationInfo.h
309 WebKitAuthenticationRequest.h
311 WebKitAutomationSession.h
312 WebKitBackForwardList.h
313 WebKitBackForwardListItem.h
314 WebKitColorChooserRequest.h
315 WebKitConsoleMessage.h
317 WebKitContextMenuActions.h
318 WebKitContextMenuItem.h
319 WebKitCookieManager.h
322 WebKitDeviceInfoPermissionRequest.h
324 WebKitEditingCommands.h
328 WebKitFaviconDatabase.h
329 WebKitFileChooserRequest.h
330 WebKitFindController.h
331 WebKitFormSubmissionRequest.h
333 WebKitGeolocationManager.h
334 WebKitGeolocationPermissionRequest.h
335 WebKitHitTestResult.h
336 WebKitInputMethodContext.h
337 WebKitInstallMissingMediaPluginsPermissionRequest.h
338 WebKitJavascriptResult.h
339 WebKitMediaKeySystemPermissionRequest.h
340 WebKitMemoryPressureSettings.h
342 WebKitNavigationAction.h
343 WebKitNavigationPolicyDecision.h
344 WebKitNetworkProxySettings.h
346 WebKitNotificationPermissionRequest.h
348 WebKitOptionMenuItem.h
349 WebKitPermissionRequest.h
350 WebKitPermissionStateQuery.h
352 WebKitPointerLockPermissionRequest.h
353 WebKitPolicyDecision.h
354 WebKitPrintCustomWidget.h
355 WebKitPrintOperation.h
356 WebKitResponsePolicyDecision.h
359 WebKitSecurityManager.h
360 WebKitSecurityOrigin.h
364 WebKitURISchemeRequest.h
365 WebKitURISchemeResponse.h
368 WebKitUserContentFilterStore.h
369 WebKitUserContentManager.h
370 WebKitUserMediaPermissionRequest.h
376 WebKitWebExtensionAutocleanups.h
377 WebKitWebFormManager.h
378 WebKitWebHitTestResult.h
381 WebKitWebProcessEnumTypes.h
385 WebKitWebViewSessionState.h
387 WebKitWebsiteDataAccessPermissionRequest.h
388 WebKitWebsiteDataManager.h
389 WebKitWebsitePolicies.h
390 WebKitWindowProperties.h
391 include/webkitgtk-%%WKAPI%%/webkit2/
392 webkit-web-extension.h
394 include/webkitgtk-%%WKAPI%%/webkitdom/
397 WebKitDOMCDATASection.h
399 WebKitDOMCSSRuleList.h
400 WebKitDOMCSSStyleDeclaration.h
401 WebKitDOMCSSStyleSheet.h
403 WebKitDOMCharacterData.h
404 WebKitDOMClientRect.h
405 WebKitDOMClientRectList.h
408 WebKitDOMCustomUnstable.h
409 WebKitDOMDOMImplementation.h
410 WebKitDOMDOMSelection.h
411 WebKitDOMDOMTokenList.h
413 WebKitDOMDOMWindowUnstable.h
414 WebKitDOMDeprecated.h
416 WebKitDOMDocumentFragment.h
417 WebKitDOMDocumentFragmentUnstable.h
418 WebKitDOMDocumentType.h
419 WebKitDOMDocumentUnstable.h
421 WebKitDOMElementUnstable.h
423 WebKitDOMEventTarget.h
426 WebKitDOMHTMLAnchorElement.h
427 WebKitDOMHTMLAppletElement.h
428 WebKitDOMHTMLAreaElement.h
429 WebKitDOMHTMLBRElement.h
430 WebKitDOMHTMLBaseElement.h
431 WebKitDOMHTMLBodyElement.h
432 WebKitDOMHTMLButtonElement.h
433 WebKitDOMHTMLCanvasElement.h
434 WebKitDOMHTMLCollection.h
435 WebKitDOMHTMLDListElement.h
436 WebKitDOMHTMLDirectoryElement.h
437 WebKitDOMHTMLDivElement.h
438 WebKitDOMHTMLDocument.h
439 WebKitDOMHTMLElement.h
440 WebKitDOMHTMLElementUnstable.h
441 WebKitDOMHTMLEmbedElement.h
442 WebKitDOMHTMLFieldSetElement.h
443 WebKitDOMHTMLFontElement.h
444 WebKitDOMHTMLFormElement.h
445 WebKitDOMHTMLFrameElement.h
446 WebKitDOMHTMLFrameSetElement.h
447 WebKitDOMHTMLHRElement.h
448 WebKitDOMHTMLHeadElement.h
449 WebKitDOMHTMLHeadingElement.h
450 WebKitDOMHTMLHtmlElement.h
451 WebKitDOMHTMLIFrameElement.h
452 WebKitDOMHTMLImageElement.h
453 WebKitDOMHTMLInputElement.h
454 WebKitDOMHTMLLIElement.h
455 WebKitDOMHTMLLabelElement.h
456 WebKitDOMHTMLLegendElement.h
457 WebKitDOMHTMLLinkElement.h
458 WebKitDOMHTMLMapElement.h
459 WebKitDOMHTMLMarqueeElement.h
460 WebKitDOMHTMLMenuElement.h
461 WebKitDOMHTMLMetaElement.h
462 WebKitDOMHTMLModElement.h
463 WebKitDOMHTMLOListElement.h
464 WebKitDOMHTMLObjectElement.h
465 WebKitDOMHTMLOptGroupElement.h
466 WebKitDOMHTMLOptionElement.h
467 WebKitDOMHTMLOptionsCollection.h
468 WebKitDOMHTMLParagraphElement.h
469 WebKitDOMHTMLParamElement.h
470 WebKitDOMHTMLPreElement.h
471 WebKitDOMHTMLQuoteElement.h
472 WebKitDOMHTMLScriptElement.h
473 WebKitDOMHTMLSelectElement.h
474 WebKitDOMHTMLStyleElement.h
475 WebKitDOMHTMLTableCaptionElement.h
476 WebKitDOMHTMLTableCellElement.h
477 WebKitDOMHTMLTableColElement.h
478 WebKitDOMHTMLTableElement.h
479 WebKitDOMHTMLTableRowElement.h
480 WebKitDOMHTMLTableSectionElement.h
481 WebKitDOMHTMLTextAreaElement.h
482 WebKitDOMHTMLTitleElement.h
483 WebKitDOMHTMLUListElement.h
484 WebKitDOMKeyboardEvent.h
486 WebKitDOMMouseEvent.h
487 WebKitDOMNamedNodeMap.h
489 WebKitDOMNodeFilter.h
490 WebKitDOMNodeIterator.h
493 WebKitDOMProcessingInstruction.h
495 WebKitDOMRangeUnstable.h
496 WebKitDOMStyleSheet.h
497 WebKitDOMStyleSheetList.h
499 WebKitDOMTreeWalker.h
501 WebKitDOMWheelEvent.h
502 WebKitDOMXPathExpression.h
503 WebKitDOMXPathNSResolver.h
504 WebKitDOMXPathResult.h
506 webkitdomautocleanups.h
509 libjavascriptcoregtk-%%WKAPI%%.so
510 libwebkit2gtk-%%WKAPI%%.so
512 javascriptcoregtk-%%WKAPI%%.pc
513 webkit2gtk-%%WKAPI%%.pc
514 webkit2gtk-web-extension-%%WKAPI%%.pc
517 [FILE:601:manifests/plist.primary.api60]
518 %%INTRO%%lib/girepository-1.0/
519 JavaScriptCore-%%WKAPI%%.typelib
520 WebKit2-%%WKAPI%%.typelib
521 WebKit2WebExtension-%%WKAPI%%.typelib
522 %%INTRO%%share/gir-1.0/
523 JavaScriptCore-%%WKAPI%%.gir
524 WebKit2-%%WKAPI%%.gir
525 WebKit2WebExtension-%%WKAPI%%.gir
531 libjavascriptcoregtk-6.0.so.%%JSSOMAJOR%%
532 libjavascriptcoregtk-6.0.so.%%JSSOVERSION%%
533 libwebkitgtk-6.0.so.%%SOMAJOR%%
534 libwebkitgtk-6.0.so.%%SOVERSION%%
535 lib/webkitgtk-6.0/injected-bundle/libwebkitgtkinjectedbundle.so
536 libexec/webkitgtk-6.0/
543 [FILE:2409:manifests/plist.dev.api60]
544 include/webkitgtk-6.0/jsc/
555 include/webkitgtk-6.0/webkit/
556 WebKitApplicationInfo.h
557 WebKitAuthenticationRequest.h
559 WebKitAutomationSession.h
560 WebKitBackForwardList.h
561 WebKitBackForwardListItem.h
562 WebKitColorChooserRequest.h
564 WebKitContextMenuActions.h
565 WebKitContextMenuItem.h
566 WebKitCookieManager.h
569 WebKitDeviceInfoPermissionRequest.h
571 WebKitEditingCommands.h
575 WebKitFaviconDatabase.h
576 WebKitFileChooserRequest.h
577 WebKitFindController.h
578 WebKitFormSubmissionRequest.h
580 WebKitGeolocationManager.h
581 WebKitGeolocationPermissionRequest.h
582 WebKitHitTestResult.h
583 WebKitInputMethodContext.h
584 WebKitInstallMissingMediaPluginsPermissionRequest.h
585 WebKitMediaKeySystemPermissionRequest.h
586 WebKitMemoryPressureSettings.h
587 WebKitNavigationAction.h
588 WebKitNavigationPolicyDecision.h
589 WebKitNetworkProxySettings.h
590 WebKitNetworkSession.h
592 WebKitNotificationPermissionRequest.h
594 WebKitOptionMenuItem.h
595 WebKitPermissionRequest.h
596 WebKitPermissionStateQuery.h
597 WebKitPointerLockPermissionRequest.h
598 WebKitPolicyDecision.h
599 WebKitPrintOperation.h
600 WebKitResponsePolicyDecision.h
603 WebKitSecurityManager.h
604 WebKitSecurityOrigin.h
608 WebKitURISchemeRequest.h
609 WebKitURISchemeResponse.h
612 WebKitUserContentFilterStore.h
613 WebKitUserContentManager.h
614 WebKitUserMediaPermissionRequest.h
619 WebKitWebFormManager.h
620 WebKitWebHitTestResult.h
623 WebKitWebProcessEnumTypes.h
624 WebKitWebProcessExtension.h
628 WebKitWebViewSessionState.h
630 WebKitWebsiteDataAccessPermissionRequest.h
631 WebKitWebsiteDataManager.h
632 WebKitWebsitePolicies.h
633 WebKitWindowProperties.h
634 webkit-web-process-extension.h
637 libjavascriptcoregtk-6.0.so
640 javascriptcoregtk-6.0.pc
642 webkitgtk-web-process-extension-6.0.pc
645 [FILE:431:patches/patch-CMakeLists.txt]
646 --- CMakeLists.txt.orig 2023-02-20 09:21:40 UTC
648 @@ -27,6 +27,11 @@ if (ENABLE_API_TESTS)
652 +if (SUPPRESS_ASSERT)
653 + add_definitions(-DNDEBUG=1)
654 + add_definitions(-D__OPTIMIZE__)
657 # -----------------------------------------------------------------------------
658 # Add module directories
659 # -----------------------------------------------------------------------------
662 [FILE:534:patches/patch-Source_JavaScriptCore_assembler_ARM64Assembler.h]
663 --- Source/JavaScriptCore/assembler/ARM64Assembler.h.orig 2023-02-20 09:22:04 UTC
664 +++ Source/JavaScriptCore/assembler/ARM64Assembler.h
665 @@ -3674,6 +3674,8 @@ public:
666 sys_cache_control(kCacheFunctionPrepareForExecution, code, size);
668 zx_cache_flush(code, size, ZX_CACHE_FLUSH_INSN);
669 +#elif OS(FREEBSD) || OS(NETBSD)
670 + __clear_cache(code, reinterpret_cast<char*>(code) + size);
672 size_t page = pageSize();
673 uintptr_t current = reinterpret_cast<uintptr_t>(code);
676 [FILE:4034:patches/patch-Source_JavaScriptCore_runtime_MachineContext.h]
677 $NetBSD: patch-Source_JavaScriptCore_runtime_MachineContext.h,v 1.2 2021/05/13 08:20:58 leot Exp $
679 Add support for NetBSD.
681 --- Source/JavaScriptCore/runtime/MachineContext.h.orig 2023-02-20 09:22:06 UTC
682 +++ Source/JavaScriptCore/runtime/MachineContext.h
683 @@ -193,6 +193,22 @@ static inline void*& stackPointerImpl(mc
684 #error Unknown Architecture
690 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_UESP]);
692 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RSP]);
694 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_SP]);
696 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_SP]);
698 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_SP]);
700 +#error Unknown Architecture
703 #elif OS(FUCHSIA) || OS(LINUX)
706 @@ -338,6 +354,22 @@ static inline void*& framePointerImpl(mc
707 #error Unknown Architecture
713 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EBP]);
715 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RBP]);
717 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_FP]);
719 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_FP]);
721 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_S8]);
723 +#error Unknown Architecture
726 #elif OS(FUCHSIA) || OS(LINUX)
728 // The following sequence depends on glibc's sys/ucontext.h.
729 @@ -495,6 +527,22 @@ static inline void*& instructionPointerI
731 #error Unknown Architecture
737 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EIP]);
739 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RIP]);
741 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_PC]);
743 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_PC]);
745 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EPC]);
747 +#error Unknown Architecture
750 #elif OS(FUCHSIA) || OS(LINUX)
752 @@ -651,6 +699,22 @@ inline void*& argumentPointer<1>(mcontex
754 #error Unknown Architecture
760 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EDX]);
762 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RSI]);
764 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R1]);
766 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_X1]);
768 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_A1]);
770 +#error Unknown Architecture
773 #elif OS(FUCHSIA) || OS(LINUX)
775 @@ -774,6 +838,22 @@ inline void*& llintInstructionPointer(mc
779 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_ESI]);
781 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R8]);
783 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R8]);
785 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_X4]);
787 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_T4]);
789 +#error Unknown Architecture
795 return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_ESI]);
797 return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R8]);
800 [FILE:597:patches/patch-Source_ThirdParty_ANGLE_src_common_aligned__memory.cpp]
801 --- Source/ThirdParty/ANGLE/src/common/aligned_memory.cpp.orig 2023-02-20 09:22:06 UTC
802 +++ Source/ThirdParty/ANGLE/src/common/aligned_memory.cpp
803 @@ -33,7 +33,7 @@ void *AlignedAlloc(size_t size, size_t a
804 // memalign() on Android returns pointers which can safely be used with
805 // free(), so we can use it instead. Issue filed to document this:
806 // http://code.google.com/p/android/issues/detail?id=35391
807 -#elif defined(ANGLE_PLATFORM_ANDROID)
808 +#elif defined(ANGLE_PLATFORM_ANDROID) || defined(__sun__)
809 ptr = memalign(alignment, size);
811 if (posix_memalign(&ptr, alignment, size))
814 [FILE:561:patches/patch-Source_WTF_wtf_Assertions.h]
815 $NetBSD: patch-Source_WTF_wtf_Assertions.h,v 1.1 2021/01/12 15:21:31 jperkin Exp $
817 Use regular static_assert on SunOS.
819 --- Source/WTF/wtf/Assertions.h.orig 2023-02-20 09:22:13 UTC
820 +++ Source/WTF/wtf/Assertions.h
821 @@ -473,7 +473,7 @@ constexpr bool assertionFailureDueToUnre
824 #ifndef COMPILE_ASSERT
825 -#if COMPILER_SUPPORTS(C_STATIC_ASSERT)
826 +#if COMPILER_SUPPORTS(C_STATIC_ASSERT) && !defined(__sun)
827 /* Unlike static_assert below, this also works in plain C code. */
828 #define COMPILE_ASSERT(exp, name) _Static_assert((exp), #name)
832 [FILE:638:patches/patch-Source_WTF_wtf_FastMalloc.cpp]
833 --- Source/WTF/wtf/FastMalloc.cpp.orig 2023-02-20 09:22:13 UTC
834 +++ Source/WTF/wtf/FastMalloc.cpp
835 @@ -205,7 +205,11 @@ void* fastAlignedMalloc(size_t alignment
837 ASSERT_IS_WITHIN_LIMIT(size);
840 + p = memalign(alignment, size);
842 posix_memalign(&p, alignment, size);
847 @@ -215,7 +219,11 @@ void* tryFastAlignedMalloc(size_t alignm
849 FAIL_IF_EXCEEDS_LIMIT(size);
852 + p = memalign(alignment, size);
854 posix_memalign(&p, alignment, size);
861 [FILE:502:patches/patch-Source_WTF_wtf_FileSystem.cpp]
862 $NetBSD: patch-Source_WTF_wtf_FileSystem.cpp,v 1.3 2020/09/11 14:47:35 leot Exp $
864 Support MAP_FILE if unavailable.
866 --- Source/WTF/wtf/FileSystem.cpp.orig 2023-02-20 09:22:13 UTC
867 +++ Source/WTF/wtf/FileSystem.cpp
868 @@ -367,6 +367,9 @@ bool MappedFileData::mapFileHandle(Platf
875 void* data = mmap(0, size, pageProtection, MAP_FILE | (mapMode == MappedFileMode::Shared ? MAP_SHARED : MAP_PRIVATE), fd, 0);
877 if (data == MAP_FAILED) {
880 [FILE:562:patches/patch-Source_WTF_wtf_MemoryPressureHandler.cpp]
881 --- Source/WTF/wtf/MemoryPressureHandler.cpp.orig 2023-02-20 09:22:13 UTC
882 +++ Source/WTF/wtf/MemoryPressureHandler.cpp
883 @@ -65,7 +65,7 @@ static MemoryPressureHandler* memoryPres
886 MemoryPressureHandler::MemoryPressureHandler()
887 -#if OS(LINUX) || OS(FREEBSD)
888 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
889 : m_holdOffTimer(RunLoop::main(), this, &MemoryPressureHandler::holdOffTimerFired)
891 : m_windowsMeasurementTimer(RunLoop::main(), this, &MemoryPressureHandler::windowsMeasurementTimerFired)
894 [FILE:677:patches/patch-Source_WTF_wtf_MemoryPressureHandler.h]
895 --- Source/WTF/wtf/MemoryPressureHandler.h.orig 2023-02-20 09:22:13 UTC
896 +++ Source/WTF/wtf/MemoryPressureHandler.h
897 @@ -81,7 +81,7 @@ public:
899 WTF_EXPORT_PRIVATE void setShouldUsePeriodicMemoryMonitor(bool);
901 -#if OS(LINUX) || OS(FREEBSD)
902 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
903 WTF_EXPORT_PRIVATE void triggerMemoryPressureEvent(bool isCritical);
906 @@ -274,7 +274,7 @@ private:
907 Win32Handle m_lowMemoryHandle;
910 -#if OS(LINUX) || OS(FREEBSD)
911 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
912 RunLoop::Timer m_holdOffTimer;
913 void holdOffTimerFired();
917 [FILE:326:patches/patch-Source_WTF_wtf_NumberOfCores.cpp]
918 --- Source/WTF/wtf/NumberOfCores.cpp.orig 2023-02-20 09:22:13 UTC
919 +++ Source/WTF/wtf/NumberOfCores.cpp
922 #include <sys/sysctl.h>
923 #elif OS(LINUX) || OS(AIX) || OS(OPENBSD) || OS(NETBSD) || OS(FREEBSD)
924 +#include <stdio.h> // sscanf
930 [FILE:402:patches/patch-Source_WTF_wtf_PlatformGTK.cmake]
931 --- Source/WTF/wtf/PlatformGTK.cmake.orig 2023-02-20 09:22:13 UTC
932 +++ Source/WTF/wtf/PlatformGTK.cmake
933 @@ -62,7 +62,7 @@ if (CMAKE_SYSTEM_NAME MATCHES "Linux")
935 unix/MemoryPressureHandlerUnix.cpp
937 -elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
938 +elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD|DragonFly|MidnightBSD")
939 list(APPEND WTF_SOURCES
940 generic/MemoryFootprintGeneric.cpp
944 [FILE:582:patches/patch-Source_WTF_wtf_StackBounds.cpp]
945 $NetBSD: patch-Source_WTF_wtf_StackBounds.cpp,v 1.2 2018/10/24 18:31:07 leot Exp $
947 SunOS does not have pthread_getattr_np.
949 --- Source/WTF/wtf/StackBounds.cpp.orig 2023-02-20 09:22:13 UTC
950 +++ Source/WTF/wtf/StackBounds.cpp
951 @@ -98,6 +98,7 @@ StackBounds StackBounds::newThreadStackB
952 #if HAVE(PTHREAD_NP_H) || OS(NETBSD)
953 // e.g. on FreeBSD 5.4, neundorf@kde.org
954 pthread_attr_get_np(thread, &sattr);
955 +#elif defined(__sun__)
957 // FIXME: this function is non-portable; other POSIX systems may have different np alternatives
958 pthread_getattr_np(thread, &sattr);
961 [FILE:1502:patches/patch-Source_WTF_wtf_unix_MemoryPressureHandlerUnix.cpp]
962 --- Source/WTF/wtf/unix/MemoryPressureHandlerUnix.cpp.orig 2023-02-20 09:22:14 UTC
963 +++ Source/WTF/wtf/unix/MemoryPressureHandlerUnix.cpp
966 #include <wtf/MemoryPressureHandler.h>
968 +#if OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
974 #include <wtf/Logging.h>
975 #include <wtf/MainThread.h>
979 #include <wtf/linux/CurrentProcessMemoryStatus.h>
981 +#elif OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
982 #include <sys/sysctl.h>
983 #include <sys/types.h>
984 #include <sys/user.h>
985 @@ -112,7 +116,7 @@ static size_t processMemoryUsage()
986 ProcessMemoryStatus memoryStatus;
987 currentProcessMemoryStatus(memoryStatus);
988 return (memoryStatus.resident - memoryStatus.shared);
990 +#elif OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
991 static size_t pageSize = sysconf(_SC_PAGE_SIZE);
992 struct kinfo_proc info;
993 size_t infolen = sizeof(info);
994 @@ -126,7 +130,11 @@ static size_t processMemoryUsage()
995 if (sysctl(mib, 4, &info, &infolen, nullptr, 0))
998 +# ifdef __DragonFly__
999 + return static_cast<size_t>(info.kp_vm_rssize - info.kp_vm_tsize) * pageSize;
1001 return static_cast<size_t>(info.ki_rssize - info.ki_tsize) * pageSize;
1004 #error "Missing a platform specific way of determining the memory usage"
1008 [FILE:848:patches/patch-Source_WebCore_Modules_fetch_FetchBodyConsumer.cpp]
1009 --- Source/WebCore/Modules/fetch/FetchBodyConsumer.cpp.orig 2023-02-20 09:22:14 UTC
1010 +++ Source/WebCore/Modules/fetch/FetchBodyConsumer.cpp
1012 #include <wtf/StringExtras.h>
1013 #include <wtf/URLParser.h>
1016 +static void *memmem(
1017 + const void *big, size_t big_len,
1018 + const void *little, size_t little_len)
1020 + const char *bp = (const char *)big;
1021 + const char *lp = (const char *)little;
1024 + if (big_len < little_len || little_len == 0 || big_len == 0)
1027 + while (big_len > 0) {
1028 + for (l = 0; l < little_len; l++) {
1029 + if (bp[l] != lp[l])
1032 + if (l == little_len)
1033 + return (void *)bp;
1043 static inline Ref<Blob> blobFromData(ScriptExecutionContext* context, Vector<uint8_t>&& data, const String& contentType)
1046 [FILE:610:patches/patch-Source_WebCore_platform_graphics_cpu_arm_filters_FELightingNEON.cpp]
1047 --- Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp.orig 2023-02-20 09:22:18 UTC
1048 +++ Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp
1049 @@ -403,7 +403,7 @@ TOSTRING(neonDrawLighting) ":" NL
1050 "vmin.f32 " TMP2_D0 ", " TMP2_D0 ", " CONST_ONE_HI_D NL
1051 "vmul.f32 " TMP3_Q ", " COLOR_Q ", " TMP2_D0 "[1]" NL
1052 "vcvt.u32.f32 " TMP3_Q ", " TMP3_Q NL
1053 - "vmov.u32 r2, r3, " TMP3_S0 ", " TMP3_S1 NL
1054 + "vmov r2, r3, " TMP3_S0 ", " TMP3_S1 NL
1055 // The color values are stored in-place.
1056 "strb r2, [" PIXELS_R ", #-11]" NL
1057 "strb r3, [" PIXELS_R ", #-10]" NL
1060 [FILE:350:patches/patch-Source_WebCore_platform_network_DNS.h]
1061 --- Source/WebCore/platform/network/DNS.h.orig 2023-02-20 09:22:19 UTC
1062 +++ Source/WebCore/platform/network/DNS.h
1064 #include <ws2tcpip.h>
1066 #include <netinet/in.h>
1067 +# if defined __DragonFly__ || defined __FreeBSD__ || defined __sun__ || defined __MidnightBSD__
1068 +# include <sys/socket.h>
1075 [FILE:336:patches/patch-Source_WebDriver_PlatformGTK.cmake]
1076 --- Source/WebDriver/PlatformGTK.cmake.orig 2023-02-20 09:22:19 UTC
1077 +++ Source/WebDriver/PlatformGTK.cmake
1078 @@ -5,6 +5,7 @@ add_definitions(-DLIBEXECDIR="${CMAKE_IN
1079 list(APPEND WebDriver_SYSTEM_INCLUDE_DIRECTORIES
1080 "${GLIB_INCLUDE_DIRS}"
1081 "${LIBSOUP_INCLUDE_DIRS}"
1082 + "${ICU_INCLUDE_DIRS}"
1085 list(APPEND WebDriver_SOURCES
1088 [FILE:507:patches/patch-Source_WebKit_CMakeLists.txt]
1089 $NetBSD: patch-Source_WebKit_CMakeLists.txt,v 1.1 2018/05/16 18:55:45 jperkin Exp $
1091 SunOS requires libsocket.
1093 --- Source/WebKit/CMakeLists.txt.orig 2023-02-20 09:22:20 UTC
1094 +++ Source/WebKit/CMakeLists.txt
1095 @@ -411,6 +411,10 @@ if (UNIX)
1099 +if (CMAKE_SYSTEM_NAME MATCHES "SunOS")
1100 + list(APPEND WebKit_LIBRARIES socket)
1103 macro(ADD_WEBKIT_PREFIX_HEADER _target)
1104 if (WebKit_USE_PREFIX_HEADER)
1105 get_target_property(OLD_COMPILE_FLAGS ${_target} COMPILE_FLAGS)
1108 [FILE:599:patches/patch-Source_WebKit_PlatformGTK.cmake]
1109 --- Source/WebKit/PlatformGTK.cmake.orig 2023-03-15 13:59:47 UTC
1110 +++ Source/WebKit/PlatformGTK.cmake
1111 @@ -40,7 +40,7 @@ add_definitions(-DDATADIR="${CMAKE_INSTA
1112 add_definitions(-DLIBDIR="${LIB_INSTALL_DIR}")
1113 add_definitions(-DPKGLIBDIR="${LIB_INSTALL_DIR}/webkit${WEBKITGTK_API_INFIX}gtk-${WEBKITGTK_API_VERSION}")
1115 -if (NOT DEVELOPER_MODE AND NOT CMAKE_SYSTEM_NAME MATCHES "Darwin")
1116 +if (NOT DEVELOPER_MODE AND NOT CMAKE_SYSTEM_NAME MATCHES "Darwin|SunOS")
1117 WEBKIT_ADD_TARGET_PROPERTIES(WebKit LINK_FLAGS "-Wl,--version-script,${CMAKE_CURRENT_SOURCE_DIR}/webkitglib-symbols.map")
1122 [FILE:1137:patches/patch-Source_WebKit_Platform_IPC_unix_ConnectionUnix.cpp]
1123 On NetBSD we see "Error sending IPC message: Message too long" due to
1124 the use of sendmsg with a large message body (EMSGSIZE).
1126 WebKit already uses shared memory to communicate the message body when
1127 the message is too large, so force it to always use this method to avoid
1128 encountering EMSGSIZE.
1130 --- Source/WebKit/Platform/IPC/unix/ConnectionUnix.cpp.orig 2023-02-20 09:22:20 UTC
1131 +++ Source/WebKit/Platform/IPC/unix/ConnectionUnix.cpp
1134 #endif // SOCK_SEQPACKET
1136 +#ifndef MSG_NOSIGNAL
1137 +#define MSG_NOSIGNAL 0
1142 static const size_t messageMaxSize = 4096;
1143 @@ -403,8 +407,12 @@ bool Connection::sendOutgoingMessage(Uni
1148 size_t messageSizeWithBodyInline = sizeof(MessageInfo) + (outputMessage.attachments().size() * sizeof(AttachmentInfo)) + outputMessage.bodySize();
1149 if (messageSizeWithBodyInline > messageMaxSize && outputMessage.bodySize()) {
1153 RefPtr<WebKit::SharedMemory> oolMessageBody = WebKit::SharedMemory::allocate(outputMessage.bodySize());
1154 if (!oolMessageBody)
1158 [FILE:586:patches/patch-Source_WebKit_Platform_unix_SharedMemoryUnix.cpp]
1159 --- Source/WebKit/Platform/unix/SharedMemoryUnix.cpp.orig 2023-02-20 09:22:20 UTC
1160 +++ Source/WebKit/Platform/unix/SharedMemoryUnix.cpp
1161 @@ -129,7 +129,11 @@ static UnixFileDescriptor createSharedMe
1164 for (int tries = 0; fileDescriptor == -1 && tries < 10; ++tries) {
1165 +# ifdef __DragonFly__
1166 + auto name = makeString("/tmp/WK2SharedMemory.", cryptographicallyRandomNumber<unsigned>());
1168 auto name = makeString("/WK2SharedMemory.", cryptographicallyRandomNumber<unsigned>());
1170 tempName = name.utf8();
1175 [FILE:681:patches/patch-Source_WebKit_UIProcess_Launcher_glib_ProcessLauncherGLib.cpp]
1176 --- Source/WebKit/UIProcess/Launcher/glib/ProcessLauncherGLib.cpp.orig 2023-02-20 09:22:21 UTC
1177 +++ Source/WebKit/UIProcess/Launcher/glib/ProcessLauncherGLib.cpp
1179 #include "ProcessProviderLibWPE.h"
1182 -#if !USE(SYSTEM_MALLOC) && OS(LINUX)
1183 -#include <bmalloc/valgrind.h>
1188 @@ -91,10 +88,6 @@ static int connectionOptions()
1190 static bool isSandboxEnabled(const ProcessLauncher::LaunchOptions& launchOptions)
1192 -#if !USE(SYSTEM_MALLOC)
1193 - if (RUNNING_ON_VALGRIND)
1197 if (const char* sandboxEnv = g_getenv("WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS")) {
1198 if (!strcmp(sandboxEnv, "1"))
1201 [FILE:1460:patches/patch-Source_bmalloc_bmalloc_AvailableMemory.cpp]
1202 --- Source/bmalloc/bmalloc/AvailableMemory.cpp.orig 2023-02-20 09:22:22 UTC
1203 +++ Source/bmalloc/bmalloc/AvailableMemory.cpp
1205 #import <mach/mach_error.h>
1208 -#if BOS(FREEBSD) || BOS(LINUX)
1210 #include <sys/sysinfo.h>
1213 @@ -161,7 +161,13 @@ static size_t computeAvailableMemory()
1214 // Round up the memory size to a multiple of 128MB because max_mem may not be exactly 512MB
1215 // (for example) and we have code that depends on those boundaries.
1216 return ((sizeAccordingToKernel + multiple - 1) / multiple) * multiple;
1217 -#elif BOS(FREEBSD) || BOS(LINUX)
1218 +#elif BOS(FREEBSD) || defined(__MidnightBSD__)
1219 + long pages = sysconf(_SC_PHYS_PAGES);
1220 + long pageSize = sysconf(_SC_PAGE_SIZE);
1221 + if (pages == -1 || pageSize == -1)
1222 + return availableMemoryGuess;
1223 + return pages * pageSize;
1225 struct sysinfo info;
1226 if (!sysinfo(&info))
1227 return info.totalram * info.mem_unit;
1228 @@ -212,7 +218,11 @@ MemoryStatus memoryStatus()
1230 size_t memoryFootprint = 0;
1231 if (!sysctl(mib, 4, &info, &infolen, nullptr, 0))
1232 +# ifdef __DragonFly__
1233 + memoryFootprint = static_cast<size_t>(info.kp_vm_rssize) * vmPageSize();
1235 memoryFootprint = static_cast<size_t>(info.ki_rssize) * vmPageSize();
1239 double percentInUse = static_cast<double>(memoryFootprint) / static_cast<double>(availableMemory());
1242 [FILE:1225:patches/patch-Source_bmalloc_libpas_src_libpas_pas__probabilistic__guard__malloc__allocator.c]
1243 --- Source/bmalloc/libpas/src/libpas/pas_probabilistic_guard_malloc_allocator.c.orig 2023-02-20 09:22:22 UTC
1244 +++ Source/bmalloc/libpas/src/libpas/pas_probabilistic_guard_malloc_allocator.c
1245 @@ -114,11 +114,13 @@ pas_allocation_result pas_probabilistic_
1246 * ensure physical addresses are released
1247 * TODO: investigate using MADV_FREE_REUSABLE instead
1249 + /* Linux 4.5, Ravenports uses 4.4
1250 int madvise_res = madvise((void *) upper_guard_page, page_size, MADV_FREE);
1251 PAS_ASSERT(!madvise_res);
1253 madvise_res = madvise((void *) lower_guard_page, page_size, MADV_FREE);
1254 PAS_ASSERT(!madvise_res);
1258 * the key is the location where the user's starting memory address is located.
1259 @@ -180,8 +182,10 @@ void pas_probabilistic_guard_malloc_deal
1261 // ensure physical addresses are released
1262 // TODO: investigate using MADV_FREE_REUSABLE instead
1263 + /* Requires linux 4.5
1264 int madvise_res = madvise((void *) value->start_of_data_pages, value->size_of_data_pages, MADV_FREE);
1265 PAS_ASSERT(!madvise_res);
1268 bool removed = pas_ptr_hash_map_remove(&pas_pgm_hash_map, key, NULL, &pas_large_utility_free_heap_allocation_config);
1269 PAS_ASSERT(removed);
1272 [FILE:971:patches/patch-Source_cmake_OptionsCommon.cmake]
1273 --- Source/cmake/OptionsCommon.cmake.orig 2023-03-17 10:00:23 UTC
1274 +++ Source/cmake/OptionsCommon.cmake
1275 @@ -158,10 +158,10 @@ endif ()
1276 option(USE_THIN_ARCHIVES "Produce all static libraries as thin archives" ${USE_THIN_ARCHIVES_DEFAULT})
1278 if (USE_THIN_ARCHIVES)
1279 - set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> crT <TARGET> <LINK_FLAGS> <OBJECTS>")
1280 - set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> crT <TARGET> <LINK_FLAGS> <OBJECTS>")
1281 - set(CMAKE_CXX_ARCHIVE_APPEND "<CMAKE_AR> rT <TARGET> <LINK_FLAGS> <OBJECTS>")
1282 - set(CMAKE_C_ARCHIVE_APPEND "<CMAKE_AR> rT <TARGET> <LINK_FLAGS> <OBJECTS>")
1283 + set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS>")
1284 + set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS>")
1285 + set(CMAKE_CXX_ARCHIVE_APPEND "<CMAKE_AR> r <TARGET> <LINK_FLAGS> <OBJECTS>")
1286 + set(CMAKE_C_ARCHIVE_APPEND "<CMAKE_AR> r <TARGET> <LINK_FLAGS> <OBJECTS>")
1289 set(ENABLE_DEBUG_FISSION_DEFAULT OFF)
1292 [FILE:520:patches/patch-Source_cmake_WebKitCompilerFlags.cmake]
1293 --- Source/cmake/WebKitCompilerFlags.cmake.orig 2023-02-20 09:22:22 UTC
1294 +++ Source/cmake/WebKitCompilerFlags.cmake
1295 @@ -275,7 +275,7 @@ if (NOT MSVC)
1296 string(REGEX MATCHALL "-fsanitize=[^ ]*" ENABLED_COMPILER_SANITIZERS ${CMAKE_CXX_FLAGS})
1299 -if (UNIX AND NOT APPLE AND NOT ENABLED_COMPILER_SANITIZERS)
1300 +if (UNIX AND NOT APPLE AND NOT ENABLED_COMPILER_SANITIZERS AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
1301 set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined ${CMAKE_SHARED_LINKER_FLAGS}")
1306 [FILE:358:patches/patch-Tools_MiniBrowser_gtk_CMakeLists.txt]
1307 --- Tools/MiniBrowser/gtk/CMakeLists.txt.orig 2023-02-20 09:22:22 UTC
1308 +++ Tools/MiniBrowser/gtk/CMakeLists.txt
1309 @@ -41,6 +41,10 @@ set(MiniBrowser_PRIVATE_LIBRARIES
1313 +if (CMAKE_SYSTEM_NAME MATCHES "SunOS")
1314 + list(APPEND MiniBrowser_PRIVATE_LIBRARIES intl)
1317 set(MiniBrowser_DEPENDENCIES