Projects
Multimedia
synfig
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 19
View file
synfig.spec
Changed
@@ -38,6 +38,8 @@ Source0: https://sourceforge.net/projects/synfig/files/releases/%{version}/source/%{name}-%{version}.tar.gz # PATCH-FIX-OPENSUSE debug.patch avvissu@yandex.by -- Specify the `-g' option when building Patch0: synfig-1.0.2_debug.patch +Patch1: synfig.gcc7.patch +Patch2: synfig.magick7.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: boost-devel >= 1.53.0 @@ -143,6 +145,8 @@ %prep %setup -q %patch0 -p1 +%patch1 -p1 +%patch2 -p1 # Don't compile in DATE and TIME BUILDDATE=$(LC_ALL=C date -ur %{_sourcedir}/%{name}.changes +'%b %d %Y')
View file
synfig.gcc7.patch
Added
@@ -0,0 +1,37 @@ +--- a/src/synfig/rendering/software/function/array.h ++++ b/src/synfig/rendering/software/function/array.h +@@ -426,29 +426,29 @@ public: + }; + + void fill(const Type &x) const +- { for(Iterator i(*this); i; ++i) i.get_array().fill(x); } ++ { for(Iterator i(*this); i; ++i) i.get_array().template fill(x); } + + template<typename TT> + void assign(const Array<TT, Rank> &x) const + { + typename Array<TT, Rank>::Iterator j(x); +- for(Iterator i(*this); i && j; ++i, ++j) i.get_array().assign<TT>(j.get_array()); ++ for(Iterator i(*this); i && j; ++i, ++j) i.get_array().template assign<TT>(j.get_array()); + } + + template<typename function> + void process(const Type &x) const +- { for(Iterator i(*this); i; ++i) i.get_array().process<function>(x); } ++ { for(Iterator i(*this); i; ++i) i.get_array().template process<function>(x); } + + template<typename function, typename TT> + void process(const Array<TT, Rank> &x) const + { + typename Array<TT, Rank>::Iterator j(x); +- for(Iterator i(*this); i && j; ++i, ++j) i.get_array().process<function, TT>(j.get_array()); ++ for(Iterator i(*this); i && j; ++i, ++j) i.get_array().template process<function, TT>(j.get_array()); + } + + template<typename function> + void process() const +- { for(Iterator i(*this); i; ++i) i.get_array().process<function>(); } ++ { for(Iterator i(*this); i; ++i) i.get_array().template process<function>(); } + }; + + template<typename T>
View file
synfig.magick7.patch
Added
@@ -0,0 +1,68 @@ +--- a/src/modules/mod_magickpp/trgt_magickpp.cpp ++++ b/src/modules/mod_magickpp/trgt_magickpp.cpp +@@ -60,15 +60,15 @@ MagickCore::Image* copy_image_list(Conta + typedef typename Container::iterator Iter; + MagickCore::Image* previous = 0; + MagickCore::Image* first = NULL; +- MagickCore::ExceptionInfo exceptionInfo; +- MagickCore::GetExceptionInfo(&exceptionInfo); ++ MagickCore::ExceptionInfo *exceptionInfo; ++ exceptionInfo = MagickCore::AcquireExceptionInfo(); + for (Iter iter = container.begin(); iter != container.end(); ++iter) + { + MagickCore::Image* current; + + try + { +- current = CloneImage(iter->image(), 0, 0, Magick::MagickTrue, &exceptionInfo); ++ current = CloneImage(iter->image(), 0, 0, Magick::MagickTrue, exceptionInfo); + + if (!first) first = current; + +@@ -88,8 +88,8 @@ MagickCore::Image* copy_image_list(Conta + + magickpp_trgt::~magickpp_trgt() + { +- MagickCore::ExceptionInfo exceptionInfo; +- MagickCore::GetExceptionInfo(&exceptionInfo); ++ MagickCore::ExceptionInfo *exceptionInfo; ++ exceptionInfo = MagickCore::AcquireExceptionInfo(); + + try + { +@@ -103,7 +103,7 @@ magickpp_trgt::~magickpp_trgt() + image.fileName(filename); + try + { +- SetImageInfo(image.imageInfo(),Magick::MagickTrue,&exceptionInfo); ++ SetImageInfo(image.imageInfo(),Magick::MagickTrue,exceptionInfo); + can_adjoin = image.adjoin(); + } + catch(Magick::Warning warning) { +@@ -137,7 +137,7 @@ magickpp_trgt::~magickpp_trgt() + synfig::info("removing duplicate frames"); + try + { +- RemoveDuplicateLayers(&image_list, &exceptionInfo); ++ RemoveDuplicateLayers(&image_list, exceptionInfo); + } + catch(Magick::Warning warning) { + synfig::warning("exception '%s'", warning.what()); +@@ -149,7 +149,7 @@ magickpp_trgt::~magickpp_trgt() + synfig::info("optimizing layers"); + try + { +- image_list = OptimizeImageLayers(image_list,&exceptionInfo); ++ image_list = OptimizeImageLayers(image_list,exceptionInfo); + } + catch(Magick::Warning warning) { + synfig::warning("exception '%s'", warning.what()); +@@ -161,7 +161,7 @@ magickpp_trgt::~magickpp_trgt() + synfig::info("optimizing layer transparency"); + try + { +- OptimizeImageTransparency(image_list,&exceptionInfo); ++ OptimizeImageTransparency(image_list,exceptionInfo); + } + catch(Magick::Warning warning) { + synfig::warning("exception '%s'", warning.what());
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.