PLDWWW: DevelopingPLD/PreparingWorkingEnvironment

patrys patrys at pld-linux.org
Tue Sep 12 20:32:46 CEST 2006


Author: patrys   Date: Tue Sep 12 18:32:45 2006 GMT
Module: PLDWWW   URL: http://pld-linux.org/DevelopingPLD/PreparingWorkingEnvironment
---- Log message:


---- Page affected: DevelopingPLD/PreparingWorkingEnvironment

---- Diffs:

================================================================
- === Preparing your working environment ===
+ = Preparing your working environment =
  
- The first thing you should do is make sure you have the {{{cvs}}} package installed. Second, if you have a directory or file named {{{rpm}}} in your home directory, either delete it or move it somewhere else. You don't want it to get in your way in the next step. Now, invoke the following set of commands:
+ == Needed packages ==
+ 
+ Before you start, you need to install a recent version of:
+ 
+  * {{{cvs}}}
+  * {{{rpm-build-macros}}}
+  * {{{rpm-build-tools}}}
+ 
+ The latter contains the {{{builder}}} script itself.
+ 
+ == Preconfiguration ==
+ 
+ To initialize your working directory, invoke:
  
  {{{
- $ cd
+ builder --init-rpm-dir
  }}}
  
- To make sure your current working directory is your home directory.
+ {{{builder}}} will create all the necessary directories under ''~/rpm/'' and create initial config for {{{cvs}}}. This is essentially all the work needed to build the packages for your own use.
  
+ In case you also need to commit your changes back, edit the ''~/rpm/SPECS/CVS/Root'' and ''~/rpm/SOURCES/CVS/Root'' to contain your login instead of the anonymous {{{cvs@}}} account.
- {{{
- $ mkdir -p rpm/{RPMS,BUILD,SRPMS}
- }}}
  
- To create necessary directories.
- 
- {{{
- $ CVSROOT=:pserver:cvs at cvs.pld-linux.org:/cvsroot \
- cvs co SOURCES/.cvsignore SPECS
- }}}
- 
- '''NB! Alternative initialization'''
- {{{
- $ poldek -u rpm-build-tools
- $ builder --init-rpm-dir
- }}}
- 
- Read more aboout [:DevelopingPLD/BuilderScript: builder] script.
- 
- To fetch all the files from the [:Repositories: repository]. If you already have an account there, replace {{{cvs at cvs.pld-linux.org}}} with your account name.
- 
- Now you are ready to start your work.
- 


More information about the pld-cvs-commit mailing list