Ravenports generated: 28 Oct 2022 19:08
[ravenports.git] / bucket_58 / webkit2
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               webkit2
4 VERSION=                2.38.1
5 KEYWORDS=               www
6 VARIANTS=               api40 api41 api50
7 SDESC[api50]=           Opensource browser engine using GTK4 (API 5.0)
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 HOMEPAGE=               https://www.webkitgtk.org/
11 CONTACT=                nobody
12
13 DOWNLOAD_GROUPS=        main
14 SITES[main]=            https://www.webkitgtk.org/releases/
15                         https://fossies.org/linux/www/
16 DISTFILE[1]=            webkitgtk-2.38.1.tar.xz:main
17 DF_INDEX=               1
18 SPKGS[api50]=           complete
19                         primary
20                         nls
21 SPKGS[api40]=           complete
22                         primary
23                         nls
24 SPKGS[api41]=           complete
25                         primary
26                         nls
27
28 OPTIONS_AVAILABLE=      API40 API41 API50
29 OPTIONS_STANDARD=       none
30 VOPTS[api50]=           API40=OFF API41=OFF API50=ON
31 VOPTS[api40]=           API40=ON API41=OFF API50=OFF
32 VOPTS[api41]=           API40=OFF API41=ON API50=OFF
33
34 BUILD_DEPENDS=          gperf:primary:standard
35 BUILDRUN_DEPENDS=       enchant:single:standard
36                         fontconfig:primary:standard
37                         freetype:primary:standard
38                         WebP:single:standard
39                         libsecret:primary:standard
40                         libnotify:primary:standard
41                         hyphen:single:standard
42                         harfbuzz:icu:standard
43                         icu:single:standard
44                         libgcrypt:single:standard
45                         gnutls:primary:standard
46                         libtasn1:primary:standard
47                         geoclue:single:standard
48                         woff2:single:standard
49                         gstreamer1-plugins-base:primary:standard
50                         openjpeg:single:standard
51
52 USES=                   png mesa cmake pkgconfig sqlite bison perl:build
53                         python:build ruby:build gettext-tools cpe
54 GNOME_COMPONENTS=       gdkpixbuf introspection libxslt
55 XORG_COMPONENTS=        x11 xcomposite xdamage xext xrender xt ice
56
57 DISTNAME=               webkitgtk-2.38.1
58
59 LICENSE=                GPLv2+:primary BSD3CLAUSE:primary
60 LICENSE_TERMS=          primary:{{WRKDIR}}/TERMS
61 LICENSE_FILE=           GPLv2+:stock
62                         BSD3CLAUSE:{{WRKDIR}}/LICENSE_BSD
63 LICENSE_AWK=            BSD3CLAUSE:"^$$"
64                         TERMS:"^$$"
65 LICENSE_SOURCE=         BSD3CLAUSE:{{WRKSRC}}/Source/WebCore/css/parser/MediaQueryBlockWatcher.h
66                         TERMS:{{WRKSRC}}/Source/WebCore/style/StyleScope.cpp
67 LICENSE_SCHEME=         multi
68
69 CPE_PRODUCT=            webkitgtk
70 CPE_VENDOR=             webkitgtk
71 FPC_EQUIVALENT=         www/webkit2-gtk3
72
73 CONFIGURE_ENV=          XDG_CACHE_HOME={{WRKDIR}}
74
75 INSTALL_TARGET=         install
76 INSTALL_REQ_TOOLCHAIN=  yes
77 PLIST_SUB=              INTRO="@comment "
78
79 CXXFLAGS=               -DFIXED_EXECUTABLE_MEMORY_POOL_SIZE_IN_MB=32
80 CMAKE_ARGS=             -DPORT=GTK
81                         -DENABLE_GEOLOCATION:BOOL=ON
82                         -DENABLE_GLES2:BOOL=ON
83                         -DENABLE_MINIBROWSER:BOOL=ON
84                         -DENABLE_WAYLAND_TARGET:BOOL=OFF
85                         -DENABLE_BUBBLEWRAP_SANDBOX:BOOL=OFF
86                         -DENABLE_GAMEPAD:BOOL=OFF
87                         -DENABLE_INTROSPECTION:BOOL=OFF
88                         -DENABLE_JOURNALD_LOG:BOOL=OFF
89                         -DSUPPRESS_ASSERT:BOOL=ON
90                         -DUSE_SYSTEMD:BOOL=OFF
91                         -DUSE_GSTREAMER_GL:BOOL=OFF
92 VAR_OPSYS[sunos]=       CMAKE_ARGS=-DUSE_LD_GOLD:BOOL=OFF
93
94 [API50].DESCRIPTION=                    Build WebKit2 API 5.0 variant
95 [API50].BUILDRUN_DEPENDS_ON=            libsoup:primary:standard
96 [API50].CMAKE_ARGS_ON=                  -DUSE_GTK4=ON
97 [API50].GNOME_COMPONENTS_ON=            gtk4
98 [API50].PLIST_SUB_ON=                   JSSOVERSION=0.0.0
99                                         JSSOMAJOR=0
100                                         SOVERSION=0.0.0
101                                         SOMAJOR=0
102                                         WKAPI=5.0
103                                         WKAPIMAJOR=5
104
105 [API40].DESCRIPTION=                    Build WebKit2 API 4.0 variant
106 [API40].BUILDRUN_DEPENDS_ON=            libsoup-2.4:primary:standard
107 [API40].CMAKE_ARGS_ON=                  -DUSE_SOUP2=ON
108 [API40].GNOME_COMPONENTS_ON=            gtk3
109 [API40].PLIST_SUB_ON=                   JSSOVERSION=18.21.4
110                                         JSSOMAJOR=18
111                                         SOVERSION=37.57.4
112                                         SOMAJOR=37
113                                         WKAPI=4.0
114                                         WKAPIMAJOR=4
115
116 [API41].DESCRIPTION=                    Build WebKit2 API 4.1 variant
117 [API41].BUILDRUN_DEPENDS_ON=            libsoup:primary:standard
118 [API41].GNOME_COMPONENTS_ON=            gtk3
119 [API41].PLIST_SUB_ON=                   JSSOVERSION=0.2.4
120                                         JSSOMAJOR=0
121                                         SOVERSION=0.2.4
122                                         SOMAJOR=0
123                                         WKAPI=4.1
124                                         WKAPIMAJOR=4
125
126 post-patch:
127         echo 'add_compile_definitions("U_DEFINE_FALSE_AND_TRUE=1")' \
128                 >> ${WRKSRC}/Source/WTF/wtf/CMakeLists.txt
129
130 post-install-API40-ON:
131         (cd ${STAGEDIR}${PREFIX}/bin && \
132          ${LN} -s ../libexec/webkit2gtk-4.0/jsc jsc-4 && \
133          ${LN} -s ../libexec/webkit2gtk-4.0/MiniBrowser MiniBrowser-4)
134         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/webkit2gtk-4.0/injected-bundle/*.so
135         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/webkit2gtk-4.0/*
136
137 post-install-API50-ON:
138         (cd ${STAGEDIR}${PREFIX}/bin && \
139          ${LN} -s ../libexec/webkit2gtk-5.0/jsc jsc-5 && \
140          ${LN} -s ../libexec/webkit2gtk-5.0/MiniBrowser MiniBrowser-5)
141         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/webkit2gtk-5.0/injected-bundle/*.so
142         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/webkit2gtk-5.0/*
143
144 post-install:
145         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so.*.*
146         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver
147
148 post-install-API41-ON:
149         (cd ${STAGEDIR}${PREFIX}/bin && \
150          ${LN} -s ../libexec/webkit2gtk-4.1/jsc jsc-4 && \
151          ${LN} -s ../libexec/webkit2gtk-4.1/MiniBrowser MiniBrowser-4)
152         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/webkit2gtk-4.1/injected-bundle/*.so
153         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/webkit2gtk-4.1/*
154
155 post-patch-sunos:
156         ${REINPLACE_CMD} -e '/USE_FILE_LOCK/ s|1|0|' \
157                 ${WRKSRC}/Source/WTF/wtf/PlatformUse.h \
158                 ${WRKSRC}/Source/WebCore/config.h
159
160 [FILE:574:descriptions/desc.primary]
161 WebKitGTK+ is a full-featured port of the WebKit rendering engine, suitable
162 for projects requiring any kind of web integration, from hybrid HTML/CSS
163 applications to full-fledged web browsers. It offers WebKit's full
164 functionality and is useful in a wide range of systems from desktop
165 computers to embedded systems like phones, tablets, and televisions.
166
167 WebKitGTK+ is made by a lively community of developers and designers,
168 who hope to bring the web platform to everyone. It's the official web
169 engine of the GNOME platform and is used in browsers such as Epiphany
170 and Surf.
171
172
173 [FILE:102:distinfo]
174 02e195b3fb9e057743b3364ee7f1eec13f71614226849544c07c32a73b8f1848     33006384 webkitgtk-2.38.1.tar.xz
175
176
177 [FILE:6416:manifests/plist.primary]
178 %%INTRO%%lib/girepository-1.0/
179  JavaScriptCore-%%WKAPI%%.typelib
180  WebKit2-%%WKAPI%%.typelib
181  WebKit2WebExtension-%%WKAPI%%.typelib
182 %%INTRO%%share/gir-1.0/
183  JavaScriptCore-%%WKAPI%%.gir
184  WebKit2-%%WKAPI%%.gir
185  WebKit2WebExtension-%%WKAPI%%.gir
186 bin/
187  MiniBrowser-%%WKAPIMAJOR%%
188  WebKitWebDriver
189  jsc-%%WKAPIMAJOR%%
190 include/webkitgtk-%%WKAPI%%/JavaScriptCore/
191  JSBase.h
192  JSContextRef.h
193  JSObjectRef.h
194  JSStringRef.h
195  JSTypedArray.h
196  JSValueRef.h
197  JavaScript.h
198  WebKitAvailability.h
199 include/webkitgtk-%%WKAPI%%/jsc/
200  JSCAutocleanups.h
201  JSCClass.h
202  JSCContext.h
203  JSCDefines.h
204  JSCException.h
205  JSCOptions.h
206  JSCValue.h
207  JSCVersion.h
208  JSCVirtualMachine.h
209  JSCWeakValue.h
210  jsc.h
211 include/webkitgtk-%%WKAPI%%/webkit2/
212  WebKitApplicationInfo.h
213  WebKitAuthenticationRequest.h
214  WebKitAutocleanups.h
215  WebKitAutomationSession.h
216  WebKitBackForwardList.h
217  WebKitBackForwardListItem.h
218  WebKitColorChooserRequest.h
219  WebKitConsoleMessage.h
220  WebKitContextMenu.h
221  WebKitContextMenuActions.h
222  WebKitContextMenuItem.h
223  WebKitCookieManager.h
224  WebKitCredential.h
225  WebKitDefines.h
226  WebKitDeviceInfoPermissionRequest.h
227  WebKitDownload.h
228  WebKitEditingCommands.h
229  WebKitEditorState.h
230  WebKitEnumTypes.h
231  WebKitError.h
232  WebKitFaviconDatabase.h
233  WebKitFileChooserRequest.h
234  WebKitFindController.h
235  WebKitFormSubmissionRequest.h
236  WebKitForwardDeclarations.h
237  WebKitFrame.h
238  WebKitGeolocationManager.h
239  WebKitGeolocationPermissionRequest.h
240  WebKitHitTestResult.h
241  WebKitInputMethodContext.h
242  WebKitInstallMissingMediaPluginsPermissionRequest.h
243  WebKitJavascriptResult.h
244  WebKitMediaKeySystemPermissionRequest.h
245  WebKitMemoryPressureSettings.h
246  WebKitMimeInfo.h
247  WebKitNavigationAction.h
248  WebKitNavigationPolicyDecision.h
249  WebKitNetworkProxySettings.h
250  WebKitNotification.h
251  WebKitNotificationPermissionRequest.h
252  WebKitOptionMenu.h
253  WebKitOptionMenuItem.h
254  WebKitPermissionRequest.h
255  WebKitPlugin.h
256  WebKitPointerLockPermissionRequest.h
257  WebKitPolicyDecision.h
258  WebKitPrintCustomWidget.h
259  WebKitPrintOperation.h
260  WebKitResponsePolicyDecision.h
261  WebKitScriptDialog.h
262  WebKitScriptWorld.h
263  WebKitSecurityManager.h
264  WebKitSecurityOrigin.h
265  WebKitSettings.h
266  WebKitURIRequest.h
267  WebKitURIResponse.h
268  WebKitURISchemeRequest.h
269  WebKitURISchemeResponse.h
270  WebKitURIUtilities.h
271  WebKitUserContent.h
272  WebKitUserContentFilterStore.h
273  WebKitUserContentManager.h
274  WebKitUserMediaPermissionRequest.h
275  WebKitUserMessage.h
276  WebKitVersion.h
277  WebKitWebContext.h
278  WebKitWebEditor.h
279  WebKitWebExtension.h
280  WebKitWebExtensionAutocleanups.h
281  WebKitWebHitTestResult.h
282  WebKitWebInspector.h
283  WebKitWebPage.h
284  WebKitWebProcessEnumTypes.h
285  WebKitWebResource.h
286  WebKitWebView.h
287  WebKitWebViewBase.h
288  WebKitWebViewSessionState.h
289  WebKitWebsiteData.h
290  WebKitWebsiteDataAccessPermissionRequest.h
291  WebKitWebsiteDataManager.h
292  WebKitWebsitePolicies.h
293  WebKitWindowProperties.h
294  webkit-web-extension.h
295  webkit2.h
296 include/webkitgtk-%%WKAPI%%/webkitdom/
297  WebKitDOMAttr.h
298  WebKitDOMBlob.h
299  WebKitDOMCDATASection.h
300  WebKitDOMCSSRule.h
301  WebKitDOMCSSRuleList.h
302  WebKitDOMCSSStyleDeclaration.h
303  WebKitDOMCSSStyleSheet.h
304  WebKitDOMCSSValue.h
305  WebKitDOMCharacterData.h
306  WebKitDOMClientRect.h
307  WebKitDOMClientRectList.h
308  WebKitDOMComment.h
309  WebKitDOMCustom.h
310  WebKitDOMCustomUnstable.h
311  WebKitDOMDOMImplementation.h
312  WebKitDOMDOMSelection.h
313  WebKitDOMDOMTokenList.h
314  WebKitDOMDOMWindow.h
315  WebKitDOMDOMWindowUnstable.h
316  WebKitDOMDeprecated.h
317  WebKitDOMDocument.h
318  WebKitDOMDocumentFragment.h
319  WebKitDOMDocumentFragmentUnstable.h
320  WebKitDOMDocumentType.h
321  WebKitDOMDocumentUnstable.h
322  WebKitDOMElement.h
323  WebKitDOMElementUnstable.h
324  WebKitDOMEvent.h
325  WebKitDOMEventTarget.h
326  WebKitDOMFile.h
327  WebKitDOMFileList.h
328  WebKitDOMHTMLAnchorElement.h
329  WebKitDOMHTMLAppletElement.h
330  WebKitDOMHTMLAreaElement.h
331  WebKitDOMHTMLBRElement.h
332  WebKitDOMHTMLBaseElement.h
333  WebKitDOMHTMLBodyElement.h
334  WebKitDOMHTMLButtonElement.h
335  WebKitDOMHTMLCanvasElement.h
336  WebKitDOMHTMLCollection.h
337  WebKitDOMHTMLDListElement.h
338  WebKitDOMHTMLDirectoryElement.h
339  WebKitDOMHTMLDivElement.h
340  WebKitDOMHTMLDocument.h
341  WebKitDOMHTMLElement.h
342  WebKitDOMHTMLElementUnstable.h
343  WebKitDOMHTMLEmbedElement.h
344  WebKitDOMHTMLFieldSetElement.h
345  WebKitDOMHTMLFontElement.h
346  WebKitDOMHTMLFormElement.h
347  WebKitDOMHTMLFrameElement.h
348  WebKitDOMHTMLFrameSetElement.h
349  WebKitDOMHTMLHRElement.h
350  WebKitDOMHTMLHeadElement.h
351  WebKitDOMHTMLHeadingElement.h
352  WebKitDOMHTMLHtmlElement.h
353  WebKitDOMHTMLIFrameElement.h
354  WebKitDOMHTMLImageElement.h
355  WebKitDOMHTMLInputElement.h
356  WebKitDOMHTMLLIElement.h
357  WebKitDOMHTMLLabelElement.h
358  WebKitDOMHTMLLegendElement.h
359  WebKitDOMHTMLLinkElement.h
360  WebKitDOMHTMLMapElement.h
361  WebKitDOMHTMLMarqueeElement.h
362  WebKitDOMHTMLMenuElement.h
363  WebKitDOMHTMLMetaElement.h
364  WebKitDOMHTMLModElement.h
365  WebKitDOMHTMLOListElement.h
366  WebKitDOMHTMLObjectElement.h
367  WebKitDOMHTMLOptGroupElement.h
368  WebKitDOMHTMLOptionElement.h
369  WebKitDOMHTMLOptionsCollection.h
370  WebKitDOMHTMLParagraphElement.h
371  WebKitDOMHTMLParamElement.h
372  WebKitDOMHTMLPreElement.h
373  WebKitDOMHTMLQuoteElement.h
374  WebKitDOMHTMLScriptElement.h
375  WebKitDOMHTMLSelectElement.h
376  WebKitDOMHTMLStyleElement.h
377  WebKitDOMHTMLTableCaptionElement.h
378  WebKitDOMHTMLTableCellElement.h
379  WebKitDOMHTMLTableColElement.h
380  WebKitDOMHTMLTableElement.h
381  WebKitDOMHTMLTableRowElement.h
382  WebKitDOMHTMLTableSectionElement.h
383  WebKitDOMHTMLTextAreaElement.h
384  WebKitDOMHTMLTitleElement.h
385  WebKitDOMHTMLUListElement.h
386  WebKitDOMKeyboardEvent.h
387  WebKitDOMMediaList.h
388  WebKitDOMMouseEvent.h
389  WebKitDOMNamedNodeMap.h
390  WebKitDOMNode.h
391  WebKitDOMNodeFilter.h
392  WebKitDOMNodeIterator.h
393  WebKitDOMNodeList.h
394  WebKitDOMObject.h
395  WebKitDOMProcessingInstruction.h
396  WebKitDOMRange.h
397  WebKitDOMRangeUnstable.h
398  WebKitDOMStyleSheet.h
399  WebKitDOMStyleSheetList.h
400  WebKitDOMText.h
401  WebKitDOMTreeWalker.h
402  WebKitDOMUIEvent.h
403  WebKitDOMWheelEvent.h
404  WebKitDOMXPathExpression.h
405  WebKitDOMXPathNSResolver.h
406  WebKitDOMXPathResult.h
407  webkitdom.h
408  webkitdomautocleanups.h
409  webkitdomdefines.h
410 lib/
411  libjavascriptcoregtk-%%WKAPI%%.so
412  libjavascriptcoregtk-%%WKAPI%%.so.%%JSSOMAJOR%%
413  libjavascriptcoregtk-%%WKAPI%%.so.%%JSSOVERSION%%
414  libwebkit2gtk-%%WKAPI%%.so
415  libwebkit2gtk-%%WKAPI%%.so.%%SOMAJOR%%
416  libwebkit2gtk-%%WKAPI%%.so.%%SOVERSION%%
417 lib/pkgconfig/
418  javascriptcoregtk-%%WKAPI%%.pc
419  webkit2gtk-%%WKAPI%%.pc
420  webkit2gtk-web-extension-%%WKAPI%%.pc
421 lib/webkit2gtk-%%WKAPI%%/injected-bundle/libwebkit2gtkinjectedbundle.so
422 libexec/webkit2gtk-%%WKAPI%%/
423  MiniBrowser
424  WebKitNetworkProcess
425  WebKitWebProcess
426  jsc
427
428
429 [FILE:2618:manifests/plist.nls]
430 share/locale/ar/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
431 share/locale/as/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
432 share/locale/bg/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
433 share/locale/ca/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
434 share/locale/cs/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
435 share/locale/da/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
436 share/locale/de/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
437 share/locale/el/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
438 share/locale/en_CA/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
439 share/locale/en_GB/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
440 share/locale/eo/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
441 share/locale/es/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
442 share/locale/et/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
443 share/locale/eu/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
444 share/locale/fi/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
445 share/locale/fr/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
446 share/locale/gl/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
447 share/locale/gu/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
448 share/locale/he/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
449 share/locale/hi/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
450 share/locale/hr/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
451 share/locale/hu/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
452 share/locale/id/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
453 share/locale/it/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
454 share/locale/ja/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
455 share/locale/kn/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
456 share/locale/ko/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
457 share/locale/lt/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
458 share/locale/lv/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
459 share/locale/ml/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
460 share/locale/mr/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
461 share/locale/nb/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
462 share/locale/nl/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
463 share/locale/or/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
464 share/locale/pa/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
465 share/locale/pl/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
466 share/locale/pt/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
467 share/locale/pt_BR/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
468 share/locale/ro/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
469 share/locale/ru/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
470 share/locale/sl/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
471 share/locale/sr/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
472 share/locale/sr@latin/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
473 share/locale/sv/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
474 share/locale/ta/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
475 share/locale/te/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
476 share/locale/tr/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
477 share/locale/uk/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
478 share/locale/vi/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
479 share/locale/zh_CN/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
480
481
482 [FILE:431:patches/patch-CMakeLists.txt]
483 --- CMakeLists.txt.orig 2022-08-31 07:59:34 UTC
484 +++ CMakeLists.txt
485 @@ -31,6 +31,11 @@ if (ENABLE_API_TESTS)
486      enable_testing()
487  endif ()
488  
489 +if (SUPPRESS_ASSERT)
490 +   add_definitions(-DNDEBUG=1)
491 +   add_definitions(-D__OPTIMIZE__)
492 +endif()
493 +
494  # -----------------------------------------------------------------------------
495  # Add module directories
496  # -----------------------------------------------------------------------------
497
498
499 [FILE:534:patches/patch-Source_JavaScriptCore_assembler_ARM64Assembler.h]
500 --- Source/JavaScriptCore/assembler/ARM64Assembler.h.orig       2022-08-31 07:59:51 UTC
501 +++ Source/JavaScriptCore/assembler/ARM64Assembler.h
502 @@ -2920,6 +2920,8 @@ public:
503          sys_cache_control(kCacheFunctionPrepareForExecution, code, size);
504  #elif OS(FUCHSIA)
505          zx_cache_flush(code, size, ZX_CACHE_FLUSH_INSN);
506 +#elif OS(FREEBSD) || OS(NETBSD)
507 +        __clear_cache(code, reinterpret_cast<char*>(code) + size);
508  #elif OS(LINUX)
509          size_t page = pageSize();
510          uintptr_t current = reinterpret_cast<uintptr_t>(code);
511
512
513 [FILE:4034:patches/patch-Source_JavaScriptCore_runtime_MachineContext.h]
514 $NetBSD: patch-Source_JavaScriptCore_runtime_MachineContext.h,v 1.2 2021/05/13 08:20:58 leot Exp $
515
516 Add support for NetBSD.
517
518 --- Source/JavaScriptCore/runtime/MachineContext.h.orig 2022-08-31 07:59:51 UTC
519 +++ Source/JavaScriptCore/runtime/MachineContext.h
520 @@ -193,6 +193,22 @@ static inline void*& stackPointerImpl(mc
521  #error Unknown Architecture
522  #endif
523  
524 +#elif OS(NETBSD)
525 +
526 +#if CPU(X86)
527 +    return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_UESP]);
528 +#elif CPU(X86_64)
529 +    return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RSP]);
530 +#elif CPU(ARM)
531 +    return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_SP]);
532 +#elif CPU(ARM64)
533 +    return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_SP]);
534 +#elif CPU(MIPS)
535 +    return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_SP]);
536 +#else
537 +#error Unknown Architecture
538 +#endif
539 +
540  #elif OS(FUCHSIA) || OS(LINUX)
541  
542  #if CPU(X86)
543 @@ -338,6 +354,22 @@ static inline void*& framePointerImpl(mc
544  #error Unknown Architecture
545  #endif
546  
547 +#elif OS(NETBSD)
548 +
549 +#if CPU(X86)
550 +    return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EBP]);
551 +#elif CPU(X86_64)
552 +    return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RBP]);
553 +#elif CPU(ARM)
554 +    return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_FP]);
555 +#elif CPU(ARM64)
556 +    return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_FP]);
557 +#elif CPU(MIPS)
558 +    return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_S8]);
559 +#else
560 +#error Unknown Architecture
561 +#endif
562 +
563  #elif OS(FUCHSIA) || OS(LINUX)
564  
565  // The following sequence depends on glibc's sys/ucontext.h.
566 @@ -495,6 +527,22 @@ static inline void*& instructionPointerI
567  #else
568  #error Unknown Architecture
569  #endif
570
571 +#elif OS(NETBSD)
572 +
573 +#if CPU(X86)
574 +    return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EIP]);
575 +#elif CPU(X86_64)
576 +    return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RIP]);
577 +#elif CPU(ARM)
578 +    return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_PC]);
579 +#elif CPU(ARM64)
580 +    return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_PC]);
581 +#elif CPU(MIPS)
582 +    return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EPC]);
583 +#else
584 +#error Unknown Architecture
585 +#endif
586  
587  #elif OS(FUCHSIA) || OS(LINUX)
588  
589 @@ -651,6 +699,22 @@ inline void*& argumentPointer<1>(mcontex
590  #else
591  #error Unknown Architecture
592  #endif
593
594 +#elif OS(NETBSD)
595 +
596 +#if CPU(X86)
597 +    return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EDX]);
598 +#elif CPU(X86_64)
599 +    return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RSI]);
600 +#elif CPU(ARM)
601 +    return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R1]);
602 +#elif CPU(ARM64)
603 +    return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_X1]);
604 +#elif CPU(MIPS)
605 +    return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_A1]);
606 +#else
607 +#error Unknown Architecture
608 +#endif
609  
610  #elif OS(FUCHSIA) || OS(LINUX)
611  
612 @@ -774,6 +838,22 @@ inline void*& llintInstructionPointer(mc
613  #elif OS(NETBSD)
614  
615  #if CPU(X86)
616 +    return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_ESI]);
617 +#elif CPU(X86_64)
618 +    return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R8]);
619 +#elif CPU(ARM)
620 +    return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R8]);
621 +#elif CPU(ARM64)
622 +    return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_X4]);
623 +#elif CPU(MIPS)
624 +    return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_T4]);
625 +#else
626 +#error Unknown Architecture
627 +#endif
628
629 +#elif OS(NETBSD)
630 +
631 +#if CPU(X86)
632      return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_ESI]);
633  #elif CPU(X86_64)
634      return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R8]);
635
636
637 [FILE:597:patches/patch-Source_ThirdParty_ANGLE_src_common_aligned__memory.cpp]
638 --- Source/ThirdParty/ANGLE/src/common/aligned_memory.cpp.orig  2022-08-31 07:59:51 UTC
639 +++ Source/ThirdParty/ANGLE/src/common/aligned_memory.cpp
640 @@ -33,7 +33,7 @@ void *AlignedAlloc(size_t size, size_t a
641  // memalign() on Android returns pointers which can safely be used with
642  // free(), so we can use it instead.  Issue filed to document this:
643  // http://code.google.com/p/android/issues/detail?id=35391
644 -#elif defined(ANGLE_PLATFORM_ANDROID)
645 +#elif defined(ANGLE_PLATFORM_ANDROID) || defined(__sun__)
646      ptr = memalign(alignment, size);
647  #else
648      if (posix_memalign(&ptr, alignment, size))
649
650
651 [FILE:506:patches/patch-Source_ThirdParty_ANGLE_src_common_third__party_smhasher_src_PMurHash.cpp]
652 --- Source/ThirdParty/ANGLE/src/common/third_party/smhasher/src/PMurHash.cpp.orig       2022-08-31 07:59:51 UTC
653 +++ Source/ThirdParty/ANGLE/src/common/third_party/smhasher/src/PMurHash.cpp
654 @@ -48,6 +48,9 @@ on big endian machines, or a byte-by-byt
655  -----------------------------------------------------------------------------*/
656  
657  #include "PMurHash.h"
658 +#ifdef __sun
659 +#define __BYTE_ORDER __LITTLE_ENDIAN
660 +#endif
661  #include <stdint.h>
662  
663  /* I used ugly type names in the header to avoid potential conflicts with
664
665
666 [FILE:561:patches/patch-Source_WTF_wtf_Assertions.h]
667 $NetBSD: patch-Source_WTF_wtf_Assertions.h,v 1.1 2021/01/12 15:21:31 jperkin Exp $
668
669 Use regular static_assert on SunOS.
670
671 --- Source/WTF/wtf/Assertions.h.orig    2022-08-31 07:59:55 UTC
672 +++ Source/WTF/wtf/Assertions.h
673 @@ -473,7 +473,7 @@ constexpr bool assertionFailureDueToUnre
674  
675  /* COMPILE_ASSERT */
676  #ifndef COMPILE_ASSERT
677 -#if COMPILER_SUPPORTS(C_STATIC_ASSERT)
678 +#if COMPILER_SUPPORTS(C_STATIC_ASSERT) && !defined(__sun)
679  /* Unlike static_assert below, this also works in plain C code. */
680  #define COMPILE_ASSERT(exp, name) _Static_assert((exp), #name)
681  #else
682
683
684 [FILE:638:patches/patch-Source_WTF_wtf_FastMalloc.cpp]
685 --- Source/WTF/wtf/FastMalloc.cpp.orig  2022-09-14 11:58:10 UTC
686 +++ Source/WTF/wtf/FastMalloc.cpp
687 @@ -201,7 +201,11 @@ void* fastAlignedMalloc(size_t alignment
688  {
689      ASSERT_IS_WITHIN_LIMIT(size);
690      void* p = nullptr;
691 +#ifdef __sun__
692 +    p = memalign(alignment, size);
693 +#else
694      posix_memalign(&p, alignment, size);
695 +#endif
696      if (UNLIKELY(!p))
697          CRASH();
698      return p;
699 @@ -211,7 +215,11 @@ void* tryFastAlignedMalloc(size_t alignm
700  {
701      FAIL_IF_EXCEEDS_LIMIT(size);
702      void* p = nullptr;
703 +#ifdef __sun__
704 +    p = memalign(alignment, size);
705 +#else
706      posix_memalign(&p, alignment, size);
707 +#endif
708      return p;
709  }
710  
711
712
713 [FILE:502:patches/patch-Source_WTF_wtf_FileSystem.cpp]
714 $NetBSD: patch-Source_WTF_wtf_FileSystem.cpp,v 1.3 2020/09/11 14:47:35 leot Exp $
715
716 Support MAP_FILE if unavailable.
717
718 --- Source/WTF/wtf/FileSystem.cpp.orig  2022-09-08 11:51:52 UTC
719 +++ Source/WTF/wtf/FileSystem.cpp
720 @@ -369,6 +369,9 @@ bool MappedFileData::mapFileHandle(Platf
721  #endif
722      }
723  
724 +#ifndef MAP_FILE
725 +#define MAP_FILE       0
726 +#endif
727      void* data = mmap(0, size, pageProtection, MAP_FILE | (mapMode == MappedFileMode::Shared ? MAP_SHARED : MAP_PRIVATE), fd, 0);
728  
729      if (data == MAP_FAILED) {
730
731
732 [FILE:534:patches/patch-Source_WTF_wtf_MemoryPressureHandler.cpp]
733 --- Source/WTF/wtf/MemoryPressureHandler.cpp.orig       2022-09-16 06:02:57 UTC
734 +++ Source/WTF/wtf/MemoryPressureHandler.cpp
735 @@ -56,7 +56,7 @@ MemoryPressureHandler& MemoryPressureHan
736  }
737  
738  MemoryPressureHandler::MemoryPressureHandler()
739 -#if OS(LINUX) || OS(FREEBSD)
740 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__)
741      : m_holdOffTimer(RunLoop::main(), this, &MemoryPressureHandler::holdOffTimerFired)
742  #elif OS(WINDOWS)
743      : m_windowsMeasurementTimer(RunLoop::main(), this, &MemoryPressureHandler::windowsMeasurementTimerFired)
744
745
746 [FILE:644:patches/patch-Source_WTF_wtf_MemoryPressureHandler.h]
747 --- Source/WTF/wtf/MemoryPressureHandler.h.orig 2022-08-31 07:59:55 UTC
748 +++ Source/WTF/wtf/MemoryPressureHandler.h
749 @@ -81,7 +81,7 @@ public:
750  
751      WTF_EXPORT_PRIVATE void setShouldUsePeriodicMemoryMonitor(bool);
752  
753 -#if OS(LINUX) || OS(FREEBSD)
754 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__)
755      WTF_EXPORT_PRIVATE void triggerMemoryPressureEvent(bool isCritical);
756  #endif
757  
758 @@ -277,7 +277,7 @@ private:
759      Win32Handle m_lowMemoryHandle;
760  #endif
761  
762 -#if OS(LINUX) || OS(FREEBSD)
763 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__)
764      RunLoop::Timer<MemoryPressureHandler> m_holdOffTimer;
765      void holdOffTimerFired();
766  #endif
767
768
769 [FILE:326:patches/patch-Source_WTF_wtf_NumberOfCores.cpp]
770 --- Source/WTF/wtf/NumberOfCores.cpp.orig       2022-08-31 07:59:55 UTC
771 +++ Source/WTF/wtf/NumberOfCores.cpp
772 @@ -31,6 +31,7 @@
773  #if OS(DARWIN)
774  #include <sys/sysctl.h>
775  #elif OS(LINUX) || OS(AIX) || OS(OPENBSD) || OS(NETBSD) || OS(FREEBSD)
776 +#include <stdio.h> // sscanf
777  #include <unistd.h>
778  #elif OS(WINDOWS)
779  #include <windows.h>
780
781
782 [FILE:390:patches/patch-Source_WTF_wtf_PlatformGTK.cmake]
783 --- Source/WTF/wtf/PlatformGTK.cmake.orig       2022-09-14 11:58:10 UTC
784 +++ Source/WTF/wtf/PlatformGTK.cmake
785 @@ -61,7 +61,7 @@ if (CMAKE_SYSTEM_NAME MATCHES "Linux")
786  
787          unix/MemoryPressureHandlerUnix.cpp
788      )
789 -elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
790 +elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD|DragonFly")
791      list(APPEND WTF_SOURCES
792          generic/MemoryFootprintGeneric.cpp
793  
794
795
796 [FILE:582:patches/patch-Source_WTF_wtf_StackBounds.cpp]
797 $NetBSD: patch-Source_WTF_wtf_StackBounds.cpp,v 1.2 2018/10/24 18:31:07 leot Exp $
798
799 SunOS does not have pthread_getattr_np.
800
801 --- Source/WTF/wtf/StackBounds.cpp.orig 2022-08-31 07:59:55 UTC
802 +++ Source/WTF/wtf/StackBounds.cpp
803 @@ -98,6 +98,7 @@ StackBounds StackBounds::newThreadStackB
804  #if HAVE(PTHREAD_NP_H) || OS(NETBSD)
805      // e.g. on FreeBSD 5.4, neundorf@kde.org
806      pthread_attr_get_np(thread, &sattr);
807 +#elif defined(__sun__)
808  #else
809      // FIXME: this function is non-portable; other POSIX systems may have different np alternatives
810      pthread_getattr_np(thread, &sattr);
811
812
813 [FILE:1418:patches/patch-Source_WTF_wtf_unix_MemoryPressureHandlerUnix.cpp]
814 --- Source/WTF/wtf/unix/MemoryPressureHandlerUnix.cpp.orig      2022-08-31 07:59:55 UTC
815 +++ Source/WTF/wtf/unix/MemoryPressureHandlerUnix.cpp
816 @@ -28,7 +28,11 @@
817  #include "config.h"
818  #include <wtf/MemoryPressureHandler.h>
819  
820 +#if OS(FREEBSD) || defined(__DragonFly__)
821 +#include <stdlib.h>
822 +#else
823  #include <malloc.h>
824 +#endif
825  #include <unistd.h>
826  #include <wtf/Logging.h>
827  #include <wtf/MainThread.h>
828 @@ -37,7 +41,7 @@
829  
830  #if OS(LINUX)
831  #include <wtf/linux/CurrentProcessMemoryStatus.h>
832 -#elif OS(FREEBSD)
833 +#elif OS(FREEBSD) || defined(__DragonFly__)
834  #include <sys/sysctl.h>
835  #include <sys/types.h>
836  #include <sys/user.h>
837 @@ -112,7 +116,7 @@ static size_t processMemoryUsage()
838      ProcessMemoryStatus memoryStatus;
839      currentProcessMemoryStatus(memoryStatus);
840      return (memoryStatus.resident - memoryStatus.shared);
841 -#elif OS(FREEBSD)
842 +#elif OS(FREEBSD) || defined(__DragonFly__)
843      static size_t pageSize = sysconf(_SC_PAGE_SIZE);
844      struct kinfo_proc info;
845      size_t infolen = sizeof(info);
846 @@ -126,7 +130,11 @@ static size_t processMemoryUsage()
847      if (sysctl(mib, 4, &info, &infolen, nullptr, 0))
848          return 0;
849  
850 +# ifdef __DragonFly__
851 +    return static_cast<size_t>(info.kp_vm_rssize - info.kp_vm_tsize) * pageSize;
852 +# else
853      return static_cast<size_t>(info.ki_rssize - info.ki_tsize) * pageSize;
854 +# endif
855  #else
856  #error "Missing a platform specific way of determining the memory usage"
857  #endif
858
859
860 [FILE:848:patches/patch-Source_WebCore_Modules_fetch_FetchBodyConsumer.cpp]
861 --- Source/WebCore/Modules/fetch/FetchBodyConsumer.cpp.orig     2022-09-14 11:58:10 UTC
862 +++ Source/WebCore/Modules/fetch/FetchBodyConsumer.cpp
863 @@ -40,6 +40,32 @@
864  #include <wtf/StringExtras.h>
865  #include <wtf/URLParser.h>
866  
867 +#ifdef __sun
868 +static void *memmem(
869 +               const void *big, size_t big_len,
870 +               const void *little, size_t little_len)
871 +{
872 +       const char *bp = (const char *)big;
873 +       const char *lp = (const char *)little;
874 +       size_t l;
875 +
876 +       if (big_len < little_len || little_len == 0 || big_len == 0)
877 +               return NULL;
878 +
879 +       while (big_len > 0) {
880 +               for (l = 0; l < little_len; l++) {
881 +                       if (bp[l] != lp[l])
882 +                               break;
883 +               }
884 +               if (l == little_len)
885 +                       return (void *)bp;
886 +               bp++;
887 +       }
888 +
889 +       return NULL;
890 +}
891 +#endif
892 +
893  namespace WebCore {
894  
895  static inline Ref<Blob> blobFromData(ScriptExecutionContext* context, Vector<uint8_t>&& data, const String& contentType)
896
897
898 [FILE:610:patches/patch-Source_WebCore_platform_graphics_cpu_arm_filters_FELightingNEON.cpp]
899 --- Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp.orig    2022-08-31 07:59:56 UTC
900 +++ Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp
901 @@ -403,7 +403,7 @@ TOSTRING(neonDrawLighting) ":" NL
902      "vmin.f32 " TMP2_D0 ", " TMP2_D0 ", " CONST_ONE_HI_D NL
903      "vmul.f32 " TMP3_Q ", " COLOR_Q ", " TMP2_D0 "[1]" NL
904      "vcvt.u32.f32 " TMP3_Q ", " TMP3_Q NL
905 -    "vmov.u32 r2, r3, " TMP3_S0 ", " TMP3_S1 NL
906 +    "vmov r2, r3, " TMP3_S0 ", " TMP3_S1 NL
907      // The color values are stored in-place.
908      "strb r2, [" PIXELS_R ", #-11]" NL
909      "strb r3, [" PIXELS_R ", #-10]" NL
910
911
912 [FILE:323:patches/patch-Source_WebCore_platform_network_DNS.h]
913 --- Source/WebCore/platform/network/DNS.h.orig  2022-08-31 07:59:56 UTC
914 +++ Source/WebCore/platform/network/DNS.h
915 @@ -34,6 +34,9 @@
916  #include <ws2tcpip.h>
917  #else
918  #include <netinet/in.h>
919 +# if defined __DragonFly__ || defined __FreeBSD__ || defined __sun__
920 +#  include <sys/socket.h>
921 +# endif
922  #endif
923  
924  namespace WebCore {
925
926
927 [FILE:336:patches/patch-Source_WebDriver_PlatformGTK.cmake]
928 --- Source/WebDriver/PlatformGTK.cmake.orig     2022-08-31 07:59:56 UTC
929 +++ Source/WebDriver/PlatformGTK.cmake
930 @@ -5,6 +5,7 @@ add_definitions(-DLIBEXECDIR="${CMAKE_IN
931  list(APPEND WebDriver_SYSTEM_INCLUDE_DIRECTORIES
932      "${GLIB_INCLUDE_DIRS}"
933      "${LIBSOUP_INCLUDE_DIRS}"
934 +    "${ICU_INCLUDE_DIRS}"
935  )
936  
937  list(APPEND WebDriver_SOURCES
938
939
940 [FILE:507:patches/patch-Source_WebKit_CMakeLists.txt]
941 $NetBSD: patch-Source_WebKit_CMakeLists.txt,v 1.1 2018/05/16 18:55:45 jperkin Exp $
942
943 SunOS requires libsocket.
944
945 --- Source/WebKit/CMakeLists.txt.orig   2022-08-31 07:59:56 UTC
946 +++ Source/WebKit/CMakeLists.txt
947 @@ -404,6 +404,10 @@ if (UNIX)
948      endif ()
949  endif ()
950  
951 +if (CMAKE_SYSTEM_NAME MATCHES "SunOS")
952 +    list(APPEND WebKit_LIBRARIES socket)
953 +endif ()
954 +
955  macro(ADD_WEBKIT_PREFIX_HEADER _target)
956      if (WebKit_USE_PREFIX_HEADER)
957          get_target_property(OLD_COMPILE_FLAGS ${_target} COMPILE_FLAGS)
958
959
960 [FILE:551:patches/patch-Source_WebKit_PlatformGTK.cmake]
961 --- Source/WebKit/PlatformGTK.cmake.orig        2022-09-14 11:58:10 UTC
962 +++ Source/WebKit/PlatformGTK.cmake
963 @@ -42,7 +42,7 @@ add_definitions(-DLOCALEDIR="${CMAKE_INS
964  add_definitions(-DDATADIR="${CMAKE_INSTALL_FULL_DATADIR}")
965  add_definitions(-DLIBDIR="${LIB_INSTALL_DIR}")
966  
967 -if (NOT DEVELOPER_MODE AND NOT CMAKE_SYSTEM_NAME MATCHES "Darwin")
968 +if (NOT DEVELOPER_MODE AND NOT CMAKE_SYSTEM_NAME MATCHES "Darwin|SunOS")
969      WEBKIT_ADD_TARGET_PROPERTIES(WebKit LINK_FLAGS "-Wl,--version-script,${CMAKE_CURRENT_SOURCE_DIR}/webkitglib-symbols.map")
970  endif ()
971  
972
973
974 [FILE:1241:patches/patch-Source_WebKit_Platform_IPC_unix_ConnectionUnix.cpp]
975 $NetBSD: patch-Source_WebKit_Platform_IPC_unix_ConnectionUnix.cpp,v 1.3 2021/01/12 15:21:31 jperkin Exp $
976
977 On NetBSD we see "Error sending IPC message: Message too long" due to
978 the use of sendmsg with a large message body (EMSGSIZE).
979
980 WebKit already uses shared memory to communicate the message body when
981 the message is too large, so force it to always use this method to avoid
982 encountering EMSGSIZE.
983
984 --- Source/WebKit/Platform/IPC/unix/ConnectionUnix.cpp.orig     2022-08-31 07:59:56 UTC
985 +++ Source/WebKit/Platform/IPC/unix/ConnectionUnix.cpp
986 @@ -61,6 +61,10 @@
987  #endif
988  #endif // SOCK_SEQPACKET
989  
990 +#ifndef MSG_NOSIGNAL
991 +#define MSG_NOSIGNAL   0
992 +#endif
993 +
994  namespace IPC {
995  
996  static const size_t messageMaxSize = 4096;
997 @@ -442,8 +446,12 @@ bool Connection::sendOutgoingMessage(Uni
998          return false;
999      }
1000  
1001 +#if 0
1002      size_t messageSizeWithBodyInline = sizeof(MessageInfo) + (outputMessage.attachments().size() * sizeof(AttachmentInfo)) + outputMessage.bodySize();
1003      if (messageSizeWithBodyInline > messageMaxSize && outputMessage.bodySize()) {
1004 +#else
1005 +    {
1006 +#endif
1007          RefPtr<WebKit::SharedMemory> oolMessageBody = WebKit::SharedMemory::allocate(encoder->bufferSize());
1008          if (!oolMessageBody)
1009              return false;
1010
1011
1012 [FILE:714:patches/patch-Source_WebKit_Platform_unix_SharedMemoryUnix.cpp]
1013 --- Source/WebKit/Platform/unix/SharedMemoryUnix.cpp.orig       2022-09-14 11:58:10 UTC
1014 +++ Source/WebKit/Platform/unix/SharedMemoryUnix.cpp
1015 @@ -148,7 +148,13 @@ static int createSharedMemory()
1016  #else
1017      CString tempName;
1018      for (int tries = 0; fileDescriptor == -1 && tries < 10; ++tries) {
1019 -        auto name = makeString("/WK2SharedMemory.", static_cast<unsigned>(WTF::randomNumber() * (std::numeric_limits<unsigned>::max() + 1.0)));
1020 +        auto name =
1021 +#ifdef __DragonFly__
1022 +   makeString("/tmp/WK2SharedMemory.",
1023 +#else
1024 +   makeString("/WK2SharedMemory.",
1025 +#endif
1026 +   static_cast<unsigned>(WTF::randomNumber() * (std::numeric_limits<unsigned>::max() + 1.0)));
1027          tempName = name.utf8();
1028  
1029          do {
1030
1031
1032 [FILE:1432:patches/patch-Source_bmalloc_bmalloc_AvailableMemory.cpp]
1033 --- Source/bmalloc/bmalloc/AvailableMemory.cpp.orig     2022-08-31 07:59:57 UTC
1034 +++ Source/bmalloc/bmalloc/AvailableMemory.cpp
1035 @@ -44,7 +44,7 @@
1036  #import <mach/mach_error.h>
1037  #import <math.h>
1038  #elif BOS(UNIX)
1039 -#if BOS(FREEBSD) || BOS(LINUX)
1040 +#if BOS(LINUX)
1041  #include <sys/sysinfo.h>
1042  #endif
1043  #if BOS(LINUX)
1044 @@ -161,7 +161,13 @@ static size_t computeAvailableMemory()
1045      // Round up the memory size to a multiple of 128MB because max_mem may not be exactly 512MB
1046      // (for example) and we have code that depends on those boundaries.
1047      return ((sizeAccordingToKernel + multiple - 1) / multiple) * multiple;
1048 -#elif BOS(FREEBSD) || BOS(LINUX)
1049 +#elif BOS(FREEBSD)
1050 +    long pages = sysconf(_SC_PHYS_PAGES);
1051 +    long pageSize = sysconf(_SC_PAGE_SIZE);
1052 +    if (pages == -1 || pageSize == -1)
1053 +        return availableMemoryGuess;
1054 +    return pages * pageSize;
1055 +#elif BOS(LINUX)
1056      struct sysinfo info;
1057      if (!sysinfo(&info))
1058          return info.totalram * info.mem_unit;
1059 @@ -212,7 +218,11 @@ MemoryStatus memoryStatus()
1060  
1061      size_t memoryFootprint = 0;
1062      if (!sysctl(mib, 4, &info, &infolen, nullptr, 0))
1063 +# ifdef __DragonFly__
1064 +        memoryFootprint = static_cast<size_t>(info.kp_vm_rssize) * vmPageSize();
1065 +# else
1066          memoryFootprint = static_cast<size_t>(info.ki_rssize) * vmPageSize();
1067 +# endif
1068  #endif
1069  
1070      double percentInUse = static_cast<double>(memoryFootprint) / static_cast<double>(availableMemory());
1071
1072
1073 [FILE:971:patches/patch-Source_cmake_OptionsCommon.cmake]
1074 --- Source/cmake/OptionsCommon.cmake.orig       2022-08-31 07:59:57 UTC
1075 +++ Source/cmake/OptionsCommon.cmake
1076 @@ -128,10 +128,10 @@ endif ()
1077  option(USE_THIN_ARCHIVES "Produce all static libraries as thin archives" ${USE_THIN_ARCHIVES_DEFAULT})
1078  
1079  if (USE_THIN_ARCHIVES)
1080 -    set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> crT <TARGET> <LINK_FLAGS> <OBJECTS>")
1081 -    set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> crT <TARGET> <LINK_FLAGS> <OBJECTS>")
1082 -    set(CMAKE_CXX_ARCHIVE_APPEND "<CMAKE_AR> rT <TARGET> <LINK_FLAGS> <OBJECTS>")
1083 -    set(CMAKE_C_ARCHIVE_APPEND "<CMAKE_AR> rT <TARGET> <LINK_FLAGS> <OBJECTS>")
1084 +    set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS>")
1085 +    set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS>")
1086 +    set(CMAKE_CXX_ARCHIVE_APPEND "<CMAKE_AR> r <TARGET> <LINK_FLAGS> <OBJECTS>")
1087 +    set(CMAKE_C_ARCHIVE_APPEND "<CMAKE_AR> r <TARGET> <LINK_FLAGS> <OBJECTS>")
1088  endif ()
1089  
1090  set(ENABLE_DEBUG_FISSION_DEFAULT OFF)
1091
1092
1093 [FILE:520:patches/patch-Source_cmake_WebKitCompilerFlags.cmake]
1094 --- Source/cmake/WebKitCompilerFlags.cmake.orig 2022-08-31 07:59:57 UTC
1095 +++ Source/cmake/WebKitCompilerFlags.cmake
1096 @@ -252,7 +252,7 @@ if (NOT MSVC)
1097      string(REGEX MATCHALL "-fsanitize=[^ ]*" ENABLED_COMPILER_SANITIZERS ${CMAKE_CXX_FLAGS})
1098  endif ()
1099  
1100 -if (UNIX AND NOT APPLE AND NOT ENABLED_COMPILER_SANITIZERS)
1101 +if (UNIX AND NOT APPLE AND NOT ENABLED_COMPILER_SANITIZERS AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
1102      set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined ${CMAKE_SHARED_LINKER_FLAGS}")
1103  endif ()
1104  
1105
1106
1107 [FILE:358:patches/patch-Tools_MiniBrowser_gtk_CMakeLists.txt]
1108 --- Tools/MiniBrowser/gtk/CMakeLists.txt.orig   2022-08-31 07:59:57 UTC
1109 +++ Tools/MiniBrowser/gtk/CMakeLists.txt
1110 @@ -41,6 +41,10 @@ set(MiniBrowser_PRIVATE_LIBRARIES
1111      WebKit::WebKit
1112  )
1113  
1114 +if (CMAKE_SYSTEM_NAME MATCHES "SunOS")
1115 +   list(APPEND MiniBrowser_PRIVATE_LIBRARIES intl)
1116 +endif()
1117 +
1118  set(MiniBrowser_DEPENDENCIES
1119      NetworkProcess
1120      WebProcess
1121