[Pkg-octave-commit] [SCM] Debian packaging for octave-communications branch, master, updated. f5d4b9419bf46e41197ea343c8afb2d10da903ee

Rafael Laboissiere rafael at laboissiere.net
Mon Mar 12 20:45:04 UTC 2012


The following commit has been merged in the master branch:
commit e178705a6c6ab8c12067d71b6f6cb93b1b17e0ed
Author: Rafael Laboissiere <rafael at laboissiere.net>
Date:   Mon Mar 12 17:35:23 2012 +0100

    Add patch for avoiding name clash with LU class (taken from upstream SVN)

diff --git a/debian/patches/LU-class-name-clash.patch b/debian/patches/LU-class-name-clash.patch
new file mode 100644
index 0000000..46c3ebe
--- /dev/null
+++ b/debian/patches/LU-class-name-clash.patch
@@ -0,0 +1,120 @@
+From: Thomas Sailer
+Description: Rename LU class to avoid a name clash with the LU class of octave 3.6.0
+Origin: upstream, http://octave.svn.sourceforge.net/viewvc/octave?view=revision&revision=9540
+Last-Update: 2012-03-12
+
+--- octave-communications-1.1.0.orig/src/galois.cc
++++ octave-communications-1.1.0/src/galois.cc
+@@ -882,7 +882,7 @@ galois::exp (void) const
+ template class base_lu <galois>;
+ 
+ void
+-LU::factor (const galois& a, const pivot_type& typ)
++galoisLU::factor (const galois& a, const pivot_type& typ)
+ {
+   int a_nr = a.rows ();
+   int a_nc = a.cols ();
+@@ -898,7 +898,7 @@ LU::factor (const galois& a, const pivot
+     int jp = j;
+ 
+     // Find the pivot and test for singularity
+-    if (ptype == LU::ROW) { 
++    if (ptype == galoisLU::ROW) { 
+       for (int i = j+1; i < a_nr; i++)
+ 	if (a_fact(i,j) > a_fact(jp,j))
+ 	  jp = i;
+@@ -911,7 +911,7 @@ LU::factor (const galois& a, const pivot
+     ipvt(j) = jp;
+ 
+     if (a_fact(jp,j) != 0) {
+-      if (ptype == LU::ROW) { 
++      if (ptype == galoisLU::ROW) { 
+ 	// Apply the interchange to columns 1:NC.
+ 	if (jp != j)
+ 	  for (int i = 0; i < a_nc; i++) {
+@@ -962,7 +962,7 @@ LU::factor (const galois& a, const pivot
+ }
+ 
+ galois
+-LU::L (void) const
++galoisLU::L (void) const
+ {
+   int a_nr = a_fact.rows ();
+   int a_nc = a_fact.cols ();
+@@ -981,7 +981,7 @@ LU::L (void) const
+ }
+ 
+ galois
+-LU::U (void) const
++galoisLU::U (void) const
+ {
+   int a_nr = a_fact.rows ();
+   int a_nc = a_fact.cols ();
+@@ -1049,7 +1049,7 @@ galois::determinant (int& info) const
+     info = 0;
+     retval(0,0) = 1;
+   } else {
+-    LU fact (*this);
++    galoisLU fact (*this);
+ 
+     if ( ! fact.singular()) {
+       galois A (fact.a_fact);
+@@ -1110,7 +1110,7 @@ galois::solve (const galois& b, int& inf
+     return galois();
+   } else if (nc > nr) {
+     // Under-determined system, use column interchanges.
+-    LU fact ((*this), LU::COL);
++    galoisLU fact ((*this), galoisLU::COL);
+ 
+     if (fact.singular()) {
+       info = -1;
+@@ -1173,7 +1173,7 @@ galois::solve (const galois& b, int& inf
+     }
+     
+   } else {
+-    LU fact (*this);
++    galoisLU fact (*this);
+ 
+     if (fact.singular()) {
+       info = -1;
+--- octave-communications-1.1.0.orig/src/galois.h
++++ octave-communications-1.1.0/src/galois.h
+@@ -131,7 +131,7 @@ public:
+ };
+ 
+ class
+-LU : public base_lu <galois>
++galoisLU : public base_lu <galois>
+ {
+   friend class galois;
+ public:
+@@ -141,15 +141,15 @@ public:
+     COL
+   };
+ 
+-  LU (void) : base_lu <galois> () { }
++  galoisLU (void) : base_lu <galois> () { }
+ 
+-  LU (const galois& a, const pivot_type& typ) { factor (a, typ); }
++  galoisLU (const galois& a, const pivot_type& typ) { factor (a, typ); }
+ 
+-  LU (const galois& a) { factor (a, LU::ROW); }
++  galoisLU (const galois& a) { factor (a, galoisLU::ROW); }
+ 
+-  LU (const LU& a) : base_lu <galois> (a) { }
++  galoisLU (const galoisLU& a) : base_lu <galois> (a) { }
+ 
+-  LU& operator = (const LU& a)
++  galoisLU& operator = (const galoisLU& a)
+     {
+       if (this != &a)
+ 	base_lu <galois> :: operator = (a);
+@@ -157,7 +157,7 @@ public:
+       return *this;
+     }
+ 
+-  ~LU (void) { }
++  ~galoisLU (void) { }
+ 
+   galois L (void) const;
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..c87d783
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+LU-class-name-clash.patch

-- 
Debian packaging for octave-communications



More information about the Pkg-octave-commit mailing list