slitaz-doc-wiki-data annotate pages/en/guides/tazwoktips.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 ====== Tazwoktips ======
slaxemulator@7 2
slaxemulator@7 3 You must read the [[http://doc.slitaz.org/en:cookbook:start|Cookbook]] first - it's a great collection of documents. This guide supplements the cookbook with some tips that you are most likely to face while compiling packages for SliTaz.
slaxemulator@7 4
slaxemulator@7 5 ===== Tips =====
slaxemulator@7 6
slaxemulator@7 7 - Add the "slitaz-dev-pkgs" package - it's a meta package that adds some of the useful *-dev packages
slaxemulator@7 8 - Compilation Errors like
slaxemulator@7 9 * checking for $PKG... configure: error: Couldn't find $PKG >= 1.0.0,
slaxemulator@7 10 * configure: error: Couldn't find $FILENAME
slaxemulator@7 11 * use: "tazpkg search-pkgname $FILENAME" to find the package with the missing file; Add this package to the BUILD_DEPENDS in the receipt
slaxemulator@7 12 - Read receipts of the other packages for standardization. The problems you face may already have a solution in one of these receipts. Some example receipts include:
slaxemulator@7 13 * xorg-libSM (or any xorg-*) : to use a $SOURCE variable
slaxemulator@7 14 * cups : to strip files other than .so in usr/lib, and to compress some driver files
slaxemulator@7 15 * ndiswrapper-driver or broadcom-wl : to cook linux modules
slaxemulator@7 16 * mplayer-svn : to create packages from a svn/git repository
slaxemulator@7 17 * 915resolution or busybox : to add patches
slaxemulator@7 18 * nvidia : to create non-free packages that need the linux package for compiling modules
slaxemulator@7 19 * get-* : to create non-free packages
slaxemulator@7 20 * *-dev : to see how to create a dev receipt
slaxemulator@7 21 - Create lighter packages. Always remember to disable gnome dependencies or any other dependencies that are not so useful. Always use "configure --help" to see the compile options. Many packages have auto-dependency tracking, i.e., if it finds a corresponding *-dev package installed on the system, it will auto-enable an option. So, if you don't disable an unwanted dependency, then when a package is cooked on the SliTaz tank server, it is likely that the package won't run properly because of the missing dependency. The missing dependency problems that are often reported on the forum are caused due to this problem.
slaxemulator@7 22 - Missing .pc files : Sometimes a dev package created upstream misses .pc files, so pkg-config cannot locate the corresponding dev files correctly. This can play havoc sometimes as you expect the upstream packages to be properly distributed. firefox-dev is one such example.
slaxemulator@7 23 - gcc4.4 patches : The new stricter format of gcc4.4 breaks many packages. This is quite a common problem. You need to either create a simple patch or see if a new upgrade is available upstream. See mplayerplug-svn.
slaxemulator@7 24 - Use a chroot environment and keep it clean so that you can submit the receipt with the correct BUILD_DEPENDS.
slaxemulator@7 25
slaxemulator@7 26 ----
slaxemulator@7 27 \\
slaxemulator@7 28 ^ Page Review Section ^^
slaxemulator@7 29 |Quality| Good |
slaxemulator@7 30 |Review| Minor Updates |
slaxemulator@7 31 |Priority| Medium |
slaxemulator@7 32 |Problems| add a [[http://forum.slitaz.org|forum post link]]|
slaxemulator@7 33 |::: | OR add a [[http://labs.slitaz.org/issues |lab issue tracker link ]]|
slaxemulator@7 34 |How to Improve| Suggest briefly|
slaxemulator@7 35 |::: | |
slaxemulator@7 36
slaxemulator@7 37 \\
slaxemulator@7 38 ----