[qmapshack] 07/09: Add patch to fix spelling errors.

Bas Couwenberg sebastic at debian.org
Tue Dec 13 18:11:25 UTC 2016


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch master
in repository qmapshack.

commit a4708d749ec99c9fcfac76ce590535113e55e939
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Tue Dec 13 18:17:35 2016 +0100

    Add patch to fix spelling errors.
---
 debian/changelog                     |   1 +
 debian/patches/series                |   1 +
 debian/patches/spelling-errors.patch | 118 +++++++++++++++++++++++++++++++++++
 3 files changed, 120 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 2607e75..479018c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ qmapshack (1.7.2-1) UNRELEASED; urgency=medium
   * Add libalglib-dev to build dependencies.
   * Add license & copyright for alglib.
   * Add patch to tweak FindALGLIB.cmake for Debian package.
+  * Add patch to fix spelling errors.
 
  -- Bas Couwenberg <sebastic at debian.org>  Tue, 13 Dec 2016 17:04:24 +0100
 
diff --git a/debian/patches/series b/debian/patches/series
index 59ab622..6c83899 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 cmake-patch-to-find-alglib-on-RH-systems.patch
 alglib.patch
+spelling-errors.patch
diff --git a/debian/patches/spelling-errors.patch b/debian/patches/spelling-errors.patch
new file mode 100644
index 0000000..68c098c
--- /dev/null
+++ b/debian/patches/spelling-errors.patch
@@ -0,0 +1,118 @@
+Description: Fix spelling errors.
+ * dont    -> don't
+ * errror  -> error
+ * inernal -> internal
+Author: Bas Couwenberg <sebastic at debian.org>
+
+--- a/3rdparty/alglib/src/alglibinternal.cpp
++++ b/3rdparty/alglib/src/alglibinternal.cpp
+@@ -7056,8 +7056,8 @@ void matrixvectormultiply(/* Real    */
+         {
+             return;
+         }
+-        ae_assert(j2-j1==ix2-ix1, "MatrixVectorMultiply: A and X dont match!", _state);
+-        ae_assert(i2-i1==iy2-iy1, "MatrixVectorMultiply: A and Y dont match!", _state);
++        ae_assert(j2-j1==ix2-ix1, "MatrixVectorMultiply: A and X don't match!", _state);
++        ae_assert(i2-i1==iy2-iy1, "MatrixVectorMultiply: A and Y don't match!", _state);
+         
+         /*
+          * beta*y
+@@ -7093,8 +7093,8 @@ void matrixvectormultiply(/* Real    */
+         {
+             return;
+         }
+-        ae_assert(i2-i1==ix2-ix1, "MatrixVectorMultiply: A and X dont match!", _state);
+-        ae_assert(j2-j1==iy2-iy1, "MatrixVectorMultiply: A and Y dont match!", _state);
++        ae_assert(i2-i1==ix2-ix1, "MatrixVectorMultiply: A and X don't match!", _state);
++        ae_assert(j2-j1==iy2-iy1, "MatrixVectorMultiply: A and Y don't match!", _state);
+         
+         /*
+          * beta*y
+--- a/3rdparty/alglib/src/ap.cpp
++++ b/3rdparty/alglib/src/ap.cpp
+@@ -6276,11 +6276,11 @@ void alglib::ae_vector_wrapper::assign(c
+         // Assignment to proxy object
+         //
+         if( rhs.p_vec==NULL )
+-            throw alglib::ap_error("ALGLIB: incorrect assignment to array (sizes dont match)");
++            throw alglib::ap_error("ALGLIB: incorrect assignment to array (sizes don't match)");
+         if( rhs.p_vec->datatype!=p_vec->datatype )
+-            throw alglib::ap_error("ALGLIB: incorrect assignment to array (types dont match)");
++            throw alglib::ap_error("ALGLIB: incorrect assignment to array (types don't match)");
+         if( rhs.p_vec->cnt!=p_vec->cnt )
+-            throw alglib::ap_error("ALGLIB: incorrect assignment to array (sizes dont match)");
++            throw alglib::ap_error("ALGLIB: incorrect assignment to array (sizes don't match)");
+         memcpy(p_vec->ptr.p_ptr, rhs.p_vec->ptr.p_ptr, p_vec->cnt*alglib_impl::ae_sizeof(p_vec->datatype));
+     }
+ }
+@@ -6684,13 +6684,13 @@ void alglib::ae_matrix_wrapper::assign(c
+         //
+         ae_int_t i;
+         if( rhs.p_mat==NULL )
+-            throw alglib::ap_error("ALGLIB: incorrect assignment to array (sizes dont match)");
++            throw alglib::ap_error("ALGLIB: incorrect assignment to array (sizes don't match)");
+         if( rhs.p_mat->datatype!=p_mat->datatype )
+-            throw alglib::ap_error("ALGLIB: incorrect assignment to array (types dont match)");
++            throw alglib::ap_error("ALGLIB: incorrect assignment to array (types don't match)");
+         if( rhs.p_mat->rows!=p_mat->rows )
+-            throw alglib::ap_error("ALGLIB: incorrect assignment to array (sizes dont match)");
++            throw alglib::ap_error("ALGLIB: incorrect assignment to array (sizes don't match)");
+         if( rhs.p_mat->cols!=p_mat->cols )
+-            throw alglib::ap_error("ALGLIB: incorrect assignment to array (sizes dont match)");
++            throw alglib::ap_error("ALGLIB: incorrect assignment to array (sizes don't match)");
+         for(i=0; i<p_mat->rows; i++)
+             memcpy(p_mat->ptr.pp_void[i], rhs.p_mat->ptr.pp_void[i], p_mat->cols*alglib_impl::ae_sizeof(p_mat->datatype));
+     }
+--- a/3rdparty/alglib/src/dataanalysis.cpp
++++ b/3rdparty/alglib/src/dataanalysis.cpp
+@@ -26328,7 +26328,7 @@ static void mlpbase_mlphessianbatchinter
+                 
+                 /*
+                  * For a softmax + squared error we have expression
+-                 * far beyond human imagination so we dont even try
++                 * far beyond human imagination so we don't even try
+                  * to comment on it. Just enjoy the code...
+                  *
+                  * P.S. That's why "natural error" is called "natural" -
+--- a/3rdparty/alglib/src/interpolation.cpp
++++ b/3rdparty/alglib/src/interpolation.cpp
+@@ -19192,7 +19192,7 @@ REMARK:
+ 
+ Assume, that exist one root only at [A;B], else 
+ function may be work incorrectly.
+-The function dont check value A0,B0!
++The function don't check value A0,B0!
+ 
+  -- ALGLIB PROJECT --
+      Copyright 26.09.2011 by Bochkanov Sergey
+@@ -19953,7 +19953,7 @@ Result:
+          
+ REMARK:
+ 
+-The function dont check value A0,B0 and A1,B1!
++The function don't check value A0,B0 and A1,B1!
+ 
+  -- ALGLIB PROJECT --
+      Copyright 26.09.2011 by Bochkanov Sergey
+--- a/3rdparty/alglib/src/optimization.cpp
++++ b/3rdparty/alglib/src/optimization.cpp
+@@ -25144,7 +25144,7 @@ void qpbleicoptimize(convexquadraticmode
+                         sstate->tmp1.ptr.p_double[i] = sstate->solver.g.ptr.p_double[i]*s->ptr.p_double[i];
+                         v = v+ae_sqr(sstate->tmp0.ptr.p_double[i], _state);
+                     }
+-                    ae_assert(ae_fp_greater(v,(double)(0)), "QPBLEICOptimize: inernal errror (scaled direction is zero)", _state);
++                    ae_assert(ae_fp_greater(v,(double)(0)), "QPBLEICOptimize: internal error (scaled direction is zero)", _state);
+                     v = 1/ae_sqrt(v, _state);
+                     ae_v_muld(&sstate->tmp0.ptr.p_double[0], 1, ae_v_len(0,n-1), v);
+                     v = ae_v_dotproduct(&sstate->tmp0.ptr.p_double[0], 1, &sstate->tmp1.ptr.p_double[0], 1, ae_v_len(0,n-1));
+--- a/cmake/Modules/CMakeLists.txt
++++ b/cmake/Modules/CMakeLists.txt
+@@ -16,7 +16,7 @@ set(FILES_TO_REMOVE
+ 
+ install(SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/remove_files.cmake )
+ 
+-file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/remove_files.cmake "#generated by cmake, dont edit\n\n")
++file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/remove_files.cmake "#generated by cmake, don't edit\n\n")
+ foreach ( _current_FILE ${FILES_TO_REMOVE})
+    file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/remove_files.cmake "message(STATUS \"Removing ${module_install_dir}/${_current_FILE}\" )\n" )
+    file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/remove_files.cmake "exec_program( ${CMAKE_COMMAND} ARGS -E remove ${module_install_dir}/${_current_FILE} OUTPUT_VARIABLE _dummy)\n" )

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/qmapshack.git



More information about the Pkg-grass-devel mailing list