SHA256
1
0
forked from pool/hugin

Accepting request 1170135 from home:pgajdos

- fixed build with new boost
- added patches
  fix deprecated boost::filesystem::copy_option enum
  + hugin-deprecated-copy_option.patch

OBS-URL: https://build.opensuse.org/request/show/1170135
OBS-URL: https://build.opensuse.org/package/show/graphics/hugin?expand=0&rev=132
This commit is contained in:
Petr Gajdos 2024-04-25 10:43:47 +00:00 committed by Git OBS Bridge
parent 694c5b2ff5
commit 30fd3200b0
3 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,17 @@
diff -r 4b55f17c4e72 -r 4d081490b48a src/hugin_base/hugin_utils/filesystem.h
--- a/src/hugin_base/hugin_utils/filesystem.h Tue Mar 12 17:27:29 2024 +0100
+++ b/src/hugin_base/hugin_utils/filesystem.h Tue Mar 12 17:27:57 2024 +0100
@@ -64,6 +64,12 @@
#endif
#include <boost/filesystem.hpp>
namespace fs = boost::filesystem;
- #define OVERWRITE_EXISTING boost::filesystem::copy_option::overwrite_if_exists
+ #if BOOST_VERSION>=107400
+ // in Boost 1.74 and later filesystem::copy_option is deprecated
+ // use filesystem::copy_options instead
+ #define OVERWRITE_EXISTING boost::filesystem::copy_options::overwrite_existing
+ #else
+ #define OVERWRITE_EXISTING boost::filesystem::copy_option::overwrite_if_exists
+ #endif
#endif
#endif // _HUGIN_UTILS_FILESYSTEM_H

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu Apr 25 09:53:30 UTC 2024 - pgajdos@suse.com
- fixed build with new boost
- added patches
fix deprecated boost::filesystem::copy_option enum
+ hugin-deprecated-copy_option.patch
-------------------------------------------------------------------
Tue Jan 2 08:32:37 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>

View File

@ -31,6 +31,8 @@ Group: Productivity/Graphics/Other
URL: http://hugin.sourceforge.net/
Source: https://downloads.sourceforge.net/project/%{name}/%{name}/%{name}-%{mversion}/%{name}-%{version}.tar.bz2
Patch0: hugin.appdata.patch
# 8684:4d081490b48a
Patch1: hugin-deprecated-copy_option.patch
BuildRequires: Mesa-devel
BuildRequires: OpenEXR-devel
BuildRequires: cmake >= 3.1.0