Package: clustalx / 2.1+lgpl-9

hardcode-accessory-file-locations.patch Patch series | download
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
27
28
29
30
31
32
33
34
35
36
Author: Charles Plessy <plessy@debian.org>
Forwarded: ClustalW <clustalw@ucd.ie>
Description: Hardcodes the location of help and color files to /usr/share/clustalx.
 When not patched, Clustal X will search for this files in the same
 directory as where the binary program is, but in Debian we do not
 distribute data in /usr/bin.
 .
 Alternatively, we could ship the XML files in /etc/clustal and treat them as
 configuration files. Please notify the Debian Med team if you think it is
 necessary.
--- clustalx-2.0.12.orig/ClustalQtParams.h
+++ clustalx-2.0.12/ClustalQtParams.h
@@ -13,9 +13,9 @@
 #include "clustalW/alignment/Alignment.h"
 #include <vector>
 
-static QString psColorFile = "colprot.xml";
-static QString psDNAFile = "coldna.xml";
-static QString psPrintFile = "colprint.xml";
+static QString psColorFile = "/usr/share/clustalx/colprot.xml";
+static QString psDNAFile = "/usr/share/clustalx/coldna.xml";
+static QString psPrintFile = "/usr/share/clustalx/colprint.xml";
 
 static const int BlackAndWhite = 1;
 static const int ColorsBackGround = 2;
--- clustalx-2.0.12.orig/HelpDisplayWidget.cpp
+++ clustalx-2.0.12/HelpDisplayWidget.cpp
@@ -19,7 +19,7 @@
 #include <QtGui>
 #include "Resources.h"
 
-const string HelpDisplayWidget::helpFileName = "clustalx.hlp";
+const string HelpDisplayWidget::helpFileName = "/usr/share/clustalx/clustalx.hlp";
 
 HelpDisplayWidget::HelpDisplayWidget(char helpPointer)
 {