LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   cannot patch expect 5.43 chapter 5.12 (https://www.linuxquestions.org/questions/linux-from-scratch-13/cannot-patch-expect-5-43-chapter-5-12-a-763551/)

Klaze 10-21-2009 06:01 PM

cannot patch expect 5.43 chapter 5.12
 
Hello all,

Been trudging through the book and ran into a snag. I am trying to patch the source for Expect 5.43 in chapter 5,12 of the book and it will not do anything. Everything has been very smooth thus far but this is puzzling me to no end.

I issue the following command and get nothing but a blinking cursor.

Code:

:/mnt/lfs/sources/expect-5.43$ patch -Np1 ../expect-5.43.0-spawn-1.patch
After hitting enter the cursor moves below the command line and blinks. I let it sit for 2 hours with nothing, nothing at all. I am not super newbish but certainly not an expert, any help would be great as I have no clue what is going on. Thanks.

Klaze

jhwilliams 10-21-2009 06:05 PM

Quote:

Originally Posted by Klaze (Post 3727790)
Hello all,

Been trudging through the book and ran into a snag. I am trying to patch the source for Expect 5.43 in chapter 5,12 of the book and it will not do anything. Everything has been very smooth thus far but this is puzzling me to no end.

I issue the following command and get nothing but a blinking cursor.

Code:

:/mnt/lfs/sources/expect-5.43$ patch -Np1 ../expect-5.43.0-spawn-1.patch
After hitting enter the cursor moves below the command line and blinks. I let it sit for 2 hours with nothing, nothing at all. I am not super newbish but certainly not an expert, any help would be great as I have no clue what is going on. Thanks.

Klaze

In that usage, patch will require an input redirection:
Code:

patch -Np1 < ../expect-5.43.0-spawn-1.patch
If you're curious: the reason it was taking so long was not because it was doing anything, but because it quickly processed the "../except-..." bit, and then was waiting for you type in the name of a patch. (In the usage you were using, the first filename is the name of a file TO patch.) Read patch(1) to see what I mean.

Klaze 10-21-2009 06:53 PM

I see now
 
jhwilliams

A I see! sometimes when something doesn't work right you tend to look to closely, I poured over the man page already and couldn't find anything wrong, but after reading your post a couple times and looking at the command, wow. so this is what turned out to work for me, or course.

Code:

patch -Np1 -i ../expect-5.43.0-spawn-1.patch
Thanks!

Klaze


All times are GMT -5. The time now is 09:14 AM.