website annotate en/doc/cookbook/build-host.html @ rev 514

Tipo in build host page
author Christophe Lincoln <pankso@slitaz.org>
date Sat Jun 20 12:51:10 2009 +0200 (2009-06-20)
parents dca66121459f
children fcffabc05cb1
rev   line source
pankso@342 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
pankso@342 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
pankso@342 3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
pankso@342 4 <head>
pankso@342 5 <title>SliTaz Cookbook (en) - Build Host</title>
pankso@342 6 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
pankso@342 7 <meta name="description" content="slitaz English cookbook" />
pankso@342 8 <meta name="expires" content="never" />
pankso@342 9 <meta name="modified" content="2009-03-27 21:30:00" />
pankso@342 10 <meta name="publisher" content="www.slitaz.org" />
pankso@342 11 <meta name="author" content="SliTaz contributors"/>
pankso@342 12 <link rel="shortcut icon" href="favicon.ico" />
pankso@342 13 <link rel="stylesheet" type="text/css" href="book.css" />
pankso@342 14 </head>
pankso@342 15 <body bgcolor="#ffffff">
pankso@342 16
pankso@342 17 <!-- Header and quick navigation -->
pankso@342 18 <div id="header">
pankso@342 19 <div align="right" id="quicknav">
pankso@342 20 <a name="top"></a>
pankso@342 21 <a href="boot-scripts.html">Boot Scripts</a> |
pankso@342 22 <a href="index.html">Table of contents</a>
pankso@342 23 </div>
pankso@342 24 <h1><font color="#3E1220">SliTaz Cookbook (en)</font></h1>
pankso@342 25 </div>
pankso@342 26
pankso@342 27 <!-- Content. -->
pankso@342 28 <div id="content">
pankso@342 29 <div class="content-right"></div>
pankso@342 30
pankso@342 31 <h2><font color="#DF8F06">SliTaz Build Host (tank)</font></h2>
pankso@342 32
pankso@342 33 <p>
pankso@342 34 SliTaz build host info and howto.
pankso@342 35 </p>
pankso@342 36
pankso@342 37 <ul>
pankso@342 38 <li><a href="#folders">Folders in: /home/slitaz</a></li>
pankso@510 39 <li><a href="#tazdev">Using tazdev</a></li>
pankso@342 40 <li><a href="#undigest-pkgs">Cooking undigest packages</a></li>
pankso@342 41 <li><a href="#cooking-pkgs">Cooking official packages</a></li>
pankso@342 42 <li><a href="#stable-pkgs">Stable packages</a></li>
pankso@342 43 <li><a href="#mirror-up">Upload by hand on mirror.slitaz.org</a></li>
pankso@342 44 <li><a href="#website-up">Update website by hand</a></li>
pankso@342 45 </ul>
pankso@342 46
pankso@342 47 <a name="folders"></a>
pankso@342 48 <h3>Folders in: /home/slitaz</h3>
pankso@342 49 <ul>
pankso@342 50 <li>cooking/ - Cooking chroot and flavors.</li>
pankso@342 51 <li>stable/ - Stable tree.</li>
pankso@342 52 <li>repos/ - All the project repos (where the commits are pushed).</li>
pankso@342 53 <li>www/ - Virtual hosts (website, hg, boot, people, etc).</li>
pankso@342 54 </ul>
pankso@342 55
pankso@510 56 <a name="tazdev"></a>
pankso@510 57 <h3>Using tazdev</h3>
pankso@342 58 <p>
pankso@510 59 To help maintain the mirror, flavors and other services, some tazdev
pankso@510 60 is used. It is mostly all configured for the cooking version. Usage :
pankso@342 61 </p>
pankso@510 62 <pre>
pankso@510 63 $ tazdev usage
pankso@342 64 </pre>
pankso@342 65
pankso@342 66 <a name="undigest-pkgs"></a>
pankso@342 67 <h3>Cooking undigest packages</h3>
pankso@342 68 <p>
paul@345 69 You can use the undigest wok in the chroot environment to cook some
pankso@342 70 non supported packages. If you maintain official packages and they cook
paul@345 71 successfully on tank, then you can test on your local machine and commit
pankso@342 72 in the official wok. Mirror maintainers will then rebuild and upload the
pankso@342 73 packages on mirror.slitaz.org.
pankso@342 74 </p>
pankso@342 75 <p>
paul@345 76 To build packages in the undigest wok and in the chroot environment:
paul@345 77 commands are sometimes better than a long text:
pankso@342 78 </p>
paul@345 79 <pre> $ ln -s /home/slitaz/cooking/chroot/home/undigest .
pankso@342 80 </pre>
pankso@342 81 <p>
pankso@510 82 You can copy files with gFTP-sftp-scp directly into the wok or from the
pankso@342 83 current directory:
pankso@342 84 </p>
paul@345 85 <pre> $ cp -a package undigest/wok
pankso@510 86 $ su -c "tazdev chroot"
pankso@342 87 /# cd home/undigest
pankso@342 88 /# tazwok cook package
pankso@342 89 /# exit
pankso@342 90 $ ls undigest/packages
pankso@342 91 </pre>
pankso@342 92
pankso@342 93 <a name="cooking-pkgs"></a>
pankso@342 94 <h3>Cooking official packages</h3>
pankso@342 95 <p>
paul@345 96 Maintainers have root access and some have write access to the
pankso@510 97 main mirror at mirror.slitaz.org, if you want to help in this task please
paul@345 98 contact one of the active developers (check hg repos).
pankso@342 99 </p>
pankso@342 100 <p>
pankso@510 101 Everything is cooked in a chroot environment, the default path for the build
pankso@510 102 wok is $CHROOT/home/slitaz/wok. Some changes can be made directly in this wok: the
pankso@510 103 real Hg is copied in the chroot by tazbb (Build Bot). To chroot in cooking :
pankso@342 104 </p>
pankso@510 105 <pre>
pankso@510 106 # tazdev chroot
pankso@342 107 </pre>
pankso@342 108 <p>
pankso@510 109 Cook all last commited packages or cook everything with 'cook-all', note
pankso@510 110 that comparison it not required if you know which packages to cook. If you
pankso@510 111 want to force a cook of some package by tazbb you can clean then with tazwok.
pankso@510 112 By default cook only last commit :
pankso@342 113 </p>
pankso@510 114 <pre>
pankso@510 115 /# tazbb cook-commit
pankso@342 116 </pre>
pankso@342 117 <p>
pankso@513 118 If needed (tazbb does it automaticaly) you can remove all the old packages
pankso@513 119 and then rebuild the lists manually:
pankso@342 120 </p>
pankso@510 121 <pre>
pankso@513 122 /# tazbb clean-up
pankso@342 123 /# tazwok gen-list --text
pankso@342 124 /# exit
pankso@342 125 </pre>
pankso@342 126 <p>
pankso@342 127 If you have write access to the mirror you can make a dry-push to check
paul@345 128 and then upload; push will also remove any old packages on the mirror.
pankso@342 129 </p>
pankso@342 130
pankso@342 131 <a name="stable-pkgs"></a>
pankso@342 132 <h3>Stable packages</h3>
pankso@342 133 <p>
paul@345 134 Packages for the stable release are also built in a chroot environment like
paul@345 135 the Cooking packages:
pankso@342 136 </p>
pankso@510 137 <pre>
pankso@510 138 # tazdev chroot stable
pankso@342 139 </pre>
pankso@342 140
pankso@342 141 <a name="mirror-up"></a>
pankso@342 142 <h3>Upload by hand on mirror.slitaz.org</h3>
pankso@342 143 <p>
pankso@514 144 Mirror maintainers can upload by hand with tazdev (-dp for a dry push):
pankso@342 145 </p>
pankso@510 146 <pre>
pankso@513 147 # tazdev -p $USER
pankso@342 148 </pre>
pankso@342 149
pankso@342 150 <a name="website-up"></a>
pankso@342 151 <h3>Update website by hand</h3>
pankso@342 152 <p>
paul@345 153 The Website and packages web interface are updated nightly by cron and can
paul@345 154 also be updated by hand (used on the day of release for example):
pankso@342 155 </p>
pankso@510 156 <pre>
pankso@513 157 # tazdev update-www
pankso@342 158 </pre>
pankso@342 159
pankso@342 160 <!-- End of content -->
pankso@342 161 </div>
pankso@342 162
pankso@342 163 <!-- Footer. -->
pankso@342 164 <div id="footer">
pankso@342 165 <div class="footer-right"></div>
pankso@510 166 <a href="#top">Top of the page</a> |
pankso@342 167 <a href="index.html">Table of contents</a>
pankso@342 168 </div>
pankso@342 169
pankso@342 170 <div id="copy">
pankso@342 171 Copyright &copy; 2009 <a href="http://www.slitaz.org/en/">SliTaz</a> -
pankso@342 172 <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>;<br />
pankso@342 173 Documentation is under
pankso@342 174 <a href="http://www.gnu.org/copyleft/fdl.html">GNU Free Documentation License</a>
pankso@342 175 and code is <a href="http://validator.w3.org/">valid xHTML 1.0</a>.
pankso@342 176 </div>
pankso@342 177
pankso@342 178 </body>
pankso@342 179 </html>