ports/www/tor-browser/files/patch-bug1874059
Vladimir Druzenko d837a596e9 www/tor-browser: fix build: "pub _base: root::std::__1::_And<_Pred>, not found in this scope"
error[E0412]: cannot find type `_Pred` in this scope
     --> /tmp/work/usr/ports/www/tor-browser/work/.build/x86_64-unknown-freebsd/release/build/style-ea1857e57f097f7a/out/gecko/structs.rs:34456:49
      |
34456 |                 pub _base: root::std::__1::_And<_Pred>,
      |                                                 ^^^^^ not found in this scope
      |
help: you might be missing a type parameter
      |
34455 |             pub struct tuple__EnableUTypesCtor<_Pred> {
      |                                               +++++++

Add patches from www/firefox-esr to fix this error and other.

PR:		279693
Approved by:	Martin Filla <freebsd@sysctl.cz> (maintainer)
2024-06-30 13:46:25 +03:00

25 lines
1,020 B
Text

commit 56c888446600991803fd92d668349101ad4bf160
Author: Christoph Moench-Tegeder <cmt@burggraben.net>
Date: Tue Feb 6 22:51:27 2024 +0100
switch to -fvisibility flags
this fixes linkage with llvm18 (which does not like the former
approach via the #pragma in gcc_hidden.h
PR: 276746
Submitted by: dim@
diff --git build/moz.configure/toolchain.configure build/moz.configure/toolchain.configure
index d08b748db250..4696f69153f6 100644
--- build/moz.configure/toolchain.configure
+++ build/moz.configure/toolchain.configure
@@ -2186,7 +2186,7 @@ set_define("_LIBCPP_HIDE_FROM_ABI", libcxx_override_visibility.hide_from_abi)
@depends(target, build_environment)
def visibility_flags(target, env):
if target.os != "WINNT":
- if target.kernel == "Darwin":
+ if target.kernel == "Darwin" or target.kernel == "FreeBSD":
return ("-fvisibility=hidden", "-fvisibility-inlines-hidden")
return (
"-I%s/system_wrappers" % os.path.join(env.dist),