LFS's Chapter 6.16. Coreutils-6.9 - uname patch asks for a file name

Rafael Lopez rafa2005ar at gmail.com
Mon Jun 2 19:16:16 PDT 2008


At LFS's Chapter 6.16. Coreutils-6.9 when trying to apply
coreutils-6.9-uname-1.patch a file name for a "File to patch" is asked
for.
What would said file name be?

Here is copy-paste of what I get on the screen:

root:/sources# ls
coreutils-6.9               coreutils-6.9-suppress_uptime_kill_su-1.patch
coreutils-6.9-i18n-1.patch  coreutils-6.9-uname-1.patch
root:/sources# cd coreutils-6.9
root:/sources/coreutils-6.9# ls -l
total 184
-rw-r--r-- 1 root root 80541 Jan 14  2007 ABOUT-NLS
-rw-r--r-- 1 root root 17987 Mar 18  2007 COPYING
-rw-r--r-- 1 root root  2804 Mar 18  2007 Makefile.am
-rw-r--r-- 1 root root  1655 Mar 18  2007 Makefile.cfg
-rw-r--r-- 1 root root 36181 Mar 22  2007 Makefile.in
-rw-r--r-- 1 root root  8867 Mar 22  2007 configure.ac
drwx------ 2 root root  4096 Jun  2 10:38 doc
drwxrwxrwx 2 root root 16384 Mar 22  2007 lib
drwxrwxrwx 2 root root  4096 Mar 22  2007 man
root:/sources/coreutils-6.9# patch -Np1 -i ../coreutils-6.9-uname-1.patch
can't find file to patch at input line 18
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Submitted By: Matthew Burgess <matthew at linuxfromscratch dot org>
|Date: 2005-10-23
|Initial Package Version: 5.92
|Upstream Status: pending
|Origin: Scot McPherson
|Description: Fix the output of uname once and for all.
|
|       $ uname -m      # This always worked.
|       i686
|       $ uname -i      # Used to report 'unknown'.
|       i386
|       $ uname -p      # Likewise.
|       athlon-4
|
|diff -Naur coreutils-5.92.orig/src/uname.c coreutils-5.92/src/uname.c
|--- coreutils-5.92.orig/src/uname.c    2005-09-15 20:34:42.000000000 +0000
|+++ coreutils-5.92/src/uname.c 2005-10-23 10:14:06.000000000 +0000
--------------------------
File to patch:



More information about the lfs-support mailing list