1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
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/
15 SITES[main]= https://www.webkitgtk.org/releases/
16 https://fossies.org/linux/www/
17 DISTFILE[1]= webkitgtk-2.38.3.tar.xz:main
19 SPKGS[api50]= complete
22 SPKGS[api40]= complete
25 SPKGS[api41]= complete
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
35 BUILD_DEPENDS= gperf:primary:standard
37 libgpg-error:dev:standard
38 gstreamer1:dev:standard
39 gstreamer1-plugins-base:dev:standard
41 BUILDRUN_DEPENDS= enchant:single:standard
42 freetype:primary:standard
44 libsecret:primary:standard
45 libnotify:primary:standard
46 hyphen:single:standard
49 libgcrypt:single:standard
50 gnutls:primary:standard
51 libtasn1:primary:standard
52 geoclue:primary:standard
54 gstreamer1-plugins-base:primary:standard
55 openjpeg:single:standard
57 USES= png mesa cmake pkgconfig sqlite bison perl:build
58 python:build ruby:build fontconfig gettext-tools
60 GNOME_COMPONENTS= gdkpixbuf introspection libxslt
61 XORG_COMPONENTS= x11 xcomposite xdamage xext xrender xt ice
63 DISTNAME= webkitgtk-2.38.3
65 LICENSE= GPLv2+:primary BSD3CLAUSE:primary
66 LICENSE_TERMS= primary:{{WRKDIR}}/TERMS
67 LICENSE_FILE= GPLv2+:stock
68 BSD3CLAUSE:{{WRKDIR}}/LICENSE_BSD
69 LICENSE_AWK= BSD3CLAUSE:"^$$"
71 LICENSE_SOURCE= BSD3CLAUSE:{{WRKSRC}}/Source/WebCore/css/parser/MediaQueryBlockWatcher.h
72 TERMS:{{WRKSRC}}/Source/WebCore/style/StyleScope.cpp
75 CPE_PRODUCT= webkitgtk
77 FPC_EQUIVALENT= www/webkit2-gtk3
79 CONFIGURE_ENV= XDG_CACHE_HOME={{WRKDIR}}
81 INSTALL_TARGET= install
82 INSTALL_REQ_TOOLCHAIN= yes
83 PLIST_SUB= INTRO="@comment "
85 CXXFLAGS= -DFIXED_EXECUTABLE_MEMORY_POOL_SIZE_IN_MB=32
86 CMAKE_ARGS= -DPORT=GTK
87 -DENABLE_GEOLOCATION:BOOL=ON
88 -DENABLE_GLES2:BOOL=ON
89 -DENABLE_MINIBROWSER:BOOL=ON
90 -DENABLE_WAYLAND_TARGET:BOOL=OFF
91 -DENABLE_BUBBLEWRAP_SANDBOX:BOOL=OFF
92 -DENABLE_GAMEPAD:BOOL=OFF
93 -DENABLE_INTROSPECTION:BOOL=OFF
94 -DENABLE_JOURNALD_LOG:BOOL=OFF
95 -DSUPPRESS_ASSERT:BOOL=ON
96 -DUSE_SYSTEMD:BOOL=OFF
97 -DUSE_GSTREAMER_GL:BOOL=OFF
98 VAR_OPSYS[sunos]= CMAKE_ARGS=-DUSE_LD_GOLD:BOOL=OFF
100 [API50].DESCRIPTION= Build WebKit2 API 5.0 variant
101 [API50].BUILDRUN_DEPENDS_ON= libsoup:primary:standard
102 [API50].CMAKE_ARGS_ON= -DUSE_GTK4=ON
103 [API50].GNOME_COMPONENTS_ON= gtk4
104 [API50].PLIST_SUB_ON= JSSOVERSION=0.0.0
111 [API40].DESCRIPTION= Build WebKit2 API 4.0 variant
112 [API40].BUILDRUN_DEPENDS_ON= libsoup-2.4:primary:standard
113 [API40].BUILD_DEPENDS_ON= libsoup-2.4:dev:standard
114 [API40].CMAKE_ARGS_ON= -DUSE_SOUP2=ON
115 [API40].GNOME_COMPONENTS_ON= gtk3
116 [API40].PLIST_SUB_ON= JSSOVERSION=18.21.6
123 [API41].DESCRIPTION= Build WebKit2 API 4.1 variant
124 [API41].BUILDRUN_DEPENDS_ON= libsoup:primary:standard
125 [API41].GNOME_COMPONENTS_ON= gtk3
126 [API41].PLIST_SUB_ON= JSSOVERSION=0.2.6
134 echo 'add_compile_definitions("U_DEFINE_FALSE_AND_TRUE=1")' \
135 >> ${WRKSRC}/Source/WTF/wtf/CMakeLists.txt
137 post-install-API40-ON:
138 (cd ${STAGEDIR}${PREFIX}/bin && \
139 ${LN} -s ../libexec/webkit2gtk-4.0/jsc jsc-4.0 && \
140 ${LN} -s ../libexec/webkit2gtk-4.0/MiniBrowser MiniBrowser-4.0)
141 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/webkit2gtk-4.0/injected-bundle/*.so
142 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/webkit2gtk-4.0/*
143 ${MV} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver \
144 ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver-4.0
146 post-install-API50-ON:
147 (cd ${STAGEDIR}${PREFIX}/bin && \
148 ${LN} -s ../libexec/webkit2gtk-5.0/jsc jsc-5.0 && \
149 ${LN} -s ../libexec/webkit2gtk-5.0/MiniBrowser MiniBrowser-5.0)
150 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/webkit2gtk-5.0/injected-bundle/*.so
151 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/webkit2gtk-5.0/*
152 ${MV} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver \
153 ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver-5.0
156 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so.*.*
157 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver
159 post-install-API41-ON:
160 (cd ${STAGEDIR}${PREFIX}/bin && \
161 ${LN} -s ../libexec/webkit2gtk-4.1/jsc jsc-4.1 && \
162 ${LN} -s ../libexec/webkit2gtk-4.1/MiniBrowser MiniBrowser-4.1)
163 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/webkit2gtk-4.1/injected-bundle/*.so
164 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/webkit2gtk-4.1/*
165 ${MV} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver \
166 ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver-4.1
169 ${REINPLACE_CMD} -e '/USE_FILE_LOCK/ s|1|0|' \
170 ${WRKSRC}/Source/WTF/wtf/PlatformUse.h \
171 ${WRKSRC}/Source/WebCore/config.h
173 [FILE:574:descriptions/desc.primary]
174 WebKitGTK+ is a full-featured port of the WebKit rendering engine, suitable
175 for projects requiring any kind of web integration, from hybrid HTML/CSS
176 applications to full-fledged web browsers. It offers WebKit's full
177 functionality and is useful in a wide range of systems from desktop
178 computers to embedded systems like phones, tablets, and televisions.
180 WebKitGTK+ is made by a lively community of developers and designers,
181 who hope to bring the web platform to everyone. It's the official web
182 engine of the GNOME platform and is used in browsers such as Epiphany
187 41f001d1ed448c6936b394a9f20e4640eebf83a7f08262df28504f7410604a5a 33003928 webkitgtk-2.38.3.tar.xz
190 [FILE:6416:manifests/plist.primary]
191 %%INTRO%%lib/girepository-1.0/
192 JavaScriptCore-%%WKAPI%%.typelib
193 WebKit2-%%WKAPI%%.typelib
194 WebKit2WebExtension-%%WKAPI%%.typelib
195 %%INTRO%%share/gir-1.0/
196 JavaScriptCore-%%WKAPI%%.gir
197 WebKit2-%%WKAPI%%.gir
198 WebKit2WebExtension-%%WKAPI%%.gir
200 MiniBrowser-%%WKAPI%%
201 WebKitWebDriver-%%WKAPI%%
203 include/webkitgtk-%%WKAPI%%/JavaScriptCore/
212 include/webkitgtk-%%WKAPI%%/jsc/
224 include/webkitgtk-%%WKAPI%%/webkit2/
225 WebKitApplicationInfo.h
226 WebKitAuthenticationRequest.h
228 WebKitAutomationSession.h
229 WebKitBackForwardList.h
230 WebKitBackForwardListItem.h
231 WebKitColorChooserRequest.h
232 WebKitConsoleMessage.h
234 WebKitContextMenuActions.h
235 WebKitContextMenuItem.h
236 WebKitCookieManager.h
239 WebKitDeviceInfoPermissionRequest.h
241 WebKitEditingCommands.h
245 WebKitFaviconDatabase.h
246 WebKitFileChooserRequest.h
247 WebKitFindController.h
248 WebKitFormSubmissionRequest.h
249 WebKitForwardDeclarations.h
251 WebKitGeolocationManager.h
252 WebKitGeolocationPermissionRequest.h
253 WebKitHitTestResult.h
254 WebKitInputMethodContext.h
255 WebKitInstallMissingMediaPluginsPermissionRequest.h
256 WebKitJavascriptResult.h
257 WebKitMediaKeySystemPermissionRequest.h
258 WebKitMemoryPressureSettings.h
260 WebKitNavigationAction.h
261 WebKitNavigationPolicyDecision.h
262 WebKitNetworkProxySettings.h
264 WebKitNotificationPermissionRequest.h
266 WebKitOptionMenuItem.h
267 WebKitPermissionRequest.h
269 WebKitPointerLockPermissionRequest.h
270 WebKitPolicyDecision.h
271 WebKitPrintCustomWidget.h
272 WebKitPrintOperation.h
273 WebKitResponsePolicyDecision.h
276 WebKitSecurityManager.h
277 WebKitSecurityOrigin.h
281 WebKitURISchemeRequest.h
282 WebKitURISchemeResponse.h
285 WebKitUserContentFilterStore.h
286 WebKitUserContentManager.h
287 WebKitUserMediaPermissionRequest.h
293 WebKitWebExtensionAutocleanups.h
294 WebKitWebHitTestResult.h
297 WebKitWebProcessEnumTypes.h
301 WebKitWebViewSessionState.h
303 WebKitWebsiteDataAccessPermissionRequest.h
304 WebKitWebsiteDataManager.h
305 WebKitWebsitePolicies.h
306 WebKitWindowProperties.h
307 webkit-web-extension.h
309 include/webkitgtk-%%WKAPI%%/webkitdom/
312 WebKitDOMCDATASection.h
314 WebKitDOMCSSRuleList.h
315 WebKitDOMCSSStyleDeclaration.h
316 WebKitDOMCSSStyleSheet.h
318 WebKitDOMCharacterData.h
319 WebKitDOMClientRect.h
320 WebKitDOMClientRectList.h
323 WebKitDOMCustomUnstable.h
324 WebKitDOMDOMImplementation.h
325 WebKitDOMDOMSelection.h
326 WebKitDOMDOMTokenList.h
328 WebKitDOMDOMWindowUnstable.h
329 WebKitDOMDeprecated.h
331 WebKitDOMDocumentFragment.h
332 WebKitDOMDocumentFragmentUnstable.h
333 WebKitDOMDocumentType.h
334 WebKitDOMDocumentUnstable.h
336 WebKitDOMElementUnstable.h
338 WebKitDOMEventTarget.h
341 WebKitDOMHTMLAnchorElement.h
342 WebKitDOMHTMLAppletElement.h
343 WebKitDOMHTMLAreaElement.h
344 WebKitDOMHTMLBRElement.h
345 WebKitDOMHTMLBaseElement.h
346 WebKitDOMHTMLBodyElement.h
347 WebKitDOMHTMLButtonElement.h
348 WebKitDOMHTMLCanvasElement.h
349 WebKitDOMHTMLCollection.h
350 WebKitDOMHTMLDListElement.h
351 WebKitDOMHTMLDirectoryElement.h
352 WebKitDOMHTMLDivElement.h
353 WebKitDOMHTMLDocument.h
354 WebKitDOMHTMLElement.h
355 WebKitDOMHTMLElementUnstable.h
356 WebKitDOMHTMLEmbedElement.h
357 WebKitDOMHTMLFieldSetElement.h
358 WebKitDOMHTMLFontElement.h
359 WebKitDOMHTMLFormElement.h
360 WebKitDOMHTMLFrameElement.h
361 WebKitDOMHTMLFrameSetElement.h
362 WebKitDOMHTMLHRElement.h
363 WebKitDOMHTMLHeadElement.h
364 WebKitDOMHTMLHeadingElement.h
365 WebKitDOMHTMLHtmlElement.h
366 WebKitDOMHTMLIFrameElement.h
367 WebKitDOMHTMLImageElement.h
368 WebKitDOMHTMLInputElement.h
369 WebKitDOMHTMLLIElement.h
370 WebKitDOMHTMLLabelElement.h
371 WebKitDOMHTMLLegendElement.h
372 WebKitDOMHTMLLinkElement.h
373 WebKitDOMHTMLMapElement.h
374 WebKitDOMHTMLMarqueeElement.h
375 WebKitDOMHTMLMenuElement.h
376 WebKitDOMHTMLMetaElement.h
377 WebKitDOMHTMLModElement.h
378 WebKitDOMHTMLOListElement.h
379 WebKitDOMHTMLObjectElement.h
380 WebKitDOMHTMLOptGroupElement.h
381 WebKitDOMHTMLOptionElement.h
382 WebKitDOMHTMLOptionsCollection.h
383 WebKitDOMHTMLParagraphElement.h
384 WebKitDOMHTMLParamElement.h
385 WebKitDOMHTMLPreElement.h
386 WebKitDOMHTMLQuoteElement.h
387 WebKitDOMHTMLScriptElement.h
388 WebKitDOMHTMLSelectElement.h
389 WebKitDOMHTMLStyleElement.h
390 WebKitDOMHTMLTableCaptionElement.h
391 WebKitDOMHTMLTableCellElement.h
392 WebKitDOMHTMLTableColElement.h
393 WebKitDOMHTMLTableElement.h
394 WebKitDOMHTMLTableRowElement.h
395 WebKitDOMHTMLTableSectionElement.h
396 WebKitDOMHTMLTextAreaElement.h
397 WebKitDOMHTMLTitleElement.h
398 WebKitDOMHTMLUListElement.h
399 WebKitDOMKeyboardEvent.h
401 WebKitDOMMouseEvent.h
402 WebKitDOMNamedNodeMap.h
404 WebKitDOMNodeFilter.h
405 WebKitDOMNodeIterator.h
408 WebKitDOMProcessingInstruction.h
410 WebKitDOMRangeUnstable.h
411 WebKitDOMStyleSheet.h
412 WebKitDOMStyleSheetList.h
414 WebKitDOMTreeWalker.h
416 WebKitDOMWheelEvent.h
417 WebKitDOMXPathExpression.h
418 WebKitDOMXPathNSResolver.h
419 WebKitDOMXPathResult.h
421 webkitdomautocleanups.h
424 libjavascriptcoregtk-%%WKAPI%%.so
425 libjavascriptcoregtk-%%WKAPI%%.so.%%JSSOMAJOR%%
426 libjavascriptcoregtk-%%WKAPI%%.so.%%JSSOVERSION%%
427 libwebkit2gtk-%%WKAPI%%.so
428 libwebkit2gtk-%%WKAPI%%.so.%%SOMAJOR%%
429 libwebkit2gtk-%%WKAPI%%.so.%%SOVERSION%%
431 javascriptcoregtk-%%WKAPI%%.pc
432 webkit2gtk-%%WKAPI%%.pc
433 webkit2gtk-web-extension-%%WKAPI%%.pc
434 lib/webkit2gtk-%%WKAPI%%/injected-bundle/libwebkit2gtkinjectedbundle.so
435 libexec/webkit2gtk-%%WKAPI%%/
442 [FILE:2618:manifests/plist.nls]
443 share/locale/ar/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
444 share/locale/as/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
445 share/locale/bg/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
446 share/locale/ca/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
447 share/locale/cs/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
448 share/locale/da/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
449 share/locale/de/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
450 share/locale/el/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
451 share/locale/en_CA/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
452 share/locale/en_GB/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
453 share/locale/eo/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
454 share/locale/es/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
455 share/locale/et/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
456 share/locale/eu/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
457 share/locale/fi/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
458 share/locale/fr/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
459 share/locale/gl/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
460 share/locale/gu/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
461 share/locale/he/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
462 share/locale/hi/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
463 share/locale/hr/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
464 share/locale/hu/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
465 share/locale/id/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
466 share/locale/it/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
467 share/locale/ja/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
468 share/locale/kn/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
469 share/locale/ko/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
470 share/locale/lt/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
471 share/locale/lv/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
472 share/locale/ml/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
473 share/locale/mr/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
474 share/locale/nb/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
475 share/locale/nl/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
476 share/locale/or/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
477 share/locale/pa/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
478 share/locale/pl/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
479 share/locale/pt/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
480 share/locale/pt_BR/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
481 share/locale/ro/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
482 share/locale/ru/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
483 share/locale/sl/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
484 share/locale/sr/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
485 share/locale/sr@latin/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
486 share/locale/sv/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
487 share/locale/ta/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
488 share/locale/te/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
489 share/locale/tr/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
490 share/locale/uk/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
491 share/locale/vi/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
492 share/locale/zh_CN/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
495 [FILE:431:patches/patch-CMakeLists.txt]
496 --- CMakeLists.txt.orig 2022-08-31 07:59:34 UTC
498 @@ -31,6 +31,11 @@ if (ENABLE_API_TESTS)
502 +if (SUPPRESS_ASSERT)
503 + add_definitions(-DNDEBUG=1)
504 + add_definitions(-D__OPTIMIZE__)
507 # -----------------------------------------------------------------------------
508 # Add module directories
509 # -----------------------------------------------------------------------------
512 [FILE:534:patches/patch-Source_JavaScriptCore_assembler_ARM64Assembler.h]
513 --- Source/JavaScriptCore/assembler/ARM64Assembler.h.orig 2022-08-31 07:59:51 UTC
514 +++ Source/JavaScriptCore/assembler/ARM64Assembler.h
515 @@ -2920,6 +2920,8 @@ public:
516 sys_cache_control(kCacheFunctionPrepareForExecution, code, size);
518 zx_cache_flush(code, size, ZX_CACHE_FLUSH_INSN);
519 +#elif OS(FREEBSD) || OS(NETBSD)
520 + __clear_cache(code, reinterpret_cast<char*>(code) + size);
522 size_t page = pageSize();
523 uintptr_t current = reinterpret_cast<uintptr_t>(code);
526 [FILE:4034:patches/patch-Source_JavaScriptCore_runtime_MachineContext.h]
527 $NetBSD: patch-Source_JavaScriptCore_runtime_MachineContext.h,v 1.2 2021/05/13 08:20:58 leot Exp $
529 Add support for NetBSD.
531 --- Source/JavaScriptCore/runtime/MachineContext.h.orig 2022-08-31 07:59:51 UTC
532 +++ Source/JavaScriptCore/runtime/MachineContext.h
533 @@ -193,6 +193,22 @@ static inline void*& stackPointerImpl(mc
534 #error Unknown Architecture
540 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_UESP]);
542 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RSP]);
544 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_SP]);
546 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_SP]);
548 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_SP]);
550 +#error Unknown Architecture
553 #elif OS(FUCHSIA) || OS(LINUX)
556 @@ -338,6 +354,22 @@ static inline void*& framePointerImpl(mc
557 #error Unknown Architecture
563 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EBP]);
565 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RBP]);
567 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_FP]);
569 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_FP]);
571 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_S8]);
573 +#error Unknown Architecture
576 #elif OS(FUCHSIA) || OS(LINUX)
578 // The following sequence depends on glibc's sys/ucontext.h.
579 @@ -495,6 +527,22 @@ static inline void*& instructionPointerI
581 #error Unknown Architecture
587 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EIP]);
589 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RIP]);
591 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_PC]);
593 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_PC]);
595 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EPC]);
597 +#error Unknown Architecture
600 #elif OS(FUCHSIA) || OS(LINUX)
602 @@ -651,6 +699,22 @@ inline void*& argumentPointer<1>(mcontex
604 #error Unknown Architecture
610 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_EDX]);
612 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_RSI]);
614 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R1]);
616 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_X1]);
618 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_A1]);
620 +#error Unknown Architecture
623 #elif OS(FUCHSIA) || OS(LINUX)
625 @@ -774,6 +838,22 @@ inline void*& llintInstructionPointer(mc
629 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_ESI]);
631 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R8]);
633 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R8]);
635 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_X4]);
637 + return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_T4]);
639 +#error Unknown Architecture
645 return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_ESI]);
647 return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R8]);
650 [FILE:597:patches/patch-Source_ThirdParty_ANGLE_src_common_aligned__memory.cpp]
651 --- Source/ThirdParty/ANGLE/src/common/aligned_memory.cpp.orig 2022-08-31 07:59:51 UTC
652 +++ Source/ThirdParty/ANGLE/src/common/aligned_memory.cpp
653 @@ -33,7 +33,7 @@ void *AlignedAlloc(size_t size, size_t a
654 // memalign() on Android returns pointers which can safely be used with
655 // free(), so we can use it instead. Issue filed to document this:
656 // http://code.google.com/p/android/issues/detail?id=35391
657 -#elif defined(ANGLE_PLATFORM_ANDROID)
658 +#elif defined(ANGLE_PLATFORM_ANDROID) || defined(__sun__)
659 ptr = memalign(alignment, size);
661 if (posix_memalign(&ptr, alignment, size))
664 [FILE:506:patches/patch-Source_ThirdParty_ANGLE_src_common_third__party_smhasher_src_PMurHash.cpp]
665 --- Source/ThirdParty/ANGLE/src/common/third_party/smhasher/src/PMurHash.cpp.orig 2022-08-31 07:59:51 UTC
666 +++ Source/ThirdParty/ANGLE/src/common/third_party/smhasher/src/PMurHash.cpp
667 @@ -48,6 +48,9 @@ on big endian machines, or a byte-by-byt
668 -----------------------------------------------------------------------------*/
670 #include "PMurHash.h"
672 +#define __BYTE_ORDER __LITTLE_ENDIAN
676 /* I used ugly type names in the header to avoid potential conflicts with
679 [FILE:561:patches/patch-Source_WTF_wtf_Assertions.h]
680 $NetBSD: patch-Source_WTF_wtf_Assertions.h,v 1.1 2021/01/12 15:21:31 jperkin Exp $
682 Use regular static_assert on SunOS.
684 --- Source/WTF/wtf/Assertions.h.orig 2022-10-19 08:11:34 UTC
685 +++ Source/WTF/wtf/Assertions.h
686 @@ -473,7 +473,7 @@ constexpr bool assertionFailureDueToUnre
689 #ifndef COMPILE_ASSERT
690 -#if COMPILER_SUPPORTS(C_STATIC_ASSERT)
691 +#if COMPILER_SUPPORTS(C_STATIC_ASSERT) && !defined(__sun)
692 /* Unlike static_assert below, this also works in plain C code. */
693 #define COMPILE_ASSERT(exp, name) _Static_assert((exp), #name)
697 [FILE:638:patches/patch-Source_WTF_wtf_FastMalloc.cpp]
698 --- Source/WTF/wtf/FastMalloc.cpp.orig 2022-09-14 11:58:10 UTC
699 +++ Source/WTF/wtf/FastMalloc.cpp
700 @@ -201,7 +201,11 @@ void* fastAlignedMalloc(size_t alignment
702 ASSERT_IS_WITHIN_LIMIT(size);
705 + p = memalign(alignment, size);
707 posix_memalign(&p, alignment, size);
712 @@ -211,7 +215,11 @@ void* tryFastAlignedMalloc(size_t alignm
714 FAIL_IF_EXCEEDS_LIMIT(size);
717 + p = memalign(alignment, size);
719 posix_memalign(&p, alignment, size);
726 [FILE:502:patches/patch-Source_WTF_wtf_FileSystem.cpp]
727 $NetBSD: patch-Source_WTF_wtf_FileSystem.cpp,v 1.3 2020/09/11 14:47:35 leot Exp $
729 Support MAP_FILE if unavailable.
731 --- Source/WTF/wtf/FileSystem.cpp.orig 2022-09-08 11:51:52 UTC
732 +++ Source/WTF/wtf/FileSystem.cpp
733 @@ -369,6 +369,9 @@ bool MappedFileData::mapFileHandle(Platf
740 void* data = mmap(0, size, pageProtection, MAP_FILE | (mapMode == MappedFileMode::Shared ? MAP_SHARED : MAP_PRIVATE), fd, 0);
742 if (data == MAP_FAILED) {
745 [FILE:534:patches/patch-Source_WTF_wtf_MemoryPressureHandler.cpp]
746 --- Source/WTF/wtf/MemoryPressureHandler.cpp.orig 2022-09-16 06:02:57 UTC
747 +++ Source/WTF/wtf/MemoryPressureHandler.cpp
748 @@ -56,7 +56,7 @@ MemoryPressureHandler& MemoryPressureHan
751 MemoryPressureHandler::MemoryPressureHandler()
752 -#if OS(LINUX) || OS(FREEBSD)
753 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__)
754 : m_holdOffTimer(RunLoop::main(), this, &MemoryPressureHandler::holdOffTimerFired)
756 : m_windowsMeasurementTimer(RunLoop::main(), this, &MemoryPressureHandler::windowsMeasurementTimerFired)
759 [FILE:644:patches/patch-Source_WTF_wtf_MemoryPressureHandler.h]
760 --- Source/WTF/wtf/MemoryPressureHandler.h.orig 2022-08-31 07:59:55 UTC
761 +++ Source/WTF/wtf/MemoryPressureHandler.h
762 @@ -81,7 +81,7 @@ public:
764 WTF_EXPORT_PRIVATE void setShouldUsePeriodicMemoryMonitor(bool);
766 -#if OS(LINUX) || OS(FREEBSD)
767 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__)
768 WTF_EXPORT_PRIVATE void triggerMemoryPressureEvent(bool isCritical);
771 @@ -277,7 +277,7 @@ private:
772 Win32Handle m_lowMemoryHandle;
775 -#if OS(LINUX) || OS(FREEBSD)
776 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__)
777 RunLoop::Timer<MemoryPressureHandler> m_holdOffTimer;
778 void holdOffTimerFired();
782 [FILE:326:patches/patch-Source_WTF_wtf_NumberOfCores.cpp]
783 --- Source/WTF/wtf/NumberOfCores.cpp.orig 2022-08-31 07:59:55 UTC
784 +++ Source/WTF/wtf/NumberOfCores.cpp
787 #include <sys/sysctl.h>
788 #elif OS(LINUX) || OS(AIX) || OS(OPENBSD) || OS(NETBSD) || OS(FREEBSD)
789 +#include <stdio.h> // sscanf
795 [FILE:390:patches/patch-Source_WTF_wtf_PlatformGTK.cmake]
796 --- Source/WTF/wtf/PlatformGTK.cmake.orig 2022-09-14 11:58:10 UTC
797 +++ Source/WTF/wtf/PlatformGTK.cmake
798 @@ -61,7 +61,7 @@ if (CMAKE_SYSTEM_NAME MATCHES "Linux")
800 unix/MemoryPressureHandlerUnix.cpp
802 -elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
803 +elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD|DragonFly")
804 list(APPEND WTF_SOURCES
805 generic/MemoryFootprintGeneric.cpp
809 [FILE:582:patches/patch-Source_WTF_wtf_StackBounds.cpp]
810 $NetBSD: patch-Source_WTF_wtf_StackBounds.cpp,v 1.2 2018/10/24 18:31:07 leot Exp $
812 SunOS does not have pthread_getattr_np.
814 --- Source/WTF/wtf/StackBounds.cpp.orig 2022-08-31 07:59:55 UTC
815 +++ Source/WTF/wtf/StackBounds.cpp
816 @@ -98,6 +98,7 @@ StackBounds StackBounds::newThreadStackB
817 #if HAVE(PTHREAD_NP_H) || OS(NETBSD)
818 // e.g. on FreeBSD 5.4, neundorf@kde.org
819 pthread_attr_get_np(thread, &sattr);
820 +#elif defined(__sun__)
822 // FIXME: this function is non-portable; other POSIX systems may have different np alternatives
823 pthread_getattr_np(thread, &sattr);
826 [FILE:1418:patches/patch-Source_WTF_wtf_unix_MemoryPressureHandlerUnix.cpp]
827 --- Source/WTF/wtf/unix/MemoryPressureHandlerUnix.cpp.orig 2022-08-31 07:59:55 UTC
828 +++ Source/WTF/wtf/unix/MemoryPressureHandlerUnix.cpp
831 #include <wtf/MemoryPressureHandler.h>
833 +#if OS(FREEBSD) || defined(__DragonFly__)
839 #include <wtf/Logging.h>
840 #include <wtf/MainThread.h>
844 #include <wtf/linux/CurrentProcessMemoryStatus.h>
846 +#elif OS(FREEBSD) || defined(__DragonFly__)
847 #include <sys/sysctl.h>
848 #include <sys/types.h>
849 #include <sys/user.h>
850 @@ -112,7 +116,7 @@ static size_t processMemoryUsage()
851 ProcessMemoryStatus memoryStatus;
852 currentProcessMemoryStatus(memoryStatus);
853 return (memoryStatus.resident - memoryStatus.shared);
855 +#elif OS(FREEBSD) || defined(__DragonFly__)
856 static size_t pageSize = sysconf(_SC_PAGE_SIZE);
857 struct kinfo_proc info;
858 size_t infolen = sizeof(info);
859 @@ -126,7 +130,11 @@ static size_t processMemoryUsage()
860 if (sysctl(mib, 4, &info, &infolen, nullptr, 0))
863 +# ifdef __DragonFly__
864 + return static_cast<size_t>(info.kp_vm_rssize - info.kp_vm_tsize) * pageSize;
866 return static_cast<size_t>(info.ki_rssize - info.ki_tsize) * pageSize;
869 #error "Missing a platform specific way of determining the memory usage"
873 [FILE:848:patches/patch-Source_WebCore_Modules_fetch_FetchBodyConsumer.cpp]
874 --- Source/WebCore/Modules/fetch/FetchBodyConsumer.cpp.orig 2022-09-14 11:58:10 UTC
875 +++ Source/WebCore/Modules/fetch/FetchBodyConsumer.cpp
877 #include <wtf/StringExtras.h>
878 #include <wtf/URLParser.h>
881 +static void *memmem(
882 + const void *big, size_t big_len,
883 + const void *little, size_t little_len)
885 + const char *bp = (const char *)big;
886 + const char *lp = (const char *)little;
889 + if (big_len < little_len || little_len == 0 || big_len == 0)
892 + while (big_len > 0) {
893 + for (l = 0; l < little_len; l++) {
894 + if (bp[l] != lp[l])
897 + if (l == little_len)
908 static inline Ref<Blob> blobFromData(ScriptExecutionContext* context, Vector<uint8_t>&& data, const String& contentType)
911 [FILE:610:patches/patch-Source_WebCore_platform_graphics_cpu_arm_filters_FELightingNEON.cpp]
912 --- Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp.orig 2022-08-31 07:59:56 UTC
913 +++ Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp
914 @@ -403,7 +403,7 @@ TOSTRING(neonDrawLighting) ":" NL
915 "vmin.f32 " TMP2_D0 ", " TMP2_D0 ", " CONST_ONE_HI_D NL
916 "vmul.f32 " TMP3_Q ", " COLOR_Q ", " TMP2_D0 "[1]" NL
917 "vcvt.u32.f32 " TMP3_Q ", " TMP3_Q NL
918 - "vmov.u32 r2, r3, " TMP3_S0 ", " TMP3_S1 NL
919 + "vmov r2, r3, " TMP3_S0 ", " TMP3_S1 NL
920 // The color values are stored in-place.
921 "strb r2, [" PIXELS_R ", #-11]" NL
922 "strb r3, [" PIXELS_R ", #-10]" NL
925 [FILE:323:patches/patch-Source_WebCore_platform_network_DNS.h]
926 --- Source/WebCore/platform/network/DNS.h.orig 2022-08-31 07:59:56 UTC
927 +++ Source/WebCore/platform/network/DNS.h
929 #include <ws2tcpip.h>
931 #include <netinet/in.h>
932 +# if defined __DragonFly__ || defined __FreeBSD__ || defined __sun__
933 +# include <sys/socket.h>
940 [FILE:336:patches/patch-Source_WebDriver_PlatformGTK.cmake]
941 --- Source/WebDriver/PlatformGTK.cmake.orig 2022-08-31 07:59:56 UTC
942 +++ Source/WebDriver/PlatformGTK.cmake
943 @@ -5,6 +5,7 @@ add_definitions(-DLIBEXECDIR="${CMAKE_IN
944 list(APPEND WebDriver_SYSTEM_INCLUDE_DIRECTORIES
945 "${GLIB_INCLUDE_DIRS}"
946 "${LIBSOUP_INCLUDE_DIRS}"
947 + "${ICU_INCLUDE_DIRS}"
950 list(APPEND WebDriver_SOURCES
953 [FILE:507:patches/patch-Source_WebKit_CMakeLists.txt]
954 $NetBSD: patch-Source_WebKit_CMakeLists.txt,v 1.1 2018/05/16 18:55:45 jperkin Exp $
956 SunOS requires libsocket.
958 --- Source/WebKit/CMakeLists.txt.orig 2022-08-31 07:59:56 UTC
959 +++ Source/WebKit/CMakeLists.txt
960 @@ -404,6 +404,10 @@ if (UNIX)
964 +if (CMAKE_SYSTEM_NAME MATCHES "SunOS")
965 + list(APPEND WebKit_LIBRARIES socket)
968 macro(ADD_WEBKIT_PREFIX_HEADER _target)
969 if (WebKit_USE_PREFIX_HEADER)
970 get_target_property(OLD_COMPILE_FLAGS ${_target} COMPILE_FLAGS)
973 [FILE:551:patches/patch-Source_WebKit_PlatformGTK.cmake]
974 --- Source/WebKit/PlatformGTK.cmake.orig 2022-09-14 11:58:10 UTC
975 +++ Source/WebKit/PlatformGTK.cmake
976 @@ -42,7 +42,7 @@ add_definitions(-DLOCALEDIR="${CMAKE_INS
977 add_definitions(-DDATADIR="${CMAKE_INSTALL_FULL_DATADIR}")
978 add_definitions(-DLIBDIR="${LIB_INSTALL_DIR}")
980 -if (NOT DEVELOPER_MODE AND NOT CMAKE_SYSTEM_NAME MATCHES "Darwin")
981 +if (NOT DEVELOPER_MODE AND NOT CMAKE_SYSTEM_NAME MATCHES "Darwin|SunOS")
982 WEBKIT_ADD_TARGET_PROPERTIES(WebKit LINK_FLAGS "-Wl,--version-script,${CMAKE_CURRENT_SOURCE_DIR}/webkitglib-symbols.map")
987 [FILE:1241:patches/patch-Source_WebKit_Platform_IPC_unix_ConnectionUnix.cpp]
988 $NetBSD: patch-Source_WebKit_Platform_IPC_unix_ConnectionUnix.cpp,v 1.3 2021/01/12 15:21:31 jperkin Exp $
990 On NetBSD we see "Error sending IPC message: Message too long" due to
991 the use of sendmsg with a large message body (EMSGSIZE).
993 WebKit already uses shared memory to communicate the message body when
994 the message is too large, so force it to always use this method to avoid
995 encountering EMSGSIZE.
997 --- Source/WebKit/Platform/IPC/unix/ConnectionUnix.cpp.orig 2022-08-31 07:59:56 UTC
998 +++ Source/WebKit/Platform/IPC/unix/ConnectionUnix.cpp
1001 #endif // SOCK_SEQPACKET
1003 +#ifndef MSG_NOSIGNAL
1004 +#define MSG_NOSIGNAL 0
1009 static const size_t messageMaxSize = 4096;
1010 @@ -442,8 +446,12 @@ bool Connection::sendOutgoingMessage(Uni
1015 size_t messageSizeWithBodyInline = sizeof(MessageInfo) + (outputMessage.attachments().size() * sizeof(AttachmentInfo)) + outputMessage.bodySize();
1016 if (messageSizeWithBodyInline > messageMaxSize && outputMessage.bodySize()) {
1020 RefPtr<WebKit::SharedMemory> oolMessageBody = WebKit::SharedMemory::allocate(encoder->bufferSize());
1021 if (!oolMessageBody)
1025 [FILE:714:patches/patch-Source_WebKit_Platform_unix_SharedMemoryUnix.cpp]
1026 --- Source/WebKit/Platform/unix/SharedMemoryUnix.cpp.orig 2022-09-14 11:58:10 UTC
1027 +++ Source/WebKit/Platform/unix/SharedMemoryUnix.cpp
1028 @@ -148,7 +148,13 @@ static int createSharedMemory()
1031 for (int tries = 0; fileDescriptor == -1 && tries < 10; ++tries) {
1032 - auto name = makeString("/WK2SharedMemory.", static_cast<unsigned>(WTF::randomNumber() * (std::numeric_limits<unsigned>::max() + 1.0)));
1034 +#ifdef __DragonFly__
1035 + makeString("/tmp/WK2SharedMemory.",
1037 + makeString("/WK2SharedMemory.",
1039 + static_cast<unsigned>(WTF::randomNumber() * (std::numeric_limits<unsigned>::max() + 1.0)));
1040 tempName = name.utf8();
1045 [FILE:1432:patches/patch-Source_bmalloc_bmalloc_AvailableMemory.cpp]
1046 --- Source/bmalloc/bmalloc/AvailableMemory.cpp.orig 2022-08-31 07:59:57 UTC
1047 +++ Source/bmalloc/bmalloc/AvailableMemory.cpp
1049 #import <mach/mach_error.h>
1052 -#if BOS(FREEBSD) || BOS(LINUX)
1054 #include <sys/sysinfo.h>
1057 @@ -161,7 +161,13 @@ static size_t computeAvailableMemory()
1058 // Round up the memory size to a multiple of 128MB because max_mem may not be exactly 512MB
1059 // (for example) and we have code that depends on those boundaries.
1060 return ((sizeAccordingToKernel + multiple - 1) / multiple) * multiple;
1061 -#elif BOS(FREEBSD) || BOS(LINUX)
1063 + long pages = sysconf(_SC_PHYS_PAGES);
1064 + long pageSize = sysconf(_SC_PAGE_SIZE);
1065 + if (pages == -1 || pageSize == -1)
1066 + return availableMemoryGuess;
1067 + return pages * pageSize;
1069 struct sysinfo info;
1070 if (!sysinfo(&info))
1071 return info.totalram * info.mem_unit;
1072 @@ -212,7 +218,11 @@ MemoryStatus memoryStatus()
1074 size_t memoryFootprint = 0;
1075 if (!sysctl(mib, 4, &info, &infolen, nullptr, 0))
1076 +# ifdef __DragonFly__
1077 + memoryFootprint = static_cast<size_t>(info.kp_vm_rssize) * vmPageSize();
1079 memoryFootprint = static_cast<size_t>(info.ki_rssize) * vmPageSize();
1083 double percentInUse = static_cast<double>(memoryFootprint) / static_cast<double>(availableMemory());
1086 [FILE:1294:patches/patch-Source_bmalloc_libpas_src_libpas_pas__probabilistic__guard__malloc__allocator.c]
1087 --- Source/bmalloc/libpas/src/libpas/pas_probabilistic_guard_malloc_allocator.c.orig 2022-09-08 11:51:52 UTC
1088 +++ Source/bmalloc/libpas/src/libpas/pas_probabilistic_guard_malloc_allocator.c
1089 @@ -103,11 +103,13 @@ pas_allocation_result pas_probabilistic_
1091 // ensure physical addresses are released
1092 // TODO: investigate using MADV_FREE_REUSABLE instead
1093 + /* Linux 4.5, Ravenports uses 4.4
1094 int madvise_res = madvise((void *) upper_guard_page, page_size, MADV_FREE);
1095 PAS_ASSERT(!madvise_res);
1097 madvise_res = madvise((void *) lower_guard_page, page_size, MADV_FREE);
1098 PAS_ASSERT(!madvise_res);
1101 // the key is the location where the user's starting memory address is located.
1102 // allocations are right aligned, so the end backs up to the upper guard page.
1103 @@ -166,8 +168,10 @@ void pas_probabilistic_guard_malloc_deal
1105 // ensure physical addresses are released
1106 // TODO: investigate using MADV_FREE_REUSABLE instead
1107 + /* Requires linux 4.5
1108 int madvise_res = madvise((void *) value->start_of_data_pages, value->size_of_data_pages, MADV_FREE);
1109 PAS_ASSERT(!madvise_res);
1112 bool removed = pas_ptr_hash_map_remove(&pas_pgm_hash_map, key, NULL, &pas_large_utility_free_heap_allocation_config);
1113 PAS_ASSERT(removed);
1116 [FILE:971:patches/patch-Source_cmake_OptionsCommon.cmake]
1117 --- Source/cmake/OptionsCommon.cmake.orig 2022-08-31 07:59:57 UTC
1118 +++ Source/cmake/OptionsCommon.cmake
1119 @@ -128,10 +128,10 @@ endif ()
1120 option(USE_THIN_ARCHIVES "Produce all static libraries as thin archives" ${USE_THIN_ARCHIVES_DEFAULT})
1122 if (USE_THIN_ARCHIVES)
1123 - set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> crT <TARGET> <LINK_FLAGS> <OBJECTS>")
1124 - set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> crT <TARGET> <LINK_FLAGS> <OBJECTS>")
1125 - set(CMAKE_CXX_ARCHIVE_APPEND "<CMAKE_AR> rT <TARGET> <LINK_FLAGS> <OBJECTS>")
1126 - set(CMAKE_C_ARCHIVE_APPEND "<CMAKE_AR> rT <TARGET> <LINK_FLAGS> <OBJECTS>")
1127 + set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS>")
1128 + set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS>")
1129 + set(CMAKE_CXX_ARCHIVE_APPEND "<CMAKE_AR> r <TARGET> <LINK_FLAGS> <OBJECTS>")
1130 + set(CMAKE_C_ARCHIVE_APPEND "<CMAKE_AR> r <TARGET> <LINK_FLAGS> <OBJECTS>")
1133 set(ENABLE_DEBUG_FISSION_DEFAULT OFF)
1136 [FILE:520:patches/patch-Source_cmake_WebKitCompilerFlags.cmake]
1137 --- Source/cmake/WebKitCompilerFlags.cmake.orig 2022-08-31 07:59:57 UTC
1138 +++ Source/cmake/WebKitCompilerFlags.cmake
1139 @@ -252,7 +252,7 @@ if (NOT MSVC)
1140 string(REGEX MATCHALL "-fsanitize=[^ ]*" ENABLED_COMPILER_SANITIZERS ${CMAKE_CXX_FLAGS})
1143 -if (UNIX AND NOT APPLE AND NOT ENABLED_COMPILER_SANITIZERS)
1144 +if (UNIX AND NOT APPLE AND NOT ENABLED_COMPILER_SANITIZERS AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
1145 set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined ${CMAKE_SHARED_LINKER_FLAGS}")
1150 [FILE:358:patches/patch-Tools_MiniBrowser_gtk_CMakeLists.txt]
1151 --- Tools/MiniBrowser/gtk/CMakeLists.txt.orig 2022-08-31 07:59:57 UTC
1152 +++ Tools/MiniBrowser/gtk/CMakeLists.txt
1153 @@ -41,6 +41,10 @@ set(MiniBrowser_PRIVATE_LIBRARIES
1157 +if (CMAKE_SYSTEM_NAME MATCHES "SunOS")
1158 + list(APPEND MiniBrowser_PRIVATE_LIBRARIES intl)
1161 set(MiniBrowser_DEPENDENCIES