I just wanted to try out Festival, but I can't get it patched. I'm thinking that there is something missing from the steps listed at http://www.marko.net/asterisk/archives/0209/0389.html.>>tar xvzf festival-1.4.2-release.tar.gz >>patch -p0 </usr/src/asterisk-ng/festival-1.4.2-diff >> (or wherever the patch is located)When I run the patch command, I get the following: [root@Computer src]# patch -p0 </usr/src/asterisk/festival-1.4.2.diff can't find file to patch at input line 4 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff -u -r festival-1.4.2/lib/tts.scm festival-1.4.2-asterisk/lib/tts.scm |--- festival-1.4.2/lib/tts.scm Wed Jan 8 09:54:14 2003 |+++ festival-1.4.2-asterisk/lib/tts.scm Tue Jan 7 08:51:44 2003 -------------------------- File to patch: Which file am I supposed to patch? Thanks for your help. -Derek
What directory are you in while running this? If you are in the festival directory try: patch -p1 </usr/src/asterisk-ng/festival-1.4.2-diff The -p options strips directory names from the patch. Hope that helps. -Steve On Tue, 24 Jun 2003, Derek Beaumont wrote:> I just wanted to try out Festival, but I can't get it patched. > I'm thinking that there is something missing from the steps listed > at http://www.marko.net/asterisk/archives/0209/0389.html. > > >>tar xvzf festival-1.4.2-release.tar.gz > >>patch -p0 </usr/src/asterisk-ng/festival-1.4.2-diff > >> (or wherever the patch is located) > > When I run the patch command, I get the following: > > [root@Computer src]# patch -p0 </usr/src/asterisk/festival-1.4.2.diff > can't find file to patch at input line 4 > Perhaps you used the wrong -p or --strip option? > The text leading up to this was: > -------------------------- > |diff -u -r festival-1.4.2/lib/tts.scm > festival-1.4.2-asterisk/lib/tts.scm > |--- festival-1.4.2/lib/tts.scm Wed Jan 8 09:54:14 2003 > |+++ festival-1.4.2-asterisk/lib/tts.scm Tue Jan 7 08:51:44 2003 > -------------------------- > File to patch: > > > Which file am I supposed to patch? > > Thanks for your help. > -Derek > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users >
Make sure the directory that festival is in is named "festival-1.4.2". One other user had the same problem. The directory was called "festival". -wade> -----Original Message----- > From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users- > admin@lists.digium.com] On Behalf Of Derek Beaumont > Sent: Tuesday, June 24, 2003 2:48 PM > To: asterisk-users@lists.digium.com > Subject: [Asterisk-Users] Patching Festival > > I just wanted to try out Festival, but I can't get it patched. > I'm thinking that there is something missing from the steps listed > at http://www.marko.net/asterisk/archives/0209/0389.html. > > >>tar xvzf festival-1.4.2-release.tar.gz > >>patch -p0 </usr/src/asterisk-ng/festival-1.4.2-diff > >> (or wherever the patch is located) > > When I run the patch command, I get the following: > > [root@Computer src]# patch -p0 </usr/src/asterisk/festival-1.4.2.diff > can't find file to patch at input line 4 > Perhaps you used the wrong -p or --strip option? > The text leading up to this was: > -------------------------- > |diff -u -r festival-1.4.2/lib/tts.scm > festival-1.4.2-asterisk/lib/tts.scm > |--- festival-1.4.2/lib/tts.scm Wed Jan 8 09:54:14 2003 > |+++ festival-1.4.2-asterisk/lib/tts.scm Tue Jan 7 08:51:44 2003 > -------------------------- > File to patch: > > > Which file am I supposed to patch? > > Thanks for your help. > -Derek > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users
cd into the festival src directory, then use -p1 instead of -p0. This will strip the first level directory off of each patch part since it will then be matched against the current directory you are in. On Tue, 2003-06-24 at 13:47, Derek Beaumont wrote:> I just wanted to try out Festival, but I can't get it patched. > I'm thinking that there is something missing from the steps listed > at http://www.marko.net/asterisk/archives/0209/0389.html. > > >>tar xvzf festival-1.4.2-release.tar.gz > >>patch -p0 </usr/src/asterisk-ng/festival-1.4.2-diff > >> (or wherever the patch is located) > > When I run the patch command, I get the following: > > [root@Computer src]# patch -p0 </usr/src/asterisk/festival-1.4.2.diff > can't find file to patch at input line 4 > Perhaps you used the wrong -p or --strip option? > The text leading up to this was: > -------------------------- > |diff -u -r festival-1.4.2/lib/tts.scm > festival-1.4.2-asterisk/lib/tts.scm > |--- festival-1.4.2/lib/tts.scm Wed Jan 8 09:54:14 2003 > |+++ festival-1.4.2-asterisk/lib/tts.scm Tue Jan 7 08:51:44 2003 > -------------------------- > File to patch: > > > Which file am I supposed to patch? > > Thanks for your help. > -Derek > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users-- Steven Critchfield <critch@basesys.com>