Your Post on a Patch Help

Steve Ki-Won Lee (kiwon@ugrad.cs.ualberta.ca)
Mon, 25 May 1998 18:32:41 -0600 (MDT)


Greetings Stephane!

I was reading thru the AS mailing list archive to find some answers on how
to apply patches.  Below is your timely advice you gave to the person you
replied to: 

>untar the AfterStep sources under  /usr/src

Ok, let's say for example, I installed AfterStep.1.4.5.0.tgz and had
gotten rid of the original download *.tgz file, would I then download it
*again* and "tar zxvf" it under /usr/src?

>copy the patch to /usr/src   (don't forget to 'gzip -d' it)

That much I understand...plz be patient w/me :)  But you think it'd be
better if I cp'd the patches to /usr/src/AfterStep instead?  Just asking..

>i rename the patch to patch.af (shorter and easier to remember)
>then cd to /usr/src/AfterStep

I get that too..

>patch -p1 <../patch.af >pout 2>&1
>
>    this will patch the source 

Ok, I read thru the "patch" doc over and over again, but this is where I
lose it.  Assuming that the patches were cp'd to /usr/src, would the exact
command be: 
  
# patch -p1 < /usr/src/patch.af >pout 2>&1  ?

and of course, you're having the verbose output be streamed to the "pout" 
file, but for curiosity sake, what's the "2>&1" for?

And any significance to the digit "1" in "-p1"?  I've seen posts that has
"-p0" as well.....ok..we're almost there..

>cat pout | grep -i fail
>
>     this will check for any errors while patching

And assuming there were no errors, then I would re-compile AS with the
patched source according to the instructions in "INSTALL" file?  

And can I apply patches one after another without recompiling after each
patch has been applied to an app?

>that's it.

I know, it should've been easy for anybody to understand.  So, thanks
advance for your time!

With Best,

Steve

-----------------------------------------------------

# whereis crap
# crap:/c/windoze95

-----------------------------------------------------
kiwon@cs.ualberta.ca
skwlee@shaw.wave.ca




--
   WWW:   http://www.afterstep.org/
   FTP:   ftp://ftp.afterstep.org/
   MAIL:  http://wormhole.eosys.com/mailing-lists/AfterStep-Info.html
   FAQ:   http://www.cs.purdue.edu/homes/zamboni/afterstep/FAQ.html

   To unsubscribe: echo unsubscribe | mail afterstep-request@eosys.com