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.42.2.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
49 libsecret:dev:standard
50 unifdef:primary:standard
55 BUILDRUN_DEPENDS= enchant:primary:standard
57 libsecret:primary:standard
58 libnotify:primary:standard
59 hyphen:single:standard
62 libgcrypt:primary:standard
63 gnutls:primary:standard
64 geoclue:primary:standard
66 gstreamer1-plugins-base:primary:standard
67 gstreamer1-plugins-base:plugin_gl:standard
68 openjpeg:primary:standard
69 lcms2:primary:standard
70 libdrm:primary:standard
71 libavif:primary:standard
72 libjxl:primary:standard
74 USES= png cmake pkgconfig sqlite bison perl:build
75 python:build ruby:build fontconfig jpeg cpe gold
76 GNOME_COMPONENTS= gdkpixbuf introspection libxslt
77 XORG_COMPONENTS= x11 xcomposite xdamage xext xrender xt ice xfixes
79 DISTNAME= webkitgtk-2.42.2
81 LICENSE= GPLv2+:primary BSD3CLAUSE:primary
82 LICENSE_TERMS= primary:{{WRKDIR}}/TERMS
83 LICENSE_FILE= GPLv2+:stock
84 BSD3CLAUSE:{{WRKDIR}}/LICENSE_BSD
85 LICENSE_AWK= BSD3CLAUSE:"^$$"
87 LICENSE_SOURCE= BSD3CLAUSE:{{WRKSRC}}/Source/WebCore/css/parser/MediaQueryBlockWatcher.h
88 TERMS:{{WRKSRC}}/Source/WebCore/style/StyleScope.cpp
91 CPE_PRODUCT= webkitgtk
93 FPC_EQUIVALENT= www/webkit2-gtk3
95 CONFIGURE_ENV= XDG_CACHE_HOME={{WRKDIR}}
97 INSTALL_TARGET= install
98 INSTALL_REQ_TOOLCHAIN= yes
99 PLIST_SUB= INTRO="@comment "
101 CXXFLAGS= -DFIXED_EXECUTABLE_MEMORY_POOL_SIZE_IN_MB=32
102 CMAKE_ARGS= -DPORT=GTK
103 -DENABLE_GEOLOCATION:BOOL=ON
104 -DENABLE_MINIBROWSER:BOOL=ON
105 -DENABLE_WAYLAND_TARGET:BOOL=OFF
106 -DENABLE_BUBBLEWRAP_SANDBOX:BOOL=OFF
107 -DENABLE_GAMEPAD:BOOL=OFF
108 -DENABLE_INTROSPECTION:BOOL=OFF
109 -DENABLE_JOURNALD_LOG:BOOL=OFF
110 -DSUPPRESS_ASSERT:BOOL=ON
112 -DUSE_GSTREAMER_GL:BOOL=ON
113 -DUSE_GSTREAMER_TRANSCODER:BOOL=OFF
114 -DUSE_OPENGL_OR_ES:BOOL=ON
117 [API40].DESCRIPTION= Build WebKit2 API 4.0 variant
118 [API40].BUILDRUN_DEPENDS_ON= libsoup-2.4:primary:standard
119 [API40].BUILD_DEPENDS_ON= libsoup-2.4:dev:standard
120 [API40].CMAKE_ARGS_ON= -DUSE_SOUP2=ON
121 [API40].GNOME_COMPONENTS_ON= gtk3
122 [API40].PLIST_SUB_ON= JSSOVERSION=18.23.11
129 [API41].DESCRIPTION= Build WebKit2 API 4.1 variant
130 [API41].BUILDRUN_DEPENDS_ON= libsoup:primary:standard
131 [API41].BUILD_DEPENDS_ON= libsoup:dev:standard
132 [API41].GNOME_COMPONENTS_ON= gtk3
133 [API41].PLIST_SUB_ON= JSSOVERSION=0.4.11
140 [API60].DESCRIPTION= Build WebKit2 API 6.0 variant
141 [API60].BUILDRUN_DEPENDS_ON= libsoup:primary:standard
142 libepoxy:dev:standard
143 graphene:primary:standard
144 [API60].BUILD_DEPENDS_ON= libsoup:dev:standard
145 libepoxy:dev:standard
146 graphene:dev:standard
147 [API60].CMAKE_ARGS_ON= -DUSE_GTK4=ON
148 [API60].GNOME_COMPONENTS_ON= gtk4
149 [API60].PLIST_SUB_ON= JSSOVERSION=1.1.11
157 echo 'add_compile_definitions("U_DEFINE_FALSE_AND_TRUE=1")' \
158 >> ${WRKSRC}/Source/WTF/wtf/CMakeLists.txt
160 post-install-API40-ON:
161 (cd ${STAGEDIR}${PREFIX}/bin && \
162 ${LN} -s ../libexec/webkit2gtk-4.0/jsc jsc-4.0 && \
163 ${LN} -s ../libexec/webkit2gtk-4.0/MiniBrowser MiniBrowser-4.0)
164 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/webkit2gtk-4.0/injected-bundle/*.so
165 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/webkit2gtk-4.0/*
166 ${MV} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver \
167 ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver-4.0
169 post-install-API60-ON:
170 (cd ${STAGEDIR}${PREFIX}/bin && \
171 ${LN} -s ../libexec/webkit2gtk-6.0/jsc jsc-6.0 && \
172 ${LN} -s ../libexec/webkit2gtk-6.0/MiniBrowser MiniBrowser-6.0)
173 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/webkitgtk-6.0/injected-bundle/*.so
174 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/webkitgtk-6.0/*
175 ${MV} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver \
176 ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver-6.0
179 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so.*.*
180 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver
182 post-install-API41-ON:
183 (cd ${STAGEDIR}${PREFIX}/bin && \
184 ${LN} -s ../libexec/webkit2gtk-4.1/jsc jsc-4.1 && \
185 ${LN} -s ../libexec/webkit2gtk-4.1/MiniBrowser MiniBrowser-4.1)
186 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/webkit2gtk-4.1/injected-bundle/*.so
187 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/webkit2gtk-4.1/*
188 ${MV} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver \
189 ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver-4.1
192 ${REINPLACE_CMD} -e '/USE_FILE_LOCK/ s|1|0|' \
193 ${WRKSRC}/Source/WTF/wtf/PlatformUse.h \
194 ${WRKSRC}/Source/WebCore/config.h
196 [FILE:574:descriptions/desc.primary]
197 WebKitGTK+ is a full-featured port of the WebKit rendering engine, suitable
198 for projects requiring any kind of web integration, from hybrid HTML/CSS
199 applications to full-fledged web browsers. It offers WebKit's full
200 functionality and is useful in a wide range of systems from desktop
201 computers to embedded systems like phones, tablets, and televisions.
203 WebKitGTK+ is made by a lively community of developers and designers,
204 who hope to bring the web platform to everyone. It's the official web
205 engine of the GNOME platform and is used in browsers such as Epiphany
210 5720aa3e8627f1b9f63252187d4df0f8233ae71d697b1796ebfbe5ca750bd118 32020280 webkitgtk-2.42.2.tar.xz
213 [FILE:660:manifests/plist.primary]
214 %%INTRO%%lib/girepository-1.0/
215 JavaScriptCore-%%WKAPI%%.typelib
216 WebKit2-%%WKAPI%%.typelib
217 WebKit2WebExtension-%%WKAPI%%.typelib
218 %%INTRO%%share/gir-1.0/
219 JavaScriptCore-%%WKAPI%%.gir
220 WebKit2-%%WKAPI%%.gir
221 WebKit2WebExtension-%%WKAPI%%.gir
223 MiniBrowser-%%WKAPI%%
224 WebKitWebDriver-%%WKAPI%%
227 libjavascriptcoregtk-%%WKAPI%%.so.%%JSSOMAJOR%%
228 libjavascriptcoregtk-%%WKAPI%%.so.%%JSSOVERSION%%
229 libwebkit2gtk-%%WKAPI%%.so.%%SOMAJOR%%
230 libwebkit2gtk-%%WKAPI%%.so.%%SOVERSION%%
231 lib/webkit2gtk-%%WKAPI%%/injected-bundle/libwebkit2gtkinjectedbundle.so
232 libexec/webkit2gtk-%%WKAPI%%/
239 [FILE:2619:manifests/plist.nls]
240 share/locale/ar/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
241 share/locale/as/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
242 share/locale/bg/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
243 share/locale/ca/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
244 share/locale/cs/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
245 share/locale/da/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
246 share/locale/de/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
247 share/locale/el/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
248 share/locale/en_CA/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
249 share/locale/en_GB/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
250 share/locale/eo/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
251 share/locale/es/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
252 share/locale/et/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
253 share/locale/eu/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
254 share/locale/fi/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
255 share/locale/fr/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
256 share/locale/gl/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
257 share/locale/gu/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
258 share/locale/he/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
259 share/locale/hi/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
260 share/locale/hr/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
261 share/locale/hu/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
262 share/locale/id/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
263 share/locale/it/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
264 share/locale/ja/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
265 share/locale/ka/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
266 share/locale/kn/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
267 share/locale/ko/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
268 share/locale/lt/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
269 share/locale/lv/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
270 share/locale/ml/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
271 share/locale/mr/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
272 share/locale/nb/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
273 share/locale/nl/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
274 share/locale/or/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
275 share/locale/pa/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
276 share/locale/pl/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
277 share/locale/pt/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
278 share/locale/pt_BR/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
279 share/locale/ro/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
280 share/locale/ru/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
281 share/locale/sl/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
282 share/locale/sr/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
283 share/locale/sr@latin/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
284 share/locale/sv/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
285 share/locale/ta/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
286 share/locale/te/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
287 share/locale/tr/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
288 share/locale/uk/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
289 share/locale/vi/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
290 share/locale/zh_CN/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
293 [FILE:5875:manifests/plist.dev]
294 include/webkitgtk-%%WKAPI%%/JavaScriptCore/
303 include/webkitgtk-%%WKAPI%%/jsc/
315 include/webkitgtk-%%WKAPI%%/webkit/
316 WebKitApplicationInfo.h
317 WebKitAuthenticationRequest.h
319 WebKitAutomationSession.h
320 WebKitBackForwardList.h
321 WebKitBackForwardListItem.h
322 WebKitClipboardPermissionRequest.h
323 WebKitColorChooserRequest.h
324 WebKitConsoleMessage.h
326 WebKitContextMenuActions.h
327 WebKitContextMenuItem.h
328 WebKitCookieManager.h
331 WebKitDeviceInfoPermissionRequest.h
333 WebKitEditingCommands.h
337 WebKitFaviconDatabase.h
339 WebKitFileChooserRequest.h
340 WebKitFindController.h
341 WebKitFormSubmissionRequest.h
343 WebKitGeolocationManager.h
344 WebKitGeolocationPermissionRequest.h
345 WebKitHitTestResult.h
346 WebKitInputMethodContext.h
347 WebKitInstallMissingMediaPluginsPermissionRequest.h
348 WebKitJavascriptResult.h
349 WebKitMediaKeySystemPermissionRequest.h
350 WebKitMemoryPressureSettings.h
352 WebKitNavigationAction.h
353 WebKitNavigationPolicyDecision.h
354 WebKitNetworkProxySettings.h
356 WebKitNotificationPermissionRequest.h
358 WebKitOptionMenuItem.h
359 WebKitPermissionRequest.h
360 WebKitPermissionStateQuery.h
362 WebKitPointerLockPermissionRequest.h
363 WebKitPolicyDecision.h
364 WebKitPrintCustomWidget.h
365 WebKitPrintOperation.h
366 WebKitResponsePolicyDecision.h
369 WebKitSecurityManager.h
370 WebKitSecurityOrigin.h
374 WebKitURISchemeRequest.h
375 WebKitURISchemeResponse.h
378 WebKitUserContentFilterStore.h
379 WebKitUserContentManager.h
380 WebKitUserMediaPermissionRequest.h
386 WebKitWebExtensionAutocleanups.h
387 WebKitWebFormManager.h
388 WebKitWebHitTestResult.h
391 WebKitWebProcessEnumTypes.h
395 WebKitWebViewSessionState.h
397 WebKitWebsiteDataAccessPermissionRequest.h
398 WebKitWebsiteDataManager.h
399 WebKitWebsitePolicies.h
400 WebKitWindowProperties.h
401 include/webkitgtk-%%WKAPI%%/webkit2/
402 webkit-web-extension.h
404 include/webkitgtk-%%WKAPI%%/webkitdom/
407 WebKitDOMCDATASection.h
409 WebKitDOMCSSRuleList.h
410 WebKitDOMCSSStyleDeclaration.h
411 WebKitDOMCSSStyleSheet.h
413 WebKitDOMCharacterData.h
414 WebKitDOMClientRect.h
415 WebKitDOMClientRectList.h
418 WebKitDOMCustomUnstable.h
419 WebKitDOMDOMImplementation.h
420 WebKitDOMDOMSelection.h
421 WebKitDOMDOMTokenList.h
423 WebKitDOMDOMWindowUnstable.h
424 WebKitDOMDeprecated.h
426 WebKitDOMDocumentFragment.h
427 WebKitDOMDocumentFragmentUnstable.h
428 WebKitDOMDocumentType.h
429 WebKitDOMDocumentUnstable.h
431 WebKitDOMElementUnstable.h
433 WebKitDOMEventTarget.h
436 WebKitDOMHTMLAnchorElement.h
437 WebKitDOMHTMLAppletElement.h
438 WebKitDOMHTMLAreaElement.h
439 WebKitDOMHTMLBRElement.h
440 WebKitDOMHTMLBaseElement.h
441 WebKitDOMHTMLBodyElement.h
442 WebKitDOMHTMLButtonElement.h
443 WebKitDOMHTMLCanvasElement.h
444 WebKitDOMHTMLCollection.h
445 WebKitDOMHTMLDListElement.h
446 WebKitDOMHTMLDirectoryElement.h
447 WebKitDOMHTMLDivElement.h
448 WebKitDOMHTMLDocument.h
449 WebKitDOMHTMLElement.h
450 WebKitDOMHTMLElementUnstable.h
451 WebKitDOMHTMLEmbedElement.h
452 WebKitDOMHTMLFieldSetElement.h
453 WebKitDOMHTMLFontElement.h
454 WebKitDOMHTMLFormElement.h
455 WebKitDOMHTMLFrameElement.h
456 WebKitDOMHTMLFrameSetElement.h
457 WebKitDOMHTMLHRElement.h
458 WebKitDOMHTMLHeadElement.h
459 WebKitDOMHTMLHeadingElement.h
460 WebKitDOMHTMLHtmlElement.h
461 WebKitDOMHTMLIFrameElement.h
462 WebKitDOMHTMLImageElement.h
463 WebKitDOMHTMLInputElement.h
464 WebKitDOMHTMLLIElement.h
465 WebKitDOMHTMLLabelElement.h
466 WebKitDOMHTMLLegendElement.h
467 WebKitDOMHTMLLinkElement.h
468 WebKitDOMHTMLMapElement.h
469 WebKitDOMHTMLMarqueeElement.h
470 WebKitDOMHTMLMenuElement.h
471 WebKitDOMHTMLMetaElement.h
472 WebKitDOMHTMLModElement.h
473 WebKitDOMHTMLOListElement.h
474 WebKitDOMHTMLObjectElement.h
475 WebKitDOMHTMLOptGroupElement.h
476 WebKitDOMHTMLOptionElement.h
477 WebKitDOMHTMLOptionsCollection.h
478 WebKitDOMHTMLParagraphElement.h
479 WebKitDOMHTMLParamElement.h
480 WebKitDOMHTMLPreElement.h
481 WebKitDOMHTMLQuoteElement.h
482 WebKitDOMHTMLScriptElement.h
483 WebKitDOMHTMLSelectElement.h
484 WebKitDOMHTMLStyleElement.h
485 WebKitDOMHTMLTableCaptionElement.h
486 WebKitDOMHTMLTableCellElement.h
487 WebKitDOMHTMLTableColElement.h
488 WebKitDOMHTMLTableElement.h
489 WebKitDOMHTMLTableRowElement.h
490 WebKitDOMHTMLTableSectionElement.h
491 WebKitDOMHTMLTextAreaElement.h
492 WebKitDOMHTMLTitleElement.h
493 WebKitDOMHTMLUListElement.h
494 WebKitDOMKeyboardEvent.h
496 WebKitDOMMouseEvent.h
497 WebKitDOMNamedNodeMap.h
499 WebKitDOMNodeFilter.h
500 WebKitDOMNodeIterator.h
503 WebKitDOMProcessingInstruction.h
505 WebKitDOMRangeUnstable.h
506 WebKitDOMStyleSheet.h
507 WebKitDOMStyleSheetList.h
509 WebKitDOMTreeWalker.h
511 WebKitDOMWheelEvent.h
512 WebKitDOMXPathExpression.h
513 WebKitDOMXPathNSResolver.h
514 WebKitDOMXPathResult.h
516 webkitdomautocleanups.h
519 libjavascriptcoregtk-%%WKAPI%%.so
520 libwebkit2gtk-%%WKAPI%%.so
522 javascriptcoregtk-%%WKAPI%%.pc
523 webkit2gtk-%%WKAPI%%.pc
524 webkit2gtk-web-extension-%%WKAPI%%.pc
527 [FILE:601:manifests/plist.primary.api60]
528 %%INTRO%%lib/girepository-1.0/
529 JavaScriptCore-%%WKAPI%%.typelib
530 WebKit2-%%WKAPI%%.typelib
531 WebKit2WebExtension-%%WKAPI%%.typelib
532 %%INTRO%%share/gir-1.0/
533 JavaScriptCore-%%WKAPI%%.gir
534 WebKit2-%%WKAPI%%.gir
535 WebKit2WebExtension-%%WKAPI%%.gir
541 libjavascriptcoregtk-6.0.so.%%JSSOMAJOR%%
542 libjavascriptcoregtk-6.0.so.%%JSSOVERSION%%
543 libwebkitgtk-6.0.so.%%SOMAJOR%%
544 libwebkitgtk-6.0.so.%%SOVERSION%%
545 lib/webkitgtk-6.0/injected-bundle/libwebkitgtkinjectedbundle.so
546 libexec/webkitgtk-6.0/
553 [FILE:2462:manifests/plist.dev.api60]
554 include/webkitgtk-6.0/jsc/
565 include/webkitgtk-6.0/webkit/
566 WebKitApplicationInfo.h
567 WebKitAuthenticationRequest.h
569 WebKitAutomationSession.h
570 WebKitBackForwardList.h
571 WebKitBackForwardListItem.h
572 WebKitClipboardPermissionRequest.h
573 WebKitColorChooserRequest.h
575 WebKitContextMenuActions.h
576 WebKitContextMenuItem.h
577 WebKitCookieManager.h
580 WebKitDeviceInfoPermissionRequest.h
582 WebKitEditingCommands.h
586 WebKitFaviconDatabase.h
588 WebKitFileChooserRequest.h
589 WebKitFindController.h
590 WebKitFormSubmissionRequest.h
592 WebKitGeolocationManager.h
593 WebKitGeolocationPermissionRequest.h
594 WebKitHitTestResult.h
595 WebKitInputMethodContext.h
596 WebKitInstallMissingMediaPluginsPermissionRequest.h
597 WebKitMediaKeySystemPermissionRequest.h
598 WebKitMemoryPressureSettings.h
599 WebKitNavigationAction.h
600 WebKitNavigationPolicyDecision.h
601 WebKitNetworkProxySettings.h
602 WebKitNetworkSession.h
604 WebKitNotificationPermissionRequest.h
606 WebKitOptionMenuItem.h
607 WebKitPermissionRequest.h
608 WebKitPermissionStateQuery.h
609 WebKitPointerLockPermissionRequest.h
610 WebKitPolicyDecision.h
611 WebKitPrintOperation.h
612 WebKitResponsePolicyDecision.h
615 WebKitSecurityManager.h
616 WebKitSecurityOrigin.h
620 WebKitURISchemeRequest.h
621 WebKitURISchemeResponse.h
624 WebKitUserContentFilterStore.h
625 WebKitUserContentManager.h
626 WebKitUserMediaPermissionRequest.h
631 WebKitWebFormManager.h
632 WebKitWebHitTestResult.h
635 WebKitWebProcessEnumTypes.h
636 WebKitWebProcessExtension.h
640 WebKitWebViewSessionState.h
642 WebKitWebsiteDataAccessPermissionRequest.h
643 WebKitWebsiteDataManager.h
644 WebKitWebsitePolicies.h
645 WebKitWindowProperties.h
646 webkit-web-process-extension.h
649 libjavascriptcoregtk-6.0.so
652 javascriptcoregtk-6.0.pc
654 webkitgtk-web-process-extension-6.0.pc
657 [FILE:431:patches/patch-CMakeLists.txt]
658 --- CMakeLists.txt.orig 2023-09-19 08:27:21 UTC
660 @@ -27,6 +27,11 @@ if (ENABLE_API_TESTS)
664 +if (SUPPRESS_ASSERT)
665 + add_definitions(-DNDEBUG=1)
666 + add_definitions(-D__OPTIMIZE__)
669 # -----------------------------------------------------------------------------
670 # Add module directories
671 # -----------------------------------------------------------------------------
674 [FILE:503:patches/patch-Source_JavaScriptCore_assembler_ARM64Assembler.h]
675 --- Source/JavaScriptCore/assembler/ARM64Assembler.h.orig 2023-09-19 08:27:45 UTC
676 +++ Source/JavaScriptCore/assembler/ARM64Assembler.h
677 @@ -3600,6 +3600,8 @@ public:
678 sys_icache_invalidate(code, size);
680 zx_cache_flush(code, size, ZX_CACHE_FLUSH_INSN);
681 +#elif OS(FREEBSD) || OS(NETBSD)
682 + __clear_cache(code, reinterpret_cast<char*>(code) + size);
684 size_t page = pageSize();
685 uintptr_t current = reinterpret_cast<uintptr_t>(code);
688 [FILE:4034:patches/patch-Source_JavaScriptCore_runtime_MachineContext.h]
689 $NetBSD: patch-Source_JavaScriptCore_runtime_MachineContext.h,v 1.2 2021/05/13 08:20:58 leot Exp $
691 Add support for NetBSD.
693 --- Source/JavaScriptCore/runtime/MachineContext.h.orig 2023-09-19 08:27:45 UTC
694 +++ Source/JavaScriptCore/runtime/MachineContext.h
695 @@ -193,6 +193,22 @@ static inline void*& stackPointerImpl(mc
696 #error Unknown Architecture
702 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_UESP]);
704 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RSP]);
706 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_SP]);
708 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_SP]);
710 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_SP]);
712 +#error Unknown Architecture
715 #elif OS(FUCHSIA) || OS(LINUX)
718 @@ -338,6 +354,22 @@ static inline void*& framePointerImpl(mc
719 #error Unknown Architecture
725 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EBP]);
727 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RBP]);
729 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_FP]);
731 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_FP]);
733 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_S8]);
735 +#error Unknown Architecture
738 #elif OS(FUCHSIA) || OS(LINUX)
740 // The following sequence depends on glibc's sys/ucontext.h.
741 @@ -495,6 +527,22 @@ static inline void*& instructionPointerI
743 #error Unknown Architecture
749 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EIP]);
751 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RIP]);
753 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_PC]);
755 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_PC]);
757 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EPC]);
759 +#error Unknown Architecture
762 #elif OS(FUCHSIA) || OS(LINUX)
764 @@ -651,6 +699,22 @@ inline void*& argumentPointer<1>(mcontex
766 #error Unknown Architecture
772 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EDX]);
774 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RSI]);
776 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R1]);
778 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_X1]);
780 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_A1]);
782 +#error Unknown Architecture
785 #elif OS(FUCHSIA) || OS(LINUX)
787 @@ -774,6 +838,22 @@ inline void*& llintInstructionPointer(mc
791 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_ESI]);
793 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R8]);
795 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R8]);
797 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_X4]);
799 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_T4]);
801 +#error Unknown Architecture
807 return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_ESI]);
809 return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R8]);
812 [FILE:597:patches/patch-Source_ThirdParty_ANGLE_src_common_aligned__memory.cpp]
813 --- Source/ThirdParty/ANGLE/src/common/aligned_memory.cpp.orig 2023-09-19 08:27:45 UTC
814 +++ Source/ThirdParty/ANGLE/src/common/aligned_memory.cpp
815 @@ -33,7 +33,7 @@ void *AlignedAlloc(size_t size, size_t a
816 // memalign() on Android returns pointers which can safely be used with
817 // free(), so we can use it instead. Issue filed to document this:
818 // http://code.google.com/p/android/issues/detail?id=35391
819 -#elif defined(ANGLE_PLATFORM_ANDROID)
820 +#elif defined(ANGLE_PLATFORM_ANDROID) || defined(__sun__)
821 ptr = memalign(alignment, size);
823 if (posix_memalign(&ptr, alignment, size))
826 [FILE:561:patches/patch-Source_WTF_wtf_Assertions.h]
827 $NetBSD: patch-Source_WTF_wtf_Assertions.h,v 1.1 2021/01/12 15:21:31 jperkin Exp $
829 Use regular static_assert on SunOS.
831 --- Source/WTF/wtf/Assertions.h.orig 2023-09-19 08:27:49 UTC
832 +++ Source/WTF/wtf/Assertions.h
833 @@ -477,7 +477,7 @@ constexpr bool assertionFailureDueToUnre
836 #ifndef COMPILE_ASSERT
837 -#if COMPILER_SUPPORTS(C_STATIC_ASSERT)
838 +#if COMPILER_SUPPORTS(C_STATIC_ASSERT) && !defined(__sun)
839 /* Unlike static_assert below, this also works in plain C code. */
840 #define COMPILE_ASSERT(exp, name) _Static_assert((exp), #name)
844 [FILE:638:patches/patch-Source_WTF_wtf_FastMalloc.cpp]
845 --- Source/WTF/wtf/FastMalloc.cpp.orig 2023-09-19 08:27:49 UTC
846 +++ Source/WTF/wtf/FastMalloc.cpp
847 @@ -189,7 +189,11 @@ void* fastAlignedMalloc(size_t alignment
849 ASSERT_IS_WITHIN_LIMIT(size);
852 + p = memalign(alignment, size);
854 posix_memalign(&p, alignment, size);
859 @@ -199,7 +203,11 @@ void* tryFastAlignedMalloc(size_t alignm
861 FAIL_IF_EXCEEDS_LIMIT(size);
864 + p = memalign(alignment, size);
866 posix_memalign(&p, alignment, size);
873 [FILE:502:patches/patch-Source_WTF_wtf_FileSystem.cpp]
874 $NetBSD: patch-Source_WTF_wtf_FileSystem.cpp,v 1.3 2020/09/11 14:47:35 leot Exp $
876 Support MAP_FILE if unavailable.
878 --- Source/WTF/wtf/FileSystem.cpp.orig 2023-09-19 08:27:49 UTC
879 +++ Source/WTF/wtf/FileSystem.cpp
880 @@ -356,6 +356,9 @@ bool MappedFileData::mapFileHandle(Platf
887 void* data = mmap(0, size, pageProtection, MAP_FILE | (mapMode == MappedFileMode::Shared ? MAP_SHARED : MAP_PRIVATE), fd, 0);
889 if (data == MAP_FAILED) {
892 [FILE:562:patches/patch-Source_WTF_wtf_MemoryPressureHandler.cpp]
893 --- Source/WTF/wtf/MemoryPressureHandler.cpp.orig 2023-09-19 08:27:49 UTC
894 +++ Source/WTF/wtf/MemoryPressureHandler.cpp
895 @@ -65,7 +65,7 @@ static MemoryPressureHandler* memoryPres
898 MemoryPressureHandler::MemoryPressureHandler()
899 -#if OS(LINUX) || OS(FREEBSD)
900 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
901 : m_holdOffTimer(RunLoop::main(), this, &MemoryPressureHandler::holdOffTimerFired)
903 : m_windowsMeasurementTimer(RunLoop::main(), this, &MemoryPressureHandler::windowsMeasurementTimerFired)
906 [FILE:677:patches/patch-Source_WTF_wtf_MemoryPressureHandler.h]
907 --- Source/WTF/wtf/MemoryPressureHandler.h.orig 2023-09-19 08:27:49 UTC
908 +++ Source/WTF/wtf/MemoryPressureHandler.h
909 @@ -81,7 +81,7 @@ public:
911 WTF_EXPORT_PRIVATE void setShouldUsePeriodicMemoryMonitor(bool);
913 -#if OS(LINUX) || OS(FREEBSD)
914 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
915 WTF_EXPORT_PRIVATE void triggerMemoryPressureEvent(bool isCritical);
918 @@ -293,7 +293,7 @@ private:
919 Win32Handle m_lowMemoryHandle;
922 -#if OS(LINUX) || OS(FREEBSD)
923 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
924 RunLoop::Timer m_holdOffTimer;
925 void holdOffTimerFired();
929 [FILE:326:patches/patch-Source_WTF_wtf_NumberOfCores.cpp]
930 --- Source/WTF/wtf/NumberOfCores.cpp.orig 2023-09-19 08:27:49 UTC
931 +++ Source/WTF/wtf/NumberOfCores.cpp
934 #include <sys/sysctl.h>
935 #elif OS(LINUX) || OS(AIX) || OS(OPENBSD) || OS(NETBSD) || OS(FREEBSD)
936 +#include <stdio.h> // sscanf
942 [FILE:402:patches/patch-Source_WTF_wtf_PlatformGTK.cmake]
943 --- Source/WTF/wtf/PlatformGTK.cmake.orig 2023-09-19 08:27:49 UTC
944 +++ Source/WTF/wtf/PlatformGTK.cmake
945 @@ -63,7 +63,7 @@ if (CMAKE_SYSTEM_NAME MATCHES "Linux")
947 unix/MemoryPressureHandlerUnix.cpp
949 -elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
950 +elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD|DragonFly|MidnightBSD")
951 list(APPEND WTF_SOURCES
952 generic/MemoryFootprintGeneric.cpp
956 [FILE:582:patches/patch-Source_WTF_wtf_StackBounds.cpp]
957 $NetBSD: patch-Source_WTF_wtf_StackBounds.cpp,v 1.2 2018/10/24 18:31:07 leot Exp $
959 SunOS does not have pthread_getattr_np.
961 --- Source/WTF/wtf/StackBounds.cpp.orig 2023-09-19 08:27:49 UTC
962 +++ Source/WTF/wtf/StackBounds.cpp
963 @@ -98,6 +98,7 @@ StackBounds StackBounds::newThreadStackB
964 #if HAVE(PTHREAD_NP_H) || OS(NETBSD)
965 // e.g. on FreeBSD 5.4, neundorf@kde.org
966 pthread_attr_get_np(thread, &sattr);
967 +#elif defined(__sun__)
969 // FIXME: this function is non-portable; other POSIX systems may have different np alternatives
970 pthread_getattr_np(thread, &sattr);
973 [FILE:489:patches/patch-Source_WTF_wtf_posix_FileSystemPOSIX.cpp]
974 --- Source/WTF/wtf/posix/FileSystemPOSIX.cpp.orig 2023-09-19 08:27:49 UTC
975 +++ Source/WTF/wtf/posix/FileSystemPOSIX.cpp
976 @@ -194,6 +194,9 @@ std::optional<WallTime> fileCreationTime
979 return WallTime::fromRawSeconds(fileInfo.stx_btime.tv_sec);
980 +#elif defined __DragonFly__
981 + /* st_birthtime is not in the stat structure on DragonFly */
982 + return std::nullopt;
983 #elif OS(DARWIN) || OS(OPENBSD) || OS(NETBSD) || OS(FREEBSD)
984 struct stat fileInfo;
988 [FILE:1502:patches/patch-Source_WTF_wtf_unix_MemoryPressureHandlerUnix.cpp]
989 --- Source/WTF/wtf/unix/MemoryPressureHandlerUnix.cpp.orig 2023-09-19 08:27:49 UTC
990 +++ Source/WTF/wtf/unix/MemoryPressureHandlerUnix.cpp
993 #include <wtf/MemoryPressureHandler.h>
995 +#if OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
1001 #include <wtf/Logging.h>
1002 #include <wtf/MainThread.h>
1006 #include <wtf/linux/CurrentProcessMemoryStatus.h>
1008 +#elif OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
1009 #include <sys/sysctl.h>
1010 #include <sys/types.h>
1011 #include <sys/user.h>
1012 @@ -112,7 +116,7 @@ static size_t processMemoryUsage()
1013 ProcessMemoryStatus memoryStatus;
1014 currentProcessMemoryStatus(memoryStatus);
1015 return (memoryStatus.resident - memoryStatus.shared);
1017 +#elif OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
1018 static size_t pageSize = sysconf(_SC_PAGE_SIZE);
1019 struct kinfo_proc info;
1020 size_t infolen = sizeof(info);
1021 @@ -126,7 +130,11 @@ static size_t processMemoryUsage()
1022 if (sysctl(mib, 4, &info, &infolen, nullptr, 0))
1025 +# ifdef __DragonFly__
1026 + return static_cast<size_t>(info.kp_vm_rssize - info.kp_vm_tsize) * pageSize;
1028 return static_cast<size_t>(info.ki_rssize - info.ki_tsize) * pageSize;
1031 #error "Missing a platform specific way of determining the memory usage"
1035 [FILE:848:patches/patch-Source_WebCore_Modules_fetch_FetchBodyConsumer.cpp]
1036 --- Source/WebCore/Modules/fetch/FetchBodyConsumer.cpp.orig 2023-09-19 08:27:49 UTC
1037 +++ Source/WebCore/Modules/fetch/FetchBodyConsumer.cpp
1039 #include <wtf/StringExtras.h>
1040 #include <wtf/URLParser.h>
1043 +static void *memmem(
1044 + const void *big, size_t big_len,
1045 + const void *little, size_t little_len)
1047 + const char *bp = (const char *)big;
1048 + const char *lp = (const char *)little;
1051 + if (big_len < little_len || little_len == 0 || big_len == 0)
1054 + while (big_len > 0) {
1055 + for (l = 0; l < little_len; l++) {
1056 + if (bp[l] != lp[l])
1059 + if (l == little_len)
1060 + return (void *)bp;
1070 static inline Ref<Blob> blobFromData(ScriptExecutionContext* context, Vector<uint8_t>&& data, const String& contentType)
1073 [FILE:610:patches/patch-Source_WebCore_platform_graphics_cpu_arm_filters_FELightingNEON.cpp]
1074 --- Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp.orig 2023-09-19 08:27:49 UTC
1075 +++ Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp
1076 @@ -403,7 +403,7 @@ TOSTRING(neonDrawLighting) ":" NL
1077 "vmin.f32 " TMP2_D0 ", " TMP2_D0 ", " CONST_ONE_HI_D NL
1078 "vmul.f32 " TMP3_Q ", " COLOR_Q ", " TMP2_D0 "[1]" NL
1079 "vcvt.u32.f32 " TMP3_Q ", " TMP3_Q NL
1080 - "vmov.u32 r2, r3, " TMP3_S0 ", " TMP3_S1 NL
1081 + "vmov r2, r3, " TMP3_S0 ", " TMP3_S1 NL
1082 // The color values are stored in-place.
1083 "strb r2, [" PIXELS_R ", #-11]" NL
1084 "strb r3, [" PIXELS_R ", #-10]" NL
1087 [FILE:796:patches/patch-Source_WebCore_platform_graphics_gbm_DMABufReleaseFlag.h]
1088 --- Source/WebCore/platform/graphics/gbm/DMABufReleaseFlag.h.orig 2023-09-19 08:27:49 UTC
1089 +++ Source/WebCore/platform/graphics/gbm/DMABufReleaseFlag.h
1094 +#if !defined(__DragonFly__) && !defined(__NetBSD__) && !defined(__MidnightBSD__)
1095 #include <sys/eventfd.h>
1097 #include <wtf/Noncopyable.h>
1098 #include <wtf/SafeStrerror.h>
1099 #include <wtf/text/CString.h>
1100 @@ -42,7 +44,11 @@ struct DMABufReleaseFlag {
1101 enum InitializeTag { Initialize };
1102 DMABufReleaseFlag(InitializeTag)
1104 +#if !defined(__DragonFly__) && !defined(__NetBSD__) && !defined(__MidnightBSD__)
1105 fd = { eventfd(0, EFD_CLOEXEC | EFD_NONBLOCK), UnixFileDescriptor::Adopt };
1107 + fd = { -1, UnixFileDescriptor::Adopt };
1111 ~DMABufReleaseFlag() = default;
1114 [FILE:350:patches/patch-Source_WebCore_platform_network_DNS.h]
1115 --- Source/WebCore/platform/network/DNS.h.orig 2023-09-19 08:27:49 UTC
1116 +++ Source/WebCore/platform/network/DNS.h
1118 #include <ws2tcpip.h>
1120 #include <netinet/in.h>
1121 +# if defined __DragonFly__ || defined __FreeBSD__ || defined __sun__ || defined __MidnightBSD__
1122 +# include <sys/socket.h>
1129 [FILE:336:patches/patch-Source_WebDriver_PlatformGTK.cmake]
1130 --- Source/WebDriver/PlatformGTK.cmake.orig 2023-09-19 08:27:50 UTC
1131 +++ Source/WebDriver/PlatformGTK.cmake
1132 @@ -5,6 +5,7 @@ add_definitions(-DLIBEXECDIR="${CMAKE_IN
1133 list(APPEND WebDriver_SYSTEM_INCLUDE_DIRECTORIES
1134 "${GLIB_INCLUDE_DIRS}"
1135 "${LIBSOUP_INCLUDE_DIRS}"
1136 + "${ICU_INCLUDE_DIRS}"
1139 list(APPEND WebDriver_SOURCES
1142 [FILE:507:patches/patch-Source_WebKit_CMakeLists.txt]
1143 $NetBSD: patch-Source_WebKit_CMakeLists.txt,v 1.1 2018/05/16 18:55:45 jperkin Exp $
1145 SunOS requires libsocket.
1147 --- Source/WebKit/CMakeLists.txt.orig 2023-09-19 08:27:50 UTC
1148 +++ Source/WebKit/CMakeLists.txt
1149 @@ -568,6 +568,10 @@ if (UNIX)
1153 +if (CMAKE_SYSTEM_NAME MATCHES "SunOS")
1154 + list(APPEND WebKit_LIBRARIES socket)
1157 macro(ADD_WEBKIT_PREFIX_HEADER _target)
1158 if (WebKit_USE_PREFIX_HEADER)
1159 get_target_property(OLD_COMPILE_FLAGS ${_target} COMPILE_FLAGS)
1162 [FILE:599:patches/patch-Source_WebKit_PlatformGTK.cmake]
1163 --- Source/WebKit/PlatformGTK.cmake.orig 2023-09-19 08:27:50 UTC
1164 +++ Source/WebKit/PlatformGTK.cmake
1165 @@ -40,7 +40,7 @@ add_definitions(-DDATADIR="${CMAKE_INSTA
1166 add_definitions(-DLIBDIR="${LIB_INSTALL_DIR}")
1167 add_definitions(-DPKGLIBDIR="${LIB_INSTALL_DIR}/webkit${WEBKITGTK_API_INFIX}gtk-${WEBKITGTK_API_VERSION}")
1169 -if (NOT DEVELOPER_MODE AND NOT CMAKE_SYSTEM_NAME MATCHES "Darwin")
1170 +if (NOT DEVELOPER_MODE AND NOT CMAKE_SYSTEM_NAME MATCHES "Darwin|SunOS")
1171 WEBKIT_ADD_TARGET_PROPERTIES(WebKit LINK_FLAGS "-Wl,--version-script,${CMAKE_CURRENT_SOURCE_DIR}/webkitglib-symbols.map")
1176 [FILE:1137:patches/patch-Source_WebKit_Platform_IPC_unix_ConnectionUnix.cpp]
1177 On NetBSD we see "Error sending IPC message: Message too long" due to
1178 the use of sendmsg with a large message body (EMSGSIZE).
1180 WebKit already uses shared memory to communicate the message body when
1181 the message is too large, so force it to always use this method to avoid
1182 encountering EMSGSIZE.
1184 --- Source/WebKit/Platform/IPC/unix/ConnectionUnix.cpp.orig 2023-09-19 08:27:50 UTC
1185 +++ Source/WebKit/Platform/IPC/unix/ConnectionUnix.cpp
1188 #endif // SOCK_SEQPACKET
1190 +#ifndef MSG_NOSIGNAL
1191 +#define MSG_NOSIGNAL 0
1196 static const size_t messageMaxSize = 4096;
1197 @@ -403,8 +407,12 @@ bool Connection::sendOutgoingMessage(Uni
1202 size_t messageSizeWithBodyInline = sizeof(MessageInfo) + (outputMessage.attachments().size() * sizeof(AttachmentInfo)) + outputMessage.bodySize();
1203 if (messageSizeWithBodyInline > messageMaxSize && outputMessage.bodySize()) {
1207 RefPtr<WebKit::SharedMemory> oolMessageBody = WebKit::SharedMemory::allocate(outputMessage.bodySize());
1208 if (!oolMessageBody)
1212 [FILE:584:patches/patch-Source_WebKit_Platform_unix_SharedMemoryUnix.cpp]
1213 --- Source/WebKit/Platform/unix/SharedMemoryUnix.cpp.orig 2023-09-19 08:27:50 UTC
1214 +++ Source/WebKit/Platform/unix/SharedMemoryUnix.cpp
1215 @@ -98,7 +98,11 @@ static UnixFileDescriptor createSharedMe
1218 for (int tries = 0; fileDescriptor == -1 && tries < 10; ++tries) {
1219 +# ifdef __DragonFly__
1220 + auto name = makeString("/tmp/WK2SharedMemory.", cryptographicallyRandomNumber<unsigned>());
1222 auto name = makeString("/WK2SharedMemory.", cryptographicallyRandomNumber<unsigned>());
1224 tempName = name.utf8();
1229 [FILE:681:patches/patch-Source_WebKit_UIProcess_Launcher_glib_ProcessLauncherGLib.cpp]
1230 --- Source/WebKit/UIProcess/Launcher/glib/ProcessLauncherGLib.cpp.orig 2023-09-19 08:27:50 UTC
1231 +++ Source/WebKit/UIProcess/Launcher/glib/ProcessLauncherGLib.cpp
1233 #include "ProcessProviderLibWPE.h"
1236 -#if !USE(SYSTEM_MALLOC) && OS(LINUX)
1237 -#include <bmalloc/valgrind.h>
1242 @@ -91,10 +88,6 @@ static int connectionOptions()
1244 static bool isSandboxEnabled(const ProcessLauncher::LaunchOptions& launchOptions)
1246 -#if !USE(SYSTEM_MALLOC)
1247 - if (RUNNING_ON_VALGRIND)
1251 if (const char* sandboxEnv = g_getenv("WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS")) {
1252 if (!strcmp(sandboxEnv, "1"))
1255 [FILE:1460:patches/patch-Source_bmalloc_bmalloc_AvailableMemory.cpp]
1256 --- Source/bmalloc/bmalloc/AvailableMemory.cpp.orig 2023-09-19 08:27:50 UTC
1257 +++ Source/bmalloc/bmalloc/AvailableMemory.cpp
1259 #import <mach/mach_error.h>
1262 -#if BOS(FREEBSD) || BOS(LINUX)
1264 #include <sys/sysinfo.h>
1267 @@ -161,7 +161,13 @@ static size_t computeAvailableMemory()
1268 // Round up the memory size to a multiple of 128MB because max_mem may not be exactly 512MB
1269 // (for example) and we have code that depends on those boundaries.
1270 return ((sizeAccordingToKernel + multiple - 1) / multiple) * multiple;
1271 -#elif BOS(FREEBSD) || BOS(LINUX)
1272 +#elif BOS(FREEBSD) || defined(__MidnightBSD__)
1273 + long pages = sysconf(_SC_PHYS_PAGES);
1274 + long pageSize = sysconf(_SC_PAGE_SIZE);
1275 + if (pages == -1 || pageSize == -1)
1276 + return availableMemoryGuess;
1277 + return pages * pageSize;
1279 struct sysinfo info;
1280 if (!sysinfo(&info))
1281 return info.totalram * info.mem_unit;
1282 @@ -212,7 +218,11 @@ MemoryStatus memoryStatus()
1284 size_t memoryFootprint = 0;
1285 if (!sysctl(mib, 4, &info, &infolen, nullptr, 0))
1286 +# ifdef __DragonFly__
1287 + memoryFootprint = static_cast<size_t>(info.kp_vm_rssize) * vmPageSize();
1289 memoryFootprint = static_cast<size_t>(info.ki_rssize) * vmPageSize();
1293 double percentInUse = static_cast<double>(memoryFootprint) / static_cast<double>(availableMemory());
1296 [FILE:971:patches/patch-Source_cmake_OptionsCommon.cmake]
1297 --- Source/cmake/OptionsCommon.cmake.orig 2023-09-19 08:27:51 UTC
1298 +++ Source/cmake/OptionsCommon.cmake
1299 @@ -158,10 +158,10 @@ endif ()
1300 option(USE_THIN_ARCHIVES "Produce all static libraries as thin archives" ${USE_THIN_ARCHIVES_DEFAULT})
1302 if (USE_THIN_ARCHIVES)
1303 - set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> crT <TARGET> <LINK_FLAGS> <OBJECTS>")
1304 - set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> crT <TARGET> <LINK_FLAGS> <OBJECTS>")
1305 - set(CMAKE_CXX_ARCHIVE_APPEND "<CMAKE_AR> rT <TARGET> <LINK_FLAGS> <OBJECTS>")
1306 - set(CMAKE_C_ARCHIVE_APPEND "<CMAKE_AR> rT <TARGET> <LINK_FLAGS> <OBJECTS>")
1307 + set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS>")
1308 + set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS>")
1309 + set(CMAKE_CXX_ARCHIVE_APPEND "<CMAKE_AR> r <TARGET> <LINK_FLAGS> <OBJECTS>")
1310 + set(CMAKE_C_ARCHIVE_APPEND "<CMAKE_AR> r <TARGET> <LINK_FLAGS> <OBJECTS>")
1313 set(ENABLE_DEBUG_FISSION_DEFAULT OFF)
1316 [FILE:520:patches/patch-Source_cmake_WebKitCompilerFlags.cmake]
1317 --- Source/cmake/WebKitCompilerFlags.cmake.orig 2023-09-19 08:27:51 UTC
1318 +++ Source/cmake/WebKitCompilerFlags.cmake
1319 @@ -275,7 +275,7 @@ if (NOT MSVC)
1320 string(REGEX MATCHALL "-fsanitize=[^ ]*" ENABLED_COMPILER_SANITIZERS ${CMAKE_CXX_FLAGS})
1323 -if (UNIX AND NOT APPLE AND NOT ENABLED_COMPILER_SANITIZERS)
1324 +if (UNIX AND NOT APPLE AND NOT ENABLED_COMPILER_SANITIZERS AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
1325 set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined ${CMAKE_SHARED_LINKER_FLAGS}")
1330 [FILE:358:patches/patch-Tools_MiniBrowser_gtk_CMakeLists.txt]
1331 --- Tools/MiniBrowser/gtk/CMakeLists.txt.orig 2023-09-19 08:27:51 UTC
1332 +++ Tools/MiniBrowser/gtk/CMakeLists.txt
1333 @@ -39,6 +39,10 @@ set(MiniBrowser_PRIVATE_LIBRARIES
1337 +if (CMAKE_SYSTEM_NAME MATCHES "SunOS")
1338 + list(APPEND MiniBrowser_PRIVATE_LIBRARIES intl)
1341 set(MiniBrowser_DEPENDENCIES
1346 [FILE:1232:files/linux44-patch-madvise]
1347 --- Source/bmalloc/libpas/src/libpas/pas_probabilistic_guard_malloc_allocator.c.orig 2023-08-09 08:49:52 UTC
1348 +++ Source/bmalloc/libpas/src/libpas/pas_probabilistic_guard_malloc_allocator.c
1349 @@ -115,11 +115,13 @@ pas_allocation_result pas_probabilistic_
1350 * ensure physical addresses are released
1351 * TODO: investigate using MADV_FREE_REUSABLE instead
1353 + /* Linux 4.5, Ravenports uses 4.4
1354 int madvise_res = madvise((void *) upper_guard_page, page_size, MADV_FREE);
1355 PAS_ASSERT(!madvise_res);
1357 madvise_res = madvise((void *) lower_guard_page, page_size, MADV_FREE);
1358 PAS_ASSERT(!madvise_res);
1362 * the key is the location where the user's starting memory address is located.
1363 @@ -181,8 +183,10 @@ void pas_probabilistic_guard_malloc_deal
1364 * ensure physical addresses are released
1365 * TODO: investigate using MADV_FREE_REUSABLE instead
1367 + /* Requires linux 4.5
1368 int madvise_res = madvise((void *) value->start_of_data_pages, value->size_of_data_pages, MADV_FREE);
1369 PAS_ASSERT(!madvise_res);
1372 bool removed = pas_ptr_hash_map_remove(&pas_pgm_hash_map, key, NULL, &pas_large_utility_free_heap_allocation_config);
1373 PAS_ASSERT(removed);