slitaz-doc-wiki-data annotate 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
rev   line source
slaxemulator@7 1 ====== Prepare the experimental wok ======
slaxemulator@7 2
slaxemulator@7 3 ==== Warning ====
slaxemulator@7 4
slaxemulator@7 5 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.
slaxemulator@7 6
slaxemulator@7 7 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).
slaxemulator@7 8
slaxemulator@7 9 ==== Enabling Mercurial Queue ====
slaxemulator@7 10
slaxemulator@7 11 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:
slaxemulator@7 12
slaxemulator@7 13 <code>
slaxemulator@7 14 [extensions]
slaxemulator@7 15 mq =
slaxemulator@7 16 </code>
slaxemulator@7 17
slaxemulator@7 18 ==== Download cooking wok & patch it ====
slaxemulator@7 19
slaxemulator@7 20 First check that the destination disk is mounted. In the directory which contains the data, create a repository called experimental and enter in it:
slaxemulator@7 21 <code>
slaxemulator@7 22 cd destination
slaxemulator@7 23 mkdir experimental
slaxemulator@7 24 cd experimental
slaxemulator@7 25 </code>
slaxemulator@7 26
slaxemulator@7 27
slaxemulator@7 28 Download the wok:
slaxemulator@7 29 <code>
slaxemulator@7 30 hg clone http://hg.slitaz.org/wok wok
slaxemulator@7 31 </code>
slaxemulator@7 32
slaxemulator@7 33 If you were root, enable read/write permissions to your normal account; then exit the root one:
slaxemulator@7 34 <code>
slaxemulator@7 35 chown tux.tux -R wok
slaxemulator@7 36 </code>
slaxemulator@7 37
slaxemulator@7 38 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.
slaxemulator@7 39 Update the wok to the good revision:
slaxemulator@7 40 <code>
slaxemulator@7 41 hg update -C rev
slaxemulator@7 42 </code>
slaxemulator@7 43
slaxemulator@7 44 Download experimental patches:
slaxemulator@7 45 <code>
slaxemulator@7 46 cd .hg
slaxemulator@7 47 hg clone http://hg.slitaz.org/wok-experimental patches
slaxemulator@7 48 </code>
slaxemulator@7 49
slaxemulator@7 50 Apply patches:
slaxemulator@7 51 <code>
slaxemulator@7 52 cd ..
slaxemulator@7 53 hg qpush -a
slaxemulator@7 54 </code>
slaxemulator@7 55
slaxemulator@7 56 ==== Update the experimental wok ====
slaxemulator@7 57
slaxemulator@7 58 Go into the wok:
slaxemulator@7 59 <code>
slaxemulator@7 60 cd ?/wok
slaxemulator@7 61 </code>
slaxemulator@7 62
slaxemulator@7 63 Unapply patches (doesn't work if modifications are uncommitted):
slaxemulator@7 64 <code>
slaxemulator@7 65 hg qpop-a
slaxemulator@7 66 </code>
slaxemulator@7 67
slaxemulator@7 68 Update cooking wok:
slaxemulator@7 69 <code>
slaxemulator@7 70 hg pull
slaxemulator@7 71 </code>
slaxemulator@7 72
slaxemulator@7 73 Check the revision to use at http://hg.slitaz.org/wok-experimental and update the working directory to this revision:
slaxemulator@7 74 <code>
slaxemulator@7 75 hg update -C rev
slaxemulator@7 76 </code>
slaxemulator@7 77
slaxemulator@7 78 Update patches repository:
slaxemulator@7 79 <code>
slaxemulator@7 80 cd .hg/patches
slaxemulator@7 81 hg pull -u
slaxemulator@7 82 </code>
slaxemulator@7 83
slaxemulator@7 84 Apply the new patches:
slaxemulator@7 85 <code>
slaxemulator@7 86 cd ../..
slaxemulator@7 87 hg qpush -a
slaxemulator@7 88 </code>