slitaz-doc-wiki-data diff pages/en/devnotes/prepare-experimental.txt @ rev 7

Add pages/en folder.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Feb 26 12:17:18 2011 +0000 (2011-02-26)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/pages/en/devnotes/prepare-experimental.txt	Sat Feb 26 12:17:18 2011 +0000
     1.3 @@ -0,0 +1,88 @@
     1.4 +====== Prepare the experimental wok ======
     1.5 +
     1.6 +==== Warning ====
     1.7 +
     1.8 +Before using the experimental wok, it's advisable to read and understand the [[en:cookbook:advancedhg|Advanced usage of Mercurial]] as the experimental wok uses MQ to handle the patch queue.
     1.9 +
    1.10 +Please note that the source code, wok & packages use a lot of space, don't store all of that in your RAM unless you're sure that it will run fine. If you use a live system, you can use a physical disk to store data using the boot option home=. You can also mount the disk (i.e.: on /mnt).
    1.11 +
    1.12 +==== Enabling Mercurial Queue ====
    1.13 +
    1.14 +The experimental wok is shared as patches which can't be integrated into the cooking wok for now. To use them, you need the extension MQ. So your ~/.hgrc should contain these lines:
    1.15 +
    1.16 +<code>
    1.17 +[extensions]
    1.18 +mq =
    1.19 +</code>
    1.20 +
    1.21 +==== Download cooking wok & patch it ====
    1.22 +
    1.23 +First check that the destination disk is mounted. In the directory which contains the data, create a repository called experimental and enter in it:
    1.24 +<code>
    1.25 +cd destination
    1.26 +mkdir experimental
    1.27 +cd experimental
    1.28 +</code>
    1.29 +
    1.30 +
    1.31 +Download the wok:
    1.32 +<code>
    1.33 +hg clone http://hg.slitaz.org/wok wok
    1.34 +</code>
    1.35 +
    1.36 +If you were root, enable read/write permissions to your normal account; then exit the root one:
    1.37 +<code>
    1.38 +chown tux.tux -R wok
    1.39 +</code>
    1.40 +
    1.41 +The patches will apply well on the revisions for which they was created, but problems can appear with the other revisions. The revisions correlated to the last update of the patches can be found here: http://hg.slitaz.org/wok-experimental.
    1.42 +Update the wok to the good revision:
    1.43 +<code>
    1.44 +hg update -C rev
    1.45 +</code>
    1.46 +
    1.47 +Download experimental patches:
    1.48 +<code>
    1.49 +cd .hg
    1.50 +hg clone http://hg.slitaz.org/wok-experimental patches
    1.51 +</code>
    1.52 +
    1.53 +Apply patches:
    1.54 +<code>
    1.55 +cd ..
    1.56 +hg qpush -a
    1.57 +</code>
    1.58 +
    1.59 +==== Update the experimental wok ====
    1.60 +
    1.61 +Go into the wok:
    1.62 +<code>
    1.63 +cd ?/wok
    1.64 +</code>
    1.65 +
    1.66 +Unapply patches (doesn't work if modifications are uncommitted):
    1.67 +<code>
    1.68 +hg qpop-a
    1.69 +</code>
    1.70 +
    1.71 +Update cooking wok:
    1.72 +<code>
    1.73 +hg pull
    1.74 +</code>
    1.75 +
    1.76 +Check the revision to use at http://hg.slitaz.org/wok-experimental and update the working directory to this revision:
    1.77 +<code>
    1.78 +hg update -C rev
    1.79 +</code>
    1.80 +
    1.81 +Update patches repository:
    1.82 +<code>
    1.83 +cd .hg/patches
    1.84 +hg pull -u
    1.85 +</code>
    1.86 +
    1.87 +Apply the new patches:
    1.88 +<code>
    1.89 +cd ../..
    1.90 +hg qpush -a
    1.91 +</code>
    1.92 \ No newline at end of file