Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebase on ESR 128 #10

Closed
3 tasks done
kenz-gelsoft opened this issue Jul 28, 2024 · 61 comments
Closed
3 tasks done

Rebase on ESR 128 #10

kenz-gelsoft opened this issue Jul 28, 2024 · 61 comments

Comments

@kenz-gelsoft
Copy link
Owner

kenz-gelsoft commented Jul 28, 2024

ESR128 is fresh and can be built with wayland only.

It should be suitable for new target branch.

@kenz-gelsoft
Copy link
Owner Author

kenz-gelsoft commented Aug 2, 2024

whole changes in haiku102 branch
667c29f...438b03b

@kenz-gelsoft
Copy link
Owner Author

 0:00.58 checking for a shell... Traceback (most recent call last):
 0:00.59   File "/boot/home/src/gecko-dev/configure.py", line 351, in <module>
 0:00.59     sys.exit(main(sys.argv))
 0:00.59   File "/boot/home/src/gecko-dev/configure.py", line 138, in main
 0:00.59     sandbox.include_file(os.path.join(os.path.dirname(__file__), "moz.configure"))
 0:00.59   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 498, in include_file
 0:00.60     exec(code, self)
 0:00.60   File "/boot/home/src/gecko-dev/moz.configure", line 227, in <module>
 0:00.60     include("build/moz.configure/toolchain.configure", when="--enable-compile-environment")
 0:00.60   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 872, in include_impl
 0:00.60     self.include_file(what)
 0:00.60   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 498, in include_file
 0:00.61     exec(code, self)
 0:00.61   File "/boot/home/src/gecko-dev/build/moz.configure/toolchain.configure", line 47, in <module>
 0:00.61     include("android-ndk.configure", when=compiling_android)
 0:00.61   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 872, in include_impl
 0:00.61     self.include_file(what)
 0:00.61   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 498, in include_file
 0:00.61     exec(code, self)
 0:00.62   File "/boot/home/src/gecko-dev/build/moz.configure/android-ndk.configure", line 11, in <module>
 0:00.62     def default_android_ndk_root(toolchains_base_dir, _):
 0:00.62   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 855, in decorator
 0:00.62     depends = DependsFunction(self, func, dependencies, when=when)
 0:00.62   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 136, in __init__
 0:00.63     sandbox._value_for(self)
 0:00.63   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 624, in _value_for
 0:00.63     return self._value_for_depends(obj)
 0:00.63   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/util.py", line 911, in method_call
 0:00.63     cache[args] = self.func(instance, *args)
 0:00.63   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 633, in _value_for_depends
 0:00.63     value = obj.result()
 0:00.64   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/util.py", line 911, in method_call
 0:00.64     cache[args] = self.func(instance, *args)
 0:00.64   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 157, in result
 0:00.64     if self.when and not self.sandbox._value_for(self.when):
 0:00.64   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 624, in _value_for
 0:00.64     return self._value_for_depends(obj)
 0:00.65   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/util.py", line 911, in method_call
 0:00.65     cache[args] = self.func(instance, *args)
 0:00.65   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 633, in _value_for_depends
 0:00.65     value = obj.result()
 0:00.65   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/util.py", line 911, in method_call
 0:00.65     cache[args] = self.func(instance, *args)
 0:00.66   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 238, in result
 0:00.66     return self._func(resolved_args)
 0:00.66   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 237, in <genexpr>
 0:00.66     resolved_args = (self.sandbox._value_for(d) for d in self.dependencies)
 0:00.66   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 624, in _value_for
 0:00.66     return self._value_for_depends(obj)
 0:00.67   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/util.py", line 911, in method_call
 0:00.67     cache[args] = self.func(instance, *args)
 0:00.67   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 633, in _value_for_depends
 0:00.67     value = obj.result()
 0:00.67   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/util.py", line 911, in method_call
 0:00.67     cache[args] = self.func(instance, *args)
 0:00.68   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 161, in result
 0:00.68     resolved_args = [self.sandbox._value_for(d) for d in self.dependencies]
 0:00.68   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 161, in <listcomp>
 0:00.68     resolved_args = [self.sandbox._value_for(d) for d in self.dependencies]
 0:00.68   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 624, in _value_for
 0:00.68     return self._value_for_depends(obj)
 0:00.69   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/util.py", line 911, in method_call
 0:00.69     cache[args] = self.func(instance, *args)
 0:00.69   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 633, in _value_for_depends
 0:00.69     value = obj.result()
 0:00.69   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/util.py", line 911, in method_call
 0:00.69     cache[args] = self.func(instance, *args)
 0:00.70   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 238, in result
 0:00.70     return self._func(resolved_args)
 0:00.70   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 183, in or_impl
 0:00.70     for i in iterable:
 0:00.70   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 237, in <genexpr>
 0:00.70     resolved_args = (self.sandbox._value_for(d) for d in self.dependencies)
 0:00.71   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 624, in _value_for
 0:00.71     return self._value_for_depends(obj)
 0:00.71   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/util.py", line 911, in method_call
 0:00.71     cache[args] = self.func(instance, *args)
 0:00.71   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 633, in _value_for_depends
 0:00.71     value = obj.result()
 0:00.72   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/util.py", line 911, in method_call
 0:00.72     cache[args] = self.func(instance, *args)
 0:00.72   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 161, in result
 0:00.72     resolved_args = [self.sandbox._value_for(d) for d in self.dependencies]
 0:00.72   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 161, in <listcomp>
 0:00.72     resolved_args = [self.sandbox._value_for(d) for d in self.dependencies]
 0:00.73   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 624, in _value_for
 0:00.73     return self._value_for_depends(obj)
 0:00.73   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/util.py", line 911, in method_call
 0:00.73     cache[args] = self.func(instance, *args)
 0:00.73   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 633, in _value_for_depends
 0:00.73     value = obj.result()
 0:00.74   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/util.py", line 911, in method_call
 0:00.74     cache[args] = self.func(instance, *args)
 0:00.74   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 161, in result
 0:00.74     resolved_args = [self.sandbox._value_for(d) for d in self.dependencies]
 0:00.74   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 161, in <listcomp>
 0:00.74     resolved_args = [self.sandbox._value_for(d) for d in self.dependencies]
 0:00.75   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 624, in _value_for
 0:00.75     return self._value_for_depends(obj)
 0:00.75   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/util.py", line 911, in method_call
 0:00.75     cache[args] = self.func(instance, *args)
 0:00.75   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 633, in _value_for_depends
 0:00.75     value = obj.result()
 0:00.76   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/util.py", line 911, in method_call
 0:00.76     cache[args] = self.func(instance, *args)
 0:00.76   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 238, in result
 0:00.76     return self._func(resolved_args)
 0:00.76   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 183, in or_impl
 0:00.76     for i in iterable:
 0:00.77   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 237, in <genexpr>
 0:00.77     resolved_args = (self.sandbox._value_for(d) for d in self.dependencies)
 0:00.77   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 624, in _value_for
 0:00.77     return self._value_for_depends(obj)
 0:00.77   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/util.py", line 911, in method_call
 0:00.77     cache[args] = self.func(instance, *args)
 0:00.78   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 633, in _value_for_depends
 0:00.78     value = obj.result()
 0:00.78   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/util.py", line 911, in method_call
 0:00.78     cache[args] = self.func(instance, *args)
 0:00.78   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 162, in result
 0:00.78     return self._func(*resolved_args)
 0:00.78   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 1316, in wrapped
 0:00.79     return new_func(*args, **kwargs)
 0:00.79   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 916, in wrapper
 0:00.79     ret = template(*args, **kwargs)
 0:00.79   File "/boot/home/src/gecko-dev/build/moz.configure/checks.configure", line 59, in wrapped
 0:00.79     ret = func(*args, **kwargs)
 0:00.79   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 1316, in wrapped
 0:00.79     return new_func(*args, **kwargs)
 0:00.80   File "/boot/home/src/gecko-dev/build/moz.configure/init.configure", line 150, in shell
 0:00.80     return find_program(shell)
 0:00.80   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 1315, in wrapped
 0:00.80     self._apply_imports(func, glob)
 0:00.80   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 976, in _apply_imports
 0:00.80     self._get_one_import(_from, _import, _as, glob)
 0:00.81   File "/boot/home/src/gecko-dev/python/mozbuild/mozbuild/configure/__init__.py", line 1111, in _get_one_import
 0:00.81     exec(import_line, {}, glob)
 0:00.81   File "<string>", line 1, in <module>
 0:00.81 ModuleNotFoundError: No module named 'mozfile'
*** Fix above errors and then restart with "./mach build"

@kenz-gelsoft
Copy link
Owner Author

kenz-gelsoft commented Aug 3, 2024

@kenz-gelsoft
Copy link
Owner Author

 0:10.28 checking for cbindgen...
 0:10.28 DEBUG: trying cbindgen: /bin/cbindgen
 0:10.28 DEBUG: Executing: `/bin/cbindgen --version`
 0:10.28 DEBUG: /bin/cbindgen has version 0.24.3
 0:10.28 DEBUG: trying cbindgen: /bin/cbindgen
 0:10.28 DEBUG: Executing: `/bin/cbindgen --version`
 0:10.28 DEBUG: /bin/cbindgen has version 0.24.3
 0:10.28 DEBUG: trying cbindgen: /bin/cbindgen
 0:10.29 DEBUG: Executing: `/bin/cbindgen --version`
 0:10.29 DEBUG: /bin/cbindgen has version 0.24.3
 0:10.29 DEBUG: trying cbindgen: /bin/cbindgen
 0:10.29 DEBUG: Executing: `/bin/cbindgen --version`
 0:10.29 DEBUG: /bin/cbindgen has version 0.24.3
 0:10.29 ERROR: cbindgen version 0.24.3 is too old. At least version 0.26.0 is required.
 0:10.29 Please update using 'cargo install cbindgen --force' or running
 0:10.29 './mach bootstrap', after removing the existing executable located at
 0:10.29 /bin/cbindgen.
*** Fix above errors and then restart with "./mach build"

@X547
Copy link

X547 commented Aug 3, 2024

It is possible to install cbindgen with cargo instead of HaikuPorts. This suggested command should work: cargo install cbindgen --force.

@kenz-gelsoft
Copy link
Owner Author

For now, I lowered required dependency tool/library versions to ones available at HaikuDepot. Because those haikuports had been tested somewhat on Haiku, and it reduces build time.

If it doesn't work well, I'll try that. Thanks

@kenz-gelsoft
Copy link
Owner Author

Some servo-related (new?) build errors

 0:06.22 In file included from Unified_cpp_accessible_xpcom0.cpp:2:
 0:06.22 In file included from /boot/home/src/gecko-dev/accessible/xpcom/nsAccessibleRelation.cpp:6:
 0:06.23 In file included from /boot/home/src/gecko-dev/accessible/xpcom/nsAccessibleRelation.h:15:
 0:06.23 In file included from /boot/home/src/gecko-dev/obj-ff-dbg/dist/include/mozilla/a11y/RemoteAccessible.h:12:
 0:06.23 In file included from /boot/home/src/gecko-dev/obj-ff-dbg/dist/include/mozilla/a11y/HyperTextAccessibleBase.h:9:
 0:06.24 In file included from /boot/home/src/gecko-dev/obj-ff-dbg/dist/include/mozilla/a11y/AccAttributes.h:9:
 0:06.24 /boot/home/src/gecko-dev/obj-ff-dbg/dist/include/mozilla/ServoStyleConsts.h:7788:294: error: no member named 'IS_LEGACY_SRGB' in 'mozilla::StyleColorFlags'
 0:06.25 constexpr inline const StyleAbsoluteColor StyleAbsoluteColor::TRANSPARENT_BLACK = StyleAbsoluteColor{ /* .components = */ StyleColorComponents{ /* ._0 = */ 0.0, /* ._1 = */ 0.0, /* ._2 = */ 0.0 }, /* .alpha = */ 0.0, /* .color_space = */ StyleColorSpace::Srgb, /* .flags = */ StyleColorFlags::IS_LEGACY_SRGB };
 0:06.25                                                                                                                                                                                                                                                                                     ~~~~~~~~~~~~~~~~~^
 0:06.26 /boot/home/src/gecko-dev/obj-ff-dbg/dist/include/mozilla/ServoStyleConsts.h:7790:282: error: no member named 'IS_LEGACY_SRGB' in 'mozilla::StyleColorFlags'
 0:06.26 constexpr inline const StyleAbsoluteColor StyleAbsoluteColor::BLACK = StyleAbsoluteColor{ /* .components = */ StyleColorComponents{ /* ._0 = */ 0.0, /* ._1 = */ 0.0, /* ._2 = */ 0.0 }, /* .alpha = */ 1.0, /* .color_space = */ StyleColorSpace::Srgb, /* .flags = */ StyleColorFlags::IS_LEGACY_SRGB };
 0:06.27                                                                                                                                                                                                                                                                         ~~~~~~~~~~~~~~~~~^
 0:06.27 /boot/home/src/gecko-dev/obj-ff-dbg/dist/include/mozilla/ServoStyleConsts.h:7792:282: error: no member named 'IS_LEGACY_SRGB' in 'mozilla::StyleColorFlags'
 0:06.28 constexpr inline const StyleAbsoluteColor StyleAbsoluteColor::WHITE = StyleAbsoluteColor{ /* .components = */ StyleColorComponents{ /* ._0 = */ 1.0, /* ._1 = */ 1.0, /* ._2 = */ 1.0 }, /* .alpha = */ 1.0, /* .color_space = */ StyleColorSpace::Srgb, /* .flags = */ StyleColorFlags::IS_LEGACY_SRGB };
 0:06.28                                                                                                                                                                                                                                                                         ~~~~~~~~~~~~~~~~~^
 0:06.29 In file included from Unified_cpp_accessible_html0.cpp:2:
 0:06.29 In file included from /boot/home/src/gecko-dev/accessible/html/HTMLCanvasAccessible.cpp:6:
 0:06.29 In file included from /boot/home/src/gecko-dev/accessible/html/HTMLCanvasAccessible.hIn file included from :Unified_cpp_accessible_generic0.cpp9::
 0:06.30 2In file included from :
 0:06.30 /boot/home/src/gecko-dev/accessible/generic/HyperTextAccessible.hIn file included from :/boot/home/src/gecko-dev/accessible/generic/ARIAGridAccessible.cpp9::
 0:06.30 6In file included from :
 0:06.30 /boot/home/src/gecko-dev/accessible/atk/AccessibleWrap.hIn file included from :/boot/home/src/gecko-dev/accessible/generic/ARIAGridAccessible.h11::
 0:06.30 9In file included from :
 0:06.31 /boot/home/src/gecko-dev/accessible/generic/LocalAccessible.hIn file included from :/boot/home/src/gecko-dev/accessible/generic/HyperTextAccessible.h9::
 0:06.31 9In file included from :
 0:06.31 /boot/home/src/gecko-dev/obj-ff-dbg/dist/include/mozilla/ComputedStyle.hIn file included from :/boot/home/src/gecko-dev/accessible/atk/AccessibleWrap.h16::
 0:06.31 11In file included from :
 0:06.32 /boot/home/src/gecko-dev/obj-ff-dbg/dist/include/mozilla/ServoComputedData.hIn file included from :/boot/home/src/gecko-dev/accessible/generic/LocalAccessible.h12::
 0:06.32 9:
 0:06.32 In file included from /boot/home/src/gecko-dev/obj-ff-dbg/dist/include/mozilla/ServoStyleConsts.h/boot/home/src/gecko-dev/obj-ff-dbg/dist/include/mozilla/ComputedStyle.h:16:
 0:06.34 In file included from :/boot/home/src/gecko-dev/obj-ff-dbg/dist/include/mozilla/ServoComputedData.h7788::12294:
 0:06.34 : /boot/home/src/gecko-dev/obj-ff-dbg/dist/include/mozilla/ServoStyleConsts.h:7788error:: 294: no member named 'IS_LEGACY_SRGB' in 'mozilla::StyleColorFlags'
 0:06.34 error: no member named 'IS_LEGACY_SRGB' in 'mozilla::StyleColorFlags'
 0:06.36 constexpr inline const StyleAbsoluteColor StyleAbsoluteColor::TRANSPARENT_BLACK = StyleAbsoluteColor{ /* .components = */ StyleColorComponents{ /* ._0 = */ 0.0, /* ._1 = */ 0.0, /* ._2 = */ 0.0 }, /* .alpha = */ 0.0, /* .color_space = */ StyleColorSpace::Srgb, /* .flags = */ StyleColorFlags::IS_LEGACY_SRGB };constexpr inline const StyleAbsoluteColor StyleAbsoluteColor::TRANSPARENT_BLACK = StyleAbsoluteColor{ /* .components = */ StyleColorComponents{ /* ._0 = */ 0.0, /* ._1 = */ 0.0, /* ._2 = */ 0.0 }, /* .alpha = */ 0.0, /* .color_space = */ StyleColorSpace::Srgb, /* .flags = */ StyleColorFlags::IS_LEGACY_SRGB };
 0:06.37                                                                                                                                                                                                                                                                                     ~~~~~~~~~~~~~~~~~^                                                                                                                                                                                                                                                                                    ~~~~~~~~~~~~~~~~~^
 0:06.37 /boot/home/src/gecko-dev/obj-ff-dbg/dist/include/mozilla/ServoStyleConsts.h:7790:282: error: no member named 'IS_LEGACY_SRGB' in 'mozilla::StyleColorFlags'
 0:06.38 constexpr inline const StyleAbsoluteColor StyleAbsoluteColor::BLACK = StyleAbsoluteColor{ /* .components = */ StyleColorComponents{ /* ._0 = */ 0.0, /* ._1 = */ 0.0, /* ._2 = */ 0.0 }, /* .alpha = */ 1.0, /* .color_space = */ StyleColorSpace::Srgb, /* .flags = */ StyleColorFlags::IS_LEGACY_SRGB };
 0:06.38                                                                                                                                                                                                                                                                         ~~~~~~~~~~~~~~~~~^
 0:06.39 /boot/home/src/gecko-dev/obj-ff-dbg/dist/include/mozilla/ServoStyleConsts.h:7790:282: error: /boot/home/src/gecko-dev/obj-ff-dbg/dist/include/mozilla/ServoStyleConsts.h:7792:no member named 'IS_LEGACY_SRGB' in 'mozilla::StyleColorFlags'282:
 0:06.39 error: no member named 'IS_LEGACY_SRGB' in 'mozilla::StyleColorFlags'
 0:06.39 constexpr inline const StyleAbsoluteColor StyleAbsoluteColor::WHITE = StyleAbsoluteColor{ /* .components = */ StyleColorComponents{ /* ._0 = */ 1.0, /* ._1 = */ 1.0, /* ._2 = */ 1.0 }, /* .alpha = */ 1.0, /* .color_space = */ StyleColorSpace::Srgb, /* .flags = */ StyleColorFlags::IS_LEGACY_SRGB };
 0:06.40                                                                                                                                                                                                                                                                         ~~~~~~~~~~~~~~~~~^
 0:06.41 constexpr inline const StyleAbsoluteColor StyleAbsoluteColor::BLACK = StyleAbsoluteColor{ /* .components = */ StyleColorComponents{ /* ._0 = */ 0.0, /* ._1 = */ 0.0, /* ._2 = */ 0.0 }, /* .alpha = */ 1.0, /* .color_space = */ StyleColorSpace::Srgb, /* .flags = */ StyleColorFlags::IS_LEGACY_SRGB };
 0:06.41                                                                                                                                                                                                                                                                         ~~~~~~~~~~~~~~~~~^
 0:06.42 /boot/home/src/gecko-dev/obj-ff-dbg/dist/include/mozilla/ServoStyleConsts.h:7792:282: error: no member named 'IS_LEGACY_SRGB' in 'mozilla::StyleColorFlags'
 0:06.42 constexpr inline const StyleAbsoluteColor StyleAbsoluteColor::WHITE = StyleAbsoluteColor{ /* .components = */ StyleColorComponents{ /* ._0 = */ 1.0, /* ._1 = */ 1.0, /* ._2 = */ 1.0 }, /* .alpha = */ 1.0, /* .color_space = */ StyleColorSpace::Srgb, /* .flags = */ StyleColorFlags::IS_LEGACY_SRGB };
 0:06.43                                                                                                                                                                                                                                                                         ~~~~~~~~~~~~~~~~~^
 0:06.43 /boot/home/src/gecko-dev/obj-ff-dbg/dist/include/mozilla/ServoStyleConsts.h:12270:41: error: use of undeclared identifier 'NONE'
 0:06.43   bool IsNone() const { return *this == NONE; }
 0:06.43                                         ^
 0:06.43 In file included from Unified_cpp_accessible_xul0.cpp:2:
 0:06.44 In file included from /boot/home/src/gecko-dev/accessible/xul/XULAlertAccessible.cpp:6:
 0:06.44 In file included from /boot/home/src/gecko-dev/accessible/xul/XULAlertAccessible.h:9:
 0:06.44 In file included from /boot/home/src/gecko-dev/accessible/atk/AccessibleWrap.h:11:
 0:06.44 In file included from /boot/home/src/gecko-dev/accessible/generic/LocalAccessible.h:9:
 0:06.44 In file included from /boot/home/src/gecko-dev/obj-ff-dbg/dist/include/mozilla/ComputedStyle.h:16:
 0:06.44 In file included from /boot/home/src/gecko-dev/obj-ff-dbg/dist/include/mozilla/ServoComputedData.h:12:
 0:06.45 /boot/home/src/gecko-dev/obj-ff-dbg/dist/include/mozilla/ServoStyleConsts.h:7788:294: error: no member named 'IS_LEGACY_SRGB' in 'mozilla::StyleColorFlags'
 0:06.45 constexpr inline const StyleAbsoluteColor StyleAbsoluteColor::TRANSPARENT_BLACK = StyleAbsoluteColor{ /* .components = */ StyleColorComponents{ /* ._0 = */ 0.0, /* ._1 = */ 0.0, /* ._2 = */ 0.0 }, /* .alpha = */ 0.0, /* .color_space = */ StyleColorSpace::Srgb, /* .flags = */ StyleColorFlags::IS_LEGACY_SRGB };
 0:06.46                                                                                                                                                                                                                                                                                     ~~~~~~~~~~~~~~~~~^
 0:06.46 /boot/home/src/gecko-dev/obj-ff-dbg/dist/include/mozilla/ServoStyleConsts.h:7790:282: error: no member named 'IS_LEGACY_SRGB' in 'mozilla::StyleColorFlags'
 0:06.47 constexpr inline const StyleAbsoluteColor StyleAbsoluteColor::BLACK = StyleAbsoluteColor{ /* .components = */ StyleColorComponents{ /* ._0 = */ 0.0, /* ._1 = */ 0.0, /* ._2 = */ 0.0 }, /* .alpha = */ 1.0, /* .color_space = */ StyleColorSpace::Srgb, /* .flags = */ StyleColorFlags::IS_LEGACY_SRGB };
 0:06.47                                                                                                                                                                                                                                                                         ~~~~~~~~~~~~~~~~~^
 0:06.48 /boot/home/src/gecko-dev/obj-ff-dbg/dist/include/mozilla/ServoStyleConsts.h:7792:282: error: no member named 'IS_LEGACY_SRGB' in 'mozilla::StyleColorFlags'
 0:06.48 constexpr inline const StyleAbsoluteColor StyleAbsoluteColor::WHITE = StyleAbsoluteColor{ /* .components = */ StyleColorComponents{ /* ._0 = */ 1.0, /* ._1 = */ 1.0, /* ._2 = */ 1.0 }, /* .alpha = */ 1.0, /* .color_space = */ StyleColorSpace::Srgb, /* .flags = */ StyleColorFlags::IS_LEGACY_SRGB };
 0:06.49                                                                                                                                                                                                                                                                         ~~~~~~~~~~~~~~~~~^
(snip)

@X547
Copy link

X547 commented Aug 4, 2024

Can be related to cbindgen. I recommend to follow recommendation and use cbindgen 0.26.0, uninstalling HaikuPorts version first.

@kenz-gelsoft
Copy link
Owner Author

Yes I will try it tonight as I will be away from dev PC till night.

@kenz-gelsoft
Copy link
Owner Author

patch in cargo is required even when changing in-tree crates. need to learn how.

or works around it

~/src/gecko-dev> grep -R \\--locked --exclude-dir=.git --exclude-dir=obj-ff-dbg/
grep: python/mozbuild/mozbuild/__pycache__/mach_commands.cpython-310.pyc: binary file matches
python/mozbuild/mozbuild/mach_commands.py:    locked = "--locked" in arguments
python/mozbuild/mozbuild/mach_commands.py:        # The use of --locked requires .cargo/config.toml to exist, but other things,
python/mozbuild/mozbuild/vendor/vendor_rust.py:            flags.append("--locked")
taskcluster/scripts/misc/build-rust-based-toolchain.sh:WORKSPACE_ROOT=$(cd $CRATE_PATH; cargo metadata --format-version 1 --no-deps --locked 2> /dev/null | jq -r .workspace_root)
taskcluster/scripts/misc/build-rust-based-toolchain.sh:  --locked \
taskcluster/scripts/misc/wrench-deps-vendoring.sh:cargo vendor --locked --sync ./Cargo.toml > .cargo/config.toml
third_party/rust/half/Makefile.toml:CI_CARGO_TEST_FLAGS = { value = "--locked -- --nocapture", condition = { env_true = [
~/src/gecko-dev> grep -R \\--frozen --exclude-dir=.git --exclude-dir=obj-ff-dbg/
build/RunCbindgen.py:        args.append("--frozen")
grep: build/__pycache__/RunCbindgen.cpython-310.pyc: binary file matches
build/cargo/cargo-deny.yaml:  - --frozen
build/docs/rust.rst:but --frozen was passed to prevent this"**.
config/makefiles/rust.mk:cargo_build_flags += --frozen
python/mozbuild/mozbuild/vendor/vendor_rust.py:            flags.append("--frozen")
taskcluster/docker/index-task/Dockerfile:RUN       yarn --frozen-lockfile && yarn cache clean
taskcluster/kinds/webrender/kind.yml:                CARGOFLAGS="--verbose --frozen" ci-scripts/linux-release-tests.sh
taskcluster/kinds/webrender/kind.yml:                CARGOFLAGS="--verbose --frozen" ci-scripts/linux-debug-tests.sh
taskcluster/scripts/misc/build-geckodriver.sh:cargo build --frozen --verbose --release --target "$TARGET"
taskcluster/scripts/misc/wr-cargotest-macos-build.sh:CARGOFLAGS="-vv --frozen --target=${TARGET_TRIPLE}" \
taskcluster/scripts/misc/wrench-android-build.sh:    $MOZ_FETCHES_DIR/cargo-apk/cargo-apk apk build --frozen --verbose --lib
taskcluster/scripts/misc/wrench-android-build.sh:    $MOZ_FETCHES_DIR/cargo-apk/cargo-apk apk build --frozen --verbose --lib --release
taskcluster/scripts/misc/wrench-macos-build.sh:cargo build --release -vv --frozen --target=${TARGET_TRIPLE}
taskcluster/scripts/misc/wrench-macos-build.sh:cargo build --release -vv --frozen --target=${TARGET_TRIPLE} --features headless
taskcluster/scripts/misc/wrench-windows-tests.sh:export CARGOFLAGS='--verbose --frozen'

@kenz-gelsoft
Copy link
Owner Author

kenz-gelsoft commented Aug 4, 2024

~/src/gecko-dev> grep -R lmdb-rkv-sys --exclude-dir=.git --exclude-dir=obj-ff-dbg/
Cargo.lock: "lmdb-rkv-sys",
Cargo.lock: "lmdb-rkv-sys",
Cargo.lock: "lmdb-rkv-sys",
Cargo.lock: "lmdb-rkv-sys",
Cargo.lock:name = "lmdb-rkv-sys"
gfx/wr/Cargo.lock: "lmdb-rkv-sys",
gfx/wr/Cargo.lock:name = "lmdb-rkv-sys"
supply-chain/config.toml:[[exemptions.lmdb-rkv-sys]]
third_party/rust/lmdb-rkv/Cargo.toml:[dependencies.lmdb-rkv-sys]
third_party/rust/lmdb-rkv/Cargo.toml:with-asan = ["lmdb-rkv-sys/with-asan"]
third_party/rust/lmdb-rkv/Cargo.toml:with-fuzzer = ["lmdb-rkv-sys/with-fuzzer"]
third_party/rust/lmdb-rkv/Cargo.toml:with-fuzzer-no-link = ["lmdb-rkv-sys/with-fuzzer-no-link"]
third_party/rust/lmdb-rkv/README.md:To publish the lmdb-rkv-sys crate to crates.io:
third_party/rust/lmdb-rkv/README.md:git tag lmdb-rkv-sys-$VERSION # where $VERSION is the updated version string
third_party/rust/lmdb-rkv/README.md:# the lmdb-rkv-sys dependency in Cargo.toml to the latest version on crates.io.
third_party/rust/lmdb-rkv/README.md:# Change the lmdb-rkv-sys dependency in Cargo.toml back to a path dependency
third_party/rust/lmdb-rkv-sys/Cargo.toml:name = "lmdb-rkv-sys"
third_party/rust/lmdb-rkv-sys/Cargo.toml:documentation = "https://docs.rs/lmdb-rkv-sys"
third_party/rust/lmdb-rkv-sys/src/lib.rs:#![doc(html_root_url = "https://docs.rs/lmdb-rkv-sys/0.11.2")]
third_party/rust/rkv/Cargo.lock: "lmdb-rkv-sys",
third_party/rust/rkv/Cargo.lock:name = "lmdb-rkv-sys"
toolkit/content/license.html:    <code>third_party/rust/lmdb-rkv-sys/lmdb/libraries/liblmdb</code>.
toolkit/library/gtest/rust/Cargo.toml:lmdb-rkv-sys = "0.11"
toolkit/library/rust/Cargo.toml:lmdb-rkv-sys = "0.11"
toolkit/library/rust/shared/Cargo.toml:lmdb-rkv-sys = { version = "0.11", features = ["mdb_idl_logn_9"] }

external git currently pointed to

mozilla/lmdb-rs@9461676

@kenz-gelsoft
Copy link
Owner Author

kenz-gelsoft commented Aug 4, 2024

@X547
Copy link

X547 commented Aug 4, 2024

It seems that all forks are currently 100% copy of upstream and there are no additional branches.

@kenz-gelsoft
Copy link
Owner Author

Yes I am just preparing work at night. I am away from my own PC on office hour. Will patch those repo and incorporate to build system tonight.

Please ignore me until ping to you.

@kenz-gelsoft
Copy link
Owner Author

kenz-gelsoft commented Aug 6, 2024

Maybe just because patches for those not applied yet

 0:05.39 /boot/home/src/gecko-dev/gfx/angle/checkout/src/common/system_utils_posix.cpp:204:22: error: use of undeclared identifier 'RTLD_NOLOAD'
 0:05.40         extraFlags = RTLD_NOLOAD;
 0:05.40                      ^
  • couldn't identify existing patch, will search in my issue comments
  • not found. but can be defined as 0 safely.
 0:10.96 In file included from Unified_cpp_ipc_chromium0.cpp:110:
 0:10.96 /boot/home/src/gecko-dev/ipc/chromium/src/base/process_util_posix.cc:145:15: error: use of undeclared identifier 'kSystemDefaultMaxFds'
 0:10.96     max_fds = kSystemDefaultMaxFds;
 0:10.96               ^
 0:10.99 /boot/home/src/gecko-dev/ipc/chromium/src/base/process_util_posix.cc:153:25: error: unknown type name 'kFDDir'
 0:10.99   DirReaderPosix fd_dir(kFDDir);
 0:10.99                         ^
 0:19.55 In file included from Unified_cpp_js_src_util0.cpp:47:
 0:19.55 /boot/home/src/gecko-dev/js/src/util/NativeStack.cpp:151:3: error: use of undeclared identifier 'pthread_getattr_np'
 0:19.55   pthread_getattr_np(thread, &sattr);
 0:19.55   ^
 4:05.11 In file included from Unified_cpp_js_src9.cpp:47:
 4:05.11 /boot/home/src/gecko-dev/js/src/threading/posix/PosixThread.cpp:119:8: error: use of undeclared identifier 'pthread_setname_np'; did you mean 'pthread_attr_get_np'?
 4:05.11   rv = pthread_setname_np(pthread_self(), name);
 4:05.12        ^~~~~~~~~~~~~~~~~~
 4:05.12        pthread_attr_get_np
 4:05.12 /boot/system/develop/headers/bsd/pthread.h:21:12: note: 'pthread_attr_get_np' declared here
 4:05.12 extern int pthread_attr_get_np(pthread_t thread, pthread_attr_t* attr);
 4:05.12            ^
 4:05.12 In file included from Unified_cpp_js_src9.cpp:47:
 4:05.13 /boot/home/src/gecko-dev/js/src/threading/posix/PosixThread.cpp:119:43: error: cannot initialize a parameter of type 'pthread_attr_t *' (aka '_pthread_attr **') with an lvalue of type 'const char *'
 4:05.13   rv = pthread_setname_np(pthread_self(), name);
 4:05.13                                           ^~~~
 4:05.13 /boot/system/develop/headers/bsd/pthread.h:21:66: note: passing argument to parameter 'attr' here
 4:05.13 extern int pthread_attr_get_np(pthread_t thread, pthread_attr_t* attr);
 4:05.13                                                                  ^
 4:05.14 In file included from Unified_cpp_js_src9.cpp:47:
 4:05.14 /boot/home/src/gecko-dev/js/src/threading/posix/PosixThread.cpp:129:8: error: use of undeclared identifier 'pthread_getname_np'
 4:05.14   rv = pthread_getname_np(pthread_self(), nameBuffer, len);
 4:05.14        ^
 4:06.26 3 errors generated.
  • same one

@X547
Copy link

X547 commented Aug 7, 2024

/boot/home/src/gecko-dev/ipc/chromium/src/base/process_util_posix.cc:153:25: error: unknown type name 'kFDDir'

There are no such thing in Haiku, FD enumeration is done differently using function call instead of file system. That close FD code can be disabled for now.

/boot/home/src/gecko-dev/js/src/threading/posix/PosixThread.cpp:119:8: error: use of undeclared identifier 'pthread_setname_np'; did you mean 'pthread_attr_get_np'?

https://github.com/haiku/haiku/blob/43feec0105d14f7498036279c69486ccabb442bb/headers/compatibility/gnu/pthread.h#L26

@kenz-gelsoft
Copy link
Owner Author

18:03.44 /boot/home/src/gecko-dev/third_party/wayland-proxy/wayland-proxy.cpp:154:40: error: use of undeclared identifier 'MSG_CMSG_CLOEXEC'
18:03.44   ssize_t ret = recvmsg(aSocket, &msg, MSG_CMSG_CLOEXEC | MSG_DONTWAIT);
18:03.44                                        ^
18:03.45 /boot/home/src/gecko-dev/third_party/wayland-proxy/wayland-proxy.cpp:247:40: error: use of undeclared identifier 'MSG_CMSG_CLOEXEC'
18:03.45   ssize_t ret = sendmsg(aSocket, &msg, MSG_CMSG_CLOEXEC | MSG_DONTWAIT);
18:03.45                                        ^
18:03.45 /boot/home/src/gecko-dev/third_party/wayland-proxy/wayland-proxy.cpp:282:37: error: use of undeclared identifier 'SOCK_NONBLOCK'
18:03.45       socket(AF_UNIX, SOCK_STREAM | SOCK_NONBLOCK | SOCK_CLOEXEC, 0);
18:03.45                                     ^
18:03.45 /boot/home/src/gecko-dev/third_party/wayland-proxy/wayland-proxy.cpp:282:53: error: use of undeclared identifier 'SOCK_CLOEXEC'
18:03.45       socket(AF_UNIX, SOCK_STREAM | SOCK_NONBLOCK | SOCK_CLOEXEC, 0);
18:03.46                                                     ^
18:03.47 /boot/home/src/gecko-dev/third_party/wayland-proxy/wayland-proxy.cpp:476:42: error: use of undeclared identifier 'SOCK_NONBLOCK'
18:03.48   int sc = socket(AF_UNIX, SOCK_STREAM | SOCK_NONBLOCK | SOCK_CLOEXEC, 0);
18:03.48                                          ^
18:03.48 /boot/home/src/gecko-dev/third_party/wayland-proxy/wayland-proxy.cpp:476:58: error: use of undeclared identifier 'SOCK_CLOEXEC'
18:03.48   int sc = socket(AF_UNIX, SOCK_STREAM | SOCK_NONBLOCK | SOCK_CLOEXEC, 0);
18:03.48                                                          ^
18:03.48 /boot/home/src/gecko-dev/third_party/wayland-proxy/wayland-proxy.cpp:563:37: error: use of undeclared identifier 'SOCK_NONBLOCK'
18:03.48       socket(AF_UNIX, SOCK_STREAM | SOCK_NONBLOCK | SOCK_CLOEXEC, 0);
18:03.48                                     ^
18:03.48 /boot/home/src/gecko-dev/third_party/wayland-proxy/wayland-proxy.cpp:563:53: error: use of undeclared identifier 'SOCK_CLOEXEC'
18:03.48       socket(AF_UNIX, SOCK_STREAM | SOCK_NONBLOCK | SOCK_CLOEXEC, 0);
18:03.49                                                     ^
18:03.51 /boot/home/src/gecko-dev/third_party/wayland-proxy/wayland-proxy.cpp:692:37: error: use of undeclared identifier 'SOCK_NONBLOCK'
18:03.51                                     SOCK_NONBLOCK | SOCK_CLOEXEC);
18:03.51                                     ^
18:03.51 /boot/home/src/gecko-dev/third_party/wayland-proxy/wayland-proxy.cpp:692:53: error: use of undeclared identifier 'SOCK_CLOEXEC'
18:03.51                                     SOCK_NONBLOCK | SOCK_CLOEXEC);
18:03.51                                                     ^
18:03.61 10 errors generated.

@kenz-gelsoft
Copy link
Owner Author

WaylandProxy can be disabled with MOZ_DISABLE_WAYLAND_PROXY environment variable.

#ifdefs code to compile.

https://searchfox.org/mozilla-esr128/source/toolkit/xre/nsAppRunner.cpp#4757

@kenz-gelsoft
Copy link
Owner Author

kenz-gelsoft commented Aug 7, 2024

Fixed almost all compilation errors in branch

https://github.com/kenz-gelsoft/gecko-dev/tree/rebase_more_120_patches

it start failing link, some fixed with existing patch

 1:43.38 toolkit/library/build/libxul.so
 1:43.44 clang-12: warning: argument unused during compilation: '-pthread' [-Wunused-command-line-argument]
 4:52.39 /boot/system/develop/tools/bin/../lib/gcc/x86_64-unknown-haiku/13.3.0/../../../../x86_64-unknown-haiku/bin/ld: ../../../x86_64-unknown-haiku/debug/libgkrust.a(9793bb15fee3ec8a-mdb.o): in function `mdb_env_sync':
 4:52.39 /boot/home/.cargo/git/checkouts/lmdb-rs-28a1792d75627f3d/c246a7b/lmdb-sys/lmdb/libraries/liblmdb/mdb.c:2525:(.text.mdb_env_sync+0x33): undefined reference to `fdatasync'
 5:03.74 /boot/system/develop/tools/bin/../lib/gcc/x86_64-unknown-haiku/13.3.0/../../../../x86_64-unknown-haiku/bin/ld: ../../../dist/bin/libxul.so: hidden symbol `fdatasync' isn't defined
 5:03.74 /boot/system/develop/tools/bin/../lib/gcc/x86_64-unknown-haiku/13.3.0/../../../../x86_64-unknown-haiku/bin/ld: final link failed: bad value

this is new one? No. patched 8319e9a

@kenz-gelsoft
Copy link
Owner Author

esr128 based branch is successfully built now, please wait for patching runtime fixes.

screenshot2

@kenz-gelsoft
Copy link
Owner Author

kenz-gelsoft commented Aug 7, 2024

@X547 Let's try folllowing branch that I believe it
contains all required changes rebased.

https://github.com/kenz-gelsoft/gecko-dev/tree/rebase_runtime_patches

I tweaked your changes a bit for consistency.

@kenz-gelsoft
Copy link
Owner Author

That branch successfully built on my environment.

11:10.54 ./dependentlibs.list.stub
11:12.50 TEST-PASS | check_spidermonkey_style.py | ok
11:12.77 TEST-PASS | check_macroassembler_style.py | ok
11:12.87 TEST-PASS | check_js_opcode.py | ok
11:17.14 W 148 compiler warnings present.
11:17.28 W Overall system resources - Wall time: 677s; CPU: 0%; Read bytes: 0; Write bytes: 0; Read time: 0; Write time: 0
11:17.28 /bin/notify-send '--app-name=Mozilla Build System' 'Mozilla Build System' 'Build complete'
To view a profile of the build, run |mach resource-usage|.
11:17.33 Your build was successful!
To take your build for a test drive, run: |mach run|
For more information on what to do now, see https://firefox-source-docs.mozilla.org/setup/contributing_code.html
~/src/gecko-dev> 

@kenz-gelsoft
Copy link
Owner Author

kenz-gelsoft commented Aug 7, 2024

I tweaked your changes a bit for consistency.

Sorry this broke some of your changes. I'm fixing it.

@kenz-gelsoft
Copy link
Owner Author

Pushed bfb858b. Let's try again.

@X547
Copy link

X547 commented Aug 7, 2024

4e50c5f

diff --git a/xpcom/build/BinaryPath.h b/xpcom/build/BinaryPath.h
index 1a84ae4dc878..79844a9d2df3 100644
--- a/xpcom/build/BinaryPath.h
+++ b/xpcom/build/BinaryPath.h
@@ -24,6 +24,10 @@
 #if defined(__OpenBSD__)
 #  include <sys/stat.h>
 #endif
+#if defined(__HAIKU__)
+#  include <OS.h>
+#  include <image.h>
+#endif
 #include "mozilla/UniquePtr.h"
 #include "mozilla/UniquePtrExtensions.h"
 
@@ -133,7 +137,7 @@ class BinaryPath {
     return rv;
   }
 
-#elif defined(ANDROID) || defined(__HAIKU__)
+#elif defined(ANDROID)
   static nsresult Get(char aResult[MAXPATHLEN]) {
     // On Android, we use the MOZ_ANDROID_LIBDIR variable that is set by the
     // Java bootstrap code.
@@ -257,6 +261,21 @@ class BinaryPath {
     return NS_ERROR_FAILURE;
   }
 
+#elif defined(__HAIKU__)
+  static nsresult Get(char aResult[MAXPATHLEN]) {
+    image_info info;
+    int32 cookie = 0;
+
+    while (get_next_image_info(B_CURRENT_TEAM, &cookie, &info) >= B_OK) {
+      if (info.type == B_APP_IMAGE) {
+        strlcpy(aResult, info.name, MAXPATHLEN - 1);
+        return NS_OK;
+      }
+    }
+
+    return NS_ERROR_FAILURE;
+  }
+
 #else
 #  error Oops, you need platform-specific code here
 #endif

@kenz-gelsoft
Copy link
Owner Author

Sorry one more commit f2a92d9.

I'll go work now. Good luck.

@kenz-gelsoft kenz-gelsoft reopened this Aug 9, 2024
@kenz-gelsoft
Copy link
Owner Author

kenz-gelsoft commented Aug 9, 2024

I guess my patched version has the same version number, cargo may find already compiled version on your cargo build cache, and it conflicts content hash, --freeze option prevented to use this.

I have no luck on googling this a bit:

I try changing another patching option
#10 (comment)

@kenz-gelsoft
Copy link
Owner Author

it seems I need to bump patched crates versions

kenz@KENZnoMacBook-Air gecko-dev % ./mach vendor rust
     Locking 0 packages to latest compatible versions
note: pass `--verbose` to see 279 unchanged dependencies behind latest
 0:03.59 E There are 2 different versions of crate lmdb-rkv-sys (expected 1). Please avoid the extra duplication or adjust TOLERATED_DUPES in python/mozbuild/mozbuild/vendor/vendor_rust.py if not possible (but we'd prefer the former).
 0:03.76 Loading graph configuration.
 0:06.30 Using Parameters(id=e21ddbd2f3cd) (from defaults)
 0:06.30 Loading kinds
 0:06.30 Limiting kinds to following kinds and dependencies: toolchain
 0:06.30 Generating full task set
 0:06.43 Generated 104 tasks for kind fetch
 0:06.44 Generated 17 tasks for kind packages
 0:07.40 Generated 273 tasks for kind toolchain
 0:08.10 Generated 55 tasks for kind docker-image
 0:08.10 [INFO] Using /Users/kenz/src/gecko-dev/.cargo/config.toml.
 0:09.48 E Vet error: There are some issues with your policy.audit-as-crates-io entries
 0:09.48  related error: Some non-crates.io-fetched packages match published crates.io versions
  lmdb-rkv-sys:0.11.2@git:9a481259e3b15932bd88bc90a8d7dc49e7ac9cd6
 0:09.48 Run `./mach cargo vet` for more information.
Errors occured; new rust crates were not vendored.

@kenz-gelsoft
Copy link
Owner Author

kenz-gelsoft commented Aug 10, 2024

rkv crates depends on lmdb-rkv so I need to fork this too.

[[package]]
name = "rkv"
version = "0.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2c6d906922d99c677624d2042a93f89b2b7df0f6411032237d5d99a602c2487c"
dependencies = [
 "arrayref",
 "bincode",
 "bitflags 2.5.0",
 "byteorder",
 "id-arena",
 "lazy_static",
 "lmdb-rkv 0.14.0",

and glean-core depends on it...

[[package]]
name = "glean-core"
version = "60.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0933c00ca50c8b2c10ca9090c5d4a6fbadd4982005699b38e0c5f233983d3cd4"
dependencies = [
 "android_logger",
 "bincode",
 "chrono",
 "crossbeam-channel",
 "flate2",
 "log",
 "once_cell",
 "oslog",
 "rkv 0.19.0",

@kenz-gelsoft
Copy link
Owner Author

kenz-gelsoft commented Aug 10, 2024

I reworked to incorporate patched rust crates on rework_vendoring_patched_crates branch

@X547 you should be able to build on this branch.

https://github.com/kenz-gelsoft/gecko-dev/pull/25/files

@X547
Copy link

X547 commented Aug 11, 2024

/boot/data/packages/firefox/gecko-dev> mach build
 0:00.38 W Clobber not needed.
 0:00.41 W Adding make options from /boot/data/packages/firefox/gecko-dev/mozconfig
    MOZ_OBJDIR=/boot/data/packages/firefox/gecko-dev/obj-ff-dbg
    OBJDIR=/boot/data/packages/firefox/gecko-dev/obj-ff-dbg
    FOUND_MOZCONFIG=/boot/data/packages/firefox/gecko-dev/mozconfig
    export FOUND_MOZCONFIG
 0:00.41 /bin/make -f client.mk -j12 -s
 0:00.76 Elapsed: 0.00s; From dist/private: Kept 0 existing; Added/updated 0; Removed 0 files and 0 directories.
 0:00.79 Elapsed: 0.00s; From dist/public: Kept 0 existing; Added/updated 0; Removed 0 files and 0 directories.
 0:00.86 Elapsed: 0.09s; From _tests: Kept 673 existing; Added/updated 0; Removed 0 files and 0 directories.
 0:00.94 Elapsed: 0.19s; From dist/bin: Kept 2908 existing; Added/updated 0; Removed 0 files and 0 directories.
 0:01.03 Elapsed: 0.28s; From dist/include: Kept 6561 existing; Added/updated 0; Removed 0 files and 0 directories.
 0:05.64 toolkit/library/buildid.cpp.stub
 0:06.27 security/manager/ssl/ipcclientcerts/dynamic-library/libipcclientcerts.so
 0:06.28 security/manager/ssl/builtins/dynamic-library/libnssckbi.so
 0:06.29 security/nss/lib/nss/libnss3.so
 0:06.32 security/nss/lib/freebl/libfreebl3.so
 0:06.35 media/ffvpx/libavcodec/libmozavcodec.so
 0:06.38 ld.lld: error: undefined symbol: setsockopt
 0:06.39 >>> referenced by std.320dd4fdcdaf5801-cgu.15
 0:06.39 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.15.rcgu.o:(std::net::udp::UdpSocket::set_read_timeout::h51148de5372aa2bc) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.39 >>> referenced by std.320dd4fdcdaf5801-cgu.15
 0:06.40 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.15.rcgu.o:(std::net::udp::UdpSocket::set_write_timeout::heaa3b727f0cc1397) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.40 >>> referenced by std.320dd4fdcdaf5801-cgu.15
 0:06.41 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.15.rcgu.o:(std::net::udp::UdpSocket::set_broadcast::h34b2dcb7932f2c7e) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.41 >>> referenced 37 more times
 0:06.41 ld.lld: error: undefined symbol: getsockopt
 0:06.41 >>> referenced by std.320dd4fdcdaf5801-cgu.15
 0:06.42 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.15.rcgu.o:(std::net::udp::UdpSocket::broadcast::h50a345d70970a881) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.42 >>> referenced by std.320dd4fdcdaf5801-cgu.15
 0:06.42 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.15.rcgu.o:(std::net::udp::UdpSocket::multicast_loop_v4::h85c0b2a5ad28f6ef) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.42 >>> referenced by std.320dd4fdcdaf5801-cgu.15
 0:06.43 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.15.rcgu.o:(std::net::udp::UdpSocket::multicast_ttl_v4::h33a2e46ff908f573) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.43 >>> referenced 29 more times
 0:06.43 ld.lld: error: undefined symbol: send
 0:06.43 >>> referenced by std.320dd4fdcdaf5801-cgu.15
 0:06.44 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.15.rcgu.o:(std::net::udp::UdpSocket::send::h40bb47ac66610ef6) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.46 >>> referenced by std.320dd4fdcdaf5801-cgu.09
 0:06.46 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.09.rcgu.o:(_$LT$std..net..tcp..TcpStream$u20$as$u20$std..io..Write$GT$::write::h97fb8b6bb6efe478) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.46 >>> referenced by std.320dd4fdcdaf5801-cgu.09
 0:06.47 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.09.rcgu.o:(_$LT$$RF$std..net..tcp..TcpStream$u20$as$u20$std..io..Write$GT$::write::h5868d7ac8ed418c8) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.47 >>> referenced 1 more times
 0:06.47 ld.lld: error: undefined symbol: recv
 0:06.47 >>> referenced by std.320dd4fdcdaf5801-cgu.15
 0:06.48 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.15.rcgu.o:(std::net::udp::UdpSocket::recv::hbcc27527dac2ede3) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.48 >>> referenced by std.320dd4fdcdaf5801-cgu.15
 0:06.48 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.15.rcgu.o:(std::net::udp::UdpSocket::peek::hb6b0c4b111930949) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.48 >>> referenced by std.320dd4fdcdaf5801-cgu.15
 0:06.49 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.15.rcgu.o:(std::os::unix::net::stream::UnixStream::peek::h1d4fa8f5f9769191) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.49 >>> referenced 15 more times
 0:06.49 ld.lld: error: undefined symbol: getsockname
 0:06.49 >>> referenced by std.320dd4fdcdaf5801-cgu.15
 0:06.49 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.15.rcgu.o:(_$LT$std..os..unix..net..stream..UnixStream$u20$as$u20$core..fmt..Debug$GT$::fmt::hc40228f843511fbf) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.49 >>> referenced by std.320dd4fdcdaf5801-cgu.15
 0:06.50 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.15.rcgu.o:(std::os::unix::net::stream::UnixStream::local_addr::h1447be4337389fbd) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.50 >>> referenced by std.320dd4fdcdaf5801-cgu.09
 0:06.51 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.09.rcgu.o:(_$LT$std..os..unix..net..listener..UnixListener$u20$as$u20$core..fmt..Debug$GT$::fmt::hd9f55abd90d5a78f) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.51 >>> referenced 5 more times
 0:06.51 ld.lld: error: undefined symbol: getpeername
 0:06.51 >>> referenced by std.320dd4fdcdaf5801-cgu.15
 0:06.51 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.15.rcgu.o:(_$LT$std..os..unix..net..stream..UnixStream$u20$as$u20$core..fmt..Debug$GT$::fmt::hc40228f843511fbf) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.52 >>> referenced by std.320dd4fdcdaf5801-cgu.15
 0:06.52 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.15.rcgu.o:(std::os::unix::net::stream::UnixStream::peer_addr::h19cee2244b79804f) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.52 >>> referenced by std.320dd4fdcdaf5801-cgu.08
 0:06.52 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.08.rcgu.o:(std::os::unix::net::addr::SocketAddr::new::h458519e8c6ee906d) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.53 >>> referenced 3 more times
 0:06.53 ld.lld: error: undefined symbol: connect
 0:06.53 >>> referenced by std.320dd4fdcdaf5801-cgu.15
 0:06.53 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.15.rcgu.o:(std::os::unix::net::stream::UnixStream::connect_addr::ha6a99633665a50e0) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.53 >>> referenced by std.320dd4fdcdaf5801-cgu.09
 0:06.54 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.09.rcgu.o:(std::sys::pal::unix::net::Socket::connect::h17bc695c632bccbf) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.54 >>> referenced by std.320dd4fdcdaf5801-cgu.09
 0:06.54 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.09.rcgu.o:(std::sys::pal::unix::net::Socket::connect_timeout::h3bd1d1795fdbe660) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.54 >>> referenced 6 more times
 0:06.54 ld.lld: error: undefined symbol: shutdown
 0:06.55 >>> referenced by std.320dd4fdcdaf5801-cgu.15
 0:06.55 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.15.rcgu.o:(std::os::unix::net::stream::UnixStream::shutdown::h839a737694c3b2e0) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.59 >>> referenced by std.320dd4fdcdaf5801-cgu.09
 0:06.59 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.09.rcgu.o:(std::net::tcp::TcpStream::shutdown::h1e08ce845d2d6ba4) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.59 >>> referenced by std.320dd4fdcdaf5801-cgu.09
 0:06.60 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.09.rcgu.o:(std::sys::pal::unix::net::Socket::shutdown::h82422b852d52d57c) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.60 >>> referenced 1 more times
 0:06.60 ld.lld: error: undefined symbol: getaddrinfo
 0:06.60 >>> referenced by std.320dd4fdcdaf5801-cgu.08
 0:06.60 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.08.rcgu.o:(core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h58b3e42b417698ec (.llvm.17113201515749173331)) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.61 >>> referenced by std.320dd4fdcdaf5801-cgu.08
 0:06.61 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.08.rcgu.o:(_$LT$std..sys_common..net..LookupHost$u20$as$u20$core..convert..TryFrom$LT$$RF$str$GT$$GT$::try_from::hbd21142f5efbc084) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.61 >>> referenced by std.320dd4fdcdaf5801-cgu.08
 0:06.62 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.08.rcgu.o:(_$LT$std..sys_common..net..LookupHost$u20$as$u20$core..convert..TryFrom$LT$$LP$$RF$str$C$u16$RP$$GT$$GT$::try_from::h2183f6d25660b1ea) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.62 >>> referenced 1 more times
 0:06.62 ld.lld: error: undefined symbol: bind
 0:06.62 >>> referenced by std.320dd4fdcdaf5801-cgu.09
 0:06.62 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.09.rcgu.o:(std::os::unix::net::listener::UnixListener::bind_addr::h0855a4cd2924338c) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.63 >>> referenced by std.320dd4fdcdaf5801-cgu.08
 0:06.63 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.08.rcgu.o:(std::os::unix::net::datagram::UnixDatagram::bind_addr::h18eddbba44eabd82) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.63 >>> referenced by std.320dd4fdcdaf5801-cgu.08
 0:06.63 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.08.rcgu.o:(std::sys_common::net::TcpListener::bind::hec90b69db90eaca6) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.64 >>> referenced 1 more times
 0:06.64 ld.lld: error: undefined symbol: listen
 0:06.64 >>> referenced by std.320dd4fdcdaf5801-cgu.09
 0:06.64 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.09.rcgu.o:(std::os::unix::net::listener::UnixListener::bind_addr::h0855a4cd2924338c) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.64 >>> referenced by std.320dd4fdcdaf5801-cgu.08
 0:06.65 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.08.rcgu.o:(std::sys_common::net::TcpListener::bind::hec90b69db90eaca6) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.65 ld.lld: error: undefined symbol: gai_strerror
 0:06.65 >>> referenced by std.320dd4fdcdaf5801-cgu.09
 0:06.65 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.09.rcgu.o:(std::sys::pal::unix::net::cvt_gai::he05b852ae7e30537) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.65 ld.lld: error: undefined symbol: socket
 0:06.65 >>> referenced by std.320dd4fdcdaf5801-cgu.09
 0:06.66 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.09.rcgu.o:(std::sys::pal::unix::net::Socket::new_raw::h15ad929392884642) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.66 ld.lld: error: undefined symbol: socketpair
 0:06.66 >>> referenced by std.320dd4fdcdaf5801-cgu.09
 0:06.67 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.09.rcgu.o:(std::sys::pal::unix::net::Socket::new_pair::h39d7a50b75955aa1) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.67 ld.lld: error: undefined symbol: accept
 0:06.67 >>> referenced by std.320dd4fdcdaf5801-cgu.09
 0:06.67 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.09.rcgu.o:(std::sys::pal::unix::net::Socket::accept::hb694056b11023c21) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.67 >>> referenced by std.320dd4fdcdaf5801-cgu.09
 0:06.68 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.09.rcgu.o:(std::sys::pal::unix::net::Socket::accept::hb694056b11023c21) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.68 >>> referenced by std.320dd4fdcdaf5801-cgu.05
 0:06.68 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.05.rcgu.o:(std::sys::pal::unix::cvt_r::h300e13225fd804da) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.68 >>> referenced 1 more times
 0:06.68 ld.lld: error: undefined symbol: freeaddrinfo
 0:06.68 >>> referenced by std.320dd4fdcdaf5801-cgu.05
 0:06.69 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.05.rcgu.o:(_$LT$alloc..vec..Vec$LT$T$GT$$u20$as$u20$alloc..vec..spec_from_iter..SpecFromIter$LT$T$C$I$GT$$GT$::from_iter::hc7027ab85ba46f33) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.69 >>> referenced by std.320dd4fdcdaf5801-cgu.05
 0:06.70 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.05.rcgu.o:(_$LT$alloc..vec..Vec$LT$T$GT$$u20$as$u20$alloc..vec..spec_from_iter..SpecFromIter$LT$T$C$I$GT$$GT$::from_iter::hc7027ab85ba46f33) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.70 >>> referenced by std.320dd4fdcdaf5801-cgu.05
 0:06.70 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.05.rcgu.o:(_$LT$alloc..vec..Vec$LT$T$GT$$u20$as$u20$alloc..vec..spec_from_iter..SpecFromIter$LT$T$C$I$GT$$GT$::from_iter::hc7027ab85ba46f33) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.70 >>> referenced 2 more times
 0:06.71 ld.lld: error: undefined symbol: recvfrom
 0:06.71 >>> referenced by std.320dd4fdcdaf5801-cgu.09
 0:06.71 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.09.rcgu.o:(std::sys::pal::unix::net::Socket::recv_from::hc66ab6d37b6f110a) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.71 >>> referenced by std.320dd4fdcdaf5801-cgu.08
 0:06.72 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.08.rcgu.o:(std::os::unix::net::datagram::UnixDatagram::recv_from::h608287c0066402c2) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.72 >>> referenced by std.320dd4fdcdaf5801-cgu.09
 0:06.72 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.09.rcgu.o:(std::sys::pal::unix::net::Socket::peek_from::h80d9db29d4b62041) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.72 >>> referenced 1 more times
 0:06.72 ld.lld: error: undefined symbol: sendto
 0:06.73 >>> referenced by std.320dd4fdcdaf5801-cgu.08
 0:06.73 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.08.rcgu.o:(std::os::unix::net::datagram::UnixDatagram::send_to_addr::h7d27fc477ee9a423) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.73 >>> referenced by std.320dd4fdcdaf5801-cgu.08
 0:06.73 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.08.rcgu.o:(std::sys_common::net::UdpSocket::send_to::h9bb67f8bb6e4ee10) in archive ../../../../../x86_64-unknown-haiku/debug/libbuiltins_static.a
 0:06.74 clang: error: linker command failed with exit code 1 (use -v to see invocation)
 0:06.74 ld.lld: error: undefined symbol: setsockopt
 0:06.74 >>> referenced by std.320dd4fdcdaf5801-cgu.15
 0:06.74 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.15.rcgu.o:(std::net::udp::UdpSocket::set_read_timeout::h51148de5372aa2bc) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.74 >>> referenced by std.320dd4fdcdaf5801-cgu.15
 0:06.75 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.15.rcgu.o:(std::net::udp::UdpSocket::set_write_timeout::heaa3b727f0cc1397) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.75 >>> referenced by std.320dd4fdcdaf5801-cgu.15
 0:06.75 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.15.rcgu.o:(std::net::udp::UdpSocket::set_broadcast::h34b2dcb7932f2c7e) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.76 >>> referenced 37 more times
 0:06.76 /boot/data/packages/firefox/gecko-dev/config/rules.mk:538: recipe for target '../../../../../dist/bin/libnssckbi.so' failed
 0:06.76 make[4]: *** [../../../../../dist/bin/libnssckbi.so] Error 1
 0:06.76 /boot/data/packages/firefox/gecko-dev/config/recurse.mk:72: recipe for target 'security/manager/ssl/builtins/dynamic-library/target' failed
 0:06.76 make[3]: *** [security/manager/ssl/builtins/dynamic-library/target] Error 2
 0:06.77 make[3]: *** Waiting for unfinished jobs....
 0:06.77 ld.lld: error: undefined symbol: getaddrinfo
 0:06.77 >>> referenced by std.320dd4fdcdaf5801-cgu.08
 0:06.77 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.08.rcgu.o:(core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h58b3e42b417698ec (.llvm.17113201515749173331)) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.77 >>> referenced by std.320dd4fdcdaf5801-cgu.08
 0:06.78 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.08.rcgu.o:(_$LT$std..sys_common..net..LookupHost$u20$as$u20$core..convert..TryFrom$LT$$RF$str$GT$$GT$::try_from::hbd21142f5efbc084) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.78 >>> referenced by std.320dd4fdcdaf5801-cgu.08
 0:06.79 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.08.rcgu.o:(_$LT$std..sys_common..net..LookupHost$u20$as$u20$core..convert..TryFrom$LT$$LP$$RF$str$C$u16$RP$$GT$$GT$::try_from::h2183f6d25660b1ea) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.79 >>> referenced 1 more times
 0:06.79 ld.lld: error: undefined symbol: getsockopt
 0:06.79 >>> referenced by std.320dd4fdcdaf5801-cgu.15
 0:06.79 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.15.rcgu.o:(std::net::udp::UdpSocket::broadcast::h50a345d70970a881) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.79 >>> referenced by std.320dd4fdcdaf5801-cgu.15
 0:06.80 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.15.rcgu.o:(std::net::udp::UdpSocket::multicast_loop_v4::h85c0b2a5ad28f6ef) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.80 >>> referenced by std.320dd4fdcdaf5801-cgu.15
 0:06.80 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.15.rcgu.o:(std::net::udp::UdpSocket::multicast_ttl_v4::h33a2e46ff908f573) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.80 >>> referenced 29 more times
 0:06.81 ld.lld: error: undefined symbol: send
 0:06.81 >>> referenced by std.320dd4fdcdaf5801-cgu.15
 0:06.81 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.15.rcgu.o:(std::net::udp::UdpSocket::send::h40bb47ac66610ef6) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.81 >>> referenced by std.320dd4fdcdaf5801-cgu.09
 0:06.82 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.09.rcgu.o:(_$LT$std..net..tcp..TcpStream$u20$as$u20$std..io..Write$GT$::write::h97fb8b6bb6efe478) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.82 >>> referenced by std.320dd4fdcdaf5801-cgu.09
 0:06.82 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.09.rcgu.o:(_$LT$$RF$std..net..tcp..TcpStream$u20$as$u20$std..io..Write$GT$::write::h5868d7ac8ed418c8) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.82 >>> referenced 1 more times
 0:06.82 ld.lld: error: undefined symbol: getpeername
 0:06.82 >>> referenced by std.320dd4fdcdaf5801-cgu.08
 0:06.83 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.08.rcgu.o:(std::os::unix::net::addr::SocketAddr::new::h458519e8c6ee906d) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.83 >>> referenced by std.320dd4fdcdaf5801-cgu.15
 0:06.84 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.15.rcgu.o:(_$LT$std..os..unix..net..stream..UnixStream$u20$as$u20$core..fmt..Debug$GT$::fmt::hc40228f843511fbf) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.84 >>> referenced by std.320dd4fdcdaf5801-cgu.08
 0:06.84 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.08.rcgu.o:(_$LT$std..os..unix..net..datagram..UnixDatagram$u20$as$u20$core..fmt..Debug$GT$::fmt::hbd5e56479a5be966) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.84 >>> referenced 3 more times
 0:06.84 ld.lld: error: undefined symbol: recv
 0:06.84 >>> referenced by std.320dd4fdcdaf5801-cgu.15
 0:06.85 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.15.rcgu.o:(std::net::udp::UdpSocket::recv::hbcc27527dac2ede3) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.85 >>> referenced by std.320dd4fdcdaf5801-cgu.15
 0:06.85 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.15.rcgu.o:(std::net::udp::UdpSocket::peek::hb6b0c4b111930949) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.85 >>> referenced by std.320dd4fdcdaf5801-cgu.09
 0:06.86 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.09.rcgu.o:(std::net::tcp::TcpStream::peek::h4062b2bb3d563280) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.86 >>> referenced 15 more times
 0:06.86 ld.lld: error: undefined symbol: getsockname
 0:06.86 >>> referenced by std.320dd4fdcdaf5801-cgu.08
 0:06.87 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.08.rcgu.o:(std::os::unix::net::addr::SocketAddr::new::h5d9105667d39f9c0) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.87 >>> referenced by std.320dd4fdcdaf5801-cgu.15
 0:06.87 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.15.rcgu.o:(_$LT$std..os..unix..net..stream..UnixStream$u20$as$u20$core..fmt..Debug$GT$::fmt::hc40228f843511fbf) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.87 >>> referenced by std.320dd4fdcdaf5801-cgu.08
 0:06.88 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.08.rcgu.o:(_$LT$std..os..unix..net..datagram..UnixDatagram$u20$as$u20$core..fmt..Debug$GT$::fmt::hbd5e56479a5be966) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.88 >>> referenced 5 more times
 0:06.88 ld.lld: error: undefined symbol: connect
 0:06.88 >>> referenced by std.320dd4fdcdaf5801-cgu.15
 0:06.88 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.15.rcgu.o:(std::os::unix::net::stream::UnixStream::connect_addr::ha6a99633665a50e0) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.89 >>> referenced by std.320dd4fdcdaf5801-cgu.08
 0:06.89 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.08.rcgu.o:(std::os::unix::net::datagram::UnixDatagram::connect_addr::h85d1aaf183202b96) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.89 >>> referenced by std.320dd4fdcdaf5801-cgu.08
 0:06.89 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.08.rcgu.o:(std::sys_common::net::TcpStream::connect::h58baf4e07228483b) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.90 >>> referenced 6 more times
 0:06.90 ld.lld: error: undefined symbol: bind
 0:06.90 >>> referenced by std.320dd4fdcdaf5801-cgu.08
 0:06.90 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.08.rcgu.o:(std::os::unix::net::datagram::UnixDatagram::bind_addr::h18eddbba44eabd82) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.90 >>> referenced by std.320dd4fdcdaf5801-cgu.09
 0:06.91 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.09.rcgu.o:(std::os::unix::net::listener::UnixListener::bind_addr::h0855a4cd2924338c) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.91 >>> referenced by std.320dd4fdcdaf5801-cgu.08
 0:06.91 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.08.rcgu.o:(std::sys_common::net::TcpListener::bind::hec90b69db90eaca6) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.91 >>> referenced 1 more times
 0:06.91 ld.lld: error: undefined symbol: shutdown
 0:06.91 >>> referenced by std.320dd4fdcdaf5801-cgu.09
 0:06.92 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.09.rcgu.o:(std::net::tcp::TcpStream::shutdown::h1e08ce845d2d6ba4) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.92 >>> referenced by std.320dd4fdcdaf5801-cgu.15
 0:06.92 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.15.rcgu.o:(std::os::unix::net::stream::UnixStream::shutdown::h839a737694c3b2e0) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.92 >>> referenced by std.320dd4fdcdaf5801-cgu.08
 0:06.93 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.08.rcgu.o:(std::sys_common::net::TcpStream::shutdown::ha06b2873411f3312) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.93 >>> referenced 1 more times
 0:06.93 ld.lld: error: undefined symbol: recvfrom
 0:06.93 >>> referenced by std.320dd4fdcdaf5801-cgu.08
 0:06.94 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.08.rcgu.o:(std::os::unix::net::datagram::UnixDatagram::recv_from::h608287c0066402c2) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.94 >>> referenced by std.320dd4fdcdaf5801-cgu.08
 0:06.94 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.08.rcgu.o:(std::os::unix::net::datagram::UnixDatagram::peek_from::h579d7c75b2e955d0) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.94 >>> referenced by std.320dd4fdcdaf5801-cgu.09
 0:06.95 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.09.rcgu.o:(std::sys::pal::unix::net::Socket::recv_from::hc66ab6d37b6f110a) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.95 >>> referenced 1 more times
 0:06.95 ld.lld: error: undefined symbol: sendto
 0:06.95 >>> referenced by std.320dd4fdcdaf5801-cgu.08
 0:06.95 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.08.rcgu.o:(std::os::unix::net::datagram::UnixDatagram::send_to_addr::h7d27fc477ee9a423) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.95 >>> referenced by std.320dd4fdcdaf5801-cgu.08
 0:06.96 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.08.rcgu.o:(std::sys_common::net::UdpSocket::send_to::h9bb67f8bb6e4ee10) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.96 ld.lld: error: undefined symbol: freeaddrinfo
 0:06.96 >>> referenced by std.320dd4fdcdaf5801-cgu.05
 0:06.96 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.05.rcgu.o:(_$LT$alloc..vec..Vec$LT$T$GT$$u20$as$u20$alloc..vec..spec_from_iter..SpecFromIter$LT$T$C$I$GT$$GT$::from_iter::hc7027ab85ba46f33) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.97 >>> referenced by std.320dd4fdcdaf5801-cgu.05
 0:06.97 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.05.rcgu.o:(_$LT$alloc..vec..Vec$LT$T$GT$$u20$as$u20$alloc..vec..spec_from_iter..SpecFromIter$LT$T$C$I$GT$$GT$::from_iter::hc7027ab85ba46f33) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.97 >>> referenced by std.320dd4fdcdaf5801-cgu.05
 0:06.98 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.05.rcgu.o:(_$LT$alloc..vec..Vec$LT$T$GT$$u20$as$u20$alloc..vec..spec_from_iter..SpecFromIter$LT$T$C$I$GT$$GT$::from_iter::hc7027ab85ba46f33) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.98 >>> referenced 2 more times
 0:06.98 ld.lld: error: undefined symbol: listen
 0:06.98 >>> referenced by std.320dd4fdcdaf5801-cgu.09
 0:06.98 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.09.rcgu.o:(std::os::unix::net::listener::UnixListener::bind_addr::h0855a4cd2924338c) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.99 >>> referenced by std.320dd4fdcdaf5801-cgu.08
 0:06.99 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.08.rcgu.o:(std::sys_common::net::TcpListener::bind::hec90b69db90eaca6) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:06.99 ld.lld: error: undefined symbol: accept
 0:06.99 >>> referenced by std.320dd4fdcdaf5801-cgu.05
 0:07.00 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.05.rcgu.o:(std::sys::pal::unix::cvt_r::h300e13225fd804da) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:07.00 >>> referenced by std.320dd4fdcdaf5801-cgu.05
 0:07.00 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.05.rcgu.o:(std::sys::pal::unix::cvt_r::h300e13225fd804da) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:07.00 >>> referenced by std.320dd4fdcdaf5801-cgu.09
 0:07.01 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.09.rcgu.o:(std::sys::pal::unix::net::Socket::accept::hb694056b11023c21) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:07.01 >>> referenced 1 more times
 0:07.01 ld.lld: error: undefined symbol: gai_strerror
 0:07.01 >>> referenced by std.320dd4fdcdaf5801-cgu.09
 0:07.01 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.09.rcgu.o:(std::sys::pal::unix::net::cvt_gai::he05b852ae7e30537) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:07.01 ld.lld: error: undefined symbol: socket
 0:07.01 >>> referenced by std.320dd4fdcdaf5801-cgu.09
 0:07.02 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.09.rcgu.o:(std::sys::pal::unix::net::Socket::new_raw::h15ad929392884642) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:07.02 ld.lld: error: undefined symbol: socketpair
 0:07.02 >>> referenced by std.320dd4fdcdaf5801-cgu.09
 0:07.02 >>>               std-6042999d3c949dac.std.320dd4fdcdaf5801-cgu.09.rcgu.o:(std::sys::pal::unix::net::Socket::new_pair::h39d7a50b75955aa1) in archive ../../../../../x86_64-unknown-haiku/debug/libipcclientcerts_static.a
 0:07.03 clang: error: linker command failed with exit code 1 (use -v to see invocation)
 0:07.03 /boot/data/packages/firefox/gecko-dev/config/rules.mk:538: recipe for target '../../../../../dist/bin/libipcclientcerts.so' failed
 0:07.03 make[4]: *** [../../../../../dist/bin/libipcclientcerts.so] Error 1
 0:07.03 /boot/data/packages/firefox/gecko-dev/config/recurse.mk:72: recipe for target 'security/manager/ssl/ipcclientcerts/dynamic-library/target' failed
 0:07.03 make[3]: *** [security/manager/ssl/ipcclientcerts/dynamic-library/target] Error 2
 0:07.05 /boot/data/packages/firefox/gecko-dev/config/recurse.mk:32: recipe for target 'compile' failed
 0:07.05 make[2]: *** [compile] Error 2
 0:07.05 /boot/data/packages/firefox/gecko-dev/config/rules.mk:361: recipe for target 'default' failed
 0:07.05 make[1]: *** [default] Error 2
 0:07.05 client.mk:59: recipe for target 'build' failed
 0:07.05 make: *** [build] Error 2
 0:07.06 W 113 compiler warnings present.

@kenz-gelsoft
Copy link
Owner Author

Hmm, it seems lacking -lnetwork somewhere (when building NSS?)...

@kenz-gelsoft
Copy link
Owner Author

Link failure on two archives

  • libbuiltins_static.a
  • libipcclientcerts_static.a

They looks corresponding to these:

 0:06.27 security/manager/ssl/ipcclientcerts/dynamic-library/libipcclientcerts.so
 0:06.28 security/manager/ssl/builtins/dynamic-library/libnssckbi.so

I'll check build script for those modules today.

Sorry, I'll go out to meet friend, so maybe I'll respond tonight (in JST)

@X547
Copy link

X547 commented Aug 11, 2024

I am located in Japan, Kansai region, so JST too.

@kenz-gelsoft
Copy link
Owner Author

kenz-gelsoft commented Aug 11, 2024

I couldn't find the cause of the link error why I can build and you can't.

Though adding libnetwork to linker input should fix your problem. This is the branch, please try.

https://github.com/kenz-gelsoft/gecko-dev/tree/link_libnetwork_explicitly

5c1a1e8 is the change.

@X547
Copy link

X547 commented Aug 11, 2024

It is working:

https://discuss.haiku-os.org/t/progress-on-porting-firefox/13493/143

Any ideas why video codecs are not enabled?

screenshot649

@kenz-gelsoft
Copy link
Owner Author

Nice progress. I don't mind investigating video codec build errors, but I don't get working successfully like you.

Do you run it with unreleased newer mesa+lvgnd on your PC?

@kenz-gelsoft
Copy link
Owner Author

Putting that aside, I finally close this Issue.

@X547
Copy link

X547 commented Aug 11, 2024

Have you tried to install glvnd without any actual OpenGL drivers?

@kenz-gelsoft
Copy link
Owner Author

I didn't try it because not yet available from HaikuDepot.

Can I install it build haikuport manually?

@kenz-gelsoft
Copy link
Owner Author

BTW, two branches I asked you try are now merged into haiku128.

@X547
Copy link

X547 commented Aug 11, 2024

You can build glvnd with HaikuPorter: https://github.com/haikuports/haikuports/blob/master/sys-libs/libglvnd/libglvnd-1.7.0.recipe#L13. You need to remove question mark first. You can also build glvnd from Git repo (https://github.com/NVIDIA/libglvnd), it is a small library that can be compiled with a minute.

@kenz-gelsoft
Copy link
Owner Author

kenz-gelsoft commented Aug 11, 2024

Thanks, I installed glvnd, it fixed glxtest error, but it doesn't work well.

This may be caused as I'm using in-tree libevent and its build setting may be not good as Haikuports version.

  • Start page rendered, but not repainted automatically.
  • It doesn't handle mouse event.

(I accidentally removed libevent_devel as recent Haikuports dependency change.)

@X547
Copy link

X547 commented Aug 11, 2024

Start page rendered, but not repainted automatically.
It doesn't handle mouse event.

wayland-server problems.

@X547
Copy link

X547 commented Aug 11, 2024

libevent in theory is not needed (and maybe not implemented properly in Haiku or even not implemented at all). Wayland wl_seat events should be enough.

@kenz-gelsoft
Copy link
Owner Author

AFAIK, chromium_ipc uses libevent for communication between the parent process and its child processes. This is not widget level event passing but high level messaging.

It is informative that the widget level event passing is handled by wl_seat on wayland apps.

@kenz-gelsoft
Copy link
Owner Author

kenz-gelsoft commented Aug 13, 2024

Start page rendered, but not repainted automatically.
It doesn't handle mouse event.

wayland-server problems.

I tried this branch by replacing haikuports revision (and checksum), but none of these improved.

https://github.com/X547/wayland-server/commits/haiku-shm/

are you experiencing same problems, and not solved yet?

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants