Your message dated Tue, 20 Nov 2018 22:24:31 +0000
with message-id <e1gperb-000hq6...@fasolo.debian.org>
and subject line Bug#902714: fixed in minieigen 0.50.3+dfsg1-6
has caused the Debian Bug report #902714,
regarding minieigen: FTBFS with Boost >= 1.65
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
902714: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=902714
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: minieigen
Version: 0.50.3+dfsg1-5
Severity: wishlist
Tags: ftbfs patch

Hi Maintainer

The attached patch from upstream allows minieigen to build with recent
versions of Boost.
Severity is wishlist since Debian are stuck with Boost 1.62.

Regards
Graham
Description: Make minieigen more compliant with user defined data types
 Remove std::abs from code, use Eigen::NumTraits instead of
 boost::is_complex to check if data type is complex
Origin: upstream, https://github.com/eudoxos/minieigen/commit/7bd0a2e823333477a2172b428a3801d9cae0800f
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/minieigen/+bug/1765330
Author: Jeb Collins <jbcol...@gmail.com>
Last-Update: 2016-02-17

--- a/src/visitors.hpp
+++ b/src/visitors.hpp
@@ -104,8 +104,8 @@
 	template<typename Scalar2> static MatrixBaseT __div__scalar(const MatrixBaseT& a, const Scalar2& scalar){ return a/scalar; }
 	template<typename Scalar2> static MatrixBaseT __idiv__scalar(MatrixBaseT& a, const Scalar2& scalar){ a/=scalar; return a; }
 
-	template<typename Scalar, class PyClass> static	void visit_reductions_noncomplex(PyClass& cl, typename boost::enable_if<boost::is_complex<Scalar> >::type* dummy = 0){ /* do nothing*/ }
-	template<typename Scalar, class PyClass> static	void visit_reductions_noncomplex(PyClass& cl, typename boost::disable_if<boost::is_complex<Scalar> >::type* dummy = 0){
+	template<typename Scalar, class PyClass> static	void visit_reductions_noncomplex(PyClass& cl, typename boost::enable_if_c<Eigen::NumTraits<Scalar>::IsComplex >::type* dummy = 0){ /* do nothing*/ }
+	template<typename Scalar, class PyClass> static	void visit_reductions_noncomplex(PyClass& cl, typename boost::disable_if_c<Eigen::NumTraits<Scalar>::IsComplex >::type* dummy = 0){
 		// must be wrapped since there are overloads:
 		//   maxCoeff(), maxCoeff(IndexType*), maxCoeff(IndexType*,IndexType*)
 		cl
@@ -118,8 +118,8 @@
 
 	// we want to keep -0 (rather than replacing it by 0), but that does not work for complex numbers
 	// hence two versions
-	template<typename Scalar> static bool prune_element(const Scalar& num, RealScalar absTol, typename boost::disable_if<boost::is_complex<Scalar> >::type* dummy=0){ return std::abs(num)<=absTol || num!=-0; }
-	template<typename Scalar> static bool prune_element(const Scalar& num, RealScalar absTol, typename boost::enable_if<boost::is_complex<Scalar> >::type* dummy=0){ return std::abs(num)<=absTol; }
+	template<typename Scalar> static bool prune_element(const Scalar& num, RealScalar absTol, typename boost::disable_if_c<Eigen::NumTraits<Scalar>::IsComplex >::type* dummy=0){using namespace std; return abs(num)<=absTol || num!=-0; }
+	template<typename Scalar> static bool prune_element(const Scalar& num, RealScalar absTol, typename boost::enable_if_c<Eigen::NumTraits<Scalar>::IsComplex >::type* dummy=0){using namespace std; return abs(num)<=absTol; }
 	
 	static MatrixBaseT pruned(const MatrixBaseT& a, double absTol=1e-6){ // typename MatrixBaseT::Scalar absTol=1e-6){
 		MatrixBaseT ret(MatrixBaseT::Zero(a.rows(),a.cols()));
@@ -358,9 +358,9 @@
 		visit_if_decompositions_meaningful<Scalar,PyClass>(cl);
 	}
 	// for complex numbers, do nothing
-	template<typename Scalar, class PyClass> static	void visit_if_decompositions_meaningful(PyClass& cl, typename boost::enable_if<boost::is_complex<Scalar> >::type* dummy = 0){ /* do nothing */ }
+	template<typename Scalar, class PyClass> static	void visit_if_decompositions_meaningful(PyClass& cl, typename boost::enable_if_c<Eigen::NumTraits<Scalar>::IsComplex >::type* dummy = 0){ /* do nothing */ }
 	// for non-complex numbers, define decompositions
-	template<typename Scalar, class PyClass> static	void visit_if_decompositions_meaningful(PyClass& cl, typename boost::disable_if<boost::is_complex<Scalar> >::type* dummy = 0){
+	template<typename Scalar, class PyClass> static	void visit_if_decompositions_meaningful(PyClass& cl, typename boost::disable_if_c<Eigen::NumTraits<Scalar>::IsComplex >::type* dummy = 0){
 		cl
 		.def("jacobiSVD",&MatrixVisitor::jacobiSVD,"Compute SVD decomposition of square matrix, retuns (U,S,V) such that self=U*S*V.transpose()")
 		.def("svd",&MatrixVisitor::jacobiSVD,"Alias for :obj:`jacobiSVD`.")

--- End Message ---
--- Begin Message ---
Source: minieigen
Source-Version: 0.50.3+dfsg1-6

We believe that the bug you reported is fixed in the latest version of
minieigen, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 902...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Anton Gladky <gl...@debian.org> (supplier of updated minieigen package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 20 Nov 2018 22:45:51 +0100
Source: minieigen
Binary: python-minieigen python3-minieigen
Architecture: source
Version: 0.50.3+dfsg1-6
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers 
<debian-science-maintain...@lists.alioth.debian.org>
Changed-By: Anton Gladky <gl...@debian.org>
Description:
 python-minieigen - Wrapper of parts of the Eigen library (Python 2)
 python3-minieigen - Wrapper of parts of the Eigen library (Python 3)
Closes: 902714
Changes:
 minieigen (0.50.3+dfsg1-6) unstable; urgency=medium
 .
   [ Jeb Collins ]
   * [e46ccf5] Make minieigen more compliant with user defined data types.
               (Closes: #902714)
 .
   [ Anton Gladky ]
   * [e1d1977] Apply cme fix dpkg
   * [da1b561] Fix FTBFS against newer boost versions
   * [0797929] Remove deprecated fields in d/control
   * [b62da98] Switch to compat-level 11
   * [e39ee99] Use python3-sphinx instead of python-sphinx
Checksums-Sha1:
 46889452081776b89182883ac49050792e91fc92 2252 minieigen_0.50.3+dfsg1-6.dsc
 12360432e5a5a6f67dc42beade570688890f852c 6628 
minieigen_0.50.3+dfsg1-6.debian.tar.xz
 db726c833ddf624623f4448e824ba090f388534b 5226 
minieigen_0.50.3+dfsg1-6_source.buildinfo
Checksums-Sha256:
 56add58b8fbdf92b72041f5a3eb21ff4fbf091676d5b041aa4bd0474d937cc54 2252 
minieigen_0.50.3+dfsg1-6.dsc
 eea11bd7c46e5b7c28dae4b454f1f47f2dad83e1a8694e34ed9ebd155f867a16 6628 
minieigen_0.50.3+dfsg1-6.debian.tar.xz
 b80fdf2bb1e8531d2a6f96f1e6645c4cfcac5427b98faa43fd7c054510fecc4e 5226 
minieigen_0.50.3+dfsg1-6_source.buildinfo
Files:
 5cec247855ea92eed846f29c2bcf4daa 2252 libs optional 
minieigen_0.50.3+dfsg1-6.dsc
 aebfdd8207d7654d800cb57cdf7bb919 6628 libs optional 
minieigen_0.50.3+dfsg1-6.debian.tar.xz
 a920d5c656ed074c87b0213c9b60763b 5226 libs optional 
minieigen_0.50.3+dfsg1-6_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEu71F6oGKuG/2fnKF0+Fzg8+n/wYFAlv0gO4ACgkQ0+Fzg8+n
/wYqbQ/9EKJSna4v7KEChXbu0vjYfAB+p9dYTVAgJ+0zRy3WNjVb6BXxKyai4NCQ
B62AUPwTnWlAIAYhQQLHp836urSpNBpYtPXDtDSC7vJHMPFItcaUa69hVSB6rqxu
qwFG1UKi/eX8oBxmJvOCz+njFxK/VKBCstiYlhh4kcOQF5t9fIoYe1Bn7LUaIpSx
ZlpZtaOozppJCTzp0WNlmZTLzr60tDNeJHRmA8QeT/EBEhZ6acpvi9IXa/ct7mDD
rV8CrEp1PfjTU0PH904kJ/o1ZdvGbKenXEJWE62Q9vDMu9eVbEB1l4iEYgvojzSF
GK8qnaEzVz3kB+5igm458u8cz2O+y+o1J5ZZWYRJIOfGXnb170VOw85AmLDPJxF4
ulyEIKueAzrYeq0K7xUbCVOUm00Se3+Rboy2dfwKukQL21zAFh8N+LzBmYm8ZxLf
OJtB/q8uCIhMuIjrPEEV5f4vPAEu8ZLyfklgEBaxxauOmSzoUpEUq2Katjm0fBo2
kHvpmfyWMcm1YfzJFIxKE9Z6ZQfHMxZYmS4/WbaTIWaOjO0unCYEwhq+mqj/mF5c
MrA0gofshblQvJ1t/9vKa6oyxCnT56lSi3vHZsUm3GS9NnAZzyif/8B6IYrDIui1
Xmi4S7n4dUjqQV2G5jVefpq7dy/xHWmZVX2IUNdCkeLwIoK3VEc=
=h/eg
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to