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