[librsb] 03/03: d/p/fix-path-of-mtx-files.patch: New patch

Rafael Laboissiere rafael at debian.org
Sat Oct 8 15:46:42 UTC 2016


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

rafael pushed a commit to branch master
in repository librsb.

commit bb9e5afd2baa8433f0d13026f7e61770fd2f059a
Author: Rafael Laboissiere <rafael at debian.org>
Date:   Sat Oct 8 08:15:16 2016 -0300

    d/p/fix-path-of-mtx-files.patch: New patch
---
 debian/patches/fix-path-of-mtx-files.patch | 63 ++++++++++++++++++++++++++++++
 debian/patches/series                      |  1 +
 2 files changed, 64 insertions(+)

diff --git a/debian/patches/fix-path-of-mtx-files.patch b/debian/patches/fix-path-of-mtx-files.patch
new file mode 100644
index 0000000..aaa52ed
--- /dev/null
+++ b/debian/patches/fix-path-of-mtx-files.patch
@@ -0,0 +1,63 @@
+Description: Fix the path of the *.mtx files in the examples
+Author: Rafael Laboissiere <rafael at debian.org>
+Forwarded: no
+Last-Update: 2016-10-08
+
+--- librsb-1.2.0-rc5.orig/examples/io-spblas.c
++++ librsb-1.2.0-rc5/examples/io-spblas.c
+@@ -40,7 +40,7 @@ int main(const int argc, char * const ar
+ #else /* RSB_NUMERICAL_TYPE_DOUBLE */
+ 	blas_sparse_matrix A = blas_invalid_handle;
+ 	rsb_type_t typecode = RSB_NUMERICAL_TYPE_DOUBLE;
+-	rsb_char_t * filename = argc > 1 ? argv[1] : "../pd.mtx";
++	rsb_char_t * filename = argc > 1 ? argv[1] : "pd.mtx";
+ 
+ 	printf("Hello, RSB!\n");
+ 	if((rsb_perror(NULL,
+--- librsb-1.2.0-rc5.orig/examples/transpose.c
++++ librsb-1.2.0-rc5/examples/transpose.c
+@@ -86,7 +86,7 @@ int main(const int argc, char * const ar
+ 	rsb_mtx_free(mtxAp);
+ 
+ 	/* doing the same after load from file */
+-	mtxAp = rsb_file_mtx_load("../pd.mtx",
++	mtxAp = rsb_file_mtx_load("pd.mtx",
+ 		RSB_FLAG_NOFLAGS,typecode,NULL);
+ 	if(!mtxAp)
+ 	{
+@@ -102,7 +102,7 @@ int main(const int argc, char * const ar
+ 
+ 	/* one can see dimensions in advance, also */
+ 	if(RSB_ERR_NO_ERROR!=(errval =
+-		rsb_file_mtx_get_dims("../pd.mtx",&nrA,&ncA,&nnzA,NULL)))
++		rsb_file_mtx_get_dims("pd.mtx",&nrA,&ncA,&nnzA,NULL)))
+ 	{
+ 		if(errval != RSB_ERR_UNSUPPORTED_FEATURE)
+ 			goto err;
+@@ -119,7 +119,7 @@ int main(const int argc, char * const ar
+ 
+ 	/* also vectors can be loaded */
+ 	if(RSB_ERR_NO_ERROR!=(errval = 
+-		rsb_file_vec_load("../vf.mtx",typecode,NULL,&vl )))
++		rsb_file_vec_load("vf.mtx",typecode,NULL,&vl )))
+ 		goto err;
+ 	/* we expecy vf.mtx to be 6 rows long */
+ 	if( vl != 6 )
+@@ -128,7 +128,7 @@ int main(const int argc, char * const ar
+ 	}
+ 
+ 	if(RSB_ERR_NO_ERROR!=(errval = 
+-		rsb_file_vec_load("../vf.mtx",typecode,XV, NULL )))
++		rsb_file_vec_load("vf.mtx",typecode,XV, NULL )))
+ 		goto err;
+ 
+ 	/* matrices can be rendered from file to a pixelmap as well */
+@@ -136,7 +136,7 @@ int main(const int argc, char * const ar
+ 		unsigned char pixmap[3*2*2];
+ 
+ 		if(RSB_ERR_NO_ERROR!=(errval =
+-		rsb_file_mtx_rndr(pixmap,"../pd.mtx",2,2,2,RSB_MARF_RGB)))
++		rsb_file_mtx_rndr(pixmap,"pd.mtx",2,2,2,RSB_MARF_RGB)))
+ 			goto err;
+ 	}
+ 
diff --git a/debian/patches/series b/debian/patches/series
index f3be727..81da332 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 use-shared-lib.patch
+fix-path-of-mtx-files.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/librsb.git



More information about the debian-science-commits mailing list