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