Files
gentoo/dev-libs
Benda Xu ed66572a49 dev-libs/libintl: donot -fvisibility=hidden on macOS.
The linker/libtool on macOS hide symbol 'locale_charset' of libgnu.a,
even if the function was compile with

  __attribute__((__visibility__("default")))

Coincidentally, libtool specifies a set of exposed symbols to the
linker in the final stage.  So not specifying -fvisibility=hidden
during compilation does not expose extra symbols.  A comparison of
libintl.dylib before (bad) and after (good) this revision bump:

 diff -u <(nm -a libintl.8.3.0.dylib.bad) <(nm -a libintl.8.3.0.dylib.good)
--- /dev/fd/63  2023-07-08 21:08:56.000000000 +0800
+++ /dev/fd/62  2023-07-08 21:08:56.000000000 +0800
@@ -105,8 +105,8 @@
 0000000000003c30 t _alias_compare
 0000000000017aa0 s _alias_table
 0000000000016dd0 s _aliasfile.0
-0000000000008290 t _bind_textdomain_codeset
-0000000000008280 t _bindtextdomain
+0000000000008290 T _bind_textdomain_codeset
+0000000000008280 T _bindtextdomain
                  U _bsearch
 000000000001b878 b _cache_initialized.1
 000000000001b870 b _cached_languages.0
@@ -117,22 +117,22 @@
                  U _close
 000000000001cd80 b _curr_prefix
 000000000001cd78 b _curr_prefix_len
-0000000000008230 t _dcgettext
-0000000000008260 t _dcngettext
-0000000000008220 t _dgettext
-0000000000008250 t _dngettext
-00000000000162e0 t _emutls_destroy
+0000000000008230 T _dcgettext
+0000000000008260 T _dcngettext
+0000000000008220 T _dgettext
+0000000000008250 T _dngettext
 00000000000162e0 - 01 0000   FUN _emutls_destroy
-0000000000016320 t _emutls_init
+00000000000162e0 t _emutls_destroy
 0000000000016320 - 01 0000   FUN _emutls_init
-00000000000165ea s _emutls_init.cold
+0000000000016320 t _emutls_init
 00000000000165ea - 01 0000   FUN _emutls_init.cold
+00000000000165ea s _emutls_init.cold
 000000000001cda0 - 0e 0000 STSYM _emutls_key
 000000000001cda0 b _emutls_key
-000000000001b7c0 - 0d 0000 STSYM _emutls_mutex
 000000000001b7c0 d _emutls_mutex
-000000000001cd98 b _emutls_size
+000000000001b7c0 - 0d 0000 STSYM _emutls_mutex
 000000000001cd98 - 0e 0000 STSYM _emutls_size
+000000000001cd98 b _emutls_size
 000000000001b860 b _enable_secure
                  U _fclose
                  U _fgets
@@ -151,7 +151,7 @@
                  U _getenv
                  U _geteuid
                  U _getgid
-0000000000008210 t _gettext
+0000000000008210 T _gettext
                  U _getuid
 0000000000008e30 T _gl_get_setlocale_null_lock
                  U _kCFPreferencesCurrentApplication
@@ -168,19 +168,19 @@
 0000000000001b40 T _libintl_bind_textdomain_codeset
 0000000000001b00 T _libintl_bindtextdomain
 0000000000001b80 T _libintl_dcgettext
-00000000000057c0 t _libintl_dcigettext
+00000000000057c0 T _libintl_dcigettext
 00000000000165b8 s _libintl_dcigettext.cold
 00000000000061c0 T _libintl_dcngettext
 0000000000001b90 T _libintl_dgettext
 00000000000061d0 T _libintl_dngettext
 0000000000001ba0 T _libintl_gettext
-0000000000001e80 t _libintl_hash_string
+0000000000001e80 T _libintl_hash_string
 0000000000007f00 T _libintl_newlocale
 00000000000061e0 T _libintl_ngettext
-000000000001b5c8 d _libintl_nl_current_default_domain
-0000000000016e00 s _libintl_nl_default_default_domain
-0000000000016de0 s _libintl_nl_default_dirname
-000000000001cdb0 s _libintl_nl_domain_bindings
+000000000001b5c8 D _libintl_nl_current_default_domain
+0000000000016e00 S _libintl_nl_default_default_domain
+0000000000016de0 S _libintl_nl_default_dirname
+000000000001cdb0 S _libintl_nl_domain_bindings
 0000000000010ac0 T _libintl_set_relocation_prefix
 00000000000077a0 T _libintl_setlocale
 00000000000165c2 s _libintl_setlocale.cold
@@ -188,7 +188,7 @@
 00000000000165a6 s _libintl_textdomain.cold
 000000000001b700 D _libintl_version
 000000000001b808 b _locale_alias_path.1
-00000000000083a0 t _locale_charset
+00000000000083a0 T _locale_charset
 00000000000170e0 s _locales_with_principal_language
 0000000000017520 s _locales_with_principal_territory
 000000000001b360 d _lock
@@ -208,7 +208,7 @@
                  U _munmap
 000000000001b760 d _mutex
                  U _newlocale
-0000000000008240 t _ngettext
+0000000000008240 T _ngettext
                  U _nl_langinfo
 000000000001b818 b _nmap
 000000000001b7a0 d _once.0
@@ -270,7 +270,7 @@
                  U _strtoul
 000000000001b8c0 b _struniq_hash_table
 000000000001b720 d _struniq_lock
-0000000000008270 t _textdomain
+0000000000008270 T _textdomain
                  U _tfind
 0000000000004d40 t _transcmp
 000000000001b5e0 d _tree_lock

All the important symbols are correctly exposed.

Bug: https://bugs.gentoo.org/906507
Closes: https://github.com/gentoo/gentoo/pull/31803
Signed-off-by: Benda Xu <heroxbd@gentoo.org>
2023-07-08 23:22:34 +08:00
..
2023-05-25 21:57:16 +02:00
2023-05-25 21:53:25 +02:00
2023-05-25 22:00:32 +02:00
2022-12-20 22:00:10 +01:00
2023-06-10 11:38:36 +02:00
2023-07-06 03:10:40 +01:00
2023-02-17 07:21:10 +00:00
2023-05-16 18:28:55 +02:00
2023-06-01 04:53:25 +01:00
2023-06-18 12:02:00 -07:00
2023-05-24 21:41:33 +02:00
2023-05-25 21:49:16 +02:00
2023-04-22 17:53:17 +01:00
…
2023-04-21 09:56:16 +01:00
2023-04-30 09:53:42 +02:00
2023-06-26 20:27:27 +01:00
2023-02-14 10:23:18 -08:00
2023-05-16 02:52:13 +01:00
2023-06-03 11:42:41 +02:00
2023-05-25 21:49:16 +02:00
…
2023-05-20 08:31:40 +02:00
2023-06-29 09:41:17 +03:00
…
2023-06-08 12:50:16 +02:00
2023-05-25 08:16:03 -05:00
…
2023-01-13 14:35:27 +01:00
2023-05-25 21:49:16 +02:00
2023-05-17 17:54:46 -04:00
…
2023-05-24 21:41:33 +02:00
2023-05-25 21:57:16 +02:00
2023-06-05 15:35:57 +02:00
2023-01-14 13:51:19 +01:00
…
2023-05-22 21:46:48 -07:00
2023-06-14 03:44:25 +01:00
2023-06-03 16:13:41 +03:00
2023-07-07 03:12:50 +01:00
2023-05-25 21:53:25 +02:00
2023-03-26 07:21:06 +01:00
2023-07-07 23:53:14 +02:00
2023-03-17 11:06:11 +02:00
2023-06-25 15:11:21 +02:00
2023-05-01 14:39:04 +02:00
2023-05-25 21:49:16 +02:00
2023-05-28 20:38:13 +02:00
2023-04-03 08:10:29 -05:00
2023-05-27 18:01:24 -04:00
2023-06-01 07:36:09 +01:00
…
2023-01-13 18:15:26 +01:00
2022-12-21 22:25:15 +00:00
2023-05-25 21:57:16 +02:00
2023-05-14 21:46:40 +02:00
2023-05-24 21:41:33 +02:00
2023-01-03 15:49:06 +01:00
2022-12-03 21:36:53 -05:00
2023-05-03 09:57:39 +02:00
2023-05-24 21:41:33 +02:00
2023-05-25 22:00:32 +02:00
2023-05-25 22:00:32 +02:00
2023-06-25 15:14:26 +02:00
2023-06-25 15:13:23 +02:00
2023-05-03 19:38:02 +02:00
2023-06-13 22:46:47 +01:00
2023-06-19 22:26:29 +01:00
2023-05-11 02:21:34 +01:00
2023-05-25 21:57:16 +02:00
2022-12-21 22:25:16 +00:00
2023-02-24 15:27:12 +01:00
2023-06-05 15:35:57 +02:00
2023-03-09 06:17:24 +00:00
2023-05-27 18:01:25 -04:00
2022-12-21 22:25:17 +00:00
2023-05-25 21:49:16 +02:00
2023-05-03 19:38:02 +02:00
2023-05-25 22:00:32 +02:00
2023-06-29 07:17:15 +01:00
2023-05-03 11:16:23 -07:00
2023-02-03 16:05:21 +01:00
2022-12-15 17:30:20 +01:00
2023-05-25 21:57:16 +02:00
2023-06-03 11:42:41 +02:00
2023-06-03 11:42:41 +02:00
2023-01-10 12:17:39 -06:00
2023-05-24 21:41:33 +02:00
2023-05-11 10:01:37 +03:00
2023-04-05 15:06:55 +01:00
2023-05-25 21:57:16 +02:00
2023-06-18 13:04:28 +02:00
2023-06-04 12:37:14 +02:00
2023-06-08 12:50:16 +02:00
2023-03-04 01:00:41 +01:00
2023-04-29 17:08:42 +02:00
2023-06-02 02:53:35 -04:00
2023-05-04 08:09:48 -05:00
2023-05-25 21:57:16 +02:00
2023-07-02 19:45:38 +03:00
2023-03-08 18:25:16 +02:00
2023-03-05 04:11:46 +00:00
2023-06-08 23:34:31 +01:00
2023-05-20 09:15:09 +02:00
2022-12-24 09:58:57 +01:00
2023-05-25 21:57:16 +02:00
2023-05-25 21:49:16 +02:00
2023-05-16 06:44:56 +01:00
2022-12-21 22:25:11 +00:00
2023-05-22 08:57:39 +02:00
2023-02-27 11:04:08 +02:00
2023-02-22 09:12:25 +02:00
2023-07-05 00:17:07 +02:00
2023-02-01 10:52:47 +01:00
2023-07-05 00:17:08 +02:00
2023-02-01 20:26:36 +01:00
…
2023-05-20 15:10:16 +03:00
…
2023-06-08 12:50:15 +02:00
2023-03-04 17:32:10 +01:00
2023-01-20 23:37:28 +01:00
2023-04-15 03:17:09 +01:00
2023-05-27 07:12:12 +01:00
2023-05-24 21:41:33 +02:00
2023-03-24 23:18:36 -04:00
…
2023-06-08 12:50:15 +02:00
2023-05-24 21:41:33 +02:00
2023-05-25 21:53:25 +02:00
2022-12-24 10:47:18 +01:00
2023-01-20 19:31:58 +02:00
2023-07-05 02:14:27 +01:00
2023-05-25 21:53:25 +02:00
2023-01-21 08:41:08 +02:00
2022-12-21 22:25:42 +00:00
…