Control: tags -1 + patch

Le samedi 26 septembre 2015 à 21:45 +0200, Sébastien Villemot a écrit :
> On Mon, 27 Jul 2015 10:55:40 +0200 Sébastien Villemot wrote:
> > Package: src:yade
> > Version: 1.14.0-5
> 
> > Your package fails to build against suitesparse 4.4, which is
> > available in
> > experimental.
> > 
> > A full build log is attached. The relevant part seems to be:
> > 
> >  /usr/include/eigen3/Eigen/src/CholmodSupport/CholmodSupport.h: In
> > function 'cholmod_sparse
> > Eigen::viewAsCholmod(Eigen::SparseMatrix<_Scalar, _Options,
> > _Index>&)':
> >  /usr/include/eigen3/Eigen/src/CholmodSupport/CholmodSupport.h:81:3
> > 7: error: 'UF_long' was not declared in this scope
> >     else if (internal::is_same<_Index,UF_long>::value)
> > 
> > Note that UF_long has been replaced by SuiteSparse_long in recent 
> > versions of
> > suitesparse.
> 
> I now realize that the bug lies in eigen3. Cloning accordingly.

I attach a patch for this issue. It should work with both suitesparse
4.2 (currently in sid) and 4.4 (to be uploaded soon).

Cheers,

-- 
 .''`.    Sébastien Villemot
: :' :    Debian Developer
`. `'     http://sebastien.villemot.name
  `-      GPG Key: 4096R/381A7594



Description: Compatibility fix with suitesparse >= 4.4
 The UF_long type has been replaced by SuiteSparse_long in recent versions of
 SuiteSparse.
Author: Sébastien Villemot <sebast...@debian.org>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=800101
Forwarded: no
Last-Update: 2015-09-30
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/Eigen/src/CholmodSupport/CholmodSupport.h
+++ b/Eigen/src/CholmodSupport/CholmodSupport.h
@@ -78,7 +78,7 @@ cholmod_sparse viewAsCholmod(SparseMatri
   {
     res.itype = CHOLMOD_INT;
   }
-  else if (internal::is_same<_StorageIndex,UF_long>::value)
+  else if (internal::is_same<_StorageIndex,SuiteSparse_long>::value)
   {
     res.itype = CHOLMOD_LONG;
   }

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
debian-science-maintainers mailing list
debian-science-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to