mirror of
https://git.freebsd.org/ports.git
synced 2025-04-29 01:56:37 -04:00
Security: https://vuxml.freebsd.org/freebsd/c53cd328-8131-4fc2-a083-a9e9d45e3028.html Security: https://vuxml.freebsd.org/freebsd/756839e1-cd78-4082-9f9e-d0da616ca8dd.html
43 lines
1.5 KiB
Text
43 lines
1.5 KiB
Text
--- build/linux/unbundle/icu.gn.orig 2025-01-15 09:18:26 UTC
|
|
+++ build/linux/unbundle/icu.gn
|
|
@@ -17,6 +17,15 @@ config("icu_config") {
|
|
"USING_SYSTEM_ICU=1",
|
|
"ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC",
|
|
|
|
+ # As of icu 73 C++ nullptr, char16_t, override, final and noexcept are used
|
|
+ # instead of defines. These definitions can be removed when the bundled icu
|
|
+ # gets updated to 73. For more details, see:
|
|
+ # https://unicode-org.atlassian.net/browse/ICU-21833 and
|
|
+ # https://github.com/unicode-org/icu/commit/28643799377ecf654564f6f31854b02788cebe33
|
|
+ "U_FINAL=final",
|
|
+ "U_NOEXCEPT=noexcept",
|
|
+ "U_OVERRIDE=override",
|
|
+
|
|
# U_EXPORT (defined in unicode/platform.h) is used to set public visibility
|
|
# on classes through the U_COMMON_API and U_I18N_API macros (among others).
|
|
# When linking against the system ICU library, we want its symbols to have
|
|
@@ -34,6 +43,9 @@ config("icu_config") {
|
|
# to define U_IMPORT to have the same value as U_EXPORT. For more details,
|
|
# please see: https://crbug.com/822820
|
|
"U_IMPORT=U_EXPORT",
|
|
+
|
|
+ # Unbreak with icu 76 where private symbols are picked up
|
|
+ "U_HIDE_DRAFT_API",
|
|
]
|
|
}
|
|
|
|
@@ -46,6 +58,14 @@ pkg_config("system_icuuc") {
|
|
}
|
|
|
|
source_set("icui18n") {
|
|
+ deps = [ ":icui18n_shim" ]
|
|
+ public_configs = [
|
|
+ ":icu_config",
|
|
+ ":system_icui18n",
|
|
+ ]
|
|
+}
|
|
+
|
|
+source_set("icui18n_hidden_visibility") {
|
|
deps = [ ":icui18n_shim" ]
|
|
public_configs = [
|
|
":icu_config",
|