Author: twittner                     Date: Thu Nov  3 20:04:07 2005 GMT
Module: SOURCES                       Tag: twittner
---- Log message:
- added more directory fixes to -dir.patch (Paradox and mdb drivers)
- added support for HK_DRIVERSDIR (--with-hk_classes-drvdir) to code
  (-dir.patch) - it fixes hk_drivermanager_path() issue, but it isn't
  widely tested.

---- Files affected:
SOURCES:
   hk_classes-dir.patch (1.3.2.1 -> 1.3.2.1.2.1) 

---- Diffs:

================================================================
Index: SOURCES/hk_classes-dir.patch
diff -u SOURCES/hk_classes-dir.patch:1.3.2.1 
SOURCES/hk_classes-dir.patch:1.3.2.1.2.1
--- SOURCES/hk_classes-dir.patch:1.3.2.1        Mon Oct 31 22:51:14 2005
+++ SOURCES/hk_classes-dir.patch        Thu Nov  3 21:04:02 2005
@@ -1,3 +1,5 @@
+sed -i '[EMAIL PROTECTED]@/[EMAIL PROTECTED]@%'
+
 --- hk_classes-0.5.5/acinclude.m4.orig Sun Aug 18 16:35:37 2002
 +++ hk_classes-0.5.5/acinclude.m4      Thu Nov 21 11:47:35 2002
 @@ -29,6 +29,15 @@
@@ -75,11 +77,90 @@
  INCLUDES= -I../hk_classes [EMAIL PROTECTED]@
  
  AM_CPPFLAGS=
---- hk_classes-0.8/hk_xbaseclasses/Makefile.am~        2005-10-31 
21:44:07.703534256 +0100
-+++ hk_classes-0.8/hk_xbaseclasses/Makefile.am 2005-10-31 21:44:41.419408664 
+0100
+diff -Nur b.hk_classes-0.8/hk_mdbclasses/Makefile.am 
n.hk_classes-0.8/hk_mdbclasses/Makefile.am
+--- b.hk_classes-0.8/hk_mdbclasses/Makefile.am 2005-06-25 10:39:15.000000000 
+0200
++++ n.hk_classes-0.8/hk_mdbclasses/Makefile.am 2005-11-03 13:39:22.594723360 
+0100
+@@ -1,4 +1,4 @@
[EMAIL PROTECTED]@/drivers
[EMAIL PROTECTED]@
+ INCLUDES= -I../hk_classes [EMAIL PROTECTED]@
+ 
+ AM_CPPFLAGS=$(GLIB_CFLAGS)
+diff -Nur b.hk_classes-0.8/hk_paradoxclasses/Makefile.am 
n.hk_classes-0.8/hk_paradoxclasses/Makefile.am
+--- b.hk_classes-0.8/hk_paradoxclasses/Makefile.am     2005-05-05 
15:56:52.000000000 +0200
++++ n.hk_classes-0.8/hk_paradoxclasses/Makefile.am     2005-11-03 
13:39:22.632717584 +0100
+@@ -1,4 +1,4 @@
[EMAIL PROTECTED]@/drivers
[EMAIL PROTECTED]@
+ INCLUDES= -I../hk_classes [EMAIL PROTECTED]@
+ 
+ AM_CPPFLAGS=
+diff -Nur b.hk_classes-0.8/hk_xbaseclasses/Makefile.am 
n.hk_classes-0.8/hk_xbaseclasses/Makefile.am
+--- b.hk_classes-0.8/hk_xbaseclasses/Makefile.am       2005-04-10 
11:55:26.000000000 +0200
++++ n.hk_classes-0.8/hk_xbaseclasses/Makefile.am       2005-11-03 
13:39:22.700707248 +0100
 @@ -1,4 +1,4 @@
 [EMAIL PROTECTED]@/drivers
 [EMAIL PROTECTED]@
  INCLUDES= -I../hk_classes [EMAIL PROTECTED]@ 
  
  AM_CPPFLAGS=
+diff -Nur b.hk_classes-0.8/hk_classes/hk_drivermanager.cpp 
n.hk_classes-0.8/hk_classes/hk_drivermanager.cpp
+--- b.hk_classes-0.8/hk_classes/hk_drivermanager.cpp   2005-09-17 
21:07:01.000000000 +0200
++++ n.hk_classes-0.8/hk_classes/hk_drivermanager.cpp   2005-11-03 
18:25:30.665093872 +0100
+@@ -60,7 +60,7 @@
+ };
+ 
+ requestdialogtype* hk_drivermanager::p_driverselectdialog=NULL;
+-hk_string hk_drivermanager::p_hk_classespath=(hk_string)HKCLASSES+"/drivers";
++hk_string hk_drivermanager::p_hk_classespath=(hk_string)HK_DRIVERSDIR;
+ vector<hk_string> hk_drivermanager::p_driverlist;
+ 
+ typedef hk_connection*  connectiontype(hk_drivermanager* );
+@@ -83,8 +83,7 @@
+ {
+     p_private = new hk_drivermanagerprivate;
+     hk_report::setup_reportbasics();
+-    p_hk_classespath=HKCLASSES;
+-    p_hk_classespath=p_hk_classespath+"/drivers";
++    p_hk_classespath=HK_DRIVERSDIR;
+     scan_directory();
+     char* h= getenv("HOME");
+     hk_string classespath=(h==NULL?"/tmp":h);
+@@ -449,7 +448,7 @@
+ //the following is a hack for LFS
+             if (b.find("/usr/local/hk_classes")<b.size())
+             {
+-                b=HKCLASSES;b+="/drivers";
++                b=HK_DRIVERSDIR;
+ 
+                 set_path(b);
+                 show_warningmessage("Due to a new directory hierarchy, your 
preferences have been changed");
+diff -Nur b.hk_classes-0.8/hk_classes/hk_drivermanager.h 
n.hk_classes-0.8/hk_classes/hk_drivermanager.h
+--- b.hk_classes-0.8/hk_classes/hk_drivermanager.h     2005-06-22 
20:12:09.000000000 +0200
++++ n.hk_classes-0.8/hk_classes/hk_drivermanager.h     2005-11-03 
18:16:15.266527288 +0100
+@@ -17,6 +17,14 @@
+ #include "hk_url.h"
+ #include "hk_definitions.h"
+ #include "hk_string.h"
++
++#ifndef HK_DRIVERSDIR
++#ifndef HKCLASSES
++#define HKCLASSES "/usr/local/lib/hk_classes"
++#endif
++#define HK_DRIVERSDIR HKCLASSES "/driver"
++#endif
++
+ using namespace std;
+ 
+ class hk_connection;
+--- b.hk_classes-0.8/hk_classes/Makefile.am    2005-08-24 14:17:01.000000000 
+0200
++++ n.hk_classes-0.8/hk_classes/Makefile.am    2005-11-03 19:45:52.286247208 
+0100
+@@ -25,7 +25,7 @@
+ 
+ libhk_classes_la_LIBADD =$(LIBPYTHON)  $(PYTHONLIB)
+ 
+-libhk_classes_la_CPPFLAGS= -DHKCLASSES=\"$(HK_CLASSESDIR)\"
++libhk_classes_la_CPPFLAGS= -DHKCLASSES=\"$(HK_CLASSESDIR)\" 
-DHK_DRIVERSDIR=\"@[EMAIL PROTECTED]"
+ 
+ 
+ libhk_classes_la_SOURCES= \
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/SOURCES/hk_classes-dir.patch?r1=1.3.2.1&r2=1.3.2.1.2.1&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to