File 0001-Use-experimental-filesystem.patch of Package tahoma2d

diff -Naur tahoma2d-org/toonz/sources/toonzfarm/tfarm/CMakeLists.txt tahoma2d-filesystem/toonz/sources/toonzfarm/tfarm/CMakeLists.txt
--- tahoma2d-org/toonz/sources/toonzfarm/tfarm/CMakeLists.txt	2025-04-10 12:04:43.720565716 +0200
+++ tahoma2d-filesystem/toonz/sources/toonzfarm/tfarm/CMakeLists.txt	2025-04-10 17:01:40.384169819 +0200
@@ -52,6 +52,7 @@
     add_dependencies(tfarm tnzcore tnzbase toonzlib tnzext)
 elseif(BUILD_ENV_UNIXLIKE)
     _find_toonz_library(EXTRA_LIBS "tnzcore;tnzbase;toonzlib;tnzext")
+        set(EXTRA_LIBS ${EXTRA_LIBS} -lstdc++fs)
     if(BUILD_TARGET_WIN)
         set(EXTRA_LIBS ${EXTRA_LIBS} -lws2_32)
     endif()
diff -Naur tahoma2d-org/toonz/sources/toonzfarm/tfarm/tfarmtask.cpp tahoma2d-filesystem/toonz/sources/toonzfarm/tfarm/tfarmtask.cpp
--- tahoma2d-org/toonz/sources/toonzfarm/tfarm/tfarmtask.cpp	2025-04-10 12:04:43.724565769 +0200
+++ tahoma2d-filesystem/toonz/sources/toonzfarm/tfarm/tfarmtask.cpp	2025-04-10 16:32:51.734114556 +0200
@@ -30,7 +30,7 @@
 // 2017-04-15.
 #include <netdb.h>      // gethostbyname
 #include <arpa/inet.h>  // inet_ntoa
-#include <filesystem>
+#include <experimental/filesystem>
 #endif
 
 //*************************************************************************
@@ -381,7 +381,7 @@
   return "Contents/MacOS/" + name;
 #else
   QString appPath =
-      QString::fromStdString(std::filesystem::canonical("/proc/self/exe"));
+      QString::fromStdString(std::experimental::filesystem::canonical("/proc/self/exe"));
   TFilePath path(appPath);
   return path.getParentDir().getQString() + "/" + name;
 #endif
diff -Naur tahoma2d-org/toonz/sources/toonzfarm/tfarmserver/tfarmserver.cpp tahoma2d-filesystem/toonz/sources/toonzfarm/tfarmserver/tfarmserver.cpp
--- tahoma2d-org/toonz/sources/toonzfarm/tfarmserver/tfarmserver.cpp	2025-04-10 12:04:43.740565978 +0200
+++ tahoma2d-filesystem/toonz/sources/toonzfarm/tfarmserver/tfarmserver.cpp	2025-04-10 16:58:40.701968262 +0200
@@ -30,7 +30,7 @@
 #include <sys/param.h>
 #include <unistd.h>
 #ifndef MACOSX
-#include <filesystem>
+#include <experimental/filesystem>
 #endif
 #endif
 
@@ -385,7 +385,7 @@
   return "\"./Contents/MacOS/" + name + "\" ";
 #else
   QString appPath =
-      QString::fromStdString(std::filesystem::canonical("/proc/self/exe"));
+      QString::fromStdString(std::experimental::filesystem::canonical("/proc/self/exe"));
   TFilePath path(appPath);
   return path.getParentDir().getQString() + "/" + name;
 #endif
openSUSE Build Service is sponsored by