LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 10-21-2009, 06:01 PM   #1
Klaze
LQ Newbie
 
Registered: Oct 2009
Distribution: Ubuntu, trying for a HomeBrew
Posts: 6

Rep: Reputation: 0
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
 
Old 10-21-2009, 06:05 PM   #2
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 211Reputation: 211Reputation: 211
Quote:
Originally Posted by Klaze View Post
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.

Last edited by jhwilliams; 10-21-2009 at 06:07 PM.
 
Old 10-21-2009, 06:53 PM   #3
Klaze
LQ Newbie
 
Registered: Oct 2009
Distribution: Ubuntu, trying for a HomeBrew
Posts: 6

Original Poster
Rep: Reputation: 0
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Expect script: how do i send function key F12 in an expect script alix123 Programming 4 09-01-2013 09:06 PM
LFS 6.3, messed up somewhere prior to chapter 6.12 (gcc), how to restart chapter 6? Funkster Linux From Scratch 2 12-24-2008 06:30 AM
How to patch my redhat Enterprise Linux 5.1 to the latest patch level? shaybery Red Hat 4 10-05-2008 02:04 AM
How to Install patch-o-matic(a iptables patch) on redhat 9? itebooks Linux - Security 1 07-23-2004 08:51 AM
How to Apply patch for Mass Storage device to work? (uss725-2.4.20-rc2.patch) cevjr Linux - Hardware 3 04-20-2004 11:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 05:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration