git: 98f5e51bd30c - main - sysutils/fusefs-libs: fix build with lld 17

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Fri, 06 Oct 2023 17:50:49 UTC
The branch main has been updated by dim:

URL: https://cgit.FreeBSD.org/ports/commit/?id=98f5e51bd30cb1333834535dba6b5ddbc1d4fa99

commit 98f5e51bd30cb1333834535dba6b5ddbc1d4fa99
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2023-09-14 19:19:50 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2023-10-06 17:48:52 +0000

    sysutils/fusefs-libs: fix build with lld 17
    
    Some symbols in libfuse.so's linker version script are undefined when
    compiling for FreeBSD, which results in errors with lld >= 17. Comment
    out the unused symbols to work around these errors.
    
    PR:             273794
    Approved by:    maintainer timeout (2 weeks)
    MFH:            2023Q4
---
 .../files/patch-lib_fuse__versionscript            | 53 ++++++++++++++++++++++
 1 file changed, 53 insertions(+)

diff --git a/sysutils/fusefs-libs/files/patch-lib_fuse__versionscript b/sysutils/fusefs-libs/files/patch-lib_fuse__versionscript
new file mode 100644
index 000000000000..f287af348fce
--- /dev/null
+++ b/sysutils/fusefs-libs/files/patch-lib_fuse__versionscript
@@ -0,0 +1,53 @@
+--- lib/fuse_versionscript.orig	2019-01-04 13:33:33 UTC
++++ lib/fuse_versionscript
+@@ -9,15 +9,15 @@ FUSE_2.2 {
+ 		fuse_loop_mt;
+ 		fuse_loop_mt_proc;
+ 		fuse_main;
+-		fuse_main_compat1;
+-		fuse_main_compat2;
+-		fuse_mount_compat1;
+-		fuse_new_compat1;
+-		fuse_new_compat2;
++#		fuse_main_compat1;
++#		fuse_main_compat2;
++#		fuse_mount_compat1;
++#		fuse_new_compat1;
++#		fuse_new_compat2;
+ 		fuse_process_cmd;
+ 		fuse_read_cmd;
+ 		fuse_set_getcontext_func;
+-		fuse_setup_compat2;
++#		fuse_setup_compat2;
+ };
+ 
+ FUSE_2.4 {
+@@ -56,10 +56,10 @@ FUSE_2.5 {
+ 
+ FUSE_2.5 {
+ 	global:
+-		fuse_lowlevel_new_compat;
+-		fuse_main_real_compat22;
+-		fuse_mount_compat22;
+-		fuse_new_compat22;
++#		fuse_lowlevel_new_compat;
++#		fuse_main_real_compat22;
++#		fuse_mount_compat22;
++#		fuse_new_compat22;
+ 		fuse_opt_parse;
+ 		fuse_opt_add_opt;
+ 		fuse_opt_add_arg;
+@@ -69,10 +69,10 @@ FUSE_2.5 {
+ 		fuse_remove_signal_handlers;
+ 		fuse_reply_create;
+ 		fuse_reply_open;
+-		fuse_reply_open_compat;
++#		fuse_reply_open_compat;
+ 		fuse_reply_statfs;
+-		fuse_reply_statfs_compat;
+-		fuse_setup_compat22;
++#		fuse_reply_statfs_compat;
++#		fuse_setup_compat22;
+ 		fuse_set_signal_handlers;
+ } FUSE_2.4;
+