pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
povray: Fix build after boost header deprecation.
Module Name: pkgsrc-wip
Committed By: Paul Ripke <stix%stix.id.au@localhost>
Pushed By: stix
Date: Sun Jan 9 01:30:24 2022 +1100
Changeset: 45106eec0e3521a887fed5887924d09e65ec013e
Modified Files:
povray/distinfo
Added Files:
povray/patches/patch-source_backend_scene_view.cpp
Log Message:
povray: Fix build after boost header deprecation.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=45106eec0e3521a887fed5887924d09e65ec013e
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
povray/distinfo | 4 ++--
povray/patches/patch-source_backend_scene_view.cpp | 24 ++++++++++++++++++++++
2 files changed, 26 insertions(+), 2 deletions(-)
diffs:
diff --git a/povray/distinfo b/povray/distinfo
index a463970034..6b51e3d6a5 100644
--- a/povray/distinfo
+++ b/povray/distinfo
@@ -1,13 +1,13 @@
$NetBSD: distinfo,v 1.3 2012/05/30 11:59:05 thomasklausner Exp $
-SHA1 (povray-3.7.0.10.tar.gz) = f64deda644b1d90eb8d00d99b8c96d15e053cdcd
-RMD160 (povray-3.7.0.10.tar.gz) = ee8749432450d3078395ce534a34246e83d527db
+BLAKE2s (povray-3.7.0.10.tar.gz) = 2f692538b72cfcd736a820f74c5d1d6cff1eb82d3af81b7e43c08614f36fd64d
SHA512 (povray-3.7.0.10.tar.gz) = fb947f2231f44c548b53ad27008e6a53909b375970c504938d7d7ea5dd336672891b50d3b41076598d8d025db5bcee01880d399094b4727d942d1c02a3594c47
Size (povray-3.7.0.10.tar.gz) = 52888495 bytes
SHA1 (patch-libraries_ilmbase_bootstrap) = c1b4ac87f145bf035000f9bb965e1e06e4f852e7
SHA1 (patch-libraries_ilmbase_configure) = 6edff9b95af7bcd558c1b5894fd7f8d292ab624c
SHA1 (patch-libraries_openexr_bootstrap) = 9f92a6f0bd2e8d6d59717ce5ed21f103df6a486c
SHA1 (patch-libraries_openexr_configure) = 5d088bb8aa899180a78c03c979111f79b2b0ebb4
+SHA1 (patch-source_backend_scene_view.cpp) = 2147efdda7115346ae6ea9ef53f18c4be4a77658
SHA1 (patch-source_base_image_image.cpp) = 7ccc58e5c80a61e3cbf5d18dec60eea7f08f75a4
SHA1 (patch-unix_configure.ac) = f5c767f3f22fa83414bfe75e4aa6aa37d1c0b186
SHA1 (patch-unix_prebuild.sh) = 996969b7aa7085c65371d51a21cfcd7f0fd0a169
diff --git a/povray/patches/patch-source_backend_scene_view.cpp b/povray/patches/patch-source_backend_scene_view.cpp
new file mode 100644
index 0000000000..0c400c4561
--- /dev/null
+++ b/povray/patches/patch-source_backend_scene_view.cpp
@@ -0,0 +1,24 @@
+$NetBSD$
+
+Work around a deprecated boost header.
+
+--- source/backend/scene/view.cpp.orig 2021-07-08 09:56:01.000000000 +0000
++++ source/backend/scene/view.cpp
+@@ -31,7 +31,7 @@
+
+ #include <boost/thread.hpp>
+ #include <boost/bind.hpp>
+-#include <boost/math/common_factor.hpp>
++#include <boost/integer/common_factor_rt.hpp>
+
+ // frame.h must always be the first POV file included (pulls in platform config)
+ #include "backend/frame.h"
+@@ -798,7 +798,7 @@ void View::StartRender(POVMS_Object& ren
+ viewData.renderBlockStep %= (viewData.blockWidth*viewData.blockHeight);
+ if (!viewData.renderBlockStep)
+ viewData.renderBlockStep = (viewData.blockWidth*viewData.blockHeight);
+- while(boost::math::gcd((long)viewData.renderBlockStep,(long)(viewData.blockWidth*viewData.blockHeight))>1)
++ while(boost::integer::gcd((long)viewData.renderBlockStep,(long)(viewData.blockWidth*viewData.blockHeight))>1)
+ viewData.renderBlockStep--;
+ }
+
Home |
Main Index |
Thread Index |
Old Index