Changes between Initial Version and Version 1 of BuildingAndUploading


Ignore:
Timestamp:
03/15/10 15:18:31 (14 years ago)
Author:
jdreed
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BuildingAndUploading

    v1 v1  
     1(these are my rough notes, please correct them) 
     2 
     3[[PageOutline]] 
     4 
     5== Building == 
     6 
     7Building is done on zulu.mit.edu, using the builder account. 
     8Do not forward your root tickets when ssh'ing to builder@zulu. 
     9 
     10 
     111. '''cd /mit/debathena/packages/''subdir'' ''' 
     12 * ''subdir'' corresponds to the subdirectories under trunk/debathena in the repository.  Note that trunk/athena is also here. 
     13 
     142. '''dasource ''packagename'' ''' 
     15 * This checks out the latest revision of the package, unpacks it, and builds the source package. 
     16 
     173. '''cd ''packagename'' ''' 
     18 
     194. '''da [-A] sbuildhack ''dsc-file'' ''' 
     20 * ''dsc-file'' is the `.dsc` file for the current version of the package (created by dasource). [[BR]] 
     21 * '''da''' essentially runs its arguments for all distributions and architectures that we know about.  '''-A''' is used when building an architecture-independent (`Architecture: all`) package.  It only builds one architecture for each distribution (currently, amd64).  If the da script fails, you will be prompted to continue or give up.  It will print a summary of the successful builds when it completes. 
     22 
     235. Verify that the .debs were created in the current directory.  Proceeding to '''Uploading''' 
     24 
     25== Uploading == 
     26 
     27NOTE: The cwd is assumed to be  /mit/debathena/packages/''subdir''/''packagename'' (where the '''Building''' step ended).   
     28 
     291. '''daupload-proposed [-A] ''source-changes'' ''' 
     30 * ''source-changes'' is the source package's `.changes` file. 
     31 * Like '''da''', '''daupload''' and friends take '''-A''' if the package is architecture independent 
     32 * To upload to the -development repository instead, replace '''daupload-proposed''' with '''daupload-dev''' 
     33 
     34== Moving between repositories == 
     35 
     36Packages can be moved between repositories with '''damove'''.  This is the normal way in which packages should migrate from -proposed to the production repository. 
     37 
     381. '''damove''' ''destination'' ''source'' ''packagename'' 
     39 * ''destination'' is the repository you are moving the package '''to'''.  Use an empty string (`""`) to indicate the production repository. 
     40 * ''source'' is the repository you are moving the package '''from'''. 
     41 * ''packagename'' is the name of the package 
     42 * '''damove''' will warn you if you accidentally swap the ''desintation'' and ''source'' arguments 
     43 
     44== Equivs Packages == 
     45 
     46NOTE: The equivs packages are all located in `/mit/debathena/packages/meta`. 
     47 
     481. '''cd /mit/debathena/packages/meta/''packagename'' ''' 
     49 * ''packagename is the name of the package (without the `debathena-` prefix) 
     50 
     512. '''svn update''' 
     52 * There is no '''dasource''' for equivs packages. 
     53 
     543. '''equivs-build --full ''equivs-file'' ''' 
     55 * ''equivs-file'' is the name of the `.equivs` file for the package 
     56 
     574. '''daupload-equivs-proposed ''source-changes'' ''' 
     58 * ''source-changes'' is the source package's `.changes` file. 
     59 * To upload to the -development repository instead, replace '''daupload-equivs-proposed''' with '''daupload-equis-dev''' 
     60 
     615. When moving the equivs package between repositories, the same '''damove''' syntax is used as with regular packages. 
     62 
     63== Example == 
     64 
     65An example, using version 1.18.2 of the package debathena-printing-config, whose source is located at trunk/debathena/config/printing-config 
     66 
     671. cd /mit/debathena/packages/config 
     68 
     692. dasource debathena-printing-config 
     70 
     713. cd debathena-printing-config 
     72 
     734. da -A sbuildhack debathena-printing-config_1.18.2.dsc 
     74 
     755. daupload-proposed -A debathena-printing-config_1.18.2_source.changes 
     76 
     776. (wait for  3 days of testing)  
     78 
     797. damove "" "-proposed" debathena-printing-config