[med-svn] [Git][med-team/simka][master] Modify source with patch to attempt to fix compilation issue with temp arrays

Shayan Doust gitlab at salsa.debian.org
Mon Sep 16 15:16:51 BST 2019



Shayan Doust pushed to branch master at Debian Med / simka


Commits:
54e6989f by Shayan Doust at 2019-09-16T14:16:13Z
Modify source with patch to attempt to fix compilation issue with temp arrays

- - - - -


2 changed files:

- + debian/patches/fix_temp_arrays.patch
- debian/patches/series


Changes:

=====================================
debian/patches/fix_temp_arrays.patch
=====================================
@@ -0,0 +1,28 @@
+Index: simka/src/SimkaPotara.hpp
+===================================================================
+--- simka.orig/src/SimkaPotara.hpp	2019-09-16 14:57:11.000000000 +0100
++++ simka/src/SimkaPotara.hpp	2019-09-16 15:10:46.652115586 +0100
+@@ -902,7 +902,8 @@
+ 					}
+ 					else{
+ 						//sleep(1);
+-						nanosleep((const struct timespec[]){{0, 100000000L}}, NULL);
++						struct timespec ts = {0, 100000000L};
++						nanosleep(&ts, NULL);
+ 					}
+ 
+ 					if(i >= this->_bankNames.size()) break;
+Index: simka/src/minikc/SimkaCountProcess.cpp
+===================================================================
+--- simka.orig/src/minikc/SimkaCountProcess.cpp	2019-09-13 09:30:25.536451003 +0100
++++ simka/src/minikc/SimkaCountProcess.cpp	2019-09-16 15:11:31.264505521 +0100
+@@ -22,7 +22,8 @@
+ 	int nbTries = 0;
+ 	while(ret != 0){
+ 		ret = system(command.c_str());
+-		nanosleep((const struct timespec[]){{0, 10000000L}}, NULL);
++		struct timespec ts = {0, 100000000L};
++		nanosleep(&ts, NULL);
+ 		if(nbTries > 3) exit(1);
+ 		nbTries += 1;
+ 	}


=====================================
debian/patches/series
=====================================
@@ -1,3 +1,4 @@
+fix_temp_arrays.patch
 detailed_errors.patch
 fix_binary_path.patch
 fix_test_path.patch



View it on GitLab: https://salsa.debian.org/med-team/simka/commit/54e6989f9105ecbba606e165825fbeb7c5737875

-- 
View it on GitLab: https://salsa.debian.org/med-team/simka/commit/54e6989f9105ecbba606e165825fbeb7c5737875
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20190916/21c3aaa3/attachment-0001.html>


More information about the debian-med-commit mailing list