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.3.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
52 BUILDRUN_DEPENDS= enchant:primary:standard
54 libsecret:primary:standard
55 libnotify:primary:standard
56 hyphen:single:standard
59 libgcrypt:primary:standard
60 gnutls:primary:standard
61 libtasn1:primary:standard
62 geoclue:primary:standard
64 gstreamer1-plugins-base:primary:standard
65 openjpeg:single:standard
66 lcms2:primary:standard
67 libavif:primary:standard
69 USES= png mesa cmake pkgconfig sqlite bison perl:build
70 python:build ruby:build fontconfig jpeg cpe
71 GNOME_COMPONENTS= gdkpixbuf introspection libxslt
72 XORG_COMPONENTS= x11 xcomposite xdamage xext xrender xt ice xfixes
74 DISTNAME= webkitgtk-2.40.3
76 LICENSE= GPLv2+:primary BSD3CLAUSE:primary
77 LICENSE_TERMS= primary:{{WRKDIR}}/TERMS
78 LICENSE_FILE= GPLv2+:stock
79 BSD3CLAUSE:{{WRKDIR}}/LICENSE_BSD
80 LICENSE_AWK= BSD3CLAUSE:"^$$"
82 LICENSE_SOURCE= BSD3CLAUSE:{{WRKSRC}}/Source/WebCore/css/parser/MediaQueryBlockWatcher.h
83 TERMS:{{WRKSRC}}/Source/WebCore/style/StyleScope.cpp
86 CPE_PRODUCT= webkitgtk
88 FPC_EQUIVALENT= www/webkit2-gtk3
90 CONFIGURE_ENV= XDG_CACHE_HOME={{WRKDIR}}
92 INSTALL_TARGET= install
93 INSTALL_REQ_TOOLCHAIN= yes
94 PLIST_SUB= INTRO="@comment "
96 CXXFLAGS= -DFIXED_EXECUTABLE_MEMORY_POOL_SIZE_IN_MB=32
97 CMAKE_ARGS= -DPORT=GTK
98 -DENABLE_GEOLOCATION:BOOL=ON
99 -DENABLE_GLES2:BOOL=ON
100 -DENABLE_MINIBROWSER:BOOL=ON
101 -DENABLE_WAYLAND_TARGET:BOOL=OFF
102 -DENABLE_BUBBLEWRAP_SANDBOX:BOOL=OFF
103 -DENABLE_GAMEPAD:BOOL=OFF
104 -DENABLE_INTROSPECTION:BOOL=OFF
105 -DENABLE_JOURNALD_LOG:BOOL=OFF
106 -DSUPPRESS_ASSERT:BOOL=ON
107 -DUSE_SYSTEMD:BOOL=OFF
108 -DUSE_GSTREAMER_GL:BOOL=OFF
109 -DUSE_GSTREAMER_TRANSCODER:BOOL=OFF
111 VAR_OPSYS[sunos]= CMAKE_ARGS=-DUSE_LD_GOLD:BOOL=OFF
113 [API40].DESCRIPTION= Build WebKit2 API 4.0 variant
114 [API40].BUILDRUN_DEPENDS_ON= libsoup-2.4:primary:standard
115 [API40].BUILD_DEPENDS_ON= libsoup-2.4:dev:standard
116 [API40].CMAKE_ARGS_ON= -DUSE_SOUP2=ON
117 [API40].GNOME_COMPONENTS_ON= gtk3
118 [API40].PLIST_SUB_ON= JSSOVERSION=18.22.12
125 [API41].DESCRIPTION= Build WebKit2 API 4.1 variant
126 [API41].BUILDRUN_DEPENDS_ON= libsoup:primary:standard
127 [API41].BUILD_DEPENDS_ON= libsoup:dev:standard
128 [API41].GNOME_COMPONENTS_ON= gtk3
129 [API41].PLIST_SUB_ON= JSSOVERSION=0.3.12
136 [API60].DESCRIPTION= Build WebKit2 API 6.0 variant
137 [API60].BUILDRUN_DEPENDS_ON= libsoup:primary:standard
138 libepoxy:dev:standard
139 [API60].BUILD_DEPENDS_ON= libsoup:dev:standard
140 libepoxy:dev:standard
141 [API60].CMAKE_ARGS_ON= -DUSE_GTK4=ON
142 [API60].GNOME_COMPONENTS_ON= gtk4
143 [API60].PLIST_SUB_ON= JSSOVERSION=1.0.5
151 echo 'add_compile_definitions("U_DEFINE_FALSE_AND_TRUE=1")' \
152 >> ${WRKSRC}/Source/WTF/wtf/CMakeLists.txt
154 post-install-API40-ON:
155 (cd ${STAGEDIR}${PREFIX}/bin && \
156 ${LN} -s ../libexec/webkit2gtk-4.0/jsc jsc-4.0 && \
157 ${LN} -s ../libexec/webkit2gtk-4.0/MiniBrowser MiniBrowser-4.0)
158 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/webkit2gtk-4.0/injected-bundle/*.so
159 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/webkit2gtk-4.0/*
160 ${MV} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver \
161 ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver-4.0
163 post-install-API60-ON:
164 (cd ${STAGEDIR}${PREFIX}/bin && \
165 ${LN} -s ../libexec/webkit2gtk-6.0/jsc jsc-6.0 && \
166 ${LN} -s ../libexec/webkit2gtk-6.0/MiniBrowser MiniBrowser-6.0)
167 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/webkitgtk-6.0/injected-bundle/*.so
168 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/webkitgtk-6.0/*
169 ${MV} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver \
170 ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver-6.0
173 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so.*.*
174 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver
176 post-install-API41-ON:
177 (cd ${STAGEDIR}${PREFIX}/bin && \
178 ${LN} -s ../libexec/webkit2gtk-4.1/jsc jsc-4.1 && \
179 ${LN} -s ../libexec/webkit2gtk-4.1/MiniBrowser MiniBrowser-4.1)
180 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/webkit2gtk-4.1/injected-bundle/*.so
181 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/webkit2gtk-4.1/*
182 ${MV} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver \
183 ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver-4.1
186 ${REINPLACE_CMD} -e '/USE_FILE_LOCK/ s|1|0|' \
187 ${WRKSRC}/Source/WTF/wtf/PlatformUse.h \
188 ${WRKSRC}/Source/WebCore/config.h
190 [FILE:574:descriptions/desc.primary]
191 WebKitGTK+ is a full-featured port of the WebKit rendering engine, suitable
192 for projects requiring any kind of web integration, from hybrid HTML/CSS
193 applications to full-fledged web browsers. It offers WebKit's full
194 functionality and is useful in a wide range of systems from desktop
195 computers to embedded systems like phones, tablets, and televisions.
197 WebKitGTK+ is made by a lively community of developers and designers,
198 who hope to bring the web platform to everyone. It's the official web
199 engine of the GNOME platform and is used in browsers such as Epiphany
204 cc0aa83f40dbc64c1c6ae42ec6b85af4be2a9dbf524cfcb95f89a367fb5098dd 40064488 webkitgtk-2.40.3.tar.xz
207 [FILE:660:manifests/plist.primary]
208 %%INTRO%%lib/girepository-1.0/
209 JavaScriptCore-%%WKAPI%%.typelib
210 WebKit2-%%WKAPI%%.typelib
211 WebKit2WebExtension-%%WKAPI%%.typelib
212 %%INTRO%%share/gir-1.0/
213 JavaScriptCore-%%WKAPI%%.gir
214 WebKit2-%%WKAPI%%.gir
215 WebKit2WebExtension-%%WKAPI%%.gir
217 MiniBrowser-%%WKAPI%%
218 WebKitWebDriver-%%WKAPI%%
221 libjavascriptcoregtk-%%WKAPI%%.so.%%JSSOMAJOR%%
222 libjavascriptcoregtk-%%WKAPI%%.so.%%JSSOVERSION%%
223 libwebkit2gtk-%%WKAPI%%.so.%%SOMAJOR%%
224 libwebkit2gtk-%%WKAPI%%.so.%%SOVERSION%%
225 lib/webkit2gtk-%%WKAPI%%/injected-bundle/libwebkit2gtkinjectedbundle.so
226 libexec/webkit2gtk-%%WKAPI%%/
233 [FILE:2619:manifests/plist.nls]
234 share/locale/ar/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
235 share/locale/as/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
236 share/locale/bg/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
237 share/locale/ca/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
238 share/locale/cs/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
239 share/locale/da/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
240 share/locale/de/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
241 share/locale/el/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
242 share/locale/en_CA/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
243 share/locale/en_GB/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
244 share/locale/eo/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
245 share/locale/es/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
246 share/locale/et/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
247 share/locale/eu/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
248 share/locale/fi/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
249 share/locale/fr/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
250 share/locale/gl/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
251 share/locale/gu/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
252 share/locale/he/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
253 share/locale/hi/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
254 share/locale/hr/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
255 share/locale/hu/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
256 share/locale/id/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
257 share/locale/it/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
258 share/locale/ja/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
259 share/locale/ka/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
260 share/locale/kn/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
261 share/locale/ko/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
262 share/locale/lt/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
263 share/locale/lv/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
264 share/locale/ml/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
265 share/locale/mr/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
266 share/locale/nb/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
267 share/locale/nl/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
268 share/locale/or/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
269 share/locale/pa/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
270 share/locale/pl/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
271 share/locale/pt/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
272 share/locale/pt_BR/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
273 share/locale/ro/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
274 share/locale/ru/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
275 share/locale/sl/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
276 share/locale/sr/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
277 share/locale/sr@latin/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
278 share/locale/sv/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
279 share/locale/ta/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
280 share/locale/te/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
281 share/locale/tr/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
282 share/locale/uk/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
283 share/locale/vi/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
284 share/locale/zh_CN/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
287 [FILE:5822:manifests/plist.dev]
288 include/webkitgtk-%%WKAPI%%/JavaScriptCore/
297 include/webkitgtk-%%WKAPI%%/jsc/
309 include/webkitgtk-%%WKAPI%%/webkit/
310 WebKitApplicationInfo.h
311 WebKitAuthenticationRequest.h
313 WebKitAutomationSession.h
314 WebKitBackForwardList.h
315 WebKitBackForwardListItem.h
316 WebKitColorChooserRequest.h
317 WebKitConsoleMessage.h
319 WebKitContextMenuActions.h
320 WebKitContextMenuItem.h
321 WebKitCookieManager.h
324 WebKitDeviceInfoPermissionRequest.h
326 WebKitEditingCommands.h
330 WebKitFaviconDatabase.h
331 WebKitFileChooserRequest.h
332 WebKitFindController.h
333 WebKitFormSubmissionRequest.h
335 WebKitGeolocationManager.h
336 WebKitGeolocationPermissionRequest.h
337 WebKitHitTestResult.h
338 WebKitInputMethodContext.h
339 WebKitInstallMissingMediaPluginsPermissionRequest.h
340 WebKitJavascriptResult.h
341 WebKitMediaKeySystemPermissionRequest.h
342 WebKitMemoryPressureSettings.h
344 WebKitNavigationAction.h
345 WebKitNavigationPolicyDecision.h
346 WebKitNetworkProxySettings.h
348 WebKitNotificationPermissionRequest.h
350 WebKitOptionMenuItem.h
351 WebKitPermissionRequest.h
352 WebKitPermissionStateQuery.h
354 WebKitPointerLockPermissionRequest.h
355 WebKitPolicyDecision.h
356 WebKitPrintCustomWidget.h
357 WebKitPrintOperation.h
358 WebKitResponsePolicyDecision.h
361 WebKitSecurityManager.h
362 WebKitSecurityOrigin.h
366 WebKitURISchemeRequest.h
367 WebKitURISchemeResponse.h
370 WebKitUserContentFilterStore.h
371 WebKitUserContentManager.h
372 WebKitUserMediaPermissionRequest.h
378 WebKitWebExtensionAutocleanups.h
379 WebKitWebFormManager.h
380 WebKitWebHitTestResult.h
383 WebKitWebProcessEnumTypes.h
387 WebKitWebViewSessionState.h
389 WebKitWebsiteDataAccessPermissionRequest.h
390 WebKitWebsiteDataManager.h
391 WebKitWebsitePolicies.h
392 WebKitWindowProperties.h
393 include/webkitgtk-%%WKAPI%%/webkit2/
394 webkit-web-extension.h
396 include/webkitgtk-%%WKAPI%%/webkitdom/
399 WebKitDOMCDATASection.h
401 WebKitDOMCSSRuleList.h
402 WebKitDOMCSSStyleDeclaration.h
403 WebKitDOMCSSStyleSheet.h
405 WebKitDOMCharacterData.h
406 WebKitDOMClientRect.h
407 WebKitDOMClientRectList.h
410 WebKitDOMCustomUnstable.h
411 WebKitDOMDOMImplementation.h
412 WebKitDOMDOMSelection.h
413 WebKitDOMDOMTokenList.h
415 WebKitDOMDOMWindowUnstable.h
416 WebKitDOMDeprecated.h
418 WebKitDOMDocumentFragment.h
419 WebKitDOMDocumentFragmentUnstable.h
420 WebKitDOMDocumentType.h
421 WebKitDOMDocumentUnstable.h
423 WebKitDOMElementUnstable.h
425 WebKitDOMEventTarget.h
428 WebKitDOMHTMLAnchorElement.h
429 WebKitDOMHTMLAppletElement.h
430 WebKitDOMHTMLAreaElement.h
431 WebKitDOMHTMLBRElement.h
432 WebKitDOMHTMLBaseElement.h
433 WebKitDOMHTMLBodyElement.h
434 WebKitDOMHTMLButtonElement.h
435 WebKitDOMHTMLCanvasElement.h
436 WebKitDOMHTMLCollection.h
437 WebKitDOMHTMLDListElement.h
438 WebKitDOMHTMLDirectoryElement.h
439 WebKitDOMHTMLDivElement.h
440 WebKitDOMHTMLDocument.h
441 WebKitDOMHTMLElement.h
442 WebKitDOMHTMLElementUnstable.h
443 WebKitDOMHTMLEmbedElement.h
444 WebKitDOMHTMLFieldSetElement.h
445 WebKitDOMHTMLFontElement.h
446 WebKitDOMHTMLFormElement.h
447 WebKitDOMHTMLFrameElement.h
448 WebKitDOMHTMLFrameSetElement.h
449 WebKitDOMHTMLHRElement.h
450 WebKitDOMHTMLHeadElement.h
451 WebKitDOMHTMLHeadingElement.h
452 WebKitDOMHTMLHtmlElement.h
453 WebKitDOMHTMLIFrameElement.h
454 WebKitDOMHTMLImageElement.h
455 WebKitDOMHTMLInputElement.h
456 WebKitDOMHTMLLIElement.h
457 WebKitDOMHTMLLabelElement.h
458 WebKitDOMHTMLLegendElement.h
459 WebKitDOMHTMLLinkElement.h
460 WebKitDOMHTMLMapElement.h
461 WebKitDOMHTMLMarqueeElement.h
462 WebKitDOMHTMLMenuElement.h
463 WebKitDOMHTMLMetaElement.h
464 WebKitDOMHTMLModElement.h
465 WebKitDOMHTMLOListElement.h
466 WebKitDOMHTMLObjectElement.h
467 WebKitDOMHTMLOptGroupElement.h
468 WebKitDOMHTMLOptionElement.h
469 WebKitDOMHTMLOptionsCollection.h
470 WebKitDOMHTMLParagraphElement.h
471 WebKitDOMHTMLParamElement.h
472 WebKitDOMHTMLPreElement.h
473 WebKitDOMHTMLQuoteElement.h
474 WebKitDOMHTMLScriptElement.h
475 WebKitDOMHTMLSelectElement.h
476 WebKitDOMHTMLStyleElement.h
477 WebKitDOMHTMLTableCaptionElement.h
478 WebKitDOMHTMLTableCellElement.h
479 WebKitDOMHTMLTableColElement.h
480 WebKitDOMHTMLTableElement.h
481 WebKitDOMHTMLTableRowElement.h
482 WebKitDOMHTMLTableSectionElement.h
483 WebKitDOMHTMLTextAreaElement.h
484 WebKitDOMHTMLTitleElement.h
485 WebKitDOMHTMLUListElement.h
486 WebKitDOMKeyboardEvent.h
488 WebKitDOMMouseEvent.h
489 WebKitDOMNamedNodeMap.h
491 WebKitDOMNodeFilter.h
492 WebKitDOMNodeIterator.h
495 WebKitDOMProcessingInstruction.h
497 WebKitDOMRangeUnstable.h
498 WebKitDOMStyleSheet.h
499 WebKitDOMStyleSheetList.h
501 WebKitDOMTreeWalker.h
503 WebKitDOMWheelEvent.h
504 WebKitDOMXPathExpression.h
505 WebKitDOMXPathNSResolver.h
506 WebKitDOMXPathResult.h
508 webkitdomautocleanups.h
511 libjavascriptcoregtk-%%WKAPI%%.so
512 libwebkit2gtk-%%WKAPI%%.so
514 javascriptcoregtk-%%WKAPI%%.pc
515 webkit2gtk-%%WKAPI%%.pc
516 webkit2gtk-web-extension-%%WKAPI%%.pc
519 [FILE:601:manifests/plist.primary.api60]
520 %%INTRO%%lib/girepository-1.0/
521 JavaScriptCore-%%WKAPI%%.typelib
522 WebKit2-%%WKAPI%%.typelib
523 WebKit2WebExtension-%%WKAPI%%.typelib
524 %%INTRO%%share/gir-1.0/
525 JavaScriptCore-%%WKAPI%%.gir
526 WebKit2-%%WKAPI%%.gir
527 WebKit2WebExtension-%%WKAPI%%.gir
533 libjavascriptcoregtk-6.0.so.%%JSSOMAJOR%%
534 libjavascriptcoregtk-6.0.so.%%JSSOVERSION%%
535 libwebkitgtk-6.0.so.%%SOMAJOR%%
536 libwebkitgtk-6.0.so.%%SOVERSION%%
537 lib/webkitgtk-6.0/injected-bundle/libwebkitgtkinjectedbundle.so
538 libexec/webkitgtk-6.0/
545 [FILE:2409:manifests/plist.dev.api60]
546 include/webkitgtk-6.0/jsc/
557 include/webkitgtk-6.0/webkit/
558 WebKitApplicationInfo.h
559 WebKitAuthenticationRequest.h
561 WebKitAutomationSession.h
562 WebKitBackForwardList.h
563 WebKitBackForwardListItem.h
564 WebKitColorChooserRequest.h
566 WebKitContextMenuActions.h
567 WebKitContextMenuItem.h
568 WebKitCookieManager.h
571 WebKitDeviceInfoPermissionRequest.h
573 WebKitEditingCommands.h
577 WebKitFaviconDatabase.h
578 WebKitFileChooserRequest.h
579 WebKitFindController.h
580 WebKitFormSubmissionRequest.h
582 WebKitGeolocationManager.h
583 WebKitGeolocationPermissionRequest.h
584 WebKitHitTestResult.h
585 WebKitInputMethodContext.h
586 WebKitInstallMissingMediaPluginsPermissionRequest.h
587 WebKitMediaKeySystemPermissionRequest.h
588 WebKitMemoryPressureSettings.h
589 WebKitNavigationAction.h
590 WebKitNavigationPolicyDecision.h
591 WebKitNetworkProxySettings.h
592 WebKitNetworkSession.h
594 WebKitNotificationPermissionRequest.h
596 WebKitOptionMenuItem.h
597 WebKitPermissionRequest.h
598 WebKitPermissionStateQuery.h
599 WebKitPointerLockPermissionRequest.h
600 WebKitPolicyDecision.h
601 WebKitPrintOperation.h
602 WebKitResponsePolicyDecision.h
605 WebKitSecurityManager.h
606 WebKitSecurityOrigin.h
610 WebKitURISchemeRequest.h
611 WebKitURISchemeResponse.h
614 WebKitUserContentFilterStore.h
615 WebKitUserContentManager.h
616 WebKitUserMediaPermissionRequest.h
621 WebKitWebFormManager.h
622 WebKitWebHitTestResult.h
625 WebKitWebProcessEnumTypes.h
626 WebKitWebProcessExtension.h
630 WebKitWebViewSessionState.h
632 WebKitWebsiteDataAccessPermissionRequest.h
633 WebKitWebsiteDataManager.h
634 WebKitWebsitePolicies.h
635 WebKitWindowProperties.h
636 webkit-web-process-extension.h
639 libjavascriptcoregtk-6.0.so
642 javascriptcoregtk-6.0.pc
644 webkitgtk-web-process-extension-6.0.pc
647 [FILE:431:patches/patch-CMakeLists.txt]
648 --- CMakeLists.txt.orig 2023-02-20 09:21:40 UTC
650 @@ -27,6 +27,11 @@ if (ENABLE_API_TESTS)
654 +if (SUPPRESS_ASSERT)
655 + add_definitions(-DNDEBUG=1)
656 + add_definitions(-D__OPTIMIZE__)
659 # -----------------------------------------------------------------------------
660 # Add module directories
661 # -----------------------------------------------------------------------------
664 [FILE:534:patches/patch-Source_JavaScriptCore_assembler_ARM64Assembler.h]
665 --- Source/JavaScriptCore/assembler/ARM64Assembler.h.orig 2023-02-20 09:22:04 UTC
666 +++ Source/JavaScriptCore/assembler/ARM64Assembler.h
667 @@ -3674,6 +3674,8 @@ public:
668 sys_cache_control(kCacheFunctionPrepareForExecution, code, size);
670 zx_cache_flush(code, size, ZX_CACHE_FLUSH_INSN);
671 +#elif OS(FREEBSD) || OS(NETBSD)
672 + __clear_cache(code, reinterpret_cast<char*>(code) + size);
674 size_t page = pageSize();
675 uintptr_t current = reinterpret_cast<uintptr_t>(code);
678 [FILE:4034:patches/patch-Source_JavaScriptCore_runtime_MachineContext.h]
679 $NetBSD: patch-Source_JavaScriptCore_runtime_MachineContext.h,v 1.2 2021/05/13 08:20:58 leot Exp $
681 Add support for NetBSD.
683 --- Source/JavaScriptCore/runtime/MachineContext.h.orig 2023-02-20 09:22:06 UTC
684 +++ Source/JavaScriptCore/runtime/MachineContext.h
685 @@ -193,6 +193,22 @@ static inline void*& stackPointerImpl(mc
686 #error Unknown Architecture
692 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_UESP]);
694 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RSP]);
696 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_SP]);
698 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_SP]);
700 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_SP]);
702 +#error Unknown Architecture
705 #elif OS(FUCHSIA) || OS(LINUX)
708 @@ -338,6 +354,22 @@ static inline void*& framePointerImpl(mc
709 #error Unknown Architecture
715 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EBP]);
717 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RBP]);
719 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_FP]);
721 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_FP]);
723 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_S8]);
725 +#error Unknown Architecture
728 #elif OS(FUCHSIA) || OS(LINUX)
730 // The following sequence depends on glibc's sys/ucontext.h.
731 @@ -495,6 +527,22 @@ static inline void*& instructionPointerI
733 #error Unknown Architecture
739 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EIP]);
741 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RIP]);
743 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_PC]);
745 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_PC]);
747 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EPC]);
749 +#error Unknown Architecture
752 #elif OS(FUCHSIA) || OS(LINUX)
754 @@ -651,6 +699,22 @@ inline void*& argumentPointer<1>(mcontex
756 #error Unknown Architecture
762 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EDX]);
764 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RSI]);
766 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R1]);
768 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_X1]);
770 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_A1]);
772 +#error Unknown Architecture
775 #elif OS(FUCHSIA) || OS(LINUX)
777 @@ -774,6 +838,22 @@ inline void*& llintInstructionPointer(mc
781 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_ESI]);
783 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R8]);
785 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R8]);
787 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_X4]);
789 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_T4]);
791 +#error Unknown Architecture
797 return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_ESI]);
799 return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R8]);
802 [FILE:597:patches/patch-Source_ThirdParty_ANGLE_src_common_aligned__memory.cpp]
803 --- Source/ThirdParty/ANGLE/src/common/aligned_memory.cpp.orig 2023-02-20 09:22:06 UTC
804 +++ Source/ThirdParty/ANGLE/src/common/aligned_memory.cpp
805 @@ -33,7 +33,7 @@ void *AlignedAlloc(size_t size, size_t a
806 // memalign() on Android returns pointers which can safely be used with
807 // free(), so we can use it instead. Issue filed to document this:
808 // http://code.google.com/p/android/issues/detail?id=35391
809 -#elif defined(ANGLE_PLATFORM_ANDROID)
810 +#elif defined(ANGLE_PLATFORM_ANDROID) || defined(__sun__)
811 ptr = memalign(alignment, size);
813 if (posix_memalign(&ptr, alignment, size))
816 [FILE:561:patches/patch-Source_WTF_wtf_Assertions.h]
817 $NetBSD: patch-Source_WTF_wtf_Assertions.h,v 1.1 2021/01/12 15:21:31 jperkin Exp $
819 Use regular static_assert on SunOS.
821 --- Source/WTF/wtf/Assertions.h.orig 2023-05-29 07:59:44 UTC
822 +++ Source/WTF/wtf/Assertions.h
823 @@ -477,7 +477,7 @@ constexpr bool assertionFailureDueToUnre
826 #ifndef COMPILE_ASSERT
827 -#if COMPILER_SUPPORTS(C_STATIC_ASSERT)
828 +#if COMPILER_SUPPORTS(C_STATIC_ASSERT) && !defined(__sun)
829 /* Unlike static_assert below, this also works in plain C code. */
830 #define COMPILE_ASSERT(exp, name) _Static_assert((exp), #name)
834 [FILE:638:patches/patch-Source_WTF_wtf_FastMalloc.cpp]
835 --- Source/WTF/wtf/FastMalloc.cpp.orig 2023-02-20 09:22:13 UTC
836 +++ Source/WTF/wtf/FastMalloc.cpp
837 @@ -205,7 +205,11 @@ void* fastAlignedMalloc(size_t alignment
839 ASSERT_IS_WITHIN_LIMIT(size);
842 + p = memalign(alignment, size);
844 posix_memalign(&p, alignment, size);
849 @@ -215,7 +219,11 @@ void* tryFastAlignedMalloc(size_t alignm
851 FAIL_IF_EXCEEDS_LIMIT(size);
854 + p = memalign(alignment, size);
856 posix_memalign(&p, alignment, size);
863 [FILE:502:patches/patch-Source_WTF_wtf_FileSystem.cpp]
864 $NetBSD: patch-Source_WTF_wtf_FileSystem.cpp,v 1.3 2020/09/11 14:47:35 leot Exp $
866 Support MAP_FILE if unavailable.
868 --- Source/WTF/wtf/FileSystem.cpp.orig 2023-05-29 07:59:44 UTC
869 +++ Source/WTF/wtf/FileSystem.cpp
870 @@ -356,6 +356,9 @@ bool MappedFileData::mapFileHandle(Platf
877 void* data = mmap(0, size, pageProtection, MAP_FILE | (mapMode == MappedFileMode::Shared ? MAP_SHARED : MAP_PRIVATE), fd, 0);
879 if (data == MAP_FAILED) {
882 [FILE:562:patches/patch-Source_WTF_wtf_MemoryPressureHandler.cpp]
883 --- Source/WTF/wtf/MemoryPressureHandler.cpp.orig 2023-02-20 09:22:13 UTC
884 +++ Source/WTF/wtf/MemoryPressureHandler.cpp
885 @@ -65,7 +65,7 @@ static MemoryPressureHandler* memoryPres
888 MemoryPressureHandler::MemoryPressureHandler()
889 -#if OS(LINUX) || OS(FREEBSD)
890 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
891 : m_holdOffTimer(RunLoop::main(), this, &MemoryPressureHandler::holdOffTimerFired)
893 : m_windowsMeasurementTimer(RunLoop::main(), this, &MemoryPressureHandler::windowsMeasurementTimerFired)
896 [FILE:677:patches/patch-Source_WTF_wtf_MemoryPressureHandler.h]
897 --- Source/WTF/wtf/MemoryPressureHandler.h.orig 2023-02-20 09:22:13 UTC
898 +++ Source/WTF/wtf/MemoryPressureHandler.h
899 @@ -81,7 +81,7 @@ public:
901 WTF_EXPORT_PRIVATE void setShouldUsePeriodicMemoryMonitor(bool);
903 -#if OS(LINUX) || OS(FREEBSD)
904 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
905 WTF_EXPORT_PRIVATE void triggerMemoryPressureEvent(bool isCritical);
908 @@ -274,7 +274,7 @@ private:
909 Win32Handle m_lowMemoryHandle;
912 -#if OS(LINUX) || OS(FREEBSD)
913 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
914 RunLoop::Timer m_holdOffTimer;
915 void holdOffTimerFired();
919 [FILE:326:patches/patch-Source_WTF_wtf_NumberOfCores.cpp]
920 --- Source/WTF/wtf/NumberOfCores.cpp.orig 2023-02-20 09:22:13 UTC
921 +++ Source/WTF/wtf/NumberOfCores.cpp
924 #include <sys/sysctl.h>
925 #elif OS(LINUX) || OS(AIX) || OS(OPENBSD) || OS(NETBSD) || OS(FREEBSD)
926 +#include <stdio.h> // sscanf
932 [FILE:402:patches/patch-Source_WTF_wtf_PlatformGTK.cmake]
933 --- Source/WTF/wtf/PlatformGTK.cmake.orig 2023-02-20 09:22:13 UTC
934 +++ Source/WTF/wtf/PlatformGTK.cmake
935 @@ -62,7 +62,7 @@ if (CMAKE_SYSTEM_NAME MATCHES "Linux")
937 unix/MemoryPressureHandlerUnix.cpp
939 -elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
940 +elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD|DragonFly|MidnightBSD")
941 list(APPEND WTF_SOURCES
942 generic/MemoryFootprintGeneric.cpp
946 [FILE:582:patches/patch-Source_WTF_wtf_StackBounds.cpp]
947 $NetBSD: patch-Source_WTF_wtf_StackBounds.cpp,v 1.2 2018/10/24 18:31:07 leot Exp $
949 SunOS does not have pthread_getattr_np.
951 --- Source/WTF/wtf/StackBounds.cpp.orig 2023-02-20 09:22:13 UTC
952 +++ Source/WTF/wtf/StackBounds.cpp
953 @@ -98,6 +98,7 @@ StackBounds StackBounds::newThreadStackB
954 #if HAVE(PTHREAD_NP_H) || OS(NETBSD)
955 // e.g. on FreeBSD 5.4, neundorf@kde.org
956 pthread_attr_get_np(thread, &sattr);
957 +#elif defined(__sun__)
959 // FIXME: this function is non-portable; other POSIX systems may have different np alternatives
960 pthread_getattr_np(thread, &sattr);
963 [FILE:1502:patches/patch-Source_WTF_wtf_unix_MemoryPressureHandlerUnix.cpp]
964 --- Source/WTF/wtf/unix/MemoryPressureHandlerUnix.cpp.orig 2023-02-20 09:22:14 UTC
965 +++ Source/WTF/wtf/unix/MemoryPressureHandlerUnix.cpp
968 #include <wtf/MemoryPressureHandler.h>
970 +#if OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
976 #include <wtf/Logging.h>
977 #include <wtf/MainThread.h>
981 #include <wtf/linux/CurrentProcessMemoryStatus.h>
983 +#elif OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
984 #include <sys/sysctl.h>
985 #include <sys/types.h>
986 #include <sys/user.h>
987 @@ -112,7 +116,7 @@ static size_t processMemoryUsage()
988 ProcessMemoryStatus memoryStatus;
989 currentProcessMemoryStatus(memoryStatus);
990 return (memoryStatus.resident - memoryStatus.shared);
992 +#elif OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
993 static size_t pageSize = sysconf(_SC_PAGE_SIZE);
994 struct kinfo_proc info;
995 size_t infolen = sizeof(info);
996 @@ -126,7 +130,11 @@ static size_t processMemoryUsage()
997 if (sysctl(mib, 4, &info, &infolen, nullptr, 0))
1000 +# ifdef __DragonFly__
1001 + return static_cast<size_t>(info.kp_vm_rssize - info.kp_vm_tsize) * pageSize;
1003 return static_cast<size_t>(info.ki_rssize - info.ki_tsize) * pageSize;
1006 #error "Missing a platform specific way of determining the memory usage"
1010 [FILE:848:patches/patch-Source_WebCore_Modules_fetch_FetchBodyConsumer.cpp]
1011 --- Source/WebCore/Modules/fetch/FetchBodyConsumer.cpp.orig 2023-05-29 07:59:44 UTC
1012 +++ Source/WebCore/Modules/fetch/FetchBodyConsumer.cpp
1014 #include <wtf/StringExtras.h>
1015 #include <wtf/URLParser.h>
1018 +static void *memmem(
1019 + const void *big, size_t big_len,
1020 + const void *little, size_t little_len)
1022 + const char *bp = (const char *)big;
1023 + const char *lp = (const char *)little;
1026 + if (big_len < little_len || little_len == 0 || big_len == 0)
1029 + while (big_len > 0) {
1030 + for (l = 0; l < little_len; l++) {
1031 + if (bp[l] != lp[l])
1034 + if (l == little_len)
1035 + return (void *)bp;
1045 static inline Ref<Blob> blobFromData(ScriptExecutionContext* context, Vector<uint8_t>&& data, const String& contentType)
1048 [FILE:610:patches/patch-Source_WebCore_platform_graphics_cpu_arm_filters_FELightingNEON.cpp]
1049 --- Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp.orig 2023-02-20 09:22:18 UTC
1050 +++ Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp
1051 @@ -403,7 +403,7 @@ TOSTRING(neonDrawLighting) ":" NL
1052 "vmin.f32 " TMP2_D0 ", " TMP2_D0 ", " CONST_ONE_HI_D NL
1053 "vmul.f32 " TMP3_Q ", " COLOR_Q ", " TMP2_D0 "[1]" NL
1054 "vcvt.u32.f32 " TMP3_Q ", " TMP3_Q NL
1055 - "vmov.u32 r2, r3, " TMP3_S0 ", " TMP3_S1 NL
1056 + "vmov r2, r3, " TMP3_S0 ", " TMP3_S1 NL
1057 // The color values are stored in-place.
1058 "strb r2, [" PIXELS_R ", #-11]" NL
1059 "strb r3, [" PIXELS_R ", #-10]" NL
1062 [FILE:350:patches/patch-Source_WebCore_platform_network_DNS.h]
1063 --- Source/WebCore/platform/network/DNS.h.orig 2023-02-20 09:22:19 UTC
1064 +++ Source/WebCore/platform/network/DNS.h
1066 #include <ws2tcpip.h>
1068 #include <netinet/in.h>
1069 +# if defined __DragonFly__ || defined __FreeBSD__ || defined __sun__ || defined __MidnightBSD__
1070 +# include <sys/socket.h>
1077 [FILE:336:patches/patch-Source_WebDriver_PlatformGTK.cmake]
1078 --- Source/WebDriver/PlatformGTK.cmake.orig 2023-02-20 09:22:19 UTC
1079 +++ Source/WebDriver/PlatformGTK.cmake
1080 @@ -5,6 +5,7 @@ add_definitions(-DLIBEXECDIR="${CMAKE_IN
1081 list(APPEND WebDriver_SYSTEM_INCLUDE_DIRECTORIES
1082 "${GLIB_INCLUDE_DIRS}"
1083 "${LIBSOUP_INCLUDE_DIRS}"
1084 + "${ICU_INCLUDE_DIRS}"
1087 list(APPEND WebDriver_SOURCES
1090 [FILE:507:patches/patch-Source_WebKit_CMakeLists.txt]
1091 $NetBSD: patch-Source_WebKit_CMakeLists.txt,v 1.1 2018/05/16 18:55:45 jperkin Exp $
1093 SunOS requires libsocket.
1095 --- Source/WebKit/CMakeLists.txt.orig 2023-02-20 09:22:20 UTC
1096 +++ Source/WebKit/CMakeLists.txt
1097 @@ -411,6 +411,10 @@ if (UNIX)
1101 +if (CMAKE_SYSTEM_NAME MATCHES "SunOS")
1102 + list(APPEND WebKit_LIBRARIES socket)
1105 macro(ADD_WEBKIT_PREFIX_HEADER _target)
1106 if (WebKit_USE_PREFIX_HEADER)
1107 get_target_property(OLD_COMPILE_FLAGS ${_target} COMPILE_FLAGS)
1110 [FILE:599:patches/patch-Source_WebKit_PlatformGTK.cmake]
1111 --- Source/WebKit/PlatformGTK.cmake.orig 2023-05-29 07:59:22 UTC
1112 +++ Source/WebKit/PlatformGTK.cmake
1113 @@ -40,7 +40,7 @@ add_definitions(-DDATADIR="${CMAKE_INSTA
1114 add_definitions(-DLIBDIR="${LIB_INSTALL_DIR}")
1115 add_definitions(-DPKGLIBDIR="${LIB_INSTALL_DIR}/webkit${WEBKITGTK_API_INFIX}gtk-${WEBKITGTK_API_VERSION}")
1117 -if (NOT DEVELOPER_MODE AND NOT CMAKE_SYSTEM_NAME MATCHES "Darwin")
1118 +if (NOT DEVELOPER_MODE AND NOT CMAKE_SYSTEM_NAME MATCHES "Darwin|SunOS")
1119 WEBKIT_ADD_TARGET_PROPERTIES(WebKit LINK_FLAGS "-Wl,--version-script,${CMAKE_CURRENT_SOURCE_DIR}/webkitglib-symbols.map")
1124 [FILE:1137:patches/patch-Source_WebKit_Platform_IPC_unix_ConnectionUnix.cpp]
1125 On NetBSD we see "Error sending IPC message: Message too long" due to
1126 the use of sendmsg with a large message body (EMSGSIZE).
1128 WebKit already uses shared memory to communicate the message body when
1129 the message is too large, so force it to always use this method to avoid
1130 encountering EMSGSIZE.
1132 --- Source/WebKit/Platform/IPC/unix/ConnectionUnix.cpp.orig 2023-02-20 09:22:20 UTC
1133 +++ Source/WebKit/Platform/IPC/unix/ConnectionUnix.cpp
1136 #endif // SOCK_SEQPACKET
1138 +#ifndef MSG_NOSIGNAL
1139 +#define MSG_NOSIGNAL 0
1144 static const size_t messageMaxSize = 4096;
1145 @@ -403,8 +407,12 @@ bool Connection::sendOutgoingMessage(Uni
1150 size_t messageSizeWithBodyInline = sizeof(MessageInfo) + (outputMessage.attachments().size() * sizeof(AttachmentInfo)) + outputMessage.bodySize();
1151 if (messageSizeWithBodyInline > messageMaxSize && outputMessage.bodySize()) {
1155 RefPtr<WebKit::SharedMemory> oolMessageBody = WebKit::SharedMemory::allocate(outputMessage.bodySize());
1156 if (!oolMessageBody)
1160 [FILE:586:patches/patch-Source_WebKit_Platform_unix_SharedMemoryUnix.cpp]
1161 --- Source/WebKit/Platform/unix/SharedMemoryUnix.cpp.orig 2023-02-20 09:22:20 UTC
1162 +++ Source/WebKit/Platform/unix/SharedMemoryUnix.cpp
1163 @@ -129,7 +129,11 @@ static UnixFileDescriptor createSharedMe
1166 for (int tries = 0; fileDescriptor == -1 && tries < 10; ++tries) {
1167 +# ifdef __DragonFly__
1168 + auto name = makeString("/tmp/WK2SharedMemory.", cryptographicallyRandomNumber<unsigned>());
1170 auto name = makeString("/WK2SharedMemory.", cryptographicallyRandomNumber<unsigned>());
1172 tempName = name.utf8();
1177 [FILE:681:patches/patch-Source_WebKit_UIProcess_Launcher_glib_ProcessLauncherGLib.cpp]
1178 --- Source/WebKit/UIProcess/Launcher/glib/ProcessLauncherGLib.cpp.orig 2023-05-29 07:59:44 UTC
1179 +++ Source/WebKit/UIProcess/Launcher/glib/ProcessLauncherGLib.cpp
1181 #include "ProcessProviderLibWPE.h"
1184 -#if !USE(SYSTEM_MALLOC) && OS(LINUX)
1185 -#include <bmalloc/valgrind.h>
1190 @@ -91,10 +88,6 @@ static int connectionOptions()
1192 static bool isSandboxEnabled(const ProcessLauncher::LaunchOptions& launchOptions)
1194 -#if !USE(SYSTEM_MALLOC)
1195 - if (RUNNING_ON_VALGRIND)
1199 if (const char* sandboxEnv = g_getenv("WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS")) {
1200 if (!strcmp(sandboxEnv, "1"))
1203 [FILE:1460:patches/patch-Source_bmalloc_bmalloc_AvailableMemory.cpp]
1204 --- Source/bmalloc/bmalloc/AvailableMemory.cpp.orig 2023-02-20 09:22:22 UTC
1205 +++ Source/bmalloc/bmalloc/AvailableMemory.cpp
1207 #import <mach/mach_error.h>
1210 -#if BOS(FREEBSD) || BOS(LINUX)
1212 #include <sys/sysinfo.h>
1215 @@ -161,7 +161,13 @@ static size_t computeAvailableMemory()
1216 // Round up the memory size to a multiple of 128MB because max_mem may not be exactly 512MB
1217 // (for example) and we have code that depends on those boundaries.
1218 return ((sizeAccordingToKernel + multiple - 1) / multiple) * multiple;
1219 -#elif BOS(FREEBSD) || BOS(LINUX)
1220 +#elif BOS(FREEBSD) || defined(__MidnightBSD__)
1221 + long pages = sysconf(_SC_PHYS_PAGES);
1222 + long pageSize = sysconf(_SC_PAGE_SIZE);
1223 + if (pages == -1 || pageSize == -1)
1224 + return availableMemoryGuess;
1225 + return pages * pageSize;
1227 struct sysinfo info;
1228 if (!sysinfo(&info))
1229 return info.totalram * info.mem_unit;
1230 @@ -212,7 +218,11 @@ MemoryStatus memoryStatus()
1232 size_t memoryFootprint = 0;
1233 if (!sysctl(mib, 4, &info, &infolen, nullptr, 0))
1234 +# ifdef __DragonFly__
1235 + memoryFootprint = static_cast<size_t>(info.kp_vm_rssize) * vmPageSize();
1237 memoryFootprint = static_cast<size_t>(info.ki_rssize) * vmPageSize();
1241 double percentInUse = static_cast<double>(memoryFootprint) / static_cast<double>(availableMemory());
1244 [FILE:1225:patches/patch-Source_bmalloc_libpas_src_libpas_pas__probabilistic__guard__malloc__allocator.c]
1245 --- Source/bmalloc/libpas/src/libpas/pas_probabilistic_guard_malloc_allocator.c.orig 2023-02-20 09:22:22 UTC
1246 +++ Source/bmalloc/libpas/src/libpas/pas_probabilistic_guard_malloc_allocator.c
1247 @@ -114,11 +114,13 @@ pas_allocation_result pas_probabilistic_
1248 * ensure physical addresses are released
1249 * TODO: investigate using MADV_FREE_REUSABLE instead
1251 + /* Linux 4.5, Ravenports uses 4.4
1252 int madvise_res = madvise((void *) upper_guard_page, page_size, MADV_FREE);
1253 PAS_ASSERT(!madvise_res);
1255 madvise_res = madvise((void *) lower_guard_page, page_size, MADV_FREE);
1256 PAS_ASSERT(!madvise_res);
1260 * the key is the location where the user's starting memory address is located.
1261 @@ -180,8 +182,10 @@ void pas_probabilistic_guard_malloc_deal
1263 // ensure physical addresses are released
1264 // TODO: investigate using MADV_FREE_REUSABLE instead
1265 + /* Requires linux 4.5
1266 int madvise_res = madvise((void *) value->start_of_data_pages, value->size_of_data_pages, MADV_FREE);
1267 PAS_ASSERT(!madvise_res);
1270 bool removed = pas_ptr_hash_map_remove(&pas_pgm_hash_map, key, NULL, &pas_large_utility_free_heap_allocation_config);
1271 PAS_ASSERT(removed);
1274 [FILE:971:patches/patch-Source_cmake_OptionsCommon.cmake]
1275 --- Source/cmake/OptionsCommon.cmake.orig 2023-03-17 10:00:23 UTC
1276 +++ Source/cmake/OptionsCommon.cmake
1277 @@ -158,10 +158,10 @@ endif ()
1278 option(USE_THIN_ARCHIVES "Produce all static libraries as thin archives" ${USE_THIN_ARCHIVES_DEFAULT})
1280 if (USE_THIN_ARCHIVES)
1281 - set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> crT <TARGET> <LINK_FLAGS> <OBJECTS>")
1282 - set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> crT <TARGET> <LINK_FLAGS> <OBJECTS>")
1283 - set(CMAKE_CXX_ARCHIVE_APPEND "<CMAKE_AR> rT <TARGET> <LINK_FLAGS> <OBJECTS>")
1284 - set(CMAKE_C_ARCHIVE_APPEND "<CMAKE_AR> rT <TARGET> <LINK_FLAGS> <OBJECTS>")
1285 + set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS>")
1286 + set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS>")
1287 + set(CMAKE_CXX_ARCHIVE_APPEND "<CMAKE_AR> r <TARGET> <LINK_FLAGS> <OBJECTS>")
1288 + set(CMAKE_C_ARCHIVE_APPEND "<CMAKE_AR> r <TARGET> <LINK_FLAGS> <OBJECTS>")
1291 set(ENABLE_DEBUG_FISSION_DEFAULT OFF)
1294 [FILE:520:patches/patch-Source_cmake_WebKitCompilerFlags.cmake]
1295 --- Source/cmake/WebKitCompilerFlags.cmake.orig 2023-02-20 09:22:22 UTC
1296 +++ Source/cmake/WebKitCompilerFlags.cmake
1297 @@ -275,7 +275,7 @@ if (NOT MSVC)
1298 string(REGEX MATCHALL "-fsanitize=[^ ]*" ENABLED_COMPILER_SANITIZERS ${CMAKE_CXX_FLAGS})
1301 -if (UNIX AND NOT APPLE AND NOT ENABLED_COMPILER_SANITIZERS)
1302 +if (UNIX AND NOT APPLE AND NOT ENABLED_COMPILER_SANITIZERS AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
1303 set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined ${CMAKE_SHARED_LINKER_FLAGS}")
1308 [FILE:358:patches/patch-Tools_MiniBrowser_gtk_CMakeLists.txt]
1309 --- Tools/MiniBrowser/gtk/CMakeLists.txt.orig 2023-02-20 09:22:22 UTC
1310 +++ Tools/MiniBrowser/gtk/CMakeLists.txt
1311 @@ -41,6 +41,10 @@ set(MiniBrowser_PRIVATE_LIBRARIES
1315 +if (CMAKE_SYSTEM_NAME MATCHES "SunOS")
1316 + list(APPEND MiniBrowser_PRIVATE_LIBRARIES intl)
1319 set(MiniBrowser_DEPENDENCIES