[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

#Patches



My name is tuyosi takesima , a Japanese .

I  found  a  simple  error 
in http://www.openbsd.org/faq/faq10.html#Patches


The sentence "cvs -danoncvs@anoncvs5.usa.openbsd.org:/cvs co 
-rOPENBSD_3_0_BASE src/libexec/talkd/"
 should be 
"cvs -d  anoncvs@anoncvs5.usa.openbsd.org:/cvs co  
-rOPENBSD_3_0_BASE src/libexec/talkd/"


By the way , I fist time apply patch the followin way .
I may have mistaken .
Plese point out my mistakes .
-------------------------------
1) I look at  http://www.openbsd.org/errata30.html .


2) download 
ftp://ftp.openbsd.org/pub/OpenBSD/patches/3.0/common/020_sud
o.patch   in /tmp.

3)more /tmp/020_sudo.patch 
---------------------
Apply by doing: 
cd /usr/src (commment: <- this is a imprtant line .  In this 
directory  patch is applied, I think . )
patch -p0 < 020_sudo.patch 

And then rebuild and install sudo: 
cd usr.bin/sudo  (commment: <- this is also a imprtant line 
fo cvs , I think.  )
make -f Makefile.bsd-wrapper obj 
make -f Makefile.bsd-wrapper cleandir 
make -f Makefile.bsd-wrapper 
make -f Makefile.bsd-wrapper install 
Following abbreviation 
----------------------
seeing abobe lines , I decide what source should be needed .


so, 
cd /usr  
cvs -d anoncvs@anoncvs.usa.openbsd.org:/cvs co -rOPENBSD_3_0_BASE src/usr.bin/sudo 


3)
mv /tmp/020_sudo.patch /usr/src
cd /usr/src 
patch -p0 < 020_sudo.patch 
cd usr.bin/sudo 
make -f Makefile.bsd-wrapper obj 
make -f Makefile.bsd-wrapper cleandir 
make -f Makefile.bsd-wrapper 
(Compiler runs here)  
make -f Makefile.bsd-wrapper install 


I am soryy for my poor english .

_/_/_/Using Yahoo's  Broad  Band ,_/_/_/
I   build  a   www    & mail   server
    on this  "Firewall + Nat"   machine . 
The OS  is  "OpenBSD3.0 with ipf".
Home  Page : http://nakajin.dyndns.org/
Mail Address : nakazintuyosi@nakajin.dyndns.org