Blame SOURCES/festival-1.96-kludge-etcpath-into-libarch.patch

7b3626
diff -ur festival.orig/speech_tools/main/siod_main.cc festival/speech_tools/main/siod_main.cc
7b3626
--- festival.orig/speech_tools/main/siod_main.cc	2004-09-30 08:53:36.000000000 -0400
7b3626
+++ festival/speech_tools/main/siod_main.cc	2007-03-13 00:49:35.000000000 -0400
7b3626
@@ -224,10 +224,10 @@
7b3626
 			    cons(flocons(subminor),NIL))));
7b3626
 
7b3626
     EST_Pathname etcdircommon = est_libdir;
7b3626
-    etcdircommon += "etc";
7b3626
+    etcdircommon += "etc/";
7b3626
 
7b3626
-    EST_Pathname etcdir = etcdircommon;
7b3626
-    etcdir += est_ostype;
7b3626
+    EST_Pathname etcdir = {{HORRIBLELIBARCHKLUDGE}};
7b3626
+    etcdir += "festival/etc/";
7b3626
     
7b3626
     //  Modify my PATH to include these directories
7b3626
     siod_set_lval("etc-path",cons(rintern(etcdir),
7b3626
diff -ur festival.orig/src/arch/festival/festival.cc festival/src/arch/festival/festival.cc
7b3626
--- festival.orig/src/arch/festival/festival.cc	2007-03-13 00:41:42.000000000 -0400
7b3626
+++ festival/src/arch/festival/festival.cc	2007-03-13 00:47:55.000000000 -0400
7b3626
@@ -349,10 +349,10 @@
7b3626
 	proclaim_module("mplayeraudio");
7b3626
     
7b3626
     // Add etc-dir path and machine specific directory etc/$OSTYPE
7b3626
-    char *etcdir = walloc(char,strlen(festival_libdir)+strlen("etc/")+
7b3626
-			  strlen(FTOSTYPE)+3);
7b3626
-    sprintf(etcdir,"%s/etc/%s/",festival_libdir,FTOSTYPE);
7b3626
-    char *etcdircommon = walloc(char,strlen(festival_libdir)+strlen("etc/")+3);
7b3626
+    char *etcdir = walloc(char,strlen({{HORRIBLELIBARCHKLUDGE}})+
7b3626
+			  strlen("etc/festival/")+2);
7b3626
+    sprintf(etcdir,"%s/festival/etc/",{{HORRIBLELIBARCHKLUDGE}});
7b3626
+    char *etcdircommon = walloc(char,strlen(festival_libdir)+strlen("etc/")+2);
7b3626
     sprintf(etcdircommon,"%s/etc/",festival_libdir);
7b3626
     
7b3626
     //  Modify my PATH to include these directories