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.1.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
51 BUILDRUN_DEPENDS= enchant:primary:standard
53 libsecret:primary:standard
54 libnotify:primary:standard
55 hyphen:single:standard
58 libgcrypt:primary:standard
59 gnutls:primary:standard
60 libtasn1:primary:standard
61 geoclue:primary:standard
63 gstreamer1-plugins-base:primary:standard
64 openjpeg:single:standard
65 lcms2:primary:standard
66 libavif:primary:standard
68 USES= png mesa cmake pkgconfig sqlite bison perl:build
69 python:build ruby:build fontconfig jpeg cpe
70 GNOME_COMPONENTS= gdkpixbuf introspection libxslt
71 XORG_COMPONENTS= x11 xcomposite xdamage xext xrender xt ice xfixes
73 DISTNAME= webkitgtk-2.40.1
75 LICENSE= GPLv2+:primary BSD3CLAUSE:primary
76 LICENSE_TERMS= primary:{{WRKDIR}}/TERMS
77 LICENSE_FILE= GPLv2+:stock
78 BSD3CLAUSE:{{WRKDIR}}/LICENSE_BSD
79 LICENSE_AWK= BSD3CLAUSE:"^$$"
81 LICENSE_SOURCE= BSD3CLAUSE:{{WRKSRC}}/Source/WebCore/css/parser/MediaQueryBlockWatcher.h
82 TERMS:{{WRKSRC}}/Source/WebCore/style/StyleScope.cpp
85 CPE_PRODUCT= webkitgtk
87 FPC_EQUIVALENT= www/webkit2-gtk3
89 CONFIGURE_ENV= XDG_CACHE_HOME={{WRKDIR}}
91 INSTALL_TARGET= install
92 INSTALL_REQ_TOOLCHAIN= yes
93 PLIST_SUB= INTRO="@comment "
95 CXXFLAGS= -DFIXED_EXECUTABLE_MEMORY_POOL_SIZE_IN_MB=32
96 CMAKE_ARGS= -DPORT=GTK
97 -DENABLE_GEOLOCATION:BOOL=ON
98 -DENABLE_GLES2:BOOL=ON
99 -DENABLE_MINIBROWSER:BOOL=ON
100 -DENABLE_WAYLAND_TARGET:BOOL=OFF
101 -DENABLE_BUBBLEWRAP_SANDBOX:BOOL=OFF
102 -DENABLE_GAMEPAD:BOOL=OFF
103 -DENABLE_INTROSPECTION:BOOL=OFF
104 -DENABLE_JOURNALD_LOG:BOOL=OFF
105 -DSUPPRESS_ASSERT:BOOL=ON
106 -DUSE_SYSTEMD:BOOL=OFF
107 -DUSE_GSTREAMER_GL:BOOL=OFF
108 -DUSE_GSTREAMER_TRANSCODER:BOOL=OFF
110 VAR_OPSYS[sunos]= CMAKE_ARGS=-DUSE_LD_GOLD:BOOL=OFF
112 [API40].DESCRIPTION= Build WebKit2 API 4.0 variant
113 [API40].BUILDRUN_DEPENDS_ON= libsoup-2.4:primary:standard
114 [API40].BUILD_DEPENDS_ON= libsoup-2.4:dev:standard
115 [API40].CMAKE_ARGS_ON= -DUSE_SOUP2=ON
116 [API40].GNOME_COMPONENTS_ON= gtk3
117 [API40].PLIST_SUB_ON= JSSOVERSION=18.22.10
124 [API41].DESCRIPTION= Build WebKit2 API 4.1 variant
125 [API41].BUILDRUN_DEPENDS_ON= libsoup:primary:standard
126 [API41].BUILD_DEPENDS_ON= libsoup:dev:standard
127 [API41].GNOME_COMPONENTS_ON= gtk3
128 [API41].PLIST_SUB_ON= JSSOVERSION=0.3.10
135 [API60].DESCRIPTION= Build WebKit2 API 6.0 variant
136 [API60].BUILDRUN_DEPENDS_ON= libsoup:primary:standard
137 libepoxy:dev:standard
138 [API60].BUILD_DEPENDS_ON= libsoup:dev:standard
139 libepoxy:dev:standard
140 [API60].CMAKE_ARGS_ON= -DUSE_GTK4=ON
141 [API60].GNOME_COMPONENTS_ON= gtk4
142 [API60].PLIST_SUB_ON= JSSOVERSION=1.0.3
150 echo 'add_compile_definitions("U_DEFINE_FALSE_AND_TRUE=1")' \
151 >> ${WRKSRC}/Source/WTF/wtf/CMakeLists.txt
153 post-install-API40-ON:
154 (cd ${STAGEDIR}${PREFIX}/bin && \
155 ${LN} -s ../libexec/webkit2gtk-4.0/jsc jsc-4.0 && \
156 ${LN} -s ../libexec/webkit2gtk-4.0/MiniBrowser MiniBrowser-4.0)
157 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/webkit2gtk-4.0/injected-bundle/*.so
158 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/webkit2gtk-4.0/*
159 ${MV} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver \
160 ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver-4.0
162 post-install-API60-ON:
163 (cd ${STAGEDIR}${PREFIX}/bin && \
164 ${LN} -s ../libexec/webkit2gtk-6.0/jsc jsc-6.0 && \
165 ${LN} -s ../libexec/webkit2gtk-6.0/MiniBrowser MiniBrowser-6.0)
166 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/webkitgtk-6.0/injected-bundle/*.so
167 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/webkitgtk-6.0/*
168 ${MV} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver \
169 ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver-6.0
172 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so.*.*
173 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver
175 post-install-API41-ON:
176 (cd ${STAGEDIR}${PREFIX}/bin && \
177 ${LN} -s ../libexec/webkit2gtk-4.1/jsc jsc-4.1 && \
178 ${LN} -s ../libexec/webkit2gtk-4.1/MiniBrowser MiniBrowser-4.1)
179 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/webkit2gtk-4.1/injected-bundle/*.so
180 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/webkit2gtk-4.1/*
181 ${MV} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver \
182 ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver-4.1
185 ${REINPLACE_CMD} -e '/USE_FILE_LOCK/ s|1|0|' \
186 ${WRKSRC}/Source/WTF/wtf/PlatformUse.h \
187 ${WRKSRC}/Source/WebCore/config.h
189 [FILE:574:descriptions/desc.primary]
190 WebKitGTK+ is a full-featured port of the WebKit rendering engine, suitable
191 for projects requiring any kind of web integration, from hybrid HTML/CSS
192 applications to full-fledged web browsers. It offers WebKit's full
193 functionality and is useful in a wide range of systems from desktop
194 computers to embedded systems like phones, tablets, and televisions.
196 WebKitGTK+ is made by a lively community of developers and designers,
197 who hope to bring the web platform to everyone. It's the official web
198 engine of the GNOME platform and is used in browsers such as Epiphany
203 64e526984f8cd2161ef03ae949af99c002ff333d615e6386b460164a3c1b7ef6 39599544 webkitgtk-2.40.1.tar.xz
206 [FILE:660:manifests/plist.primary]
207 %%INTRO%%lib/girepository-1.0/
208 JavaScriptCore-%%WKAPI%%.typelib
209 WebKit2-%%WKAPI%%.typelib
210 WebKit2WebExtension-%%WKAPI%%.typelib
211 %%INTRO%%share/gir-1.0/
212 JavaScriptCore-%%WKAPI%%.gir
213 WebKit2-%%WKAPI%%.gir
214 WebKit2WebExtension-%%WKAPI%%.gir
216 MiniBrowser-%%WKAPI%%
217 WebKitWebDriver-%%WKAPI%%
220 libjavascriptcoregtk-%%WKAPI%%.so.%%JSSOMAJOR%%
221 libjavascriptcoregtk-%%WKAPI%%.so.%%JSSOVERSION%%
222 libwebkit2gtk-%%WKAPI%%.so.%%SOMAJOR%%
223 libwebkit2gtk-%%WKAPI%%.so.%%SOVERSION%%
224 lib/webkit2gtk-%%WKAPI%%/injected-bundle/libwebkit2gtkinjectedbundle.so
225 libexec/webkit2gtk-%%WKAPI%%/
232 [FILE:2619:manifests/plist.nls]
233 share/locale/ar/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
234 share/locale/as/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
235 share/locale/bg/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
236 share/locale/ca/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
237 share/locale/cs/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
238 share/locale/da/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
239 share/locale/de/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
240 share/locale/el/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
241 share/locale/en_CA/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
242 share/locale/en_GB/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
243 share/locale/eo/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
244 share/locale/es/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
245 share/locale/et/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
246 share/locale/eu/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
247 share/locale/fi/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
248 share/locale/fr/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
249 share/locale/gl/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
250 share/locale/gu/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
251 share/locale/he/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
252 share/locale/hi/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
253 share/locale/hr/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
254 share/locale/hu/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
255 share/locale/id/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
256 share/locale/it/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
257 share/locale/ja/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
258 share/locale/ka/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
259 share/locale/kn/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
260 share/locale/ko/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
261 share/locale/lt/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
262 share/locale/lv/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
263 share/locale/ml/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
264 share/locale/mr/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
265 share/locale/nb/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
266 share/locale/nl/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
267 share/locale/or/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
268 share/locale/pa/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
269 share/locale/pl/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
270 share/locale/pt/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
271 share/locale/pt_BR/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
272 share/locale/ro/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
273 share/locale/ru/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
274 share/locale/sl/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
275 share/locale/sr/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
276 share/locale/sr@latin/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
277 share/locale/sv/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
278 share/locale/ta/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
279 share/locale/te/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
280 share/locale/tr/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
281 share/locale/uk/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
282 share/locale/vi/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
283 share/locale/zh_CN/LC_MESSAGES/WebKitGTK-%%WKAPI%%.mo
286 [FILE:5822:manifests/plist.dev]
287 include/webkitgtk-%%WKAPI%%/JavaScriptCore/
296 include/webkitgtk-%%WKAPI%%/jsc/
308 include/webkitgtk-%%WKAPI%%/webkit/
309 WebKitApplicationInfo.h
310 WebKitAuthenticationRequest.h
312 WebKitAutomationSession.h
313 WebKitBackForwardList.h
314 WebKitBackForwardListItem.h
315 WebKitColorChooserRequest.h
316 WebKitConsoleMessage.h
318 WebKitContextMenuActions.h
319 WebKitContextMenuItem.h
320 WebKitCookieManager.h
323 WebKitDeviceInfoPermissionRequest.h
325 WebKitEditingCommands.h
329 WebKitFaviconDatabase.h
330 WebKitFileChooserRequest.h
331 WebKitFindController.h
332 WebKitFormSubmissionRequest.h
334 WebKitGeolocationManager.h
335 WebKitGeolocationPermissionRequest.h
336 WebKitHitTestResult.h
337 WebKitInputMethodContext.h
338 WebKitInstallMissingMediaPluginsPermissionRequest.h
339 WebKitJavascriptResult.h
340 WebKitMediaKeySystemPermissionRequest.h
341 WebKitMemoryPressureSettings.h
343 WebKitNavigationAction.h
344 WebKitNavigationPolicyDecision.h
345 WebKitNetworkProxySettings.h
347 WebKitNotificationPermissionRequest.h
349 WebKitOptionMenuItem.h
350 WebKitPermissionRequest.h
351 WebKitPermissionStateQuery.h
353 WebKitPointerLockPermissionRequest.h
354 WebKitPolicyDecision.h
355 WebKitPrintCustomWidget.h
356 WebKitPrintOperation.h
357 WebKitResponsePolicyDecision.h
360 WebKitSecurityManager.h
361 WebKitSecurityOrigin.h
365 WebKitURISchemeRequest.h
366 WebKitURISchemeResponse.h
369 WebKitUserContentFilterStore.h
370 WebKitUserContentManager.h
371 WebKitUserMediaPermissionRequest.h
377 WebKitWebExtensionAutocleanups.h
378 WebKitWebFormManager.h
379 WebKitWebHitTestResult.h
382 WebKitWebProcessEnumTypes.h
386 WebKitWebViewSessionState.h
388 WebKitWebsiteDataAccessPermissionRequest.h
389 WebKitWebsiteDataManager.h
390 WebKitWebsitePolicies.h
391 WebKitWindowProperties.h
392 include/webkitgtk-%%WKAPI%%/webkit2/
393 webkit-web-extension.h
395 include/webkitgtk-%%WKAPI%%/webkitdom/
398 WebKitDOMCDATASection.h
400 WebKitDOMCSSRuleList.h
401 WebKitDOMCSSStyleDeclaration.h
402 WebKitDOMCSSStyleSheet.h
404 WebKitDOMCharacterData.h
405 WebKitDOMClientRect.h
406 WebKitDOMClientRectList.h
409 WebKitDOMCustomUnstable.h
410 WebKitDOMDOMImplementation.h
411 WebKitDOMDOMSelection.h
412 WebKitDOMDOMTokenList.h
414 WebKitDOMDOMWindowUnstable.h
415 WebKitDOMDeprecated.h
417 WebKitDOMDocumentFragment.h
418 WebKitDOMDocumentFragmentUnstable.h
419 WebKitDOMDocumentType.h
420 WebKitDOMDocumentUnstable.h
422 WebKitDOMElementUnstable.h
424 WebKitDOMEventTarget.h
427 WebKitDOMHTMLAnchorElement.h
428 WebKitDOMHTMLAppletElement.h
429 WebKitDOMHTMLAreaElement.h
430 WebKitDOMHTMLBRElement.h
431 WebKitDOMHTMLBaseElement.h
432 WebKitDOMHTMLBodyElement.h
433 WebKitDOMHTMLButtonElement.h
434 WebKitDOMHTMLCanvasElement.h
435 WebKitDOMHTMLCollection.h
436 WebKitDOMHTMLDListElement.h
437 WebKitDOMHTMLDirectoryElement.h
438 WebKitDOMHTMLDivElement.h
439 WebKitDOMHTMLDocument.h
440 WebKitDOMHTMLElement.h
441 WebKitDOMHTMLElementUnstable.h
442 WebKitDOMHTMLEmbedElement.h
443 WebKitDOMHTMLFieldSetElement.h
444 WebKitDOMHTMLFontElement.h
445 WebKitDOMHTMLFormElement.h
446 WebKitDOMHTMLFrameElement.h
447 WebKitDOMHTMLFrameSetElement.h
448 WebKitDOMHTMLHRElement.h
449 WebKitDOMHTMLHeadElement.h
450 WebKitDOMHTMLHeadingElement.h
451 WebKitDOMHTMLHtmlElement.h
452 WebKitDOMHTMLIFrameElement.h
453 WebKitDOMHTMLImageElement.h
454 WebKitDOMHTMLInputElement.h
455 WebKitDOMHTMLLIElement.h
456 WebKitDOMHTMLLabelElement.h
457 WebKitDOMHTMLLegendElement.h
458 WebKitDOMHTMLLinkElement.h
459 WebKitDOMHTMLMapElement.h
460 WebKitDOMHTMLMarqueeElement.h
461 WebKitDOMHTMLMenuElement.h
462 WebKitDOMHTMLMetaElement.h
463 WebKitDOMHTMLModElement.h
464 WebKitDOMHTMLOListElement.h
465 WebKitDOMHTMLObjectElement.h
466 WebKitDOMHTMLOptGroupElement.h
467 WebKitDOMHTMLOptionElement.h
468 WebKitDOMHTMLOptionsCollection.h
469 WebKitDOMHTMLParagraphElement.h
470 WebKitDOMHTMLParamElement.h
471 WebKitDOMHTMLPreElement.h
472 WebKitDOMHTMLQuoteElement.h
473 WebKitDOMHTMLScriptElement.h
474 WebKitDOMHTMLSelectElement.h
475 WebKitDOMHTMLStyleElement.h
476 WebKitDOMHTMLTableCaptionElement.h
477 WebKitDOMHTMLTableCellElement.h
478 WebKitDOMHTMLTableColElement.h
479 WebKitDOMHTMLTableElement.h
480 WebKitDOMHTMLTableRowElement.h
481 WebKitDOMHTMLTableSectionElement.h
482 WebKitDOMHTMLTextAreaElement.h
483 WebKitDOMHTMLTitleElement.h
484 WebKitDOMHTMLUListElement.h
485 WebKitDOMKeyboardEvent.h
487 WebKitDOMMouseEvent.h
488 WebKitDOMNamedNodeMap.h
490 WebKitDOMNodeFilter.h
491 WebKitDOMNodeIterator.h
494 WebKitDOMProcessingInstruction.h
496 WebKitDOMRangeUnstable.h
497 WebKitDOMStyleSheet.h
498 WebKitDOMStyleSheetList.h
500 WebKitDOMTreeWalker.h
502 WebKitDOMWheelEvent.h
503 WebKitDOMXPathExpression.h
504 WebKitDOMXPathNSResolver.h
505 WebKitDOMXPathResult.h
507 webkitdomautocleanups.h
510 libjavascriptcoregtk-%%WKAPI%%.so
511 libwebkit2gtk-%%WKAPI%%.so
513 javascriptcoregtk-%%WKAPI%%.pc
514 webkit2gtk-%%WKAPI%%.pc
515 webkit2gtk-web-extension-%%WKAPI%%.pc
518 [FILE:601:manifests/plist.primary.api60]
519 %%INTRO%%lib/girepository-1.0/
520 JavaScriptCore-%%WKAPI%%.typelib
521 WebKit2-%%WKAPI%%.typelib
522 WebKit2WebExtension-%%WKAPI%%.typelib
523 %%INTRO%%share/gir-1.0/
524 JavaScriptCore-%%WKAPI%%.gir
525 WebKit2-%%WKAPI%%.gir
526 WebKit2WebExtension-%%WKAPI%%.gir
532 libjavascriptcoregtk-6.0.so.%%JSSOMAJOR%%
533 libjavascriptcoregtk-6.0.so.%%JSSOVERSION%%
534 libwebkitgtk-6.0.so.%%SOMAJOR%%
535 libwebkitgtk-6.0.so.%%SOVERSION%%
536 lib/webkitgtk-6.0/injected-bundle/libwebkitgtkinjectedbundle.so
537 libexec/webkitgtk-6.0/
544 [FILE:2409:manifests/plist.dev.api60]
545 include/webkitgtk-6.0/jsc/
556 include/webkitgtk-6.0/webkit/
557 WebKitApplicationInfo.h
558 WebKitAuthenticationRequest.h
560 WebKitAutomationSession.h
561 WebKitBackForwardList.h
562 WebKitBackForwardListItem.h
563 WebKitColorChooserRequest.h
565 WebKitContextMenuActions.h
566 WebKitContextMenuItem.h
567 WebKitCookieManager.h
570 WebKitDeviceInfoPermissionRequest.h
572 WebKitEditingCommands.h
576 WebKitFaviconDatabase.h
577 WebKitFileChooserRequest.h
578 WebKitFindController.h
579 WebKitFormSubmissionRequest.h
581 WebKitGeolocationManager.h
582 WebKitGeolocationPermissionRequest.h
583 WebKitHitTestResult.h
584 WebKitInputMethodContext.h
585 WebKitInstallMissingMediaPluginsPermissionRequest.h
586 WebKitMediaKeySystemPermissionRequest.h
587 WebKitMemoryPressureSettings.h
588 WebKitNavigationAction.h
589 WebKitNavigationPolicyDecision.h
590 WebKitNetworkProxySettings.h
591 WebKitNetworkSession.h
593 WebKitNotificationPermissionRequest.h
595 WebKitOptionMenuItem.h
596 WebKitPermissionRequest.h
597 WebKitPermissionStateQuery.h
598 WebKitPointerLockPermissionRequest.h
599 WebKitPolicyDecision.h
600 WebKitPrintOperation.h
601 WebKitResponsePolicyDecision.h
604 WebKitSecurityManager.h
605 WebKitSecurityOrigin.h
609 WebKitURISchemeRequest.h
610 WebKitURISchemeResponse.h
613 WebKitUserContentFilterStore.h
614 WebKitUserContentManager.h
615 WebKitUserMediaPermissionRequest.h
620 WebKitWebFormManager.h
621 WebKitWebHitTestResult.h
624 WebKitWebProcessEnumTypes.h
625 WebKitWebProcessExtension.h
629 WebKitWebViewSessionState.h
631 WebKitWebsiteDataAccessPermissionRequest.h
632 WebKitWebsiteDataManager.h
633 WebKitWebsitePolicies.h
634 WebKitWindowProperties.h
635 webkit-web-process-extension.h
638 libjavascriptcoregtk-6.0.so
641 javascriptcoregtk-6.0.pc
643 webkitgtk-web-process-extension-6.0.pc
646 [FILE:431:patches/patch-CMakeLists.txt]
647 --- CMakeLists.txt.orig 2023-02-20 11:56:17 UTC
649 @@ -27,6 +27,11 @@ if (ENABLE_API_TESTS)
653 +if (SUPPRESS_ASSERT)
654 + add_definitions(-DNDEBUG=1)
655 + add_definitions(-D__OPTIMIZE__)
658 # -----------------------------------------------------------------------------
659 # Add module directories
660 # -----------------------------------------------------------------------------
663 [FILE:534:patches/patch-Source_JavaScriptCore_assembler_ARM64Assembler.h]
664 --- Source/JavaScriptCore/assembler/ARM64Assembler.h.orig 2023-02-20 11:57:15 UTC
665 +++ Source/JavaScriptCore/assembler/ARM64Assembler.h
666 @@ -3674,6 +3674,8 @@ public:
667 sys_cache_control(kCacheFunctionPrepareForExecution, code, size);
669 zx_cache_flush(code, size, ZX_CACHE_FLUSH_INSN);
670 +#elif OS(FREEBSD) || OS(NETBSD)
671 + __clear_cache(code, reinterpret_cast<char*>(code) + size);
673 size_t page = pageSize();
674 uintptr_t current = reinterpret_cast<uintptr_t>(code);
677 [FILE:4034:patches/patch-Source_JavaScriptCore_runtime_MachineContext.h]
678 $NetBSD: patch-Source_JavaScriptCore_runtime_MachineContext.h,v 1.2 2021/05/13 08:20:58 leot Exp $
680 Add support for NetBSD.
682 --- Source/JavaScriptCore/runtime/MachineContext.h.orig 2023-02-20 11:57:15 UTC
683 +++ Source/JavaScriptCore/runtime/MachineContext.h
684 @@ -193,6 +193,22 @@ static inline void*& stackPointerImpl(mc
685 #error Unknown Architecture
691 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_UESP]);
693 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RSP]);
695 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_SP]);
697 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_SP]);
699 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_SP]);
701 +#error Unknown Architecture
704 #elif OS(FUCHSIA) || OS(LINUX)
707 @@ -338,6 +354,22 @@ static inline void*& framePointerImpl(mc
708 #error Unknown Architecture
714 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EBP]);
716 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RBP]);
718 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_FP]);
720 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_FP]);
722 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_S8]);
724 +#error Unknown Architecture
727 #elif OS(FUCHSIA) || OS(LINUX)
729 // The following sequence depends on glibc's sys/ucontext.h.
730 @@ -495,6 +527,22 @@ static inline void*& instructionPointerI
732 #error Unknown Architecture
738 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EIP]);
740 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RIP]);
742 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_PC]);
744 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_PC]);
746 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EPC]);
748 +#error Unknown Architecture
751 #elif OS(FUCHSIA) || OS(LINUX)
753 @@ -651,6 +699,22 @@ inline void*& argumentPointer<1>(mcontex
755 #error Unknown Architecture
761 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EDX]);
763 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RSI]);
765 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R1]);
767 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_X1]);
769 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_A1]);
771 +#error Unknown Architecture
774 #elif OS(FUCHSIA) || OS(LINUX)
776 @@ -774,6 +838,22 @@ inline void*& llintInstructionPointer(mc
780 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_ESI]);
782 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R8]);
784 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R8]);
786 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_X4]);
788 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_T4]);
790 +#error Unknown Architecture
796 return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_ESI]);
798 return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R8]);
801 [FILE:597:patches/patch-Source_ThirdParty_ANGLE_src_common_aligned__memory.cpp]
802 --- Source/ThirdParty/ANGLE/src/common/aligned_memory.cpp.orig 2023-02-20 11:57:15 UTC
803 +++ Source/ThirdParty/ANGLE/src/common/aligned_memory.cpp
804 @@ -33,7 +33,7 @@ void *AlignedAlloc(size_t size, size_t a
805 // memalign() on Android returns pointers which can safely be used with
806 // free(), so we can use it instead. Issue filed to document this:
807 // http://code.google.com/p/android/issues/detail?id=35391
808 -#elif defined(ANGLE_PLATFORM_ANDROID)
809 +#elif defined(ANGLE_PLATFORM_ANDROID) || defined(__sun__)
810 ptr = memalign(alignment, size);
812 if (posix_memalign(&ptr, alignment, size))
815 [FILE:561:patches/patch-Source_WTF_wtf_Assertions.h]
816 $NetBSD: patch-Source_WTF_wtf_Assertions.h,v 1.1 2021/01/12 15:21:31 jperkin Exp $
818 Use regular static_assert on SunOS.
820 --- Source/WTF/wtf/Assertions.h.orig 2023-02-20 11:57:18 UTC
821 +++ Source/WTF/wtf/Assertions.h
822 @@ -473,7 +473,7 @@ constexpr bool assertionFailureDueToUnre
825 #ifndef COMPILE_ASSERT
826 -#if COMPILER_SUPPORTS(C_STATIC_ASSERT)
827 +#if COMPILER_SUPPORTS(C_STATIC_ASSERT) && !defined(__sun)
828 /* Unlike static_assert below, this also works in plain C code. */
829 #define COMPILE_ASSERT(exp, name) _Static_assert((exp), #name)
833 [FILE:638:patches/patch-Source_WTF_wtf_FastMalloc.cpp]
834 --- Source/WTF/wtf/FastMalloc.cpp.orig 2023-02-20 11:57:18 UTC
835 +++ Source/WTF/wtf/FastMalloc.cpp
836 @@ -205,7 +205,11 @@ void* fastAlignedMalloc(size_t alignment
838 ASSERT_IS_WITHIN_LIMIT(size);
841 + p = memalign(alignment, size);
843 posix_memalign(&p, alignment, size);
848 @@ -215,7 +219,11 @@ void* tryFastAlignedMalloc(size_t alignm
850 FAIL_IF_EXCEEDS_LIMIT(size);
853 + p = memalign(alignment, size);
855 posix_memalign(&p, alignment, size);
862 [FILE:502:patches/patch-Source_WTF_wtf_FileSystem.cpp]
863 $NetBSD: patch-Source_WTF_wtf_FileSystem.cpp,v 1.3 2020/09/11 14:47:35 leot Exp $
865 Support MAP_FILE if unavailable.
867 --- Source/WTF/wtf/FileSystem.cpp.orig 2023-02-20 11:57:18 UTC
868 +++ Source/WTF/wtf/FileSystem.cpp
869 @@ -367,6 +367,9 @@ bool MappedFileData::mapFileHandle(Platf
876 void* data = mmap(0, size, pageProtection, MAP_FILE | (mapMode == MappedFileMode::Shared ? MAP_SHARED : MAP_PRIVATE), fd, 0);
878 if (data == MAP_FAILED) {
881 [FILE:562:patches/patch-Source_WTF_wtf_MemoryPressureHandler.cpp]
882 --- Source/WTF/wtf/MemoryPressureHandler.cpp.orig 2023-02-20 11:57:19 UTC
883 +++ Source/WTF/wtf/MemoryPressureHandler.cpp
884 @@ -65,7 +65,7 @@ static MemoryPressureHandler* memoryPres
887 MemoryPressureHandler::MemoryPressureHandler()
888 -#if OS(LINUX) || OS(FREEBSD)
889 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
890 : m_holdOffTimer(RunLoop::main(), this, &MemoryPressureHandler::holdOffTimerFired)
892 : m_windowsMeasurementTimer(RunLoop::main(), this, &MemoryPressureHandler::windowsMeasurementTimerFired)
895 [FILE:677:patches/patch-Source_WTF_wtf_MemoryPressureHandler.h]
896 --- Source/WTF/wtf/MemoryPressureHandler.h.orig 2023-02-20 11:57:19 UTC
897 +++ Source/WTF/wtf/MemoryPressureHandler.h
898 @@ -81,7 +81,7 @@ public:
900 WTF_EXPORT_PRIVATE void setShouldUsePeriodicMemoryMonitor(bool);
902 -#if OS(LINUX) || OS(FREEBSD)
903 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
904 WTF_EXPORT_PRIVATE void triggerMemoryPressureEvent(bool isCritical);
907 @@ -274,7 +274,7 @@ private:
908 Win32Handle m_lowMemoryHandle;
911 -#if OS(LINUX) || OS(FREEBSD)
912 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
913 RunLoop::Timer m_holdOffTimer;
914 void holdOffTimerFired();
918 [FILE:326:patches/patch-Source_WTF_wtf_NumberOfCores.cpp]
919 --- Source/WTF/wtf/NumberOfCores.cpp.orig 2023-02-20 11:57:19 UTC
920 +++ Source/WTF/wtf/NumberOfCores.cpp
923 #include <sys/sysctl.h>
924 #elif OS(LINUX) || OS(AIX) || OS(OPENBSD) || OS(NETBSD) || OS(FREEBSD)
925 +#include <stdio.h> // sscanf
931 [FILE:402:patches/patch-Source_WTF_wtf_PlatformGTK.cmake]
932 --- Source/WTF/wtf/PlatformGTK.cmake.orig 2023-02-20 11:57:19 UTC
933 +++ Source/WTF/wtf/PlatformGTK.cmake
934 @@ -62,7 +62,7 @@ if (CMAKE_SYSTEM_NAME MATCHES "Linux")
936 unix/MemoryPressureHandlerUnix.cpp
938 -elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
939 +elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD|DragonFly|MidnightBSD")
940 list(APPEND WTF_SOURCES
941 generic/MemoryFootprintGeneric.cpp
945 [FILE:582:patches/patch-Source_WTF_wtf_StackBounds.cpp]
946 $NetBSD: patch-Source_WTF_wtf_StackBounds.cpp,v 1.2 2018/10/24 18:31:07 leot Exp $
948 SunOS does not have pthread_getattr_np.
950 --- Source/WTF/wtf/StackBounds.cpp.orig 2023-02-20 11:57:19 UTC
951 +++ Source/WTF/wtf/StackBounds.cpp
952 @@ -98,6 +98,7 @@ StackBounds StackBounds::newThreadStackB
953 #if HAVE(PTHREAD_NP_H) || OS(NETBSD)
954 // e.g. on FreeBSD 5.4, neundorf@kde.org
955 pthread_attr_get_np(thread, &sattr);
956 +#elif defined(__sun__)
958 // FIXME: this function is non-portable; other POSIX systems may have different np alternatives
959 pthread_getattr_np(thread, &sattr);
962 [FILE:1502:patches/patch-Source_WTF_wtf_unix_MemoryPressureHandlerUnix.cpp]
963 --- Source/WTF/wtf/unix/MemoryPressureHandlerUnix.cpp.orig 2023-02-20 11:57:19 UTC
964 +++ Source/WTF/wtf/unix/MemoryPressureHandlerUnix.cpp
967 #include <wtf/MemoryPressureHandler.h>
969 +#if OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
975 #include <wtf/Logging.h>
976 #include <wtf/MainThread.h>
980 #include <wtf/linux/CurrentProcessMemoryStatus.h>
982 +#elif OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
983 #include <sys/sysctl.h>
984 #include <sys/types.h>
985 #include <sys/user.h>
986 @@ -112,7 +116,7 @@ static size_t processMemoryUsage()
987 ProcessMemoryStatus memoryStatus;
988 currentProcessMemoryStatus(memoryStatus);
989 return (memoryStatus.resident - memoryStatus.shared);
991 +#elif OS(FREEBSD) || defined(__DragonFly__) || defined(__MidnightBSD__)
992 static size_t pageSize = sysconf(_SC_PAGE_SIZE);
993 struct kinfo_proc info;
994 size_t infolen = sizeof(info);
995 @@ -126,7 +130,11 @@ static size_t processMemoryUsage()
996 if (sysctl(mib, 4, &info, &infolen, nullptr, 0))
999 +# ifdef __DragonFly__
1000 + return static_cast<size_t>(info.kp_vm_rssize - info.kp_vm_tsize) * pageSize;
1002 return static_cast<size_t>(info.ki_rssize - info.ki_tsize) * pageSize;
1005 #error "Missing a platform specific way of determining the memory usage"
1009 [FILE:848:patches/patch-Source_WebCore_Modules_fetch_FetchBodyConsumer.cpp]
1010 --- Source/WebCore/Modules/fetch/FetchBodyConsumer.cpp.orig 2023-03-27 21:14:01 UTC
1011 +++ Source/WebCore/Modules/fetch/FetchBodyConsumer.cpp
1013 #include <wtf/StringExtras.h>
1014 #include <wtf/URLParser.h>
1017 +static void *memmem(
1018 + const void *big, size_t big_len,
1019 + const void *little, size_t little_len)
1021 + const char *bp = (const char *)big;
1022 + const char *lp = (const char *)little;
1025 + if (big_len < little_len || little_len == 0 || big_len == 0)
1028 + while (big_len > 0) {
1029 + for (l = 0; l < little_len; l++) {
1030 + if (bp[l] != lp[l])
1033 + if (l == little_len)
1034 + return (void *)bp;
1044 static inline Ref<Blob> blobFromData(ScriptExecutionContext* context, Vector<uint8_t>&& data, const String& contentType)
1047 [FILE:610:patches/patch-Source_WebCore_platform_graphics_cpu_arm_filters_FELightingNEON.cpp]
1048 --- Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp.orig 2023-02-20 11:57:22 UTC
1049 +++ Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp
1050 @@ -403,7 +403,7 @@ TOSTRING(neonDrawLighting) ":" NL
1051 "vmin.f32 " TMP2_D0 ", " TMP2_D0 ", " CONST_ONE_HI_D NL
1052 "vmul.f32 " TMP3_Q ", " COLOR_Q ", " TMP2_D0 "[1]" NL
1053 "vcvt.u32.f32 " TMP3_Q ", " TMP3_Q NL
1054 - "vmov.u32 r2, r3, " TMP3_S0 ", " TMP3_S1 NL
1055 + "vmov r2, r3, " TMP3_S0 ", " TMP3_S1 NL
1056 // The color values are stored in-place.
1057 "strb r2, [" PIXELS_R ", #-11]" NL
1058 "strb r3, [" PIXELS_R ", #-10]" NL
1061 [FILE:350:patches/patch-Source_WebCore_platform_network_DNS.h]
1062 --- Source/WebCore/platform/network/DNS.h.orig 2023-02-20 11:57:23 UTC
1063 +++ Source/WebCore/platform/network/DNS.h
1065 #include <ws2tcpip.h>
1067 #include <netinet/in.h>
1068 +# if defined __DragonFly__ || defined __FreeBSD__ || defined __sun__ || defined __MidnightBSD__
1069 +# include <sys/socket.h>
1076 [FILE:336:patches/patch-Source_WebDriver_PlatformGTK.cmake]
1077 --- Source/WebDriver/PlatformGTK.cmake.orig 2023-02-20 11:57:24 UTC
1078 +++ Source/WebDriver/PlatformGTK.cmake
1079 @@ -5,6 +5,7 @@ add_definitions(-DLIBEXECDIR="${CMAKE_IN
1080 list(APPEND WebDriver_SYSTEM_INCLUDE_DIRECTORIES
1081 "${GLIB_INCLUDE_DIRS}"
1082 "${LIBSOUP_INCLUDE_DIRS}"
1083 + "${ICU_INCLUDE_DIRS}"
1086 list(APPEND WebDriver_SOURCES
1089 [FILE:507:patches/patch-Source_WebKit_CMakeLists.txt]
1090 $NetBSD: patch-Source_WebKit_CMakeLists.txt,v 1.1 2018/05/16 18:55:45 jperkin Exp $
1092 SunOS requires libsocket.
1094 --- Source/WebKit/CMakeLists.txt.orig 2023-02-20 11:57:24 UTC
1095 +++ Source/WebKit/CMakeLists.txt
1096 @@ -411,6 +411,10 @@ if (UNIX)
1100 +if (CMAKE_SYSTEM_NAME MATCHES "SunOS")
1101 + list(APPEND WebKit_LIBRARIES socket)
1104 macro(ADD_WEBKIT_PREFIX_HEADER _target)
1105 if (WebKit_USE_PREFIX_HEADER)
1106 get_target_property(OLD_COMPILE_FLAGS ${_target} COMPILE_FLAGS)
1109 [FILE:599:patches/patch-Source_WebKit_PlatformGTK.cmake]
1110 --- Source/WebKit/PlatformGTK.cmake.orig 2023-04-12 12:51:20 UTC
1111 +++ Source/WebKit/PlatformGTK.cmake
1112 @@ -40,7 +40,7 @@ add_definitions(-DDATADIR="${CMAKE_INSTA
1113 add_definitions(-DLIBDIR="${LIB_INSTALL_DIR}")
1114 add_definitions(-DPKGLIBDIR="${LIB_INSTALL_DIR}/webkit${WEBKITGTK_API_INFIX}gtk-${WEBKITGTK_API_VERSION}")
1116 -if (NOT DEVELOPER_MODE AND NOT CMAKE_SYSTEM_NAME MATCHES "Darwin")
1117 +if (NOT DEVELOPER_MODE AND NOT CMAKE_SYSTEM_NAME MATCHES "Darwin|SunOS")
1118 WEBKIT_ADD_TARGET_PROPERTIES(WebKit LINK_FLAGS "-Wl,--version-script,${CMAKE_CURRENT_SOURCE_DIR}/webkitglib-symbols.map")
1123 [FILE:1137:patches/patch-Source_WebKit_Platform_IPC_unix_ConnectionUnix.cpp]
1124 On NetBSD we see "Error sending IPC message: Message too long" due to
1125 the use of sendmsg with a large message body (EMSGSIZE).
1127 WebKit already uses shared memory to communicate the message body when
1128 the message is too large, so force it to always use this method to avoid
1129 encountering EMSGSIZE.
1131 --- Source/WebKit/Platform/IPC/unix/ConnectionUnix.cpp.orig 2023-02-20 11:57:24 UTC
1132 +++ Source/WebKit/Platform/IPC/unix/ConnectionUnix.cpp
1135 #endif // SOCK_SEQPACKET
1137 +#ifndef MSG_NOSIGNAL
1138 +#define MSG_NOSIGNAL 0
1143 static const size_t messageMaxSize = 4096;
1144 @@ -403,8 +407,12 @@ bool Connection::sendOutgoingMessage(Uni
1149 size_t messageSizeWithBodyInline = sizeof(MessageInfo) + (outputMessage.attachments().size() * sizeof(AttachmentInfo)) + outputMessage.bodySize();
1150 if (messageSizeWithBodyInline > messageMaxSize && outputMessage.bodySize()) {
1154 RefPtr<WebKit::SharedMemory> oolMessageBody = WebKit::SharedMemory::allocate(outputMessage.bodySize());
1155 if (!oolMessageBody)
1159 [FILE:586:patches/patch-Source_WebKit_Platform_unix_SharedMemoryUnix.cpp]
1160 --- Source/WebKit/Platform/unix/SharedMemoryUnix.cpp.orig 2023-02-20 11:57:24 UTC
1161 +++ Source/WebKit/Platform/unix/SharedMemoryUnix.cpp
1162 @@ -129,7 +129,11 @@ static UnixFileDescriptor createSharedMe
1165 for (int tries = 0; fileDescriptor == -1 && tries < 10; ++tries) {
1166 +# ifdef __DragonFly__
1167 + auto name = makeString("/tmp/WK2SharedMemory.", cryptographicallyRandomNumber<unsigned>());
1169 auto name = makeString("/WK2SharedMemory.", cryptographicallyRandomNumber<unsigned>());
1171 tempName = name.utf8();
1176 [FILE:681:patches/patch-Source_WebKit_UIProcess_Launcher_glib_ProcessLauncherGLib.cpp]
1177 --- Source/WebKit/UIProcess/Launcher/glib/ProcessLauncherGLib.cpp.orig 2023-02-20 11:57:24 UTC
1178 +++ Source/WebKit/UIProcess/Launcher/glib/ProcessLauncherGLib.cpp
1180 #include "ProcessProviderLibWPE.h"
1183 -#if !USE(SYSTEM_MALLOC) && OS(LINUX)
1184 -#include <bmalloc/valgrind.h>
1189 @@ -91,10 +88,6 @@ static int connectionOptions()
1191 static bool isSandboxEnabled(const ProcessLauncher::LaunchOptions& launchOptions)
1193 -#if !USE(SYSTEM_MALLOC)
1194 - if (RUNNING_ON_VALGRIND)
1198 if (const char* sandboxEnv = g_getenv("WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS")) {
1199 if (!strcmp(sandboxEnv, "1"))
1202 [FILE:1460:patches/patch-Source_bmalloc_bmalloc_AvailableMemory.cpp]
1203 --- Source/bmalloc/bmalloc/AvailableMemory.cpp.orig 2023-02-20 11:57:25 UTC
1204 +++ Source/bmalloc/bmalloc/AvailableMemory.cpp
1206 #import <mach/mach_error.h>
1209 -#if BOS(FREEBSD) || BOS(LINUX)
1211 #include <sys/sysinfo.h>
1214 @@ -161,7 +161,13 @@ static size_t computeAvailableMemory()
1215 // Round up the memory size to a multiple of 128MB because max_mem may not be exactly 512MB
1216 // (for example) and we have code that depends on those boundaries.
1217 return ((sizeAccordingToKernel + multiple - 1) / multiple) * multiple;
1218 -#elif BOS(FREEBSD) || BOS(LINUX)
1219 +#elif BOS(FREEBSD) || defined(__MidnightBSD__)
1220 + long pages = sysconf(_SC_PHYS_PAGES);
1221 + long pageSize = sysconf(_SC_PAGE_SIZE);
1222 + if (pages == -1 || pageSize == -1)
1223 + return availableMemoryGuess;
1224 + return pages * pageSize;
1226 struct sysinfo info;
1227 if (!sysinfo(&info))
1228 return info.totalram * info.mem_unit;
1229 @@ -212,7 +218,11 @@ MemoryStatus memoryStatus()
1231 size_t memoryFootprint = 0;
1232 if (!sysctl(mib, 4, &info, &infolen, nullptr, 0))
1233 +# ifdef __DragonFly__
1234 + memoryFootprint = static_cast<size_t>(info.kp_vm_rssize) * vmPageSize();
1236 memoryFootprint = static_cast<size_t>(info.ki_rssize) * vmPageSize();
1240 double percentInUse = static_cast<double>(memoryFootprint) / static_cast<double>(availableMemory());
1243 [FILE:1225:patches/patch-Source_bmalloc_libpas_src_libpas_pas__probabilistic__guard__malloc__allocator.c]
1244 --- Source/bmalloc/libpas/src/libpas/pas_probabilistic_guard_malloc_allocator.c.orig 2023-02-20 11:57:25 UTC
1245 +++ Source/bmalloc/libpas/src/libpas/pas_probabilistic_guard_malloc_allocator.c
1246 @@ -114,11 +114,13 @@ pas_allocation_result pas_probabilistic_
1247 * ensure physical addresses are released
1248 * TODO: investigate using MADV_FREE_REUSABLE instead
1250 + /* Linux 4.5, Ravenports uses 4.4
1251 int madvise_res = madvise((void *) upper_guard_page, page_size, MADV_FREE);
1252 PAS_ASSERT(!madvise_res);
1254 madvise_res = madvise((void *) lower_guard_page, page_size, MADV_FREE);
1255 PAS_ASSERT(!madvise_res);
1259 * the key is the location where the user's starting memory address is located.
1260 @@ -180,8 +182,10 @@ void pas_probabilistic_guard_malloc_deal
1262 // ensure physical addresses are released
1263 // TODO: investigate using MADV_FREE_REUSABLE instead
1264 + /* Requires linux 4.5
1265 int madvise_res = madvise((void *) value->start_of_data_pages, value->size_of_data_pages, MADV_FREE);
1266 PAS_ASSERT(!madvise_res);
1269 bool removed = pas_ptr_hash_map_remove(&pas_pgm_hash_map, key, NULL, &pas_large_utility_free_heap_allocation_config);
1270 PAS_ASSERT(removed);
1273 [FILE:971:patches/patch-Source_cmake_OptionsCommon.cmake]
1274 --- Source/cmake/OptionsCommon.cmake.orig 2023-03-15 20:00:49 UTC
1275 +++ Source/cmake/OptionsCommon.cmake
1276 @@ -158,10 +158,10 @@ endif ()
1277 option(USE_THIN_ARCHIVES "Produce all static libraries as thin archives" ${USE_THIN_ARCHIVES_DEFAULT})
1279 if (USE_THIN_ARCHIVES)
1280 - set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> crT <TARGET> <LINK_FLAGS> <OBJECTS>")
1281 - set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> crT <TARGET> <LINK_FLAGS> <OBJECTS>")
1282 - set(CMAKE_CXX_ARCHIVE_APPEND "<CMAKE_AR> rT <TARGET> <LINK_FLAGS> <OBJECTS>")
1283 - set(CMAKE_C_ARCHIVE_APPEND "<CMAKE_AR> rT <TARGET> <LINK_FLAGS> <OBJECTS>")
1284 + set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS>")
1285 + set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS>")
1286 + set(CMAKE_CXX_ARCHIVE_APPEND "<CMAKE_AR> r <TARGET> <LINK_FLAGS> <OBJECTS>")
1287 + set(CMAKE_C_ARCHIVE_APPEND "<CMAKE_AR> r <TARGET> <LINK_FLAGS> <OBJECTS>")
1290 set(ENABLE_DEBUG_FISSION_DEFAULT OFF)
1293 [FILE:520:patches/patch-Source_cmake_WebKitCompilerFlags.cmake]
1294 --- Source/cmake/WebKitCompilerFlags.cmake.orig 2023-02-20 11:57:25 UTC
1295 +++ Source/cmake/WebKitCompilerFlags.cmake
1296 @@ -275,7 +275,7 @@ if (NOT MSVC)
1297 string(REGEX MATCHALL "-fsanitize=[^ ]*" ENABLED_COMPILER_SANITIZERS ${CMAKE_CXX_FLAGS})
1300 -if (UNIX AND NOT APPLE AND NOT ENABLED_COMPILER_SANITIZERS)
1301 +if (UNIX AND NOT APPLE AND NOT ENABLED_COMPILER_SANITIZERS AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
1302 set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined ${CMAKE_SHARED_LINKER_FLAGS}")
1307 [FILE:358:patches/patch-Tools_MiniBrowser_gtk_CMakeLists.txt]
1308 --- Tools/MiniBrowser/gtk/CMakeLists.txt.orig 2023-02-20 11:57:25 UTC
1309 +++ Tools/MiniBrowser/gtk/CMakeLists.txt
1310 @@ -41,6 +41,10 @@ set(MiniBrowser_PRIVATE_LIBRARIES
1314 +if (CMAKE_SYSTEM_NAME MATCHES "SunOS")
1315 + list(APPEND MiniBrowser_PRIVATE_LIBRARIES intl)
1318 set(MiniBrowser_DEPENDENCIES