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

Update build-host cookbook page for tazdev
author Christophe Lincoln <pankso@slitaz.org>
date Fri Jun 19 23:17:13 2009 +0200 (2009-06-19)
parents c927e3ab1dd9
children dca66121459f
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@510 118 Tip: Remove all the old packages and then rebuild the lists manually:
pankso@342 119 </p>
pankso@510 120 <pre>
pankso@510 121 /# tazwok cmp --remove
pankso@342 122 /# tazwok gen-list --text
pankso@342 123 /# exit
pankso@342 124 </pre>
pankso@342 125 <p>
pankso@342 126 If you have write access to the mirror you can make a dry-push to check
paul@345 127 and then upload; push will also remove any old packages on the mirror.
pankso@342 128 </p>
pankso@342 129
pankso@342 130 <a name="stable-pkgs"></a>
pankso@342 131 <h3>Stable packages</h3>
pankso@342 132 <p>
paul@345 133 Packages for the stable release are also built in a chroot environment like
paul@345 134 the Cooking packages:
pankso@342 135 </p>
pankso@510 136 <pre>
pankso@510 137 # tazdev chroot stable
pankso@342 138 </pre>
pankso@342 139
pankso@342 140 <a name="mirror-up"></a>
pankso@342 141 <h3>Upload by hand on mirror.slitaz.org</h3>
pankso@342 142 <p>
pankso@342 143 Mirror maintainers can upload by hand with the script mirror.sh:
pankso@342 144 </p>
pankso@510 145 <pre>
pankso@510 146 # tazdev -p `echo $USER`
pankso@342 147 </pre>
pankso@342 148
pankso@342 149 <a name="website-up"></a>
pankso@342 150 <h3>Update website by hand</h3>
pankso@342 151 <p>
paul@345 152 The Website and packages web interface are updated nightly by cron and can
paul@345 153 also be updated by hand (used on the day of release for example):
pankso@342 154 </p>
pankso@510 155 <pre>
pankso@510 156 # tazdev update-website
pankso@342 157 </pre>
pankso@342 158
pankso@342 159 <!-- End of content -->
pankso@342 160 </div>
pankso@342 161
pankso@342 162 <!-- Footer. -->
pankso@342 163 <div id="footer">
pankso@342 164 <div class="footer-right"></div>
pankso@510 165 <a href="#top">Top of the page</a> |
pankso@342 166 <a href="index.html">Table of contents</a>
pankso@342 167 </div>
pankso@342 168
pankso@342 169 <div id="copy">
pankso@342 170 Copyright &copy; 2009 <a href="http://www.slitaz.org/en/">SliTaz</a> -
pankso@342 171 <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>;<br />
pankso@342 172 Documentation is under
pankso@342 173 <a href="http://www.gnu.org/copyleft/fdl.html">GNU Free Documentation License</a>
pankso@342 174 and code is <a href="http://validator.w3.org/">valid xHTML 1.0</a>.
pankso@342 175 </div>
pankso@342 176
pankso@342 177 </body>
pankso@342 178 </html>