cookutils annotate cook.conf @ rev 1019

cook: add fix() to use '--as-needed' linker flag in compile_rules(); cookit(): make QA fail on empty vars / bad values; remove_already_packed(): fix bug when $PACKAGE not listed in $SPLIT and we use this function for the default set. lighttpd/index.cgi: sort orphans. modules/precheck: separate error message by empty lines.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Dec 07 14:31:28 2017 +0200 (2017-12-07)
parents 1fb0744972f7
children 01fbe9d46cb4
rev   line source
pankso@2 1 # Cook packages builder configuration file
pankso@2 2 #
pankso@2 3
pankso@2 4 # SliTaz working directory
pankso@314 5 SLITAZ="/home/slitaz"
pankso@2 6
pankso@185 7 # Directory paths for cookutils DB and files.
pankso@2 8 WOK="$SLITAZ/wok"
pankso@2 9 PKGS="$SLITAZ/packages"
pankso@2 10 SRC="$SLITAZ/src"
pankso@2 11 CACHE="$SLITAZ/cache"
pankso@2 12 LOGS="$SLITAZ/log"
pankso@310 13 FEEDS="$SLITAZ/xml"
pankso@2 14 DATA="/usr/share/cook"
pankso@2 15
pankso@185 16 # System packages DB.
pankso@2 17 DB="/var/lib/tazpkg"
pankso@2 18 INSTALLED="$DB/installed"
pankso@2 19
pascal@884 20 # Result of "ls $INSTALLED | md5sum | cut -c1-32"
pascal@884 21 SETUP_MD5=""
pascal@884 22
pankso@9 23 # Quality Assurance (empty to disable receipt_quality).
pankso@9 24 QA="0"
pankso@9 25
pankso@204 26 # Automatically cook missing build dependencies (empty to disable).
pankso@204 27 AUTO_COOK=""
pankso@204 28
pankso@2 29 # Hg wok for setup and flavors URL for the Cooker.
pankso@2 30 WOK_URL="http://hg.slitaz.org/wok"
pankso@2 31 FLAVORS_URL="http://hg.slitaz.org/flavors"
pankso@2 32
pankso@405 33 # Cooker URL for RSS feed link (http://localhost/cgi-bin/cooker/cooker.cgi)
pankso@310 34 COOKER_URL="http://cook.slitaz.org/"
pankso@310 35
pankso@2 36 # Translation files to be included in packages.
pankso@183 37 LOCALE=""
pankso@2 38
pankso@449 39 # List of packages installed in build chroot by cook or the Cooker setup.
pankso@449 40 SETUP_PKGS="slitaz-toolchain pkg-config intltool gettext zlib-dev bzip2
pascal@621 41 aufs-utils aufs m4 syslinux-extra pcre pcre-dev bash xorg-dev mercurial
pascal@622 42 rsync dropbear tazlito"
pankso@449 43
paul@197 44 # Target host architecture type (Glibc doesn't support i386 anymore).
pankso@183 45 ARCH="i486"
pankso@2 46
pankso@184 47 # Build and host. These options are for cross-compiling. If you specify
pankso@184 48 # both options and BUILD_SYSTEM is different from HOST_SYSTEM, configure
pankso@184 49 # will prepare to cross-compile from BUILD_SYSTEM to be used on HOST_SYSTEM.
pankso@216 50 #BUILD_SYSTEM="$(uname -m)-slitaz-linux"
pankso@216 51 BUILD_SYSTEM="$ARCH-slitaz-linux"
pankso@185 52 HOST_SYSTEM="$ARCH-slitaz-linux"
pankso@2 53
paul@455 54 # SliTaz uses the sysroot method, this tells GCC to consider dir as the root
pankso@441 55 # of a tree that contains a (subset of) the root filesystem of the target
pankso@441 56 # operating system. Target system headers, libraries and run-time object
pankso@441 57 # files will be searched in there. Cook will use the tools and sysroot in
pankso@441 58 # the CROSS_TREE for cross compiling. Example: CROSS_TREE="/cross/$ARCH"
pankso@441 59 CROSS_TREE=""
pankso@192 60
pankso@449 61 # List of packages installed in chroot by cook or the Cooker setup.
pankso@449 62 # When cross compiling we need some build system tools installed and
pankso@449 63 # some cross-compiled bdeps installed in: $PREFIX (cross host root)
pankso@449 64 CROSS_SETUP="slitaz-toolchain zlib-dev bzip2 aufs-utils aufs bash m4 \
pankso@646 65 autoconf automake libtool gettext bison texinfo"
pankso@449 66
pankso@184 67 # SliTaz optimisation flags - Wide compatibility & optimized for ARCH.
pankso@369 68 #
pankso@183 69 # With -O2: binutils: Produce 14.0M Packed 5.5M Compressed 1.2M
pankso@183 70 # With -Os: binutils: Produce 13.4M Packed 4.9M Compressed 1.1M
pankso@369 71 #
paul@382 72 # ARM: don't use -0s but -02
pankso@369 73 # ARM: -mcpu=name [arm9|xscale|...] or -march=name [armv4|armv6|...]
pankso@441 74 # x86_64: CFLAGS="-march=nocona -Os -pipe"
pankso@369 75 #
pankso@373 76 #MAKEFLAGS="-j$(($(grep processor /proc/cpuinfo | wc -l)+1))"
pankso@373 77 MAKEFLAGS="-j$(grep processor /proc/cpuinfo | wc -l)"
pankso@185 78 CFLAGS="-march=$ARCH -Os -pipe -fomit-frame-pointer"
pankso@2 79 CXXFLAGS="$CFLAGS"
pankso@2 80
paul@382 81 # Binutils 2.22 breaks many packages built without LDFLAGS set correctly.
pankso@358 82 #LDFLAGS="-Wl,--copy-dt-needed-entries -lXt"
pankso@358 83
pankso@184 84 # Default tool prefix for Binutils.
pankso@184 85 TOOLPREFIX="${HOST_SYSTEM}-"
pankso@2 86
paul@197 87 # Default arguments for GNU configure. CONFIGURE_ARGS is needed for some
pankso@184 88 # packages since --build and --host is not set at all by cook.site (bug ?).
pankso@2 89 CONFIG_SITE=/etc/slitaz/cook.site
pankso@184 90 CONFIGURE_ARGS="--build=$BUILD_SYSTEM --host=$HOST_SYSTEM"
pankso@2 91
pankso@2 92 # Mirrors URLs. To download sources near your location.
psychomaniak@740 93 GNU_MIRROR="http://mirror.switch.ch/ftp/mirror/gnu"
al@871 94 SF_MIRROR="https://downloads.sourceforge.net"
al@871 95 XORG_MIRROR="https://www.x.org/archive/individual"
pankso@2 96 GNOME_MIRROR="http://ftp.gnome.org/pub/GNOME/sources"
al@871 97 GITHUB="https://api.github.com/repos"
pankso@29 98
pankso@358 99 # List of filesystems into the aufs chroot (to protect / against modifications)
pascal@293 100 # Default tank config:
pankso@369 101 AUFS_MOUNTS="/ /proc /sys /dev/shm /dev/pts /var/cache/tazpkg \
pankso@369 102 /home /home/slitaz/src /home/slitaz/packages"
pankso@405 103
pankso@405 104 # Old way/tazwok compatibility.
pankso@405 105 BUILD_HOST="$HOST_SYSTEM"
pankso@421 106 SOURCES_REPOSITORY=$SRC
pascal@580 107
pascal@580 108 # Maximum log size in MB per receipt function call (unset it to disable)
pascal@580 109 DEFAULT_LOG_LIMIT=50