wok-undigest diff linux/receipt @ rev 1229
updated libgio and libgio-dev (2.43.3 -> 2.62.4)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Sep 09 14:00:14 2020 +0100 (2020-09-09) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/linux/receipt Wed Sep 09 14:00:14 2020 +0100 1.3 @@ -0,0 +1,426 @@ 1.4 +# SliTaz package receipt v2. 1.5 + 1.6 +PACKAGE="linux" 1.7 +VERSION="4.14.85" 1.8 +KBASEVER="$(echo $VERSION | cut -d. -f1,2)" 1.9 +CATEGORY="base-system" 1.10 +SHORT_DESC="The Linux Kernel" 1.11 +MAINTAINER="devel@slitaz.org" 1.12 +LICENSE="GPL2" 1.13 +WEB_SITE="https://www.kernel.org/" 1.14 + 1.15 +TARBALL="$PACKAGE-$KBASEVER.tar.xz" 1.16 +WGET_URL="https://www.kernel.org/pub/linux/kernel/v4.x/$TARBALL" 1.17 + 1.18 +COOKOPTS="force-arch" # different files in linux-source and linux-without-modules 1.19 + 1.20 +BUILD_DEPENDS_x86_64="perl xz patch kmod bc elfutils-dev openssl-dev" 1.21 +BUILD_DEPENDS="perl xz lzma patch kmod bc elfutils-dev openssl-dev" # git 1.22 +# Removed: lguest, linux-firmware, linux-logfs, linux-irda, linux-toshiba 1.23 +SPLIT="\ 1.24 +$PACKAGE-acpi $PACKAGE-agp $PACKAGE-aoe \ 1.25 +$PACKAGE-appletalk $PACKAGE-arcnet $PACKAGE-autofs \ 1.26 +$PACKAGE-bluetooth $PACKAGE-bridge $PACKAGE-btrfs \ 1.27 +$PACKAGE-cifs $PACKAGE-coda $PACKAGE-cpufreq \ 1.28 +$PACKAGE-cramfs $PACKAGE-crypto $PACKAGE-cryptoloop \ 1.29 +$PACKAGE-dialup $PACKAGE-dlm $PACKAGE-drm \ 1.30 +$PACKAGE-ecryptfs $PACKAGE-efi $PACKAGE-ethernet \ 1.31 +$PACKAGE-exofs $PACKAGE-firewire $PACKAGE-gfs2 \ 1.32 +$PACKAGE-hfs $PACKAGE-hfsplus $PACKAGE-hid \ 1.33 +$PACKAGE-hwmon $PACKAGE-ide $PACKAGE-input-misc \ 1.34 +$PACKAGE-input-tablet $PACKAGE-input-touchscreen $PACKAGE-ipv6 \ 1.35 +$PACKAGE-isdn $PACKAGE-jfs \ 1.36 +$PACKAGE-joystick $PACKAGE-kvm $PACKAGE-md \ 1.37 +$PACKAGE-media $PACKAGE-memstick $PACKAGE-minix \ 1.38 +$PACKAGE-mmc $PACKAGE-module-headers $PACKAGE-mwave \ 1.39 +$PACKAGE-ncpfs $PACKAGE-nbd $PACKAGE-netfilter \ 1.40 +$PACKAGE-nfc $PACKAGE-nfs $PACKAGE-nfsd \ 1.41 +$PACKAGE-ocfs2 $PACKAGE-orangefs $PACKAGE-radio \ 1.42 +$PACKAGE-reiserfs $PACKAGE-romfs $PACKAGE-sched \ 1.43 +$PACKAGE-scsi $PACKAGE-sound $PACKAGE-source \ 1.44 +$PACKAGE-speakup $PACKAGE-squashfs $PACKAGE-staging \ 1.45 +$PACKAGE-usb-gadget $PACKAGE-usb-misc $PACKAGE-usbdsl \ 1.46 +$PACKAGE-usbip $PACKAGE-uwb $PACKAGE-video \ 1.47 +$PACKAGE-wan $PACKAGE-watchdog $PACKAGE-wimax \ 1.48 +$PACKAGE-wireless $PACKAGE-without-modules $PACKAGE-zram" 1.49 +COOKOPTS="skip-log-errors" 1.50 + 1.51 +if [ "$KBASEVER" != "${VERSION%.0}" ]; then 1.52 + PATCH="$(dirname $WGET_URL)/patch-$VERSION.xz" 1.53 + EXTRA_SOURCE_FILES="$(basename $PATCH)" 1.54 +fi 1.55 + 1.56 +# 1.57 +# The Linux receipt handle cross compilation; for ARM we use a real cross env. 1.58 +# Please discuss any change and try to keep it simple. 1.59 +# 1.60 +# The receipt handle cook option for faster build: 1.61 +# --nonomods : Skip bzImage without modules build 1.62 +# 1.63 + 1.64 +# CONFIG_PAGE_TABLE_ISOLATION 1.65 +# against Meltdown currently available in 4.14 only for x86_64 architecture. 1.66 +# CONFIG_RETPOLINE 1.67 +# against Spectre v.2 available both for i386 and x86_64 architectures. 1.68 + 1.69 + 1.70 +compile_rules() { 1.71 + case $ARCH in 1.72 + # Linux don't supported i386 CPU, but ARCH should be 'i386' if we need 32bit CPU support 1.73 + i?86) ConfigFile="$stuff/linux-slitaz.config"; Arch='i386';; 1.74 + x86_64) ConfigFile="$stuff/linux-slitaz64.config"; Arch='x86_64';; 1.75 + esac 1.76 + 1.77 + # Update sources to the $VERSION using base sources ($KBASEVER) and patch 1.78 + if [ "$KBASEVER" != "${VERSION%.0}" ]; then 1.79 + [ -s $SRC/$(basename $PATCH) ] || wget $PATCH -O $SRC/$(basename $PATCH) 1.80 + # don't patch twice for `cook $PACKAGE --continue` 1.81 + if [ ! -f "done.patch-$VERSION" ]; then 1.82 + xzcat $SRC/$(basename $PATCH) | patch -Np1 1.83 + touch done.patch-$VERSION 1.84 + fi 1.85 + fi 1.86 + 1.87 + # 1.88 + if [ -f "/usr/share/boot/initrd" ]; then 1.89 + cp /usr/share/boot/initrd initrd.cpio 1.90 + fi 1.91 + 1.92 + # Get and apply Aufs patches 1.93 + . $stuff/tools/aufs-patches 1.94 + 1.95 + echo "cook:linux" > $command 1.96 + 1.97 + # Apply misc patches 1.98 + echo "Applying patches..." 1.99 + while read patch_file; do 1.100 + if [ -f done.$patch_file ]; then 1.101 + echo "Skipping $patch_file"; continue 1.102 + fi 1.103 + echo -e "\nApply $patch_file" 1.104 + patch -p1 -i $stuff/patches/$patch_file || return 1 1.105 + touch done.$patch_file 1.106 + done < $stuff/patches/patch.order 1.107 + 1.108 + echo "Making kernel proper..." 1.109 + make mrproper 1.110 + 1.111 + 1.112 + 1.113 + echo "Making $Arch Kernel..." 1.114 + 1.115 + # Build bzImage without modules first 1.116 + if [ -z "$nonomods" ]; then 1.117 + cp -f $ConfigFile .config 1.118 + sed -i 's/CONFIG_MODULES=y/# CONFIG_MODULES is not set/' .config 1.119 + # We can't keep every driver in staging??? 1.120 + sed -i \ 1.121 + -e 's/^CONFIG_RTL8192/#&/' \ 1.122 + -e 's/^CONFIG_R8187SE/#&/' \ 1.123 + -e 's/^CONFIG_RT2870/#&/' .config 1.124 + 1.125 + title 'Configure bzImage without modules...' 1.126 + yes '' | make ARCH=$Arch oldconfig 1.127 + 1.128 + title 'Building bzImage without modules...' 1.129 + make ARCH=$Arch -j4 bzImage || return 1 1.130 + 1.131 + mkdir -p $install 1.132 + mv arch/x86/boot/bzImage $install 1.133 + mv System.map System.map-without-modules 1.134 + fi 1.135 + 1.136 + # Build bzImage with modules 1.137 + cp -f $ConfigFile .config 1.138 + 1.139 + title 'Configure bzImage with modules...' 1.140 + yes '' | make ARCH=$Arch oldconfig 1.141 + 1.142 + 1.143 + title 'Building bzImage with modules...' 1.144 + make ARCH=$Arch -j4 bzImage && 1.145 + make ARCH=$Arch -j4 modules && 1.146 + make ARCH=$Arch INSTALL_MOD_PATH=$install modules_install && 1.147 + make ARCH=$Arch INSTALL_HDR_PATH=$install/usr headers_install && 1.148 + 1.149 + [ -s arch/x86/boot/bzImage ] || return 1 1.150 + mkdir -p $install/boot 1.151 + mv arch/x86/boot/bzImage $install/boot/vmlinuz-$VERSION-slitaz 1.152 + 1.153 + $stuff/tools/install_module_headers.sh $install $src $VERSION-slitaz 1.154 + 1.155 + ln System.map System.map-modules 1.156 + ln Module.symvers Module.symvers-modules 1.157 + 1.158 + # for linux-zram package 1.159 + mkdir -p $install/etc/init.d 1.160 + install -o root -m755 $stuff/compcache $install/etc/init.d/ 1.161 + install -o root -m644 $stuff/compcache.conf $install/etc/ 1.162 +} 1.163 + 1.164 + 1.165 +genpkg_rules() { 1.166 + DEPENDS="linux" # default, may be subject to change later 1.167 + 1.168 + case $PACKAGE in 1.169 + *-acpi) c="ACPI modules";; 1.170 + *-agp) c="AGP modules";; 1.171 + *-aoe) c="AoE (ATA over Ethernet) modules";; 1.172 + *-appletalk) c="Appletalk modules";; 1.173 + *-arcnet) c="ARCnet modules";; 1.174 + *-autofs) c="Automounter module";; 1.175 + *-bluetooth) c="Bluetooth modules";; 1.176 + *-bridge) c="Bridge modules";; 1.177 + *-btrfs) c="Btrfs module"; DEPENDS="linux-crypto";; 1.178 + *-cifs) c="CIFS module";; 1.179 + *-coda) c="Coda module";; 1.180 + *-cpufreq) c="Cpufreq modules";; 1.181 + *-cramfs) c="CramFs module";; 1.182 + *-crypto) c="Crypto modules";; 1.183 + *-cryptoloop) c="Cryptoloop modules"; DEPENDS="linux-crypto";; 1.184 + *-dialup) c="Dial-up modules";; 1.185 + *-dlm) c="DLMFS module";; 1.186 + *-drm) c="DRM module"; DEPENDS="linux-agp";; 1.187 + *-ecryptfs) c="eCrypt FS module";; 1.188 + *-efi) c="EFI modules";; 1.189 + *-ethernet) c="Ethernet drivers"; DEPENDS="linux-crypto";; 1.190 + *-exofs) c="OSD based FS module"; DEPENDS="linux-crypto";; 1.191 + *-firewire) c="Firewire modules";; 1.192 + *-gfs2) c="GFS2 module";; 1.193 + *-hfs) c="HFS module";; 1.194 + *-hfsplus) c="HFSplus module";; 1.195 + *-hid) c="HID (human interface device) modules";; 1.196 + *-hwmon) c="Hwmon modules";; 1.197 + *-ide) c="IDE modules";; 1.198 + *-input-misc) c="misc. input drivers";; 1.199 + *-input-tablet) c="tablet input drivers";; 1.200 + *-input-touchscreen) c="touchscreen input drivers";; 1.201 + *-ipv6) c="IPv6 modules"; DEPENDS="linux-netfilter";; 1.202 + *-isdn) c="ISDN modules";; 1.203 + *-jfs) c="JFS module";; 1.204 + *-joystick) c="joystick modules";; 1.205 + *-kvm) c="KVM and Virtio modules";; 1.206 + *-md) c="MD modules"; DEPENDS="linux-crypto";; 1.207 + *-media) c="media modules"; DEPENDS="linux-radio";; 1.208 + *-memstick) c="Sony memory stick modules";; 1.209 + *-minix) c="Minix module";; 1.210 + *-mmc) c="MMC modules - card reader";; 1.211 + *-mwave) c="ACP Modem driver module - for IBM Thinkpad";; 1.212 + *-nbd) c="NBD (network block device) modules";; 1.213 + *-ncpfs) c="NCPFS module";; 1.214 + *-netfilter) c="Netfilter modules";; 1.215 + *-nfc) c="NFC modules";; 1.216 + *-nfs) c="NFS modules"; DEPENDS="linux-crypto";; 1.217 + *-nfsd) c="NFS server module"; DEPENDS="linux-nfs";; 1.218 + *-ocfs2) c="OCFS2 modules"; DEPENDS="linux-dlm";; 1.219 + *-orangefs) c="OrangeFS module";; 1.220 + *-radio) c="radio modules"; DEPENDS="linux-sound";; 1.221 + *-reiserfs) c="ReiserFS module";; 1.222 + *-romfs) c="ROMFS module";; 1.223 + *-sched) c="Sched modules";; 1.224 + *-scsi) c="SCSI modules";; 1.225 + *-sound) c="sound modules" 1.226 + copy firmware/ess/ firmware/korg/ firmware/sun/ firmware/yamaha/ 1.227 + ;; 1.228 + *-speakup) c="Speakup modules";; 1.229 + *-squashfs) c="Squashfs module"; PROVIDE="squashfs-module";; 1.230 + *-staging) c="staging kernel modules";; 1.231 + *-toshiba) c="Toshiba module";; 1.232 + *-usb-gadget) c="USB gadget modules";; 1.233 + *-usb-misc) c="misc. USB drivers";; 1.234 + *-usbdsl) c="USB DSL modem modules";; 1.235 + *-usbip) c="Usbip module"; PROVIDE="usbip-module";; 1.236 + *-uwb) c="UWB modules";; 1.237 + *-video) c="video modules";; 1.238 + *-wan) c="Wide Area Networks (WANs) modules"; DEPENDS="linux-wireless";; 1.239 + *-watchdog) c="watchdog drivers";; 1.240 + *-wimax) c="Wimax modules";; 1.241 + *-wireless) c="wireless modules"; DEPENDS="linux-crypto wireless_tools";; 1.242 + *-zram) c="compressed caching support"; PROVIDE="compcache" 1.243 + copy compcache compcache.conf 1.244 + ;; 1.245 + esac 1.246 + 1.247 + case $PACKAGE in 1.248 + linux) 1.249 + DEPENDS="kmod" 1.250 + 1.251 + # Copy the Kernel 1.252 + cp -a $install/boot $fs 1.253 + 1.254 + # Copy base modules 1.255 + . $stuff/tools/copy_modules.sh 1.256 + 1.257 + # We only need modules.{order,builtin} because other map files are 1.258 + # generated by depmod in post_install() 1.259 + copy modules.order modules.builtin 1.260 + rm -rf $fs/usr 1.261 + 1.262 + # Pack all packages with a Kernel modules 1.263 + [ ! -d "$install/lib/modules/$VERSION-slitaz" ] && return 1 1.264 + 1.265 + # Checking for Linux Kernel modules that don't belong to any of the packages 1.266 + # $stuff/tools/check_modules.sh 1.267 + # please, see web interface instead 1.268 + ;; 1.269 + *-firmware) 1.270 + mkdir -p $fs/lib 1.271 + cp -a $install/lib/firmware $fs/lib 1.272 + # remove linux-sound firmware files 1.273 + for i in ess korg sun yamaha; do 1.274 + rm -rf $fs/lib/firmware/$i 1.275 + done 1.276 + CAT="non-free|firmware thats compiled from Linux source code" 1.277 + PROVIDE="linux64-firmware" 1.278 + ;; 1.279 + *-module-headers) 1.280 + CAT="development|header files and scripts for building modules for Linux Kernel" 1.281 + KVERSION="$VERSION-slitaz" 1.282 + DEPENDS="slitaz-toolchain" 1.283 + mkdir -p $fs/lib/modules/$KVERSION $fs/usr 1.284 + cp -a $install/usr/src $fs/usr 1.285 + ;; 1.286 + *-source) 1.287 + CAT="development|source files" 1.288 + DEPENDS="linux slitaz-toolchain ncurses-dev perl xz lzma patch busybox-boot" 1.289 + 1.290 + local _AUFSVER=$(. $WOK/aufs/receipt; echo $VERSION) 1.291 + local AUFSDIR="aufs-${_AUFSVER}" 1.292 + kps=$fs/usr/src/kernel-patches/slitaz 1.293 + mkdir -p $kps \ 1.294 + $fs/lib/modules/$VERSION-slitaz \ 1.295 + $fs/usr/bin $fs/usr/sbin 1.296 + 1.297 + # URL 1.298 + echo $(. $WOK/linux/receipt; echo $WGET_URL) > $kps/url 1.299 + # stuff 1.300 + cp $stuff/tools/* $stuff/bootloader.sh $kps 1.301 + # Kernel patch 1.302 + xzcat $SRC/patch-$VERSION.xz > $kps/linux-$VERSION.patch 1.303 + echo "linux-$VERSION.patch" > $kps/patches 1.304 + # Aufs patches 1.305 + sed '/^aufs4.*patch$/!d' $stuff/tools/aufs-patches | \ 1.306 + tee -a $kps/patches | \ 1.307 + while read i; do 1.308 + cp $WOK/aufs/source/*/$i $kps 1.309 + done 1.310 + # misc. patches 1.311 + cat $stuff/patches/patch.order >> $kps/patches 1.312 + cp $stuff/patches/* $kps 1.313 + rm $kps/patch.order 1.314 + # config 1.315 + cp $WOK/linux/source/linux-$VERSION/.config $kps/config 1.316 + 1.317 + cp -a $stuff/linux-source/buildtaz $kps 1.318 + cp -a $stuff/linux-source/make-tazpkg.u $kps 1.319 + cp -a $stuff/linux-source/get-linux-source $fs/usr/bin 1.320 + cp -a $stuff/linux-source/list_modules.sh $kps 1.321 + cp -a $stuff/linux-source/rdev $fs/usr/sbin 1.322 + ln -s rdev $fs/usr/sbin/rootflags 1.323 + ln -s rdev $fs/usr/sbin/ramsize 1.324 + ln -s rdev $fs/usr/sbin/vidmode 1.325 + sed -i "s|=XXX|=$VERSION|g" $fs/usr/bin/get-linux-source 1.326 + 1.327 + # Copy Aufs4 source files 1.328 + if [ -d $WOK/aufs/$AUFSDIR ]; then 1.329 + mkdir $fs/usr/src/kernel-patches/slitaz/aufs4 1.330 + cp -a $WOK/aufs/$AUFSDIR/Documentation \ 1.331 + $WOK/aufs/$AUFSDIR/fs \ 1.332 + $WOK/aufs/$AUFSDIR/include \ 1.333 + $fs/usr/src/kernel-patches/slitaz/aufs4 1.334 + fi 1.335 + 1.336 + ln -s ../../../usr/src/linux-$VERSION $fs/lib/modules/$VERSION-slitaz/source 1.337 + 1.338 + chown -R root:root $fs 1.339 + ;; 1.340 + *-without-modules) 1.341 + CAT="base-system|without module support" 1.342 + PROVIDE="linux" 1.343 + mkdir -p $fs/boot 1.344 + cp -a $install/bzImage $fs/boot/vmlinuz-$VERSION-slitaz-without-modules 1.345 + ;; 1.346 + *) 1.347 + . $stuff/tools/copy_modules.sh 1.348 + CAT="base-system|$c" 1.349 + ;; 1.350 + esac 1.351 + 1.352 + case $PACKAGE in 1.353 + *fs|*fs2|*-coda|*-dlm|*-hfsplus|*-minix|*-nfsd) 1.354 + CONFIG_FILES="/etc/filesystems";; 1.355 + *-zram) 1.356 + CONFIG_FILES="/etc/compcache.conf";; 1.357 + esac 1.358 +} 1.359 + 1.360 + 1.361 +post_install_linux() { 1.362 + # GRUB stuff. 1.363 + if [ -f "$1/boot/grub/menu.lst" ]; then 1.364 + # Current root device 1.365 + root_dev="/dev/$(lsblk | grep '/$'| grep -o '[a-z]d[a-z][0-9]*')" 1.366 + grub_part="$(( $(echo $root_dev | grep -o '[0-9]*$')-1 ))" 1.367 + # Use device.map to find grub device number 1.368 + grub_dev="$(grep $(echo $root_dev | grep -o '^/dev/.d.' ) \ 1.369 + "$1/boot/grub/device.map" | cut -f1 | sed "s/)$/.$grub_part)/g")" 1.370 + 1.371 + # Add and clean Kernel entries in case of upgrade for installed system. 1.372 + if ! grep -q vmlinuz-$VERSION-slitaz "$1/boot/grub/menu.lst"; then 1.373 + 1.374 + # Clean the old entry 1.375 + # TODO: old vmlinuz file is removed but the entry is still there. 1.376 + # So grub error:15 when selected: http://bugs.slitaz.org/?id=74 1.377 + 1.378 + # Add the new entry 1.379 + cat >> "$1/boot/grub/menu.lst" <<EOT 1.380 + 1.381 +title SliTaz GNU/Linux (Kernel $VERSION-slitaz) 1.382 +$grub_dev 1.383 +kernel /boot/vmlinuz-$VERSION-slitaz root=$root_dev quiet 1.384 +EOT 1.385 + # Make it the default entry 1.386 + last_entry=$(( $(grep -c '^title' "$1/boot/grub/menu.lst")-1 )) 1.387 + sed -e "s/^default.*/default $last_entry/g" -i "$1/boot/grub/menu.lst" 1.388 + fi 1.389 + 1.390 + # Display information message. 1.391 + [ -z "$quiet" ] && cat <<EOT 1.392 + 1.393 +---- 1.394 +GRUB is installed, these three lines must be in your /boot/grub/menu.lst: 1.395 + 1.396 +title SliTaz GNU/Linux (Kernel $VERSION-slitaz) 1.397 +$grub_dev 1.398 +kernel /boot/vmlinuz-$VERSION-slitaz root=$root_dev 1.399 +---- 1.400 +EOT 1.401 + fi 1.402 + : 1.403 +} 1.404 + 1.405 +pre_remove_linux_module_headers() { 1.406 + if [ -e "$1/usr/src/linux" ]; then 1.407 + rm -rf "$1/usr/src/linux" 1.408 + fi 1.409 +} 1.410 + 1.411 +# Added soft link to make it easier to point to kernel folder 1.412 +post_install_linux_module_headers() { 1.413 + KVERSION="$VERSION-slitaz" 1.414 + [ -L "$1/usr/src/linux" ] && rm -f "$1/usr/src/linux" 1.415 + ln -sf /usr/src/linux-$KVERSION "$1/usr/src/linux" 1.416 + ln -sf /usr/src/linux-$KVERSION "$1/lib/modules/$KVERSION/build" 1.417 +} 1.418 + 1.419 +post_install_linux_zram() { 1.420 + chroot "$1/" depmod -a $VERSION-slitaz && 1.421 + RAM=$(grep MemTotal /proc/meminfo | tr -dc 0-9) && 1.422 + echo "SIZE_KB="$(($RAM/2)) > "$1/etc/compcache.conf" 1.423 + [ -n "$quiet" ] || cat <<EOT 1.424 + 1.425 +You can add compressed swap according /etc/compcache.conf configuration with: 1.426 +# /etc/init.d/compcache start 1.427 +Or add compcache to the RUN_DAEMONS list of /etc/rcS.conf. 1.428 +EOT 1.429 +}