rekall.patch 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. Index: kbase/kb_about.cpp
  2. --- kbase/kb_about.cpp.orig 2005-09-30 19:37:17 +0200
  3. +++ kbase/kb_about.cpp 2006-01-15 13:33:36 +0100
  4. @@ -166,7 +166,7 @@
  5. static cchar *aboutText =
  6. "<qt>"
  7. "<p><b>RekallQT</b>: A QT database front end</p>"
  8. - "<p>Release %s</p>"
  9. + "<p>Release %1</p>"
  10. "<p>(C) 1999,2000,2001,2002,2003,2004,2005</p>"
  11. "</qt>"
  12. ;
  13. Index: kjs/kjs/date_object.cpp
  14. --- kjs/kjs/date_object.cpp.orig 2005-06-26 21:36:39 +0200
  15. +++ kjs/kjs/date_object.cpp 2006-01-15 13:28:21 +0100
  16. @@ -134,7 +134,7 @@
  17. static double timeZoneOffset(const struct tm *t)
  18. {
  19. -#if defined BSD || defined(__linux__) || defined(__APPLE__)
  20. +#if defined(BSD) || defined(__FreeBSD__) || defined(__linux__) || defined(__APPLE__)
  21. return -(t->tm_gmtoff / 60);
  22. #else
  23. # if defined(__BORLANDC__)
  24. @@ -665,7 +665,7 @@
  25. int utcOffset;
  26. if (utc) {
  27. time_t zero = 0;
  28. -#if defined BSD || defined(__linux__) || defined(__APPLE__)
  29. +#if defined(BSD) || defined(__FreeBSD__) || defined(__linux__) || defined(__APPLE__)
  30. struct tm t3;
  31. localtime_r(&zero, &t3);
  32. utcOffset = t3.tm_gmtoff;
  33. Index: libs/common/kb_locator_qt3.cpp
  34. --- libs/common/kb_locator_qt3.cpp.orig 2005-06-26 12:12:48 +0200
  35. +++ libs/common/kb_locator_qt3.cpp 2006-01-15 13:28:21 +0100
  36. @@ -26,8 +26,8 @@
  37. static QString rootdir = ROOTDIR ;
  38. -#define DATAPATH "/share/apps/rekallqt/"
  39. -#define DOCPATH "/share/doc/HTML/en/rekallqt/"
  40. +#define DATAPATH "/share/rekall/"
  41. +#define DOCPATH "/share/rekall/doc"
  42. /* locateFile : Locate a file of specified type */
  43. /* type : const char * : File type */
  44. Index: parts/report/kb_reportviewer.h
  45. --- parts/report/kb_reportviewer.h.orig 2004-12-20 12:00:59 +0100
  46. +++ parts/report/kb_reportviewer.h 2006-01-15 13:28:21 +0100
  47. @@ -15,6 +15,7 @@
  48. #include <qscrollview.h>
  49. #include <qguardedptr.h>
  50. +#include <qcombobox.h>
  51. #include "kb_classes.h"
  52. #include "kb_viewer.h"
  53. Index: scons/Makefile
  54. --- scons/Makefile.orig 2005-10-02 12:50:16 +0200
  55. +++ scons/Makefile 2006-01-15 13:28:21 +0100
  56. @@ -3,11 +3,9 @@
  57. install:
  58. PYTHONPATH=scons/ scons -Q install
  59. - [ `id -u` = 0 ] && ldconfig
  60. inst:
  61. PYTHONPATH=scons/ scons -Q install
  62. - [ `id -u` = 0 ] && ldconfig
  63. clean:
  64. PYTHONPATH=scons/ scons -Q --clean
  65. Index: scons/rkBuilder.py
  66. --- scons/rkBuilder.py.orig 2005-10-02 23:16:34 +0200
  67. +++ scons/rkBuilder.py 2006-01-15 13:44:57 +0100
  68. @@ -49,10 +49,10 @@
  69. if rkConfig.mode in [ 'qt3' ] :
  70. instDir = rkConfig.prefix
  71. binDir = destDir + os.path.join (instDir, 'bin')
  72. - libDir = destDir + os.path.join (instDir, 'lib')
  73. - pluginDir = destDir + os.path.join (instDir, 'lib')
  74. - appDir = destDir + os.path.join (instDir, 'share', 'apps', rkConfig.appName)
  75. - docDir = destDir + os.path.join (instDir, 'share', 'doc', 'HTML', 'en')
  76. + libDir = destDir + os.path.join (instDir, 'lib', rkConfig.appName)
  77. + pluginDir = destDir + os.path.join (instDir, 'lib', rkConfig.appName)
  78. + appDir = destDir + os.path.join (instDir, 'share', rkConfig.appName)
  79. + docDir = destDir + os.path.join (instDir, 'share', rkConfig.appName, 'doc')
  80. rekallServicesDir = os.path.join (appDir, 'services')
  81. rekallGUIDir = os.path.join (appDir, 'gui')
  82. @@ -302,10 +302,6 @@
  83. if self.m_type == typeLoadedLib :
  84. self.setDefine ('__KB_INITNAME', 'init_' + self.target())
  85. - if self.m_build not in [ buildMAC, buildWIN ] :
  86. - self.addLFlags ('-Wl,--no-undefined')
  87. - self.addCFlags ('-Wall')
  88. -
  89. if self.m_build in [ buildMAC ] :
  90. if self.m_type == typeSharedLib :
  91. self.addLFlags ('-Wl,-install_name,@executable_path/../Frameworks/%s.dylib' % (self.target()))
  92. @@ -336,6 +332,20 @@
  93. if self.m_build in [ buildQT3, buildGTK, buildMAC ] :
  94. self.setDefine ('ROOTDIR', '"\\"%s"\\"' % (rkConfig.prefix))
  95. + self.setDefine ('Q_OS_LINUX')
  96. + p = re.compile('-([lL])(.*)')
  97. + f = os.popen("pkg-config --libs qt")
  98. + o = f.readlines()
  99. + for l in o :
  100. + for flag in string.split (l, ' ') :
  101. + m = p.match(flag)
  102. + if m :
  103. + if m.group(1) == 'L' :
  104. + self.addLibPath(m.group(2))
  105. + else :
  106. + self.addLib(m.group(2))
  107. + f.close
  108. + self.addLib("pthread")
  109. if self.m_build in [ buildWIN ] :
  110. self.setDefine ('ROOTDIR', '"\\"%s"\\"' % (rkConfig.prefix))
  111. @@ -539,7 +549,6 @@
  112. self.addLib (rkConfig.pythonLib )
  113. if rkConfig.mode not in [ 'win', 'mingw' ] :
  114. - self.addLib ('dl')
  115. self.addLib ('pthread')
  116. self.addLib ('util')
  117. @@ -555,11 +564,9 @@
  118. if self.m_build in [ buildQT3 ] :
  119. self.addAll (os.path.join (rkConfig.topDir, 'ports', 'qt3'), '_kde')
  120. - self.addLib ('dl')
  121. if self.m_build in [ buildGTK ] :
  122. self.addAll (os.path.join (rkConfig.topDir, 'ports', 'gtk'), '_kde')
  123. - self.addLib ('dl')
  124. if self.m_build in [ buildWIN, buildMINGW, buildMAC ] :
  125. self.addAll (os.path.join (rkConfig.topDir, 'ports', 'qt3'), '_kde')
  126. Index: scons/rkScan_QT3.py
  127. --- scons/rkScan_QT3.py.orig 2005-09-30 00:03:08 +0200
  128. +++ scons/rkScan_QT3.py 2006-01-15 13:28:21 +0100
  129. @@ -75,7 +75,7 @@
  130. binDir = rkLocator.locateFile ('moc', binList)
  131. if settings.lookup('mode') in [ 'kde', 'qt3', 'qte' ] :
  132. - libDir = rkLocator.locateFile ('libqt-mt.so', libList)
  133. + libDir = rkLocator.locateFile ('libqt-mt.a', libList)
  134. libLib = 'qt-mt'
  135. binDir = rkLocator.locateFile ('moc', binList)
  136. Index: wizards/wizSetup.wiz
  137. --- wizards/wizSetup.wiz.orig 2005-09-30 00:03:09 +0200
  138. +++ wizards/wizSetup.wiz 2006-01-15 13:29:22 +0100
  139. @@ -67,7 +67,7 @@
  140. settings.
  141. </p>
  142. <p>
  143. - If you with not to use either the toolbox or the wizards (which
  144. + If you wish not to use either the toolbox or the wizards (which
  145. did not exist in earlier versions of <b>Rekall</b>) then you
  146. can disable them here. They can be reenabled later via the
  147. <i>View/Options</i> menu.
  148. Index: db/mysql/rkScan_MySQL.py
  149. --- db/mysql/rkScan_MySQL.py.orig 2005-06-26 21:26:47 +0200
  150. +++ db/mysql/rkScan_MySQL.py 2006-01-15 15:05:20 +0100
  151. @@ -38,7 +38,7 @@
  152. libLib = 'mysqlclient'
  153. if settings.mode() in [ 'kde', 'qt3' ] :
  154. - libFile = 'libmysqlclient.so'
  155. + libFile = 'libmysqlclient.a'
  156. libLib = 'mysqlclient'
  157. incDir = rkLocator.locateFile ('mysql.h', incList)
  158. Index: db/pgsql/rkScan_PgSQL.py
  159. --- db/pgsql/rkScan_PgSQL.py.orig 2005-09-30 18:25:11 +0200
  160. +++ db/pgsql/rkScan_PgSQL.py 2006-01-15 15:05:07 +0100
  161. @@ -31,7 +31,7 @@
  162. libLib = 'libpq'
  163. if settings.mode() in [ 'kde', 'qt3' ] :
  164. - libFile = 'libpq.so'
  165. + libFile = 'libpq.a'
  166. libLib = 'pq'
  167. if settings.mode() in [ 'mac' ] :
  168. Index: db/pgsql/SConscript
  169. --- db/pgsql/SConscript.orig 2005-09-30 18:25:11 +0200
  170. +++ db/pgsql/SConscript 2006-01-15 15:06:47 +0100
  171. @@ -31,6 +31,8 @@
  172. rb.setDefine ('WIN32', '1')
  173. if rkConfig.mode in [ 'kde', 'qt3' ] :
  174. + rb.addLib ('ssl')
  175. + rb.addLib ('crypto')
  176. rb.addLib ('crypt')
  177. if rkConfig.mode in [ 'mac' ] :