File: fix_binary_path.patch

package info (click to toggle)
simka 1.5.3-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,200 kB
  • sloc: cpp: 5,321; python: 672; sh: 386; makefile: 26
file content (26 lines) | stat: -rw-r--r-- 790 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Description: hard code binary path
 Simka gets the "simka" binary path from the command "simka", which is not the same as /usr/bin/simka. Hard code this path so that simka finds its binary.
Author: Shayan Doust <hello@shayandoust.me>
Last-Update: 2019-09-13
---

--- simka.orig/src/SimkaPotara.cpp
+++ simka/src/SimkaPotara.cpp
@@ -28,7 +28,7 @@
 */
 SimkaPotara::SimkaPotara(const string& execFilename)  : Tool ("Simka")
 {
-
+	
 	_execFilename = execFilename;
 
 	Simka::createOptionsParser(getParser());
@@ -151,7 +151,7 @@
         // We run the tool with the provided command line arguments.
 
 		//cout << argv[0] << endl;
-        SimkaPotara(string(argv[0])).run (argc, argv);
+        SimkaPotara(string("/usr/bin/simka")).run (argc, argv);
     }
     catch (Exception& e)
     {