Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
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.


  Search this Thread
Old 08-23-2003, 09:16 PM   #1
Registered: Jun 2003
Location: Oklahoma
Distribution: Gentoo
Posts: 117

Rep: Reputation: 15
patch files?

How do i install the patch files. I can get it to run and it wasks me what to enter the path of the file but i don't know what i should enter. I've had this problem for all of the files that need the patches.

Old 08-23-2003, 09:21 PM   #2
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
Patches usually apply to sources.

What are you trying to patch?
Old 08-23-2003, 11:10 PM   #3
Senior Member
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
You apply patches from the top-level directory of the source code.

In other words, when you un-tarred the source code (for instance bash-2.05a), the book assumes you immediately "cd" into the directory tar created for you. Then you patch the source code from there. A sequence similar to:

cd /mnt/lfs/static/src
tar xvjf /mnt/lfs/packages/bash-2.05a.tar.bz2
cd bash-2.05a
patch -Np1 -i ../bash-2.05a.patch

Of course, your path will be different, and bash is used only as an example (I don't think it has any patches). When patch runs, it will ask you for the path if it cannot find the file it's supposed to fix, or if the contents of the file do not match what it expects. It usually means you're in the wrong directory, or you don't have the version of the source the patch is meant for.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
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
.patch files true_atlantis Linux - Newbie 1 01-25-2004 07:58 AM
How do you put patch files on a boot floppy? gnunoob Mandriva 3 12-15-2003 01:51 AM
Help needed using diff files to patch squid dexteroo Linux - Newbie 0 10-06-2003 05:59 AM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 10:50 PM.

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