cs35Llab4

cs35Llab4 - Hunk#1 succeeded at 51 with fuzz 1 Hunk#2...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 (Current working directory: Desktop) Step #1: 1. Download coreutils 5.2.1 wget ftp://ftp.gnu.org/gnu/coreutils/coreutils-5.2.1.tar.gz 2. Decompress the files gzip -cd coreutils-5.2.1.tar.gz | tar xvf - 3. Change Directory to coreutils-5.2.1 cd coreutils-5.2.1 4. Configure coreutils ./configure --prefix=/ramdisk/home/knoppix/Desktop/core5 5. Make coreutils make 6. Install make install Step #2: 1. Obtain Patch code from html page 2. Paste patch code into file lab4.patch 3. Apply patch patch -p0 -b < lab4.patch Step #3: patching file NEWS Hunk #1 FAILED at 191. 1 out of 1 hunk FAILED -- saving rejects to file NEWS.rej (Stripping trailing CRs from patch.) patching file src/rm.c
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Hunk #1 succeeded at 51 with fuzz 1. Hunk #2 succeeded at 98 (offset 1 line). patch unexpectedly ends in middle of line Hunk #3 FAILED at 252. 1 out of 3 hunks FAILED -- saving rejects to file src/rm.c.rej Step #4: 1. Comment out line #54 (#include lstat.h) 2. Add diagnose_leading_hyphen (argc, argv) to line #251 Step #5: 1. Build patched coreutils-5.2.1 Sheet1 Page 2 ./configure --prefix=/ramdisk/home/knoppix/Desktop/core5p make make install 2. Test the functionality of rm mkdir test cd test touch ./-ooops a b c rm * Step #6: 1. Create diff file with option -u diff -u src/rm.c.orig src/rm.c > lab4.diff...
View Full Document

This note was uploaded on 06/02/2009 for the course CS 35L taught by Professor Eggert during the Spring '09 term at UCLA.

Page1 / 2

cs35Llab4 - Hunk#1 succeeded at 51 with fuzz 1 Hunk#2...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online