Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:devnotes:cook-flavor-from-scratch [2011/01/21 11:26] oui [Explanation] |
en:devnotes:cook-flavor-from-scratch [2011/01/23 02:15] gokhlayeh [Cook toolchain] Fix |
||
---|---|---|---|
Line 47: | Line 47: | ||
==== Cook toolchain ==== | ==== Cook toolchain ==== | ||
- | <note tip>Following command-lines works for a wok at: /home/slitaz/experimental/wok. If you putted the wok elsewhere, you can use the option --SLITAZ_DIR=adress; where adress is equivalent to /home/slitaz. This option must be used each time --SLITAZ_VERSION is used. You can also define SLITAZ_VERSION & SLITAZ_DIR globally using /etc/slitaz/slitaz.conf.</note> | + | <note tip>Following command-lines works for a wok at: /home/slitaz/experimental/wok. If you putted the wok elsewhere, you can use the option --SLITAZ_DIR=adress; where address is equivalent to /home/slitaz. This option must be used each time --SLITAZ_VERSION is used. You can also define SLITAZ_VERSION & SLITAZ_DIR globally using /etc/slitaz/slitaz.conf.</note> |
Configure the //chroot//: | Configure the //chroot//: | ||
Line 56: | Line 56: | ||
If you have at least 1GB RAM free you can put the minimal chroot in RAM speed-up cooking process: | If you have at least 1GB RAM free you can put the minimal chroot in RAM speed-up cooking process: | ||
<code> | <code> | ||
- | sed 's~chroot_dir=.*~chroot_dir=/tmp/chroot-experimental/' -i /home/slitaz/experimental/tazchroot.conf | + | sed 's~chroot_dir=.*~chroot_dir=/tmp/chroot-experimental~' -i /home/slitaz/experimental/tazchroot.conf |
</code> | </code> | ||
Line 76: | Line 76: | ||
You need to tell to tazpkg that you now have a local version of experimental: | You need to tell to tazpkg that you now have a local version of experimental: | ||
<code> | <code> | ||
+ | # If you had already defined the experimental repository: | ||
echo "/home/slitaz/experimental/packages" > /var/lib/tazpkg/undigest/experimental/mirror | echo "/home/slitaz/experimental/packages" > /var/lib/tazpkg/undigest/experimental/mirror | ||
+ | tazpkg recharge | ||
+ | # Else: | ||
+ | tazpkg add-undigest experimental /home/slitaz/experimental/packages | ||
+ | echo experimental > /var/lib/tazpkg/priority | ||
tazpkg recharge | tazpkg recharge | ||
</code> | </code> | ||
Line 90: | Line 95: | ||
As packages has been re-cooked, you have to update the packages repository once again: | As packages has been re-cooked, you have to update the packages repository once again: | ||
<code> | <code> | ||
- | tazwok check-incoming --SLITAZ_VERSION=experimental | + | tazwok check-incoming |
- | </code> | + | |
- | + | ||
- | The previous chroot is now useless, let's remove it to let tazwok re-build it with the new version of toolchain the next time: | + | |
- | <code> | + | |
- | # Legacy adress: | + | |
- | rm -r /home/slitaz/experimental/chroot | + | |
- | # Chroot in /tmp: | + | |
- | rm -r /tmp/chroot-experimental | + | |
</code> | </code> | ||