1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 VARIANTS= api40 api41 api60
8 SDESC[api40]= Opensource browser engine using GTK+3 (API 4.0)
9 SDESC[api41]= Opensource browser engine using GTK+3 (API 4.1)
10 SDESC[api60]= Opensource browser engine using GTK4 (API 6.0)
11 HOMEPAGE= https://www.webkitgtk.org/
15 SITES[main]= https://www.webkitgtk.org/releases/
16 https://fossies.org/linux/www/
17 DISTFILE[1]= webkitgtk-2.42.1.tar.xz:main
19 SPKGS[api40]= complete
23 SPKGS[api41]= complete
27 SPKGS[api60]= complete
32 OPTIONS_AVAILABLE= API40 API41 API60
33 OPTIONS_STANDARD= none
34 VOPTS[api40]= API40=ON API41=OFF API60=OFF
35 VOPTS[api41]= API40=OFF API41=ON API60=OFF
36 VOPTS[api60]= API40=OFF API41=OFF API60=ON
38 BUILD_DEPENDS= geoclue:dev:standard
40 gperf:primary:standard
41 gstreamer1:dev:standard
42 gstreamer1-plugins-base:dev:standard
44 libgcrypt:dev:standard
45 libnotify:dev:standard
50 libsecret:dev:standard
51 unifdef:primary:standard
56 BUILDRUN_DEPENDS= enchant:primary:standard
58 libsecret:primary:standard
59 libnotify:primary:standard
60 hyphen:single:standard
63 libgcrypt:primary:standard
64 gnutls:primary:standard
65 geoclue:primary:standard
67 gstreamer1-plugins-base:primary:standard
68 gstreamer1-plugins-base:plugin_gl:standard
69 openjpeg:primary:standard
70 lcms2:primary:standard
71 libdrm:primary:standard
72 libavif:primary:standard
73 libjxl:primary:standard
75 USES= png cmake pkgconfig sqlite bison perl:build
76 python:build ruby:build fontconfig jpeg cpe gold
77 GNOME_COMPONENTS= gdkpixbuf introspection libxslt
78 XORG_COMPONENTS= x11 xcomposite xdamage xext xrender xt ice xfixes
80 DISTNAME= webkitgtk-2.42.1
82 LICENSE= GPLv2+:primary BSD3CLAUSE:primary
83 LICENSE_TERMS= primary:{{WRKDIR}}/TERMS
84 LICENSE_FILE= GPLv2+:stock
85 BSD3CLAUSE:{{WRKDIR}}/LICENSE_BSD
86 LICENSE_AWK= BSD3CLAUSE:"^$$"
88 LICENSE_SOURCE= BSD3CLAUSE:{{WRKSRC}}/Source/WebCore/css/parser/MediaQueryBlockWatcher.h
89 TERMS:{{WRKSRC}}/Source/WebCore/style/StyleScope.cpp
92 CPE_PRODUCT= webkitgtk
94 FPC_EQUIVALENT= www/webkit2-gtk3
96 CONFIGURE_ENV= XDG_CACHE_HOME={{WRKDIR}}
98 INSTALL_TARGET= install
99 INSTALL_REQ_TOOLCHAIN= yes
100 PLIST_SUB= INTRO="@comment "
102 CXXFLAGS= -DFIXED_EXECUTABLE_MEMORY_POOL_SIZE_IN_MB=32
103 CMAKE_ARGS= -DPORT=GTK
104 -DENABLE_GEOLOCATION:BOOL=ON
105 -DENABLE_MINIBROWSER:BOOL=ON
106 -DENABLE_WAYLAND_TARGET:BOOL=OFF
107 -DENABLE_BUBBLEWRAP_SANDBOX:BOOL=OFF
108 -DENABLE_GAMEPAD:BOOL=OFF
109 -DENABLE_INTROSPECTION:BOOL=OFF
110 -DENABLE_JOURNALD_LOG:BOOL=OFF
111 -DSUPPRESS_ASSERT:BOOL=ON
113 -DUSE_GSTREAMER_GL:BOOL=ON
114 -DUSE_GSTREAMER_TRANSCODER:BOOL=OFF
115 -DUSE_OPENGL_OR_ES:BOOL=ON
118 [API40].DESCRIPTION= Build WebKit2 API 4.0 variant
119 [API40].BUILDRUN_DEPENDS_ON= libsoup-2.4:primary:standard
120 [API40].BUILD_DEPENDS_ON= libsoup-2.4:dev:standard
121 [API40].CMAKE_ARGS_ON= -DUSE_SOUP2=ON
122 [API40].GNOME_COMPONENTS_ON= gtk3
123 [API40].PLIST_SUB_ON= JSSOVERSION=18.23.10
130 [API41].DESCRIPTION= Build WebKit2 API 4.1 variant
131 [API41].BUILDRUN_DEPENDS_ON= libsoup:primary:standard
132 [API41].BUILD_DEPENDS_ON= libsoup:dev:standard
133 [API41].GNOME_COMPONENTS_ON= gtk3
134 [API41].PLIST_SUB_ON= JSSOVERSION=0.4.10
141 [API60].DESCRIPTION= Build WebKit2 API 6.0 variant
142 [API60].BUILDRUN_DEPENDS_ON= libsoup:primary:standard
143 libepoxy:dev:standard
144 graphene:primary:standard
145 [API60].BUILD_DEPENDS_ON= libsoup:dev:standard
146 libepoxy:dev:standard
147 graphene:dev:standard
148 [API60].CMAKE_ARGS_ON= -DUSE_GTK4=ON
149 [API60].GNOME_COMPONENTS_ON= gtk4
150 [API60].PLIST_SUB_ON= JSSOVERSION=1.1.10
158 echo 'add_compile_definitions("U_DEFINE_FALSE_AND_TRUE=1")' \
159 >> ${WRKSRC}/Source/WTF/wtf/CMakeLists.txt
161 post-install-API40-ON:
162 (cd ${STAGEDIR}${PREFIX}/bin && \
163 ${LN} -s ../libexec/webkit2gtk-4.0/jsc jsc-4.0 && \
164 ${LN} -s ../libexec/webkit2gtk-4.0/MiniBrowser MiniBrowser-4.0)
165 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/webkit2gtk-4.0/injected-bundle/*.so
166 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/webkit2gtk-4.0/*
167 ${MV} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver \
168 ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver-4.0
170 post-install-API60-ON:
171 (cd ${STAGEDIR}${PREFIX}/bin && \
172 ${LN} -s ../libexec/webkit2gtk-6.0/jsc jsc-6.0 && \
173 ${LN} -s ../libexec/webkit2gtk-6.0/MiniBrowser MiniBrowser-6.0)
174 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/webkitgtk-6.0/injected-bundle/*.so
175 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/webkitgtk-6.0/*
176 ${MV} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver \
177 ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver-6.0
180 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so.*.*
181 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver
183 post-install-API41-ON:
184 (cd ${STAGEDIR}${PREFIX}/bin && \
185 ${LN} -s ../libexec/webkit2gtk-4.1/jsc jsc-4.1 && \
186 ${LN} -s ../libexec/webkit2gtk-4.1/MiniBrowser MiniBrowser-4.1)
187 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/webkit2gtk-4.1/injected-bundle/*.so
188 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/webkit2gtk-4.1/*
189 ${MV} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver \
190 ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver-4.1
193 ${REINPLACE_CMD} -e '/USE_FILE_LOCK/ s|1|0|' \
194 ${WRKSRC}/Source/WTF/wtf/PlatformUse.h \
195 ${WRKSRC}/Source/WebCore/config.h
197 [FILE:574:descriptions/desc.primary]
198 WebKitGTK+ is a full-featured port of the WebKit rendering engine, suitable
199 for projects requiring any kind of web integration, from hybrid HTML/CSS
200 applications to full-fledged web browsers. It offers WebKit's full
201 functionality and is useful in a wide range of systems from desktop
202 computers to embedded systems like phones, tablets, and televisions.
204 WebKitGTK+ is made by a lively community of developers and designers,
205 who hope to bring the web platform to everyone. It's the official web
206 engine of the GNOME platform and is used in browsers such as Epiphany
211 6f41fac9989d3ee51c08c48de1d439cdeddecbc757e34b6180987d99b16d2499 38011772 webkitgtk-2.42.1.tar.xz
214 [FILE:660:manifests/plist.primary]
215 %%INTRO%%lib/girepository-1.0/
216 JavaScriptCore-%%WKAPI%%.typelib
217 WebKit2-%%WKAPI%%.typelib
218 WebKit2WebExtension-%%WKAPI%%.typelib
219 %%INTRO%%share/gir-1.0/
220 JavaScriptCore-%%WKAPI%%.gir
221 WebKit2-%%WKAPI%%.gir
222 WebKit2WebExtension-%%WKAPI%%.gir
224 MiniBrowser-%%WKAPI%%
225 WebKitWebDriver-%%WKAPI%%
228 libjavascriptcoregtk-%%WKAPI%%.so.%%JSSOMAJOR%%
229 libjavascriptcoregtk-%%WKAPI%%.so.%%JSSOVERSION%%
230 libwebkit2gtk-%%WKAPI%%.so.%%SOMAJOR%%
231 libwebkit2gtk-%%WKAPI%%.so.%%SOVERSION%%
232 lib/webkit2gtk-%%WKAPI%%/injected-bundle/libwebkit2gtkinjectedbundle.so
233 libexec/webkit2gtk-%%WKAPI%%/
240 [FILE:2619:manifests/plist.nls]
241 share/locale/ar/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
242 share/locale/as/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
243 share/locale/bg/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
244 share/locale/ca/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
245 share/locale/cs/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
246 share/locale/da/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
247 share/locale/de/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
248 share/locale/el/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
249 share/locale/en_CA/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
250 share/locale/en_GB/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
251 share/locale/eo/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
252 share/locale/es/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
253 share/locale/et/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
254 share/locale/eu/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
255 share/locale/fi/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
256 share/locale/fr/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
257 share/locale/gl/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
258 share/locale/gu/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
259 share/locale/he/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
260 share/locale/hi/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
261 share/locale/hr/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
262 share/locale/hu/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
263 share/locale/id/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
264 share/locale/it/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
265 share/locale/ja/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
266 share/locale/ka/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
267 share/locale/kn/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
268 share/locale/ko/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
269 share/locale/lt/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
270 share/locale/lv/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
271 share/locale/ml/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
272 share/locale/mr/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
273 share/locale/nb/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
274 share/locale/nl/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
275 share/locale/or/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
276 share/locale/pa/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
277 share/locale/pl/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
278 share/locale/pt/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
279 share/locale/pt_BR/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
280 share/locale/ro/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
281 share/locale/ru/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
282 share/locale/sl/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
283 share/locale/sr/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
284 share/locale/sr@latin/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
285 share/locale/sv/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
286 share/locale/ta/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
287 share/locale/te/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
288 share/locale/tr/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
289 share/locale/uk/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
290 share/locale/vi/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
291 share/locale/zh_CN/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
294 [FILE:5875:manifests/plist.dev]
295 include/webkitgtk-%%WKAPI%%/JavaScriptCore/
304 include/webkitgtk-%%WKAPI%%/jsc/
316 include/webkitgtk-%%WKAPI%%/webkit/
317 WebKitApplicationInfo.h
318 WebKitAuthenticationRequest.h
320 WebKitAutomationSession.h
321 WebKitBackForwardList.h
322 WebKitBackForwardListItem.h
323 WebKitClipboardPermissionRequest.h
324 WebKitColorChooserRequest.h
325 WebKitConsoleMessage.h
327 WebKitContextMenuActions.h
328 WebKitContextMenuItem.h
329 WebKitCookieManager.h
332 WebKitDeviceInfoPermissionRequest.h
334 WebKitEditingCommands.h
338 WebKitFaviconDatabase.h
340 WebKitFileChooserRequest.h
341 WebKitFindController.h
342 WebKitFormSubmissionRequest.h
344 WebKitGeolocationManager.h
345 WebKitGeolocationPermissionRequest.h
346 WebKitHitTestResult.h
347 WebKitInputMethodContext.h
348 WebKitInstallMissingMediaPluginsPermissionRequest.h
349 WebKitJavascriptResult.h
350 WebKitMediaKeySystemPermissionRequest.h
351 WebKitMemoryPressureSettings.h
353 WebKitNavigationAction.h
354 WebKitNavigationPolicyDecision.h
355 WebKitNetworkProxySettings.h
357 WebKitNotificationPermissionRequest.h
359 WebKitOptionMenuItem.h
360 WebKitPermissionRequest.h
361 WebKitPermissionStateQuery.h
363 WebKitPointerLockPermissionRequest.h
364 WebKitPolicyDecision.h
365 WebKitPrintCustomWidget.h
366 WebKitPrintOperation.h
367 WebKitResponsePolicyDecision.h
370 WebKitSecurityManager.h
371 WebKitSecurityOrigin.h
375 WebKitURISchemeRequest.h
376 WebKitURISchemeResponse.h
379 WebKitUserContentFilterStore.h
380 WebKitUserContentManager.h
381 WebKitUserMediaPermissionRequest.h
387 WebKitWebExtensionAutocleanups.h
388 WebKitWebFormManager.h
389 WebKitWebHitTestResult.h
392 WebKitWebProcessEnumTypes.h
396 WebKitWebViewSessionState.h
398 WebKitWebsiteDataAccessPermissionRequest.h
399 WebKitWebsiteDataManager.h
400 WebKitWebsitePolicies.h
401 WebKitWindowProperties.h
402 include/webkitgtk-%%WKAPI%%/webkit2/
403 webkit-web-extension.h
405 include/webkitgtk-%%WKAPI%%/webkitdom/
408 WebKitDOMCDATASection.h
410 WebKitDOMCSSRuleList.h
411 WebKitDOMCSSStyleDeclaration.h
412 WebKitDOMCSSStyleSheet.h
414 WebKitDOMCharacterData.h
415 WebKitDOMClientRect.h
416 WebKitDOMClientRectList.h
419 WebKitDOMCustomUnstable.h
420 WebKitDOMDOMImplementation.h
421 WebKitDOMDOMSelection.h
422 WebKitDOMDOMTokenList.h
424 WebKitDOMDOMWindowUnstable.h
425 WebKitDOMDeprecated.h
427 WebKitDOMDocumentFragment.h
428 WebKitDOMDocumentFragmentUnstable.h
429 WebKitDOMDocumentType.h
430 WebKitDOMDocumentUnstable.h
432 WebKitDOMElementUnstable.h
434 WebKitDOMEventTarget.h
437 WebKitDOMHTMLAnchorElement.h
438 WebKitDOMHTMLAppletElement.h
439 WebKitDOMHTMLAreaElement.h
440 WebKitDOMHTMLBRElement.h
441 WebKitDOMHTMLBaseElement.h
442 WebKitDOMHTMLBodyElement.h
443 WebKitDOMHTMLButtonElement.h
444 WebKitDOMHTMLCanvasElement.h
445 WebKitDOMHTMLCollection.h
446 WebKitDOMHTMLDListElement.h
447 WebKitDOMHTMLDirectoryElement.h
448 WebKitDOMHTMLDivElement.h
449 WebKitDOMHTMLDocument.h
450 WebKitDOMHTMLElement.h
451 WebKitDOMHTMLElementUnstable.h
452 WebKitDOMHTMLEmbedElement.h
453 WebKitDOMHTMLFieldSetElement.h
454 WebKitDOMHTMLFontElement.h
455 WebKitDOMHTMLFormElement.h
456 WebKitDOMHTMLFrameElement.h
457 WebKitDOMHTMLFrameSetElement.h
458 WebKitDOMHTMLHRElement.h
459 WebKitDOMHTMLHeadElement.h
460 WebKitDOMHTMLHeadingElement.h
461 WebKitDOMHTMLHtmlElement.h
462 WebKitDOMHTMLIFrameElement.h
463 WebKitDOMHTMLImageElement.h
464 WebKitDOMHTMLInputElement.h
465 WebKitDOMHTMLLIElement.h
466 WebKitDOMHTMLLabelElement.h
467 WebKitDOMHTMLLegendElement.h
468 WebKitDOMHTMLLinkElement.h
469 WebKitDOMHTMLMapElement.h
470 WebKitDOMHTMLMarqueeElement.h
471 WebKitDOMHTMLMenuElement.h
472 WebKitDOMHTMLMetaElement.h
473 WebKitDOMHTMLModElement.h
474 WebKitDOMHTMLOListElement.h
475 WebKitDOMHTMLObjectElement.h
476 WebKitDOMHTMLOptGroupElement.h
477 WebKitDOMHTMLOptionElement.h
478 WebKitDOMHTMLOptionsCollection.h
479 WebKitDOMHTMLParagraphElement.h
480 WebKitDOMHTMLParamElement.h
481 WebKitDOMHTMLPreElement.h
482 WebKitDOMHTMLQuoteElement.h
483 WebKitDOMHTMLScriptElement.h
484 WebKitDOMHTMLSelectElement.h
485 WebKitDOMHTMLStyleElement.h
486 WebKitDOMHTMLTableCaptionElement.h
487 WebKitDOMHTMLTableCellElement.h
488 WebKitDOMHTMLTableColElement.h
489 WebKitDOMHTMLTableElement.h
490 WebKitDOMHTMLTableRowElement.h
491 WebKitDOMHTMLTableSectionElement.h
492 WebKitDOMHTMLTextAreaElement.h
493 WebKitDOMHTMLTitleElement.h
494 WebKitDOMHTMLUListElement.h
495 WebKitDOMKeyboardEvent.h
497 WebKitDOMMouseEvent.h
498 WebKitDOMNamedNodeMap.h
500 WebKitDOMNodeFilter.h
501 WebKitDOMNodeIterator.h
504 WebKitDOMProcessingInstruction.h
506 WebKitDOMRangeUnstable.h
507 WebKitDOMStyleSheet.h
508 WebKitDOMStyleSheetList.h
510 WebKitDOMTreeWalker.h
512 WebKitDOMWheelEvent.h
513 WebKitDOMXPathExpression.h
514 WebKitDOMXPathNSResolver.h
515 WebKitDOMXPathResult.h
517 webkitdomautocleanups.h
520 libjavascriptcoregtk-%%WKAPI%%.so
521 libwebkit2gtk-%%WKAPI%%.so
523 javascriptcoregtk-%%WKAPI%%.pc
524 webkit2gtk-%%WKAPI%%.pc
525 webkit2gtk-web-extension-%%WKAPI%%.pc
528 [FILE:601:manifests/plist.primary.api60]
529 %%INTRO%%lib/girepository-1.0/
530 JavaScriptCore-%%WKAPI%%.typelib
531 WebKit2-%%WKAPI%%.typelib
532 WebKit2WebExtension-%%WKAPI%%.typelib
533 %%INTRO%%share/gir-1.0/
534 JavaScriptCore-%%WKAPI%%.gir
535 WebKit2-%%WKAPI%%.gir
536 WebKit2WebExtension-%%WKAPI%%.gir
542 libjavascriptcoregtk-6.0.so.%%JSSOMAJOR%%
543 libjavascriptcoregtk-6.0.so.%%JSSOVERSION%%
544 libwebkitgtk-6.0.so.%%SOMAJOR%%
545 libwebkitgtk-6.0.so.%%SOVERSION%%
546 lib/webkitgtk-6.0/injected-bundle/libwebkitgtkinjectedbundle.so
547 libexec/webkitgtk-6.0/
554 [FILE:2462:manifests/plist.dev.api60]
555 include/webkitgtk-6.0/jsc/
566 include/webkitgtk-6.0/webkit/
567 WebKitApplicationInfo.h
568 WebKitAuthenticationRequest.h
570 WebKitAutomationSession.h
571 WebKitBackForwardList.h
572 WebKitBackForwardListItem.h
573 WebKitClipboardPermissionRequest.h
574 WebKitColorChooserRequest.h
576 WebKitContextMenuActions.h
577 WebKitContextMenuItem.h
578 WebKitCookieManager.h
581 WebKitDeviceInfoPermissionRequest.h
583 WebKitEditingCommands.h
587 WebKitFaviconDatabase.h
589 WebKitFileChooserRequest.h
590 WebKitFindController.h
591 WebKitFormSubmissionRequest.h
593 WebKitGeolocationManager.h
594 WebKitGeolocationPermissionRequest.h
595 WebKitHitTestResult.h
596 WebKitInputMethodContext.h
597 WebKitInstallMissingMediaPluginsPermissionRequest.h
598 WebKitMediaKeySystemPermissionRequest.h
599 WebKitMemoryPressureSettings.h
600 WebKitNavigationAction.h
601 WebKitNavigationPolicyDecision.h
602 WebKitNetworkProxySettings.h
603 WebKitNetworkSession.h
605 WebKitNotificationPermissionRequest.h
607 WebKitOptionMenuItem.h
608 WebKitPermissionRequest.h
609 WebKitPermissionStateQuery.h
610 WebKitPointerLockPermissionRequest.h
611 WebKitPolicyDecision.h
612 WebKitPrintOperation.h
613 WebKitResponsePolicyDecision.h
616 WebKitSecurityManager.h
617 WebKitSecurityOrigin.h
621 WebKitURISchemeRequest.h
622 WebKitURISchemeResponse.h
625 WebKitUserContentFilterStore.h
626 WebKitUserContentManager.h
627 WebKitUserMediaPermissionRequest.h
632 WebKitWebFormManager.h
633 WebKitWebHitTestResult.h
636 WebKitWebProcessEnumTypes.h
637 WebKitWebProcessExtension.h
641 WebKitWebViewSessionState.h
643 WebKitWebsiteDataAccessPermissionRequest.h
644 WebKitWebsiteDataManager.h
645 WebKitWebsitePolicies.h
646 WebKitWindowProperties.h
647 webkit-web-process-extension.h
650 libjavascriptcoregtk-6.0.so
653 javascriptcoregtk-6.0.pc
655 webkitgtk-web-process-extension-6.0.pc
658 [FILE:431:patches/patch-CMakeLists.txt]
659 --- CMakeLists.txt.orig 2023-09-19 08:27:21 UTC
661 @@ -27,6 +27,11 @@ if (ENABLE_API_TESTS)
665 +if (SUPPRESS_ASSERT)
666 + add_definitions(-DNDEBUG=1)
667 + add_definitions(-D__OPTIMIZE__)
670 # -----------------------------------------------------------------------------
671 # Add module directories
672 # -----------------------------------------------------------------------------
675 [FILE:503:patches/patch-Source_JavaScriptCore_assembler_ARM64Assembler.h]
676 --- Source/JavaScriptCore/assembler/ARM64Assembler.h.orig 2023-09-19 08:27:45 UTC
677 +++ Source/JavaScriptCore/assembler/ARM64Assembler.h
678 @@ -3600,6 +3600,8 @@ public:
679 sys_icache_invalidate(code, size);
681 zx_cache_flush(code, size, ZX_CACHE_FLUSH_INSN);
682 +#elif OS(FREEBSD) || OS(NETBSD)
683 + __clear_cache(code, reinterpret_cast<char*>(code) + size);
685 size_t page = pageSize();
686 uintptr_t current = reinterpret_cast<uintptr_t>(code);
689 [FILE:4034:patches/patch-Source_JavaScriptCore_runtime_MachineContext.h]
690 $NetBSD: patch-Source_JavaScriptCore_runtime_MachineContext.h,v 1.2 2021/05/13 08:20:58 leot Exp $
692 Add support for NetBSD.
694 --- Source/JavaScriptCore/runtime/MachineContext.h.orig 2023-09-19 08:27:45 UTC
695 +++ Source/JavaScriptCore/runtime/MachineContext.h
696 @@ -193,6 +193,22 @@ static inline void*& stackPointerImpl(mc
697 #error Unknown Architecture
703 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_UESP]);
705 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RSP]);
707 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_SP]);
709 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_SP]);
711 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_SP]);
713 +#error Unknown Architecture
716 #elif OS(FUCHSIA) || OS(LINUX)
719 @@ -338,6 +354,22 @@ static inline void*& framePointerImpl(mc
720 #error Unknown Architecture
726 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EBP]);
728 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RBP]);
730 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_FP]);
732 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_FP]);
734 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_S8]);
736 +#error Unknown Architecture
739 #elif OS(FUCHSIA) || OS(LINUX)
741 // The following sequence depends on glibc's sys/ucontext.h.
742 @@ -495,6 +527,22 @@ static inline void*& instructionPointerI
744 #error Unknown Architecture
750 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EIP]);
752 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RIP]);
754 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_PC]);
756 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_PC]);
758 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EPC]);
760 +#error Unknown Architecture
763 #elif OS(FUCHSIA) || OS(LINUX)
765 @@ -651,6 +699,22 @@ inline void*& argumentPointer<1>(mcontex
767 #error Unknown Architecture
773 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EDX]);
775 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RSI]);
777 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R1]);
779 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_X1]);
781 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_A1]);
783 +#error Unknown Architecture
786 #elif OS(FUCHSIA) || OS(LINUX)
788 @@ -774,6 +838,22 @@ inline void*& llintInstructionPointer(mc
792 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_ESI]);
794 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R8]);
796 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R8]);
798 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_X4]);
800 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_T4]);
802 +#error Unknown Architecture
808 return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_ESI]);
810 return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R8]);
813 [FILE:597:patches/patch-Source_ThirdParty_ANGLE_src_common_aligned__memory.cpp]
814 --- Source/ThirdParty/ANGLE/src/common/aligned_memory.cpp.orig 2023-09-19 08:27:45 UTC
815 +++ Source/ThirdParty/ANGLE/src/common/aligned_memory.cpp
816 @@ -33,7 +33,7 @@ void *AlignedAlloc(size_t size, size_t a
817 // memalign() on Android returns pointers which can safely be used with
818 // free(), so we can use it instead. Issue filed to document this:
819 // http://code.google.com/p/android/issues/detail?id=35391
820 -#elif defined(ANGLE_PLATFORM_ANDROID)
821 +#elif defined(ANGLE_PLATFORM_ANDROID) || defined(__sun__)
822 ptr = memalign(alignment, size);
824 if (posix_memalign(&ptr, alignment, size))
827 [FILE:561:patches/patch-Source_WTF_wtf_Assertions.h]
828 $NetBSD: patch-Source_WTF_wtf_Assertions.h,v 1.1 2021/01/12 15:21:31 jperkin Exp $
830 Use regular static_assert on SunOS.
832 --- Source/WTF/wtf/Assertions.h.orig 2023-09-19 08:27:49 UTC
833 +++ Source/WTF/wtf/Assertions.h
834 @@ -477,7 +477,7 @@ constexpr bool assertionFailureDueToUnre
837 #ifndef COMPILE_ASSERT
838 -#if COMPILER_SUPPORTS(C_STATIC_ASSERT)
839 +#if COMPILER_SUPPORTS(C_STATIC_ASSERT) && !defined(__sun)
840 /* Unlike static_assert below, this also works in plain C code. */
841 #define COMPILE_ASSERT(exp, name) _Static_assert((exp), #name)
845 [FILE:638:patches/patch-Source_WTF_wtf_FastMalloc.cpp]
846 --- Source/WTF/wtf/FastMalloc.cpp.orig 2023-09-19 08:27:49 UTC
847 +++ Source/WTF/wtf/FastMalloc.cpp
848 @@ -189,7 +189,11 @@ void* fastAlignedMalloc(size_t alignment
850 ASSERT_IS_WITHIN_LIMIT(size);
853 + p = memalign(alignment, size);
855 posix_memalign(&p, alignment, size);
860 @@ -199,7 +203,11 @@ void* tryFastAlignedMalloc(size_t alignm
862 FAIL_IF_EXCEEDS_LIMIT(size);
865 + p = memalign(alignment, size);
867 posix_memalign(&p, alignment, size);
874 [FILE:502:patches/patch-Source_WTF_wtf_FileSystem.cpp]
875 $NetBSD: patch-Source_WTF_wtf_FileSystem.cpp,v 1.3 2020/09/11 14:47:35 leot Exp $
877 Support MAP_FILE if unavailable.
879 --- Source/WTF/wtf/FileSystem.cpp.orig 2023-09-19 08:27:49 UTC
880 +++ Source/WTF/wtf/FileSystem.cpp
881 @@ -356,6 +356,9 @@ bool MappedFileData::mapFileHandle(Platf
888 void* data = mmap(0, size, pageProtection, MAP_FILE | (mapMode == MappedFileMode::Shared ? MAP_SHARED : MAP_PRIVATE), fd, 0);
890 if (data == MAP_FAILED) {
893 [FILE:562:patches/patch-Source_WTF_wtf_MemoryPressureHandler.cpp]
894 --- Source/WTF/wtf/MemoryPressureHandler.cpp.orig 2023-09-19 08:27:49 UTC
895 +++ Source/WTF/wtf/MemoryPressureHandler.cpp
896 @@ -65,7 +65,7 @@ static MemoryPressureHandler* memoryPres
899 MemoryPressureHandler::MemoryPressureHandler()
900 -#if OS(LINUX) || OS(FREEBSD)
901 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
902 : m_holdOffTimer(RunLoop::main(), this, &MemoryPressureHandler::holdOffTimerFired)
904 : m_windowsMeasurementTimer(RunLoop::main(), this, &MemoryPressureHandler::windowsMeasurementTimerFired)
907 [FILE:677:patches/patch-Source_WTF_wtf_MemoryPressureHandler.h]
908 --- Source/WTF/wtf/MemoryPressureHandler.h.orig 2023-09-19 08:27:49 UTC
909 +++ Source/WTF/wtf/MemoryPressureHandler.h
910 @@ -81,7 +81,7 @@ public:
912 WTF_EXPORT_PRIVATE void setShouldUsePeriodicMemoryMonitor(bool);
914 -#if OS(LINUX) || OS(FREEBSD)
915 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
916 WTF_EXPORT_PRIVATE void triggerMemoryPressureEvent(bool isCritical);
919 @@ -293,7 +293,7 @@ private:
920 Win32Handle m_lowMemoryHandle;
923 -#if OS(LINUX) || OS(FREEBSD)
924 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
925 RunLoop::Timer m_holdOffTimer;
926 void holdOffTimerFired();
930 [FILE:326:patches/patch-Source_WTF_wtf_NumberOfCores.cpp]
931 --- Source/WTF/wtf/NumberOfCores.cpp.orig 2023-09-19 08:27:49 UTC
932 +++ Source/WTF/wtf/NumberOfCores.cpp
935 #include <sys/sysctl.h>
936 #elif OS(LINUX) || OS(AIX) || OS(OPENBSD) || OS(NETBSD) || OS(FREEBSD)
937 +#include <stdio.h> // sscanf
943 [FILE:402:patches/patch-Source_WTF_wtf_PlatformGTK.cmake]
944 --- Source/WTF/wtf/PlatformGTK.cmake.orig 2023-09-19 08:27:49 UTC
945 +++ Source/WTF/wtf/PlatformGTK.cmake
946 @@ -63,7 +63,7 @@ if (CMAKE_SYSTEM_NAME MATCHES "Linux")
948 unix/MemoryPressureHandlerUnix.cpp
950 -elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
951 +elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD|DragonFly|MidnightBSD")
952 list(APPEND WTF_SOURCES
953 generic/MemoryFootprintGeneric.cpp
957 [FILE:582:patches/patch-Source_WTF_wtf_StackBounds.cpp]
958 $NetBSD: patch-Source_WTF_wtf_StackBounds.cpp,v 1.2 2018/10/24 18:31:07 leot Exp $
960 SunOS does not have pthread_getattr_np.
962 --- Source/WTF/wtf/StackBounds.cpp.orig 2023-09-19 08:27:49 UTC
963 +++ Source/WTF/wtf/StackBounds.cpp
964 @@ -98,6 +98,7 @@ StackBounds StackBounds::newThreadStackB
965 #if HAVE(PTHREAD_NP_H) || OS(NETBSD)
966 // e.g. on FreeBSD 5.4, neundorf@kde.org
967 pthread_attr_get_np(thread, &sattr);
968 +#elif defined(__sun__)
970 // FIXME: this function is non-portable; other POSIX systems may have different np alternatives
971 pthread_getattr_np(thread, &sattr);
974 [FILE:489:patches/patch-Source_WTF_wtf_posix_FileSystemPOSIX.cpp]
975 --- Source/WTF/wtf/posix/FileSystemPOSIX.cpp.orig 2023-09-19 08:27:49 UTC
976 +++ Source/WTF/wtf/posix/FileSystemPOSIX.cpp
977 @@ -194,6 +194,9 @@ std::optional<WallTime> fileCreationTime
980 return WallTime::fromRawSeconds(fileInfo.stx_btime.tv_sec);
981 +#elif defined __DragonFly__
982 + /* st_birthtime is not in the stat structure on DragonFly */
983 + return std::nullopt;
984 #elif OS(DARWIN) || OS(OPENBSD) || OS(NETBSD) || OS(FREEBSD)
985 struct stat fileInfo;
989 [FILE:1502:patches/patch-Source_WTF_wtf_unix_MemoryPressureHandlerUnix.cpp]
990 --- Source/WTF/wtf/unix/MemoryPressureHandlerUnix.cpp.orig 2023-09-19 08:27:49 UTC
991 +++ Source/WTF/wtf/unix/MemoryPressureHandlerUnix.cpp
994 #include <wtf/MemoryPressureHandler.h>
996 +#if OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
1002 #include <wtf/Logging.h>
1003 #include <wtf/MainThread.h>
1007 #include <wtf/linux/CurrentProcessMemoryStatus.h>
1009 +#elif OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
1010 #include <sys/sysctl.h>
1011 #include <sys/types.h>
1012 #include <sys/user.h>
1013 @@ -112,7 +116,7 @@ static size_t processMemoryUsage()
1014 ProcessMemoryStatus memoryStatus;
1015 currentProcessMemoryStatus(memoryStatus);
1016 return (memoryStatus.resident - memoryStatus.shared);
1018 +#elif OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
1019 static size_t pageSize = sysconf(_SC_PAGE_SIZE);
1020 struct kinfo_proc info;
1021 size_t infolen = sizeof(info);
1022 @@ -126,7 +130,11 @@ static size_t processMemoryUsage()
1023 if (sysctl(mib, 4, &info, &infolen, nullptr, 0))
1026 +# ifdef __DragonFly__
1027 + return static_cast<size_t>(info.kp_vm_rssize - info.kp_vm_tsize) * pageSize;
1029 return static_cast<size_t>(info.ki_rssize - info.ki_tsize) * pageSize;
1032 #error "Missing a platform specific way of determining the memory usage"
1036 [FILE:848:patches/patch-Source_WebCore_Modules_fetch_FetchBodyConsumer.cpp]
1037 --- Source/WebCore/Modules/fetch/FetchBodyConsumer.cpp.orig 2023-09-19 08:27:49 UTC
1038 +++ Source/WebCore/Modules/fetch/FetchBodyConsumer.cpp
1040 #include <wtf/StringExtras.h>
1041 #include <wtf/URLParser.h>
1044 +static void *memmem(
1045 + const void *big, size_t big_len,
1046 + const void *little, size_t little_len)
1048 + const char *bp = (const char *)big;
1049 + const char *lp = (const char *)little;
1052 + if (big_len < little_len || little_len == 0 || big_len == 0)
1055 + while (big_len > 0) {
1056 + for (l = 0; l < little_len; l++) {
1057 + if (bp[l] != lp[l])
1060 + if (l == little_len)
1061 + return (void *)bp;
1071 static inline Ref<Blob> blobFromData(ScriptExecutionContext* context, Vector<uint8_t>&& data, const String& contentType)
1074 [FILE:610:patches/patch-Source_WebCore_platform_graphics_cpu_arm_filters_FELightingNEON.cpp]
1075 --- Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp.orig 2023-09-19 08:27:49 UTC
1076 +++ Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp
1077 @@ -403,7 +403,7 @@ TOSTRING(neonDrawLighting) ":" NL
1078 "vmin.f32 " TMP2_D0 ", " TMP2_D0 ", " CONST_ONE_HI_D NL
1079 "vmul.f32 " TMP3_Q ", " COLOR_Q ", " TMP2_D0 "[1]" NL
1080 "vcvt.u32.f32 " TMP3_Q ", " TMP3_Q NL
1081 - "vmov.u32 r2, r3, " TMP3_S0 ", " TMP3_S1 NL
1082 + "vmov r2, r3, " TMP3_S0 ", " TMP3_S1 NL
1083 // The color values are stored in-place.
1084 "strb r2, [" PIXELS_R ", #-11]" NL
1085 "strb r3, [" PIXELS_R ", #-10]" NL
1088 [FILE:796:patches/patch-Source_WebCore_platform_graphics_gbm_DMABufReleaseFlag.h]
1089 --- Source/WebCore/platform/graphics/gbm/DMABufReleaseFlag.h.orig 2023-09-19 08:27:49 UTC
1090 +++ Source/WebCore/platform/graphics/gbm/DMABufReleaseFlag.h
1095 +#if !defined(__DragonFly__) && !defined(__NetBSD__) && !defined(__MidnightBSD__)
1096 #include <sys/eventfd.h>
1098 #include <wtf/Noncopyable.h>
1099 #include <wtf/SafeStrerror.h>
1100 #include <wtf/text/CString.h>
1101 @@ -42,7 +44,11 @@ struct DMABufReleaseFlag {
1102 enum InitializeTag { Initialize };
1103 DMABufReleaseFlag(InitializeTag)
1105 +#if !defined(__DragonFly__) && !defined(__NetBSD__) && !defined(__MidnightBSD__)
1106 fd = { eventfd(0, EFD_CLOEXEC | EFD_NONBLOCK), UnixFileDescriptor::Adopt };
1108 + fd = { -1, UnixFileDescriptor::Adopt };
1112 ~DMABufReleaseFlag() = default;
1115 [FILE:350:patches/patch-Source_WebCore_platform_network_DNS.h]
1116 --- Source/WebCore/platform/network/DNS.h.orig 2023-09-19 08:27:49 UTC
1117 +++ Source/WebCore/platform/network/DNS.h
1119 #include <ws2tcpip.h>
1121 #include <netinet/in.h>
1122 +# if defined __DragonFly__ || defined __FreeBSD__ || defined __sun__ || defined __MidnightBSD__
1123 +# include <sys/socket.h>
1130 [FILE:336:patches/patch-Source_WebDriver_PlatformGTK.cmake]
1131 --- Source/WebDriver/PlatformGTK.cmake.orig 2023-09-19 08:27:50 UTC
1132 +++ Source/WebDriver/PlatformGTK.cmake
1133 @@ -5,6 +5,7 @@ add_definitions(-DLIBEXECDIR="${CMAKE_IN
1134 list(APPEND WebDriver_SYSTEM_INCLUDE_DIRECTORIES
1135 "${GLIB_INCLUDE_DIRS}"
1136 "${LIBSOUP_INCLUDE_DIRS}"
1137 + "${ICU_INCLUDE_DIRS}"
1140 list(APPEND WebDriver_SOURCES
1143 [FILE:507:patches/patch-Source_WebKit_CMakeLists.txt]
1144 $NetBSD: patch-Source_WebKit_CMakeLists.txt,v 1.1 2018/05/16 18:55:45 jperkin Exp $
1146 SunOS requires libsocket.
1148 --- Source/WebKit/CMakeLists.txt.orig 2023-09-19 08:27:50 UTC
1149 +++ Source/WebKit/CMakeLists.txt
1150 @@ -568,6 +568,10 @@ if (UNIX)
1154 +if (CMAKE_SYSTEM_NAME MATCHES "SunOS")
1155 + list(APPEND WebKit_LIBRARIES socket)
1158 macro(ADD_WEBKIT_PREFIX_HEADER _target)
1159 if (WebKit_USE_PREFIX_HEADER)
1160 get_target_property(OLD_COMPILE_FLAGS ${_target} COMPILE_FLAGS)
1163 [FILE:599:patches/patch-Source_WebKit_PlatformGTK.cmake]
1164 --- Source/WebKit/PlatformGTK.cmake.orig 2023-09-19 08:27:50 UTC
1165 +++ Source/WebKit/PlatformGTK.cmake
1166 @@ -40,7 +40,7 @@ add_definitions(-DDATADIR="${CMAKE_INSTA
1167 add_definitions(-DLIBDIR="${LIB_INSTALL_DIR}")
1168 add_definitions(-DPKGLIBDIR="${LIB_INSTALL_DIR}/webkit${WEBKITGTK_API_INFIX}gtk-${WEBKITGTK_API_VERSION}")
1170 -if (NOT DEVELOPER_MODE AND NOT CMAKE_SYSTEM_NAME MATCHES "Darwin")
1171 +if (NOT DEVELOPER_MODE AND NOT CMAKE_SYSTEM_NAME MATCHES "Darwin|SunOS")
1172 WEBKIT_ADD_TARGET_PROPERTIES(WebKit LINK_FLAGS "-Wl,--version-script,${CMAKE_CURRENT_SOURCE_DIR}/webkitglib-symbols.map")
1177 [FILE:1137:patches/patch-Source_WebKit_Platform_IPC_unix_ConnectionUnix.cpp]
1178 On NetBSD we see "Error sending IPC message: Message too long" due to
1179 the use of sendmsg with a large message body (EMSGSIZE).
1181 WebKit already uses shared memory to communicate the message body when
1182 the message is too large, so force it to always use this method to avoid
1183 encountering EMSGSIZE.
1185 --- Source/WebKit/Platform/IPC/unix/ConnectionUnix.cpp.orig 2023-09-19 08:27:50 UTC
1186 +++ Source/WebKit/Platform/IPC/unix/ConnectionUnix.cpp
1189 #endif // SOCK_SEQPACKET
1191 +#ifndef MSG_NOSIGNAL
1192 +#define MSG_NOSIGNAL 0
1197 static const size_t messageMaxSize = 4096;
1198 @@ -403,8 +407,12 @@ bool Connection::sendOutgoingMessage(Uni
1203 size_t messageSizeWithBodyInline = sizeof(MessageInfo) + (outputMessage.attachments().size() * sizeof(AttachmentInfo)) + outputMessage.bodySize();
1204 if (messageSizeWithBodyInline > messageMaxSize && outputMessage.bodySize()) {
1208 RefPtr<WebKit::SharedMemory> oolMessageBody = WebKit::SharedMemory::allocate(outputMessage.bodySize());
1209 if (!oolMessageBody)
1213 [FILE:584:patches/patch-Source_WebKit_Platform_unix_SharedMemoryUnix.cpp]
1214 --- Source/WebKit/Platform/unix/SharedMemoryUnix.cpp.orig 2023-09-19 08:27:50 UTC
1215 +++ Source/WebKit/Platform/unix/SharedMemoryUnix.cpp
1216 @@ -98,7 +98,11 @@ static UnixFileDescriptor createSharedMe
1219 for (int tries = 0; fileDescriptor == -1 && tries < 10; ++tries) {
1220 +# ifdef __DragonFly__
1221 + auto name = makeString("/tmp/WK2SharedMemory.", cryptographicallyRandomNumber<unsigned>());
1223 auto name = makeString("/WK2SharedMemory.", cryptographicallyRandomNumber<unsigned>());
1225 tempName = name.utf8();
1230 [FILE:681:patches/patch-Source_WebKit_UIProcess_Launcher_glib_ProcessLauncherGLib.cpp]
1231 --- Source/WebKit/UIProcess/Launcher/glib/ProcessLauncherGLib.cpp.orig 2023-09-19 08:27:50 UTC
1232 +++ Source/WebKit/UIProcess/Launcher/glib/ProcessLauncherGLib.cpp
1234 #include "ProcessProviderLibWPE.h"
1237 -#if !USE(SYSTEM_MALLOC) && OS(LINUX)
1238 -#include <bmalloc/valgrind.h>
1243 @@ -91,10 +88,6 @@ static int connectionOptions()
1245 static bool isSandboxEnabled(const ProcessLauncher::LaunchOptions& launchOptions)
1247 -#if !USE(SYSTEM_MALLOC)
1248 - if (RUNNING_ON_VALGRIND)
1252 if (const char* sandboxEnv = g_getenv("WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS")) {
1253 if (!strcmp(sandboxEnv, "1"))
1256 [FILE:1460:patches/patch-Source_bmalloc_bmalloc_AvailableMemory.cpp]
1257 --- Source/bmalloc/bmalloc/AvailableMemory.cpp.orig 2023-09-19 08:27:50 UTC
1258 +++ Source/bmalloc/bmalloc/AvailableMemory.cpp
1260 #import <mach/mach_error.h>
1263 -#if BOS(FREEBSD) || BOS(LINUX)
1265 #include <sys/sysinfo.h>
1268 @@ -161,7 +161,13 @@ static size_t computeAvailableMemory()
1269 // Round up the memory size to a multiple of 128MB because max_mem may not be exactly 512MB
1270 // (for example) and we have code that depends on those boundaries.
1271 return ((sizeAccordingToKernel + multiple - 1) / multiple) * multiple;
1272 -#elif BOS(FREEBSD) || BOS(LINUX)
1273 +#elif BOS(FREEBSD) || defined(__MidnightBSD__)
1274 + long pages = sysconf(_SC_PHYS_PAGES);
1275 + long pageSize = sysconf(_SC_PAGE_SIZE);
1276 + if (pages == -1 || pageSize == -1)
1277 + return availableMemoryGuess;
1278 + return pages * pageSize;
1280 struct sysinfo info;
1281 if (!sysinfo(&info))
1282 return info.totalram * info.mem_unit;
1283 @@ -212,7 +218,11 @@ MemoryStatus memoryStatus()
1285 size_t memoryFootprint = 0;
1286 if (!sysctl(mib, 4, &info, &infolen, nullptr, 0))
1287 +# ifdef __DragonFly__
1288 + memoryFootprint = static_cast<size_t>(info.kp_vm_rssize) * vmPageSize();
1290 memoryFootprint = static_cast<size_t>(info.ki_rssize) * vmPageSize();
1294 double percentInUse = static_cast<double>(memoryFootprint) / static_cast<double>(availableMemory());
1297 [FILE:971:patches/patch-Source_cmake_OptionsCommon.cmake]
1298 --- Source/cmake/OptionsCommon.cmake.orig 2023-09-19 08:27:51 UTC
1299 +++ Source/cmake/OptionsCommon.cmake
1300 @@ -158,10 +158,10 @@ endif ()
1301 option(USE_THIN_ARCHIVES "Produce all static libraries as thin archives" ${USE_THIN_ARCHIVES_DEFAULT})
1303 if (USE_THIN_ARCHIVES)
1304 - set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> crT <TARGET> <LINK_FLAGS> <OBJECTS>")
1305 - set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> crT <TARGET> <LINK_FLAGS> <OBJECTS>")
1306 - set(CMAKE_CXX_ARCHIVE_APPEND "<CMAKE_AR> rT <TARGET> <LINK_FLAGS> <OBJECTS>")
1307 - set(CMAKE_C_ARCHIVE_APPEND "<CMAKE_AR> rT <TARGET> <LINK_FLAGS> <OBJECTS>")
1308 + set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS>")
1309 + set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS>")
1310 + set(CMAKE_CXX_ARCHIVE_APPEND "<CMAKE_AR> r <TARGET> <LINK_FLAGS> <OBJECTS>")
1311 + set(CMAKE_C_ARCHIVE_APPEND "<CMAKE_AR> r <TARGET> <LINK_FLAGS> <OBJECTS>")
1314 set(ENABLE_DEBUG_FISSION_DEFAULT OFF)
1317 [FILE:520:patches/patch-Source_cmake_WebKitCompilerFlags.cmake]
1318 --- Source/cmake/WebKitCompilerFlags.cmake.orig 2023-09-19 08:27:51 UTC
1319 +++ Source/cmake/WebKitCompilerFlags.cmake
1320 @@ -275,7 +275,7 @@ if (NOT MSVC)
1321 string(REGEX MATCHALL "-fsanitize=[^ ]*" ENABLED_COMPILER_SANITIZERS ${CMAKE_CXX_FLAGS})
1324 -if (UNIX AND NOT APPLE AND NOT ENABLED_COMPILER_SANITIZERS)
1325 +if (UNIX AND NOT APPLE AND NOT ENABLED_COMPILER_SANITIZERS AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
1326 set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined ${CMAKE_SHARED_LINKER_FLAGS}")
1331 [FILE:358:patches/patch-Tools_MiniBrowser_gtk_CMakeLists.txt]
1332 --- Tools/MiniBrowser/gtk/CMakeLists.txt.orig 2023-09-19 08:27:51 UTC
1333 +++ Tools/MiniBrowser/gtk/CMakeLists.txt
1334 @@ -39,6 +39,10 @@ set(MiniBrowser_PRIVATE_LIBRARIES
1338 +if (CMAKE_SYSTEM_NAME MATCHES "SunOS")
1339 + list(APPEND MiniBrowser_PRIVATE_LIBRARIES intl)
1342 set(MiniBrowser_DEPENDENCIES
1347 [FILE:1232:files/linux44-patch-madvise]
1348 --- Source/bmalloc/libpas/src/libpas/pas_probabilistic_guard_malloc_allocator.c.orig 2023-08-09 08:49:52 UTC
1349 +++ Source/bmalloc/libpas/src/libpas/pas_probabilistic_guard_malloc_allocator.c
1350 @@ -115,11 +115,13 @@ pas_allocation_result pas_probabilistic_
1351 * ensure physical addresses are released
1352 * TODO: investigate using MADV_FREE_REUSABLE instead
1354 + /* Linux 4.5, Ravenports uses 4.4
1355 int madvise_res = madvise((void *) upper_guard_page, page_size, MADV_FREE);
1356 PAS_ASSERT(!madvise_res);
1358 madvise_res = madvise((void *) lower_guard_page, page_size, MADV_FREE);
1359 PAS_ASSERT(!madvise_res);
1363 * the key is the location where the user's starting memory address is located.
1364 @@ -181,8 +183,10 @@ void pas_probabilistic_guard_malloc_deal
1365 * ensure physical addresses are released
1366 * TODO: investigate using MADV_FREE_REUSABLE instead
1368 + /* Requires linux 4.5
1369 int madvise_res = madvise((void *) value->start_of_data_pages, value->size_of_data_pages, MADV_FREE);
1370 PAS_ASSERT(!madvise_res);
1373 bool removed = pas_ptr_hash_map_remove(&pas_pgm_hash_map, key, NULL, &pas_large_utility_free_heap_allocation_config);
1374 PAS_ASSERT(removed);