diff options
author | 2022-06-11 01:56:19 +0000 | |
---|---|---|
committer | 2022-06-11 07:00:11 +0200 | |
commit | fc0c0fd79b7d1b26b943062e3ed31327e01829cd (patch) | |
tree | 0d840f743d3d53e4492b4d4e0e0369a0c7ec4f98 /testing | |
parent | 4932eebc956b5ec8edf05adfe2443d4671278b6f (diff) | |
download | current-fc0c0fd79b7d1b26b943062e3ed31327e01829cd.tar.gz current-fc0c0fd79b7d1b26b943062e3ed31327e01829cd.tar.xz |
Sat Jun 11 01:56:19 UTC 202220220611015619
a/kernel-firmware-20220610_7b71b75-noarch-1.txz: Upgraded.
a/kernel-generic-5.18.3-x86_64-1.txz: Upgraded.
a/kernel-huge-5.18.3-x86_64-1.txz: Upgraded.
a/kernel-modules-5.18.3-x86_64-1.txz: Upgraded.
d/gcc-12.1.0-x86_64-1.txz: Upgraded.
d/gcc-brig-11.3.0-x86_64-1.txz: Removed.
d/gcc-g++-12.1.0-x86_64-1.txz: Upgraded.
d/gcc-gdc-12.1.0-x86_64-1.txz: Upgraded.
d/gcc-gfortran-12.1.0-x86_64-1.txz: Upgraded.
d/gcc-gnat-12.1.0-x86_64-1.txz: Upgraded.
d/gcc-go-12.1.0-x86_64-1.txz: Upgraded.
d/gcc-objc-12.1.0-x86_64-1.txz: Upgraded.
d/kernel-headers-5.18.3-x86-1.txz: Upgraded.
d/libtool-2.4.7-x86_64-2.txz: Rebuilt.
Recompiled to update embedded GCC version number.
k/kernel-source-5.18.3-noarch-1.txz: Upgraded.
x/libX11-1.8.1-x86_64-1.txz: Upgraded.
xap/blueman-2.2.5-x86_64-1.txz: Upgraded.
isolinux/initrd.img: Rebuilt.
kernels/*: Upgraded.
usb-and-pxe-installers/usbboot.img: Rebuilt.
Diffstat (limited to '')
33 files changed, 60 insertions, 1818 deletions
diff --git a/testing/source/linux-5.18.x/kernel-configs/config-generic-5.18.2 b/source/k/kernel-configs/config-generic-5.18.3 index 597c3b9f4..4e7195645 100644 --- a/testing/source/linux-5.18.x/kernel-configs/config-generic-5.18.2 +++ b/source/k/kernel-configs/config-generic-5.18.3 @@ -1,10 +1,10 @@ # # Automatically generated file; DO NOT EDIT. -# Linux/x86 5.18.2 Kernel Configuration +# Linux/x86 5.18.3 Kernel Configuration # -CONFIG_CC_VERSION_TEXT="gcc (GCC) 11.3.0" +CONFIG_CC_VERSION_TEXT="gcc (GCC) 12.1.0" CONFIG_CC_IS_GCC=y -CONFIG_GCC_VERSION=110300 +CONFIG_GCC_VERSION=120100 CONFIG_CLANG_VERSION=0 CONFIG_AS_IS_GNU=y CONFIG_AS_VERSION=23800 @@ -15,6 +15,7 @@ CONFIG_CC_CAN_LINK=y CONFIG_CC_CAN_LINK_STATIC=y CONFIG_CC_HAS_ASM_GOTO=y CONFIG_CC_HAS_ASM_GOTO_OUTPUT=y +CONFIG_CC_HAS_ASM_GOTO_TIED_OUTPUT=y CONFIG_CC_HAS_ASM_INLINE=y CONFIG_CC_HAS_NO_PROFILE_FN_ATTR=y CONFIG_PAHOLE_VERSION=123 @@ -2211,6 +2212,7 @@ CONFIG_UEFI_CPER_X86=y CONFIG_EFI_DEV_PATH_PARSER=y CONFIG_EFI_EARLYCON=y CONFIG_EFI_CUSTOM_SSDT_OVERLAYS=y +# CONFIG_EFI_DISABLE_RUNTIME is not set # # Tegra firmware driver @@ -5709,7 +5711,7 @@ CONFIG_DVB_BUDGET_CI=m CONFIG_DVB_BUDGET_AV=m CONFIG_VIDEO_IPU3_CIO2=m CONFIG_CIO2_BRIDGE=y -CONFIG_RADIO_ADAPTERS=y +CONFIG_RADIO_ADAPTERS=m CONFIG_RADIO_MAXIRADIO=m CONFIG_RADIO_SAA7706H=m CONFIG_RADIO_SHARK=m @@ -9752,10 +9754,11 @@ CONFIG_LSM="lockdown,yama,loadpin,safesetid,integrity" # # Memory initialization # +CONFIG_CC_HAS_AUTO_VAR_INIT_PATTERN=y +CONFIG_CC_HAS_AUTO_VAR_INIT_ZERO=y CONFIG_INIT_STACK_NONE=y -# CONFIG_GCC_PLUGIN_STRUCTLEAK_USER is not set -# CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF is not set -# CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF_ALL is not set +# CONFIG_INIT_STACK_ALL_PATTERN is not set +# CONFIG_INIT_STACK_ALL_ZERO is not set # CONFIG_GCC_PLUGIN_STACKLEAK is not set # CONFIG_INIT_ON_ALLOC_DEFAULT_ON is not set # CONFIG_INIT_ON_FREE_DEFAULT_ON is not set diff --git a/testing/source/linux-5.18.x/kernel-configs/config-generic-5.18.2.x64 b/source/k/kernel-configs/config-generic-5.18.3.x64 index 8241d0c2b..af8a8a789 100644 --- a/testing/source/linux-5.18.x/kernel-configs/config-generic-5.18.2.x64 +++ b/source/k/kernel-configs/config-generic-5.18.3.x64 @@ -1,10 +1,10 @@ # # Automatically generated file; DO NOT EDIT. -# Linux/x86 5.18.2 Kernel Configuration +# Linux/x86 5.18.3 Kernel Configuration # -CONFIG_CC_VERSION_TEXT="gcc (GCC) 11.3.0" +CONFIG_CC_VERSION_TEXT="gcc (GCC) 12.1.0" CONFIG_CC_IS_GCC=y -CONFIG_GCC_VERSION=110300 +CONFIG_GCC_VERSION=120100 CONFIG_CLANG_VERSION=0 CONFIG_AS_IS_GNU=y CONFIG_AS_VERSION=23800 @@ -15,6 +15,7 @@ CONFIG_CC_CAN_LINK=y CONFIG_CC_CAN_LINK_STATIC=y CONFIG_CC_HAS_ASM_GOTO=y CONFIG_CC_HAS_ASM_GOTO_OUTPUT=y +CONFIG_CC_HAS_ASM_GOTO_TIED_OUTPUT=y CONFIG_CC_HAS_ASM_INLINE=y CONFIG_CC_HAS_NO_PROFILE_FN_ATTR=y CONFIG_PAHOLE_VERSION=123 @@ -2286,6 +2287,7 @@ CONFIG_UEFI_CPER_X86=y CONFIG_EFI_DEV_PATH_PARSER=y CONFIG_EFI_EARLYCON=y CONFIG_EFI_CUSTOM_SSDT_OVERLAYS=y +# CONFIG_EFI_DISABLE_RUNTIME is not set # # Tegra firmware driver @@ -5726,7 +5728,7 @@ CONFIG_DVB_BUDGET_CI=m CONFIG_DVB_BUDGET_AV=m CONFIG_VIDEO_IPU3_CIO2=m CONFIG_CIO2_BRIDGE=y -CONFIG_RADIO_ADAPTERS=y +CONFIG_RADIO_ADAPTERS=m CONFIG_RADIO_MAXIRADIO=m CONFIG_RADIO_SAA7706H=m CONFIG_RADIO_SHARK=m @@ -9784,10 +9786,11 @@ CONFIG_LSM="lockdown,yama,loadpin,safesetid,integrity" # # Memory initialization # +CONFIG_CC_HAS_AUTO_VAR_INIT_PATTERN=y +CONFIG_CC_HAS_AUTO_VAR_INIT_ZERO=y CONFIG_INIT_STACK_NONE=y -# CONFIG_GCC_PLUGIN_STRUCTLEAK_USER is not set -# CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF is not set -# CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF_ALL is not set +# CONFIG_INIT_STACK_ALL_PATTERN is not set +# CONFIG_INIT_STACK_ALL_ZERO is not set # CONFIG_GCC_PLUGIN_STACKLEAK is not set # CONFIG_INIT_ON_ALLOC_DEFAULT_ON is not set # CONFIG_INIT_ON_FREE_DEFAULT_ON is not set diff --git a/testing/source/linux-5.18.x/kernel-configs/config-generic-smp-5.18.2-smp b/source/k/kernel-configs/config-generic-smp-5.18.3-smp index 11b10895a..6ddf89ee0 100644 --- a/testing/source/linux-5.18.x/kernel-configs/config-generic-smp-5.18.2-smp +++ b/source/k/kernel-configs/config-generic-smp-5.18.3-smp @@ -1,10 +1,10 @@ # # Automatically generated file; DO NOT EDIT. -# Linux/x86 5.18.2 Kernel Configuration +# Linux/x86 5.18.3 Kernel Configuration # -CONFIG_CC_VERSION_TEXT="gcc (GCC) 11.3.0" +CONFIG_CC_VERSION_TEXT="gcc (GCC) 12.1.0" CONFIG_CC_IS_GCC=y -CONFIG_GCC_VERSION=110300 +CONFIG_GCC_VERSION=120100 CONFIG_CLANG_VERSION=0 CONFIG_AS_IS_GNU=y CONFIG_AS_VERSION=23800 @@ -15,6 +15,7 @@ CONFIG_CC_CAN_LINK=y CONFIG_CC_CAN_LINK_STATIC=y CONFIG_CC_HAS_ASM_GOTO=y CONFIG_CC_HAS_ASM_GOTO_OUTPUT=y +CONFIG_CC_HAS_ASM_GOTO_TIED_OUTPUT=y CONFIG_CC_HAS_ASM_INLINE=y CONFIG_CC_HAS_NO_PROFILE_FN_ATTR=y CONFIG_PAHOLE_VERSION=123 @@ -2253,6 +2254,7 @@ CONFIG_UEFI_CPER_X86=y CONFIG_EFI_DEV_PATH_PARSER=y CONFIG_EFI_EARLYCON=y CONFIG_EFI_CUSTOM_SSDT_OVERLAYS=y +# CONFIG_EFI_DISABLE_RUNTIME is not set # # Tegra firmware driver @@ -5751,7 +5753,7 @@ CONFIG_DVB_BUDGET_CI=m CONFIG_DVB_BUDGET_AV=m CONFIG_VIDEO_IPU3_CIO2=m CONFIG_CIO2_BRIDGE=y -CONFIG_RADIO_ADAPTERS=y +CONFIG_RADIO_ADAPTERS=m CONFIG_RADIO_MAXIRADIO=m CONFIG_RADIO_SAA7706H=m CONFIG_RADIO_SHARK=m @@ -9805,10 +9807,11 @@ CONFIG_LSM="lockdown,yama,loadpin,safesetid,integrity" # # Memory initialization # +CONFIG_CC_HAS_AUTO_VAR_INIT_PATTERN=y +CONFIG_CC_HAS_AUTO_VAR_INIT_ZERO=y CONFIG_INIT_STACK_NONE=y -# CONFIG_GCC_PLUGIN_STRUCTLEAK_USER is not set -# CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF is not set -# CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF_ALL is not set +# CONFIG_INIT_STACK_ALL_PATTERN is not set +# CONFIG_INIT_STACK_ALL_ZERO is not set # CONFIG_GCC_PLUGIN_STACKLEAK is not set # CONFIG_INIT_ON_ALLOC_DEFAULT_ON is not set # CONFIG_INIT_ON_FREE_DEFAULT_ON is not set diff --git a/testing/source/linux-5.18.x/kernel-configs/config-huge-5.18.2 b/source/k/kernel-configs/config-huge-5.18.3 index 99ee91a4f..cb431f824 100644 --- a/testing/source/linux-5.18.x/kernel-configs/config-huge-5.18.2 +++ b/source/k/kernel-configs/config-huge-5.18.3 @@ -1,10 +1,10 @@ # # Automatically generated file; DO NOT EDIT. -# Linux/x86 5.18.2 Kernel Configuration +# Linux/x86 5.18.3 Kernel Configuration # -CONFIG_CC_VERSION_TEXT="gcc (GCC) 11.3.0" +CONFIG_CC_VERSION_TEXT="gcc (GCC) 12.1.0" CONFIG_CC_IS_GCC=y -CONFIG_GCC_VERSION=110300 +CONFIG_GCC_VERSION=120100 CONFIG_CLANG_VERSION=0 CONFIG_AS_IS_GNU=y CONFIG_AS_VERSION=23800 @@ -15,6 +15,7 @@ CONFIG_CC_CAN_LINK=y CONFIG_CC_CAN_LINK_STATIC=y CONFIG_CC_HAS_ASM_GOTO=y CONFIG_CC_HAS_ASM_GOTO_OUTPUT=y +CONFIG_CC_HAS_ASM_GOTO_TIED_OUTPUT=y CONFIG_CC_HAS_ASM_INLINE=y CONFIG_CC_HAS_NO_PROFILE_FN_ATTR=y CONFIG_PAHOLE_VERSION=123 @@ -2211,6 +2212,7 @@ CONFIG_UEFI_CPER_X86=y CONFIG_EFI_DEV_PATH_PARSER=y CONFIG_EFI_EARLYCON=y CONFIG_EFI_CUSTOM_SSDT_OVERLAYS=y +# CONFIG_EFI_DISABLE_RUNTIME is not set # # Tegra firmware driver @@ -5709,7 +5711,7 @@ CONFIG_DVB_BUDGET_CI=m CONFIG_DVB_BUDGET_AV=m CONFIG_VIDEO_IPU3_CIO2=m CONFIG_CIO2_BRIDGE=y -CONFIG_RADIO_ADAPTERS=y +CONFIG_RADIO_ADAPTERS=m CONFIG_RADIO_MAXIRADIO=m CONFIG_RADIO_SAA7706H=m CONFIG_RADIO_SHARK=m @@ -9751,10 +9753,11 @@ CONFIG_LSM="lockdown,yama,loadpin,safesetid,integrity" # # Memory initialization # +CONFIG_CC_HAS_AUTO_VAR_INIT_PATTERN=y +CONFIG_CC_HAS_AUTO_VAR_INIT_ZERO=y CONFIG_INIT_STACK_NONE=y -# CONFIG_GCC_PLUGIN_STRUCTLEAK_USER is not set -# CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF is not set -# CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF_ALL is not set +# CONFIG_INIT_STACK_ALL_PATTERN is not set +# CONFIG_INIT_STACK_ALL_ZERO is not set # CONFIG_GCC_PLUGIN_STACKLEAK is not set # CONFIG_INIT_ON_ALLOC_DEFAULT_ON is not set # CONFIG_INIT_ON_FREE_DEFAULT_ON is not set diff --git a/testing/source/linux-5.18.x/kernel-configs/config-huge-5.18.2.x64 b/source/k/kernel-configs/config-huge-5.18.3.x64 index fc942664e..8ad9a3935 100644 --- a/testing/source/linux-5.18.x/kernel-configs/config-huge-5.18.2.x64 +++ b/source/k/kernel-configs/config-huge-5.18.3.x64 @@ -1,10 +1,10 @@ # # Automatically generated file; DO NOT EDIT. -# Linux/x86 5.18.2 Kernel Configuration +# Linux/x86 5.18.3 Kernel Configuration # -CONFIG_CC_VERSION_TEXT="gcc (GCC) 11.3.0" +CONFIG_CC_VERSION_TEXT="gcc (GCC) 12.1.0" CONFIG_CC_IS_GCC=y -CONFIG_GCC_VERSION=110300 +CONFIG_GCC_VERSION=120100 CONFIG_CLANG_VERSION=0 CONFIG_AS_IS_GNU=y CONFIG_AS_VERSION=23800 @@ -15,6 +15,7 @@ CONFIG_CC_CAN_LINK=y CONFIG_CC_CAN_LINK_STATIC=y CONFIG_CC_HAS_ASM_GOTO=y CONFIG_CC_HAS_ASM_GOTO_OUTPUT=y +CONFIG_CC_HAS_ASM_GOTO_TIED_OUTPUT=y CONFIG_CC_HAS_ASM_INLINE=y CONFIG_CC_HAS_NO_PROFILE_FN_ATTR=y CONFIG_PAHOLE_VERSION=123 @@ -2286,6 +2287,7 @@ CONFIG_UEFI_CPER_X86=y CONFIG_EFI_DEV_PATH_PARSER=y CONFIG_EFI_EARLYCON=y CONFIG_EFI_CUSTOM_SSDT_OVERLAYS=y +# CONFIG_EFI_DISABLE_RUNTIME is not set # # Tegra firmware driver @@ -5726,7 +5728,7 @@ CONFIG_DVB_BUDGET_CI=m CONFIG_DVB_BUDGET_AV=m CONFIG_VIDEO_IPU3_CIO2=m CONFIG_CIO2_BRIDGE=y -CONFIG_RADIO_ADAPTERS=y +CONFIG_RADIO_ADAPTERS=m CONFIG_RADIO_MAXIRADIO=m CONFIG_RADIO_SAA7706H=m CONFIG_RADIO_SHARK=m @@ -9783,10 +9785,11 @@ CONFIG_LSM="lockdown,yama,loadpin,safesetid,integrity" # # Memory initialization # +CONFIG_CC_HAS_AUTO_VAR_INIT_PATTERN=y +CONFIG_CC_HAS_AUTO_VAR_INIT_ZERO=y CONFIG_INIT_STACK_NONE=y -# CONFIG_GCC_PLUGIN_STRUCTLEAK_USER is not set -# CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF is not set -# CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF_ALL is not set +# CONFIG_INIT_STACK_ALL_PATTERN is not set +# CONFIG_INIT_STACK_ALL_ZERO is not set # CONFIG_GCC_PLUGIN_STACKLEAK is not set # CONFIG_INIT_ON_ALLOC_DEFAULT_ON is not set # CONFIG_INIT_ON_FREE_DEFAULT_ON is not set diff --git a/testing/source/linux-5.18.x/kernel-configs/config-huge-smp-5.18.2-smp b/source/k/kernel-configs/config-huge-smp-5.18.3-smp index 98cdcd8a3..9d652aff8 100644 --- a/testing/source/linux-5.18.x/kernel-configs/config-huge-smp-5.18.2-smp +++ b/source/k/kernel-configs/config-huge-smp-5.18.3-smp @@ -1,10 +1,10 @@ # # Automatically generated file; DO NOT EDIT. -# Linux/x86 5.18.2 Kernel Configuration +# Linux/x86 5.18.3 Kernel Configuration # -CONFIG_CC_VERSION_TEXT="gcc (GCC) 11.3.0" +CONFIG_CC_VERSION_TEXT="gcc (GCC) 12.1.0" CONFIG_CC_IS_GCC=y -CONFIG_GCC_VERSION=110300 +CONFIG_GCC_VERSION=120100 CONFIG_CLANG_VERSION=0 CONFIG_AS_IS_GNU=y CONFIG_AS_VERSION=23800 @@ -15,6 +15,7 @@ CONFIG_CC_CAN_LINK=y CONFIG_CC_CAN_LINK_STATIC=y CONFIG_CC_HAS_ASM_GOTO=y CONFIG_CC_HAS_ASM_GOTO_OUTPUT=y +CONFIG_CC_HAS_ASM_GOTO_TIED_OUTPUT=y CONFIG_CC_HAS_ASM_INLINE=y CONFIG_CC_HAS_NO_PROFILE_FN_ATTR=y CONFIG_PAHOLE_VERSION=123 @@ -2253,6 +2254,7 @@ CONFIG_UEFI_CPER_X86=y CONFIG_EFI_DEV_PATH_PARSER=y CONFIG_EFI_EARLYCON=y CONFIG_EFI_CUSTOM_SSDT_OVERLAYS=y +# CONFIG_EFI_DISABLE_RUNTIME is not set # # Tegra firmware driver @@ -5751,7 +5753,7 @@ CONFIG_DVB_BUDGET_CI=m CONFIG_DVB_BUDGET_AV=m CONFIG_VIDEO_IPU3_CIO2=m CONFIG_CIO2_BRIDGE=y -CONFIG_RADIO_ADAPTERS=y +CONFIG_RADIO_ADAPTERS=m CONFIG_RADIO_MAXIRADIO=m CONFIG_RADIO_SAA7706H=m CONFIG_RADIO_SHARK=m @@ -9804,10 +9806,11 @@ CONFIG_LSM="lockdown,yama,loadpin,safesetid,integrity" # # Memory initialization # +CONFIG_CC_HAS_AUTO_VAR_INIT_PATTERN=y +CONFIG_CC_HAS_AUTO_VAR_INIT_ZERO=y CONFIG_INIT_STACK_NONE=y -# CONFIG_GCC_PLUGIN_STRUCTLEAK_USER is not set -# CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF is not set -# CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF_ALL is not set +# CONFIG_INIT_STACK_ALL_PATTERN is not set +# CONFIG_INIT_STACK_ALL_ZERO is not set # CONFIG_GCC_PLUGIN_STACKLEAK is not set # CONFIG_INIT_ON_ALLOC_DEFAULT_ON is not set # CONFIG_INIT_ON_FREE_DEFAULT_ON is not set diff --git a/testing/source/gcc/c89.sh b/testing/source/gcc/c89.sh deleted file mode 100644 index 35486ea83..000000000 --- a/testing/source/gcc/c89.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh -fl="-std=c89" -for opt; do - case "$opt" in - -ansi|-std=c89|-std=iso9899:1990) fl="";; - -std=*) echo "`basename $0` called with non ANSI/ISO C option $opt" >&2 - exit 1;; - esac -done -exec gcc $fl ${1+"$@"} diff --git a/testing/source/gcc/c99.sh b/testing/source/gcc/c99.sh deleted file mode 100644 index 88dd80640..000000000 --- a/testing/source/gcc/c99.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh -fl="-std=c99" -for opt; do - case "$opt" in - -std=c99|-std=iso9899:1999) fl="";; - -std=*) echo "`basename $0` called with non ISO C99 option $opt" >&2 - exit 1;; - esac -done -exec gcc $fl ${1+"$@"} diff --git a/testing/source/gcc/gcc.SlackBuild b/testing/source/gcc/gcc.SlackBuild deleted file mode 100755 index c892a5701..000000000 --- a/testing/source/gcc/gcc.SlackBuild +++ /dev/null @@ -1,624 +0,0 @@ -#!/bin/bash -# GCC package build script (written by volkerdi@slackware.com) -# -# Copyright 2003, 2004 Slackware Linux, Inc., Concord, California, USA -# Copyright 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2021 Patrick J. Volkerding, Sebeka, MN, USA -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# - -# Modified 2011 by Eric Hameleers <alien at slackware.com> for OpenJDK. - -# Some notes, Fri May 16 12:31:32 PDT 2003: -# -# Why i486 and not i386? Because the shared C++ libraries in gcc-3.2.x will -# require 486 opcodes even when a 386 target is used (so we already weren't -# compatible with the i386 for Slackware 9.0, didn't notice, and nobody -# complained :-). gcc-3.3 fixes this issue and allows you to build a 386 -# compiler, but the fix is done in a way that produces binaries that are not -# compatible with gcc-3.2.x compiled binaries. To retain compatibility with -# Slackware 9.0, we'll have to use i486 (or better) as the compiler target -# for gcc-3.3. -# -# It's time to say goodbye to i386 support in Slackware. I've surveyed 386 -# usage online, and the most common thing I see people say when someone asks -# about running Linux on a 386 is to "run Slackware", but then they also -# usually go on to say "be sure to get an OLD version, like 4.0, before glibc, -# because it'll be more efficient." Now, if that's the general advice, then -# I see no reason to continue 386 support in the latest Slackware (and indeed -# it's no longer easily possible). - -# Some more notes, Mon Aug 3 19:49:51 UTC 2015: -# -# Changing to -march=i586 for 32-bit x86 as several things (Mesa being one of -# them) no longer work if constrained to -march=i486. We're not going to use -# -march=i686 since the only additional opcode is CMOV, which is actually less -# efficient on modern CPUs running in 32-bit mode than the alternate i586 -# instructions. No need to throw i586 CPUs under the bus (yet). - -cd $(dirname $0) ; CWD=$(pwd) - -PKGNAM=gcc -SRCVER=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} -VERSION=$(echo $SRCVER | cut -f 1 -d _) -BUILD=${BUILD:-1} - -# How many jobs to run in parallel: -NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} - -# Automatically determine the architecture we're building on: -if [ -z "$ARCH" ]; then - case "$(uname -m)" in - i?86) ARCH=i586 ;; - arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) ARCH=$(uname -m) ;; - esac - export ARCH -fi - -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. -if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then - echo "gcc-$VERSION-$ARCH-$BUILD.txz" - echo "gcc-g++-$VERSION-$ARCH-$BUILD.txz" - echo "gcc-gfortran-$VERSION-$ARCH-$BUILD.txz" - echo "gcc-gnat-$VERSION-$ARCH-$BUILD.txz" - echo "gcc-objc-$VERSION-$ARCH-$BUILD.txz" - echo "gcc-go-$VERSION-$ARCH-$BUILD.txz" - echo "gcc-gdc-$VERSION-$ARCH-$BUILD.txz" - exit 0 -fi - -if [ "$ARCH" = "i386" ]; then - SLKCFLAGS="-O2 -march=i386 -mcpu=i686" - LIBDIRSUFFIX="" - LIB_ARCH=i386 -elif [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" - LIBDIRSUFFIX="" - LIB_ARCH=i386 -elif [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" - LIB_ARCH=i386 -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686" - LIBDIRSUFFIX="" - LIB_ARCH=i386 -elif [ "$ARCH" = "s390" ]; then - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" - LIB_ARCH=s390 -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" - LIB_ARCH=amd64 -elif [ "$ARCH" = "armv7hl" ]; then - SLKCFLAGS="-O3 -march=armv7-a -mfpu=vfpv3-d16" - LIBDIRSUFFIX="" - LIB_ARCH=armv7hl -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" - LIB_ARCH=$ARCH -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Temporary build location: -TMP=${TMP:-/tmp} - -# Extract the source code: -cd $TMP -rm -rf gcc-$SRCVER -tar xvf $CWD/gcc-$SRCVER.tar.?z || exit 1 - -# This is the main DESTDIR target: -PKG1=$TMP/package-gcc -# These are the directories to build other packages in: -PKG2=$TMP/package-gcc-g++ -PKG3=$TMP/package-gcc-gfortran -PKG4=$TMP/package-gcc-gnat -PKG6=$TMP/package-gcc-objc -PKG8=$TMP/package-gcc-go -PKG10=$TMP/package-gcc-gdc - -# Clear the build locations: -rm -rf $PKG{1,2,3,4,6,8,10} -mkdir -p $PKG{1,2,3,4,6,8,10}/usr/doc/gcc-$VERSION - -# Insert package descriptions: -mkdir -p $PKG{1,2,3,4,6,8,9,10}/install -cat $CWD/slack-desc.gcc > $PKG1/install/slack-desc -cat $CWD/slack-desc.gcc-g++ > $PKG2/install/slack-desc -cat $CWD/slack-desc.gcc-gfortran > $PKG3/install/slack-desc -cat $CWD/slack-desc.gcc-gnat > $PKG4/install/slack-desc -cat $CWD/slack-desc.gcc-objc > $PKG6/install/slack-desc -cat $CWD/slack-desc.gcc-go > $PKG8/install/slack-desc -cat $CWD/slack-desc.gcc-gdc > $PKG10/install/slack-desc - -cd gcc-$SRCVER || exit 1 - -# Smite the fixincludes: -zcat $CWD/patches/gcc-no_fixincludes.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit 1 - -# Fix perms/owners: -chown -R root:root . -find . \ - \( -perm 777 -o -perm 775 -o -perm 754 \) \ - -exec chmod 755 {} \+ -o \ - \( -perm 664 \) \ - -exec chmod 644 {} \+ - -# Install docs: -mkdir -p $PKG1/usr/doc/gcc-$VERSION -cp -a \ - COPYING* ChangeLog* FAQ INSTALL \ - LAST_UPDATED MAINTAINERS NEWS \ - README* *.html \ -$PKG1/usr/doc/gcc-$VERSION - -# We will keep part of these, but they are really big... -if [ -r ChangeLog ]; then - DOCSDIR=$(echo $PKG1/usr/doc/gcc-$VERSION) - cat ChangeLog | head -n 1000 > $DOCSDIR/ChangeLog - touch -r ChangeLog $DOCSDIR/ChangeLog -fi -if [ -r NEWS ]; then - DOCSDIR=$(echo $PKG1/usr/doc/gcc-$VERSION) - cat NEWS | head -n 1500 > $DOCSDIR/NEWS - touch -r NEWS $DOCSDIR/NEWS -fi - -mkdir -p $PKG1/usr/doc/gcc-${VERSION}/gcc -( cd gcc || exit 0 - cp -a \ - ABOUT* COPYING* DATESTAMP DEV-PHASE LANG* ONEWS README* SERVICE \ - $PKG1/usr/doc/gcc-$VERSION/gcc -) - -mkdir -p $PKG3/usr/doc/gcc-${VERSION}/gcc/fortran -( cd gcc/fortran || exit 0 - if [ -r ChangeLog ]; then - cat ChangeLog | head -n 1000 > $PKG3/usr/doc/gcc-$VERSION/gcc/fortran/ChangeLog - touch -r ChangeLog $PKG3/usr/doc/gcc-$VERSION/gcc/fortran/ChangeLog - fi -) - -mkdir -p $PKG4/usr/doc/gcc-${VERSION}/gcc/ada -( cd gcc/ada || exit 0 - cp -a \ - ChangeLog.tree-ssa \ - $PKG4/usr/doc/gcc-$VERSION/gcc/ada - if [ -r ChangeLog ]; then - cat ChangeLog | head -n 1000 > $PKG4/usr/doc/gcc-$VERSION/gcc/ada/ChangeLog - touch -r ChangeLog $PKG4/usr/doc/gcc-$VERSION/gcc/ada/ChangeLog - fi -) - -mkdir -p $PKG6/usr/doc/gcc-${VERSION}/gcc/objc -( cd gcc/objc || exit 0 - cp -a \ - README* \ - $PKG6/usr/doc/gcc-${VERSION}/gcc/objc - if [ -r ChangeLog ]; then - cat ChangeLog | head -n 1000 > $PKG6/usr/doc/gcc-${VERSION}/gcc/objc/ChangeLog - touch -r ChangeLog $PKG6/usr/doc/gcc-${VERSION}/gcc/objc/ChangeLog - fi -) - -mkdir -p $PKG6/usr/doc/gcc-${VERSION}/gcc/objcp -( cd gcc/objcp || exit 0 - cp -a \ - README* \ - $PKG6/usr/doc/gcc-${VERSION}/gcc/objcp - if [ -r ChangeLog ]; then - cat ChangeLog | head -n 1000 > $PKG6/usr/doc/gcc-${VERSION}/gcc/objcp/ChangeLog - touch -r ChangeLog $PKG6/usr/doc/gcc-${VERSION}/gcc/objcp/ChangeLog - fi -) - -mkdir -p $PKG8/usr/doc/gcc-${VERSION}/gcc/go -( cd gcc/go || exit 0 - if [ -r ChangeLog ]; then - cat ChangeLog | head -n 1000 > $PKG8/usr/doc/gcc-${VERSION}/gcc/go/ChangeLog - touch -r ChangeLog $PKG8/usr/doc/gcc-${VERSION}/gcc/go/ChangeLog - fi - cp -a \ - README* THREADS* \ - gofrontend/{LICENSE,PATENTS,README} \ - $PKG8/usr/doc/gcc-${VERSION}/gcc/go -) - -mkdir -p $PKG10/usr/doc/gcc-${VERSION}/gcc/d -( cd gcc/d || exit 0 - if [ -r ChangeLog ]; then - cat ChangeLog | head -n 1000 > $PKG10/usr/doc/gcc-${VERSION}/gcc/d/ChangeLog - touch -r ChangeLog $PKG10/usr/doc/gcc-${VERSION}/gcc/d/ChangeLog - fi -) - -mkdir -p $PKG3/usr/doc/gcc-${VERSION}/libgfortran -( cd libgfortran || exit 0 - if [ -r ChangeLog ]; then - cat ChangeLog | head -n 1000 > $PKG3/usr/doc/gcc-${VERSION}/libgfortran/ChangeLog - touch -r ChangeLog $PKG3/usr/doc/gcc-${VERSION}/libgfortran/ChangeLog - fi -) - -mkdir -p $PKG4/usr/doc/gcc-${VERSION}/libada -( cd libada || exit 0 - if [ -r ChangeLog ]; then - cat ChangeLog | head -n 1000 > $PKG4/usr/doc/gcc-${VERSION}/libada/ChangeLog - touch -r ChangeLog $PKG4/usr/doc/gcc-${VERSION}/libada/ChangeLog - fi -) - -mkdir -p $PKG1/usr/doc/gcc-${VERSION}/libgomp -( cd libgomp || exit 0 - if [ -r ChangeLog ]; then - cat ChangeLog | head -n 1000 > $PKG1/usr/doc/gcc-${VERSION}/libgomp/ChangeLog - touch -r ChangeLog $PKG1/usr/doc/gcc-${VERSION}/libgomp/ChangeLog - fi -) - -mkdir -p $PKG6/usr/doc/gcc-${VERSION}/libobjc -( cd libobjc || exit 0 - if [ -r ChangeLog ]; then - cat ChangeLog | head -n 1000 > $PKG6/usr/doc/gcc-${VERSION}/libobjc/ChangeLog - touch -r ChangeLog $PKG6/usr/doc/gcc-${VERSION}/libobjc/ChangeLog - fi - cp -a \ - README* THREADS* \ - $PKG6/usr/doc/gcc-${VERSION}/libobjc -) - -mkdir -p $PKG2/usr/doc/gcc-${VERSION}/libstdc++-v3 -( cd libstdc++-v3 || exit 0 - cp -a \ - README* \ - doc/html/faq.html \ - $PKG2/usr/doc/gcc-${VERSION}/libstdc++-v3 - if [ -r ChangeLog ]; then - cat ChangeLog | head -n 1000 > $PKG2/usr/doc/gcc-${VERSION}/libstdc++-v3/ChangeLog - touch -r ChangeLog $PKG2/usr/doc/gcc-${VERSION}/libstdc++-v3/ChangeLog - fi -) - -# build gcc -( mkdir gcc.build.lnx - cd gcc.build.lnx - - # I think it's incorrect to include this option (as it'll end up set - # to i586 on x86 platforms), and we want to tune the binary structure - # for i686, as that's where almost all of the optimization speedups - # are to be found. - # Correct me if my take on this is wrong. - # --with-cpu=$ARCH - - if [ "$ARCH" != "x86_64" ]; then - GCC_ARCHOPTS="--with-arch=$ARCH" - else - GCC_ARCHOPTS="--disable-multilib" - fi - - CFLAGS="$SLKCFLAGS" \ - CXXFLAGS="$SLKCFLAGS" \ - ../configure --prefix=/usr \ - --libdir=/usr/lib$LIBDIRSUFFIX \ - --mandir=/usr/man \ - --infodir=/usr/info \ - --enable-shared \ - --enable-bootstrap \ - --enable-languages=ada,c,c++,d,fortran,go,lto,objc,obj-c++ \ - --enable-threads=posix \ - --enable-checking=release \ - --enable-objc-gc \ - --with-system-zlib \ - --enable-libstdcxx-dual-abi \ - --with-default-libstdcxx-abi=new \ - --disable-libstdcxx-pch \ - --disable-libunwind-exceptions \ - --enable-__cxa_atexit \ - --disable-libssp \ - --enable-gnu-unique-object \ - --enable-plugin \ - --enable-lto \ - --disable-install-libiberty \ - --disable-werror \ - --with-gnu-ld \ - --with-isl \ - --verbose \ - --with-arch-directory=$LIB_ARCH \ - --disable-gtktest \ - --enable-clocale=gnu \ - $GCC_ARCHOPTS \ - --target=${TARGET} \ - --build=${TARGET} \ - --host=${TARGET} || exit 1 - - # Start the build: - - # Include all debugging info (for now): - make $NUMJOBS bootstrap || exit 1 - - ( cd gcc - make $NUMJOBS gnatlib GNATLIBCFLAGS="$SLKCFLAGS" || exit 1 - # This wants a shared -ladd2line? - #make gnatlib-shared || exit 1 - - CFLAGS="$SLKCFLAGS" \ - CXXFLAGS="$SLKCFLAGS" \ - make $NUMJOBS gnattools || exit 1 - ) || exit 1 - make info || exit 1 - - # Set GCCCHECK=something to run the tests - if [ ! -z $GCCCHECK ]; then - make $NUMJOBS check || exit 1 - fi - - make install DESTDIR=$PKG1 || exit 1 - - # Move gdb pretty printers to the correct place - mkdir -p $PKG1/usr/share/gdb/auto-load/usr/lib$LIBDIRSUFFIX - mv $PKG1/usr/lib$LIBDIRSUFFIX/*-gdb.py \ - $PKG1/usr/share/gdb/auto-load/usr/lib$LIBDIRSUFFIX/ - - # Be sure the "specs" file is installed. - if [ ! -r $PKG1/usr/lib${LIBDIRSUFFIX}/gcc/${TARGET}/${VERSION}/specs ]; then - cat stage1-gcc/specs > $PKG1/usr/lib${LIBDIRSUFFIX}/gcc/${TARGET}/${VERSION}/specs - fi - - # Make our 64bit gcc look for 32bit gcc binaries in ./32 subdirectory: - if [ "$ARCH" = "x86_64" ]; then - sed -i 's#;.\(:../lib !m64 m32;\)$#;32\1#' \ - $PKG1/usr/lib${LIBDIRSUFFIX}/gcc/${TARGET}/${VERSION}/specs - fi - - # make ada.install-common DESTDIR=$PKG1 || exit 1 - # make install-gnatlib DESTDIR=$PKG1 || exit 1 - make -i install-info DESTDIR=$PKG1 || exit 1 - - chmod 755 $PKG1/usr/lib${LIBDIRSUFFIX}/libgcc_s.so.1 - - # Fix stuff up: - ( cd $PKG1/usr/info ; rm dir ; gzip -9 * ) - ( cd $PKG1 - # *not* ${LIBDIRSUFFIX} - mkdir -p lib - cd lib - ln -sf /usr/bin/cpp . - ) - - ( cd $PKG1/usr/bin - mv g++ g++-gcc-$VERSION - mv gcc gcc-$VERSION - mv ${TARGET}-gfortran gfortran-gcc-$VERSION - ln -sf g++-gcc-$VERSION g++ - ln -sf gcc-$VERSION gcc - ln -sf g++ c++ - ln -sf gcc cc - ln -sf gcc-$VERSION ${TARGET}-cc - ln -sf gcc-$VERSION ${TARGET}-gcc - ln -sf gcc-$VERSION ${TARGET}-gcc-$VERSION - ln -sf gcc-ar ${TARGET}-gcc-ar - ln -sf gcc-nm ${TARGET}-gcc-nm - ln -sf gcc-ranlib ${TARGET}-gcc-ranlib - ln -sf g++-gcc-$VERSION ${TARGET}-c++ - ln -sf g++-gcc-$VERSION ${TARGET}-g++ - ln -sf gfortran-gcc-$VERSION gfortran - ln -sf gfortran-gcc-$VERSION ${TARGET}-gfortran - ln -sf gfortran-gcc-$VERSION ${TARGET}-gfortran-$VERSION - ln -sf gfortran-gcc-$VERSION ${TARGET}-g95 - ln -sf gfortran g95 - ln -sf gfortran f95 - ln -sf gfortran-gcc-$VERSION ${TARGET}-g77 - ln -sf gfortran g77 - ln -sf gfortran f77 - cat $CWD/c89.sh > c89 - cat $CWD/c99.sh > c99 - chmod 755 c89 c99 - ) - - ( cd $PKG1/usr/man - gzip -9 */* - cd man1 - ln -sf g++.1.gz c++.1.gz - ln -sf gcc.1.gz cc.1.gz - ) - - ## build an all-in-one txz package: - #( - # cd $PKG1; - # makepkg -l y -c n $TMP/gcc-$VERSION-$ARCH-$BUILD.txz - #) - -# keep a log: -) 2>&1 | tee gcc.build.log - -# Filter all .la files (thanks much to Mark Post for the sed script): -( cd $PKG1 - for file in $(find . -type f -name "*.la") ; do - cat $file | sed -e 's%-L/gcc-[[:graph:]]* % %g' > $TMP/tmp-la-file - cat $TMP/tmp-la-file > $file - done - rm $TMP/tmp-la-file -) - -# Don't ship .la files in /{,usr/}lib${LIBDIRSUFFIX}: -rm -f $PKG1/{,usr/}lib${LIBDIRSUFFIX}/*.la - -# Strip bloated binaries and libraries: -( cd $PKG1 - find . -name "lib*so*" -exec strip --strip-unneeded "{}" \; - find . -name "lib*so*" -exec patchelf --remove-rpath "{}" \; - find . -name "lib*a" -exec strip -g "{}" \; - strip --strip-unneeded usr/bin/* 2> /dev/null - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null - find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null -) - -# OK, time to split the big package where needed: - -# gcc-g++: -( cd $PKG2 - mkdir -p usr/bin - mv $PKG1/usr/bin/*++* usr/bin - mkdir -p usr/include - mv $PKG1/usr/include/c++ usr/include - mkdir -p usr/lib${LIBDIRSUFFIX} - mv $PKG1/usr/lib${LIBDIRSUFFIX}/*++* usr/lib${LIBDIRSUFFIX} - mkdir -p usr/libexec/gcc/$TARGET/$VERSION - mv $PKG1/usr/libexec/gcc/$TARGET/$VERSION/cc1plus usr/libexec/gcc/$TARGET/$VERSION/cc1plus - mkdir -p usr/man/man1 - mv $PKG1/usr/man/man1/*++* usr/man/man1 - mkdir -p usr/share - mv $PKG1/usr/share/gdb usr/share - mkdir -p usr/share/gcc-$VERSION/python - mv $PKG1/usr/share/gcc-$VERSION/python/libstdcxx usr/share/gcc-$VERSION/python -) - -# gcc-gfortran: -( cd $PKG3 - mkdir -p usr/bin - mv $PKG1/usr/bin/*gfortran* usr/bin - mv $PKG1/usr/bin/*95* usr/bin - mv $PKG1/usr/bin/*77* usr/bin - # Doesn't this seem like a logical idea? - ( cd usr/bin ; ln -sf gfortran-gcc-${VERSION} fortran ) - mkdir -p usr/info - mv $PKG1/usr/info/gfortran* usr/info - mkdir -p usr/lib${LIBDIRSUFFIX} - mv $PKG1/usr/lib${LIBDIRSUFFIX}/libgfortran* usr/lib${LIBDIRSUFFIX} - mkdir -p usr/lib${LIBDIRSUFFIX}/gcc/$TARGET/$VERSION - mv $PKG1/usr/lib${LIBDIRSUFFIX}/gcc/$TARGET/$VERSION/finclude usr/lib${LIBDIRSUFFIX}/gcc/$TARGET/$VERSION - mv $PKG1/usr/lib${LIBDIRSUFFIX}/gcc/$TARGET/$VERSION/libgfortran* usr/lib${LIBDIRSUFFIX}/gcc/$TARGET/$VERSION - mkdir -p usr/libexec/gcc/$TARGET/$VERSION - mv $PKG1/usr/libexec/gcc/$TARGET/$VERSION/f951 usr/libexec/gcc/$TARGET/$VERSION/f951 - mv $PKG1/usr/libexec/gcc/$TARGET/$VERSION/libgfortran* usr/libexec/gcc/$TARGET/$VERSION - mkdir -p usr/man/man1 - mv $PKG1/usr/man/man1/gfortran* usr/man/man1 -) - -# gcc-gnat: -( cd $PKG4 - mkdir -p usr/bin - mv $PKG1/usr/bin/gnat* usr/bin - mv $PKG1/usr/bin/gpr* usr/bin - mkdir -p usr/info - mv $PKG1/usr/info/gnat* usr/info - mkdir -p usr/libexec/gcc/$TARGET/$VERSION - mv $PKG1/usr/libexec/gcc/$TARGET/$VERSION/gnat1 usr/libexec/gcc/$TARGET/$VERSION - mkdir -p usr/lib${LIBDIRSUFFIX}/gcc/$TARGET/$VERSION - mv $PKG1/usr/lib${LIBDIRSUFFIX}/gcc/$TARGET/$VERSION/adainclude usr/lib${LIBDIRSUFFIX}/gcc/$TARGET/$VERSION - mv $PKG1/usr/lib${LIBDIRSUFFIX}/gcc/$TARGET/$VERSION/adalib usr/lib${LIBDIRSUFFIX}/gcc/$TARGET/$VERSION -) - -# gcc-objc: -( cd $PKG6 - mkdir -p usr/lib${LIBDIRSUFFIX} - mv $PKG1/usr/lib${LIBDIRSUFFIX}/libobjc* usr/lib${LIBDIRSUFFIX} - mkdir -p usr/libexec/gcc/$TARGET/$VERSION - mv $PKG1/usr/libexec/gcc/$TARGET/$VERSION/cc1obj usr/libexec/gcc/$TARGET/$VERSION - mv $PKG1/usr/libexec/gcc/$TARGET/$VERSION/cc1objplus usr/libexec/gcc/$TARGET/$VERSION - mkdir -p usr/lib${LIBDIRSUFFIX}/gcc/$TARGET/$VERSION/include - mv $PKG1/usr/lib${LIBDIRSUFFIX}/gcc/$TARGET/$VERSION/include/objc usr/lib${LIBDIRSUFFIX}/gcc/$TARGET/$VERSION/include - mv $PKG1/usr/lib${LIBDIRSUFFIX}/gcc/$TARGET/$VERSION/include/cc1objplus usr/lib${LIBDIRSUFFIX}/gcc/$TARGET/$VERSION/include -) - -## NOTE: Thought about this, because the precompiled headers are so large. -## Probably easier to keep everything together, though. -## gcc-g++-gch (precompiled c++ headers) -#( cd $PKG7 -# mkdir -p usr/include/c++/$VERSION/$TARGET/bits -# mv $PKG2/usr/include/c++/$VERSION/$TARGET/bits/stdc++.h.gch usr/include/c++/$VERSION/$TARGET/bits -#) - -# gcc-go: -( cd $PKG8 - mkdir -p usr/bin - mv $PKG1/usr/bin/*gccgo* usr/bin - mv $PKG1/usr/bin/go{,fmt} usr/bin - mkdir -p usr/libexec/gcc/$TARGET/$VERSION - mv $PKG1/usr/libexec/gcc/$TARGET/$VERSION/{cgo,go1} usr/libexec/gcc/$TARGET/$VERSION - mkdir -p usr/info - mv $PKG1/usr/info/gccgo.info.gz usr/info - mkdir -p usr/lib${LIBDIRSUFFIX} - mv $PKG1/usr/lib${LIBDIRSUFFIX}/go usr/lib${LIBDIRSUFFIX} - if [ -r $PKG1/usr/lib${LIBDIRSUFFIX}/libgo.la ]; then - mv $PKG1/usr/lib${LIBDIRSUFFIX}/libgo.la usr/lib${LIBDIRSUFFIX} - fi - mv $PKG1/usr/lib${LIBDIRSUFFIX}/{libgo.so*,libgobegin.a,libgolibbegin.a} usr/lib${LIBDIRSUFFIX} || exit 1 - # Don't package the (bloated) libgo.a. As a rule, we don't package static libraries. - rm -f $PKG1/usr/lib${LIBDIRSUFFIX}/libgo.a - mkdir -p usr/man/man1 - mv $PKG1/usr/man/man1/gccgo.1.gz usr/man/man1 - mv $PKG1/usr/man/man1/go.1.gz usr/man/man1 - mv $PKG1/usr/man/man1/gofmt.1.gz usr/man/man1 -) || exit 1 - -# gcc-gdc: -( cd $PKG10 - mkdir -p usr/bin - mv $PKG1/usr/bin/gdc $PKG1/usr/bin/*-gdc usr/bin - mkdir -p usr/lib${LIBDIRSUFFIX} - mv $PKG1/usr/lib${LIBDIRSUFFIX}/libgdruntime* usr/lib${LIBDIRSUFFIX} - mv $PKG1/usr/lib${LIBDIRSUFFIX}/libgphobos* usr/lib${LIBDIRSUFFIX} - ## COMMENTED OUT: defaults to static linking and that default does not - ## seem to be easlity changed... - ## Don't package the (bloated) libgphobos.a or libgdruntime.a. - ## As a rule, we don't package static libraries. - #rm -f usr/lib${LIBDIRSUFFIX}/libgphobos.a - #rm -f usr/lib${LIBDIRSUFFIX}/libgdruntime.a - mkdir -p usr/libexec/gcc/$TARGET/$VERSION - mv $PKG1/usr/libexec/gcc/$TARGET/$VERSION/d21 usr/libexec/gcc/$TARGET/$VERSION - mkdir -p usr/lib${LIBDIRSUFFIX}/gcc/$TARGET/$VERSION/include - mv $PKG1/usr/lib${LIBDIRSUFFIX}/gcc/$TARGET/$VERSION/include/d usr/lib${LIBDIRSUFFIX}/gcc/$TARGET/$VERSION/include - mkdir -p usr/info - mv $PKG1/usr/info/gdc.info.gz usr/info - mkdir -p usr/man/man1 - mv $PKG1/usr/man/man1/gdc.1.gz usr/man/man1 -) || exit 1 - -# Generate packages: -( cd $PKG1 - makepkg -l y -c n $TMP/gcc-$VERSION-$ARCH-$BUILD.txz ) -( cd $PKG2 - makepkg -l y -c n $TMP/gcc-g++-$VERSION-$ARCH-$BUILD.txz ) -( cd $PKG3 - makepkg -l y -c n $TMP/gcc-gfortran-$VERSION-$ARCH-$BUILD.txz ) -( cd $PKG4 - makepkg -l y -c n $TMP/gcc-gnat-$VERSION-$ARCH-$BUILD.txz ) -( cd $PKG6 - makepkg -l y -c n $TMP/gcc-objc-$VERSION-$ARCH-$BUILD.txz ) -( cd $PKG8 - makepkg -l y -c n $TMP/gcc-go-$VERSION-$ARCH-$BUILD.txz ) -( cd $PKG10 - makepkg -l y -c n $TMP/gcc-gdc-$VERSION-$ARCH-$BUILD.txz ) - -echo -echo "Slackware GCC package build complete!" -echo - diff --git a/testing/source/gcc/patches/gcc-no_fixincludes.diff b/testing/source/gcc/patches/gcc-no_fixincludes.diff deleted file mode 100644 index e152e0821..000000000 --- a/testing/source/gcc/patches/gcc-no_fixincludes.diff +++ /dev/null @@ -1,27 +0,0 @@ ---- ./gcc/Makefile.in.orig 2018-03-09 09:24:44.000000000 -0600 -+++ ./gcc/Makefile.in 2018-05-02 12:25:43.958002771 -0500 -@@ -3004,9 +3004,9 @@ - chmod a+r $${fix_dir}/limits.h; \ - done - # Install the README -- rm -f include-fixed/README -- cp $(srcdir)/../fixincludes/README-fixinc include-fixed/README -- chmod a+r include-fixed/README -+# rm -f include-fixed/README -+# cp $(srcdir)/../fixincludes/README-fixinc include-fixed/README -+# chmod a+r include-fixed/README - $(STAMP) $@ - - .PHONY: install-gcc-tooldir -@@ -3087,10 +3087,7 @@ - (TARGET_MACHINE='$(target)'; srcdir=`cd $(srcdir); ${PWD_COMMAND}`; \ - SHELL='$(SHELL)'; MACRO_LIST=`${PWD_COMMAND}`/macro_list ; \ - gcc_dir=`${PWD_COMMAND}` ; \ -- export TARGET_MACHINE srcdir SHELL MACRO_LIST && \ -- cd $(build_objdir)/fixincludes && \ -- $(SHELL) ./fixinc.sh "$${gcc_dir}/$${fix_dir}" \ -- $(BUILD_SYSTEM_HEADER_DIR) $(OTHER_FIXINCLUDES_DIRS) ); \ -+ export TARGET_MACHINE srcdir SHELL MACRO_LIST ); \ - rm -f $${fix_dir}/syslimits.h; \ - if [ -f $${fix_dir}/limits.h ]; then \ - mv $${fix_dir}/limits.h $${fix_dir}/syslimits.h; \ diff --git a/testing/source/gcc/slack-desc.gcc b/testing/source/gcc/slack-desc.gcc deleted file mode 100644 index 2ec1b2bca..000000000 --- a/testing/source/gcc/slack-desc.gcc +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line -# up the first '|' above the ':' following the base package name, and the '|' on -# the right side marks the last column you can put a character in. You must make -# exactly 11 lines for the formatting to be correct. It's also customary to -# leave one space after the ':'. - - |-----handy-ruler------------------------------------------------------| -gcc: gcc (Base GCC package with C support) -gcc: -gcc: GCC is the GNU Compiler Collection. -gcc: -gcc: This package contains those parts of the compiler collection needed to -gcc: compile C code. Other packages add Ada, C++, D, Fortran, Go, -gcc: Objective-C, and BRIG support to the compiler core. -gcc: -gcc: -gcc: -gcc: diff --git a/testing/source/gcc/slack-desc.gcc-g++ b/testing/source/gcc/slack-desc.gcc-g++ deleted file mode 100644 index 6beaf21b1..000000000 --- a/testing/source/gcc/slack-desc.gcc-g++ +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line -# up the first '|' above the ':' following the base package name, and the '|' on -# the right side marks the last column you can put a character in. You must make -# exactly 11 lines for the formatting to be correct. It's also customary to -# leave one space after the ':'. - - |-----handy-ruler------------------------------------------------------| -gcc-g++: gcc-g++ (C++ for GCC) -gcc-g++: -gcc-g++: C++ support for the GNU Compiler Collection. -gcc-g++: -gcc-g++: This package contains those parts of the compiler collection needed to -gcc-g++: compile C++ code. -gcc-g++: -gcc-g++: -gcc-g++: -gcc-g++: -gcc-g++: diff --git a/testing/source/gcc/slack-desc.gcc-gdc b/testing/source/gcc/slack-desc.gcc-gdc deleted file mode 100644 index 6b809ca1d..000000000 --- a/testing/source/gcc/slack-desc.gcc-gdc +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line -# up the first '|' above the ':' following the base package name, and the '|' on -# the right side marks the last column you can put a character in. You must make -# exactly 11 lines for the formatting to be correct. It's also customary to -# leave one space after the ':'. - - |-----handy-ruler------------------------------------------------------| -gcc-gdc: gcc-gdc (D support for GCC) -gcc-gdc: -gcc-gdc: D support for the GNU Compiler Collection. -gcc-gdc: -gcc-gdc: D is a general-purpose programming language with static typing, -gcc-gdc: systems-level access, and C-like syntax. -gcc-gdc: -gcc-gdc: -gcc-gdc: -gcc-gdc: -gcc-gdc: diff --git a/testing/source/gcc/slack-desc.gcc-gfortran b/testing/source/gcc/slack-desc.gcc-gfortran deleted file mode 100644 index 6d08f0125..000000000 --- a/testing/source/gcc/slack-desc.gcc-gfortran +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line -# up the first '|' above the ':' following the base package name, and the '|' on -# the right side marks the last column you can put a character in. You must make -# exactly 11 lines for the formatting to be correct. It's also customary to -# leave one space after the ':'. - - |-----handy-ruler------------------------------------------------------| -gcc-gfortran: gcc-gfortran (Fortran support for GCC) -gcc-gfortran: -gcc-gfortran: The GNU Fortran compiler is fully compliant with the Fortran 95 -gcc-gfortran: Standard and includes legacy F77 support. In addition, a significant -gcc-gfortran: number of Fortran 2003 and Fortran 2008 features are implemented. -gcc-gfortran: GNU Fortran also contains many standard and extensions and can be -gcc-gfortran: used to run real-world programs. -gcc-gfortran: -gcc-gfortran: This package contains those parts of the compiler collection -gcc-gfortran: needed to compile Fortran code. -gcc-gfortran: diff --git a/testing/source/gcc/slack-desc.gcc-gnat b/testing/source/gcc/slack-desc.gcc-gnat deleted file mode 100644 index 9c1eb7714..000000000 --- a/testing/source/gcc/slack-desc.gcc-gnat +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line -# up the first '|' above the ':' following the base package name, and the '|' on -# the right side marks the last column you can put a character in. You must make -# exactly 11 lines for the formatting to be correct. It's also customary to -# leave one space after the ':'. - - |-----handy-ruler------------------------------------------------------| -gcc-gnat: gcc-gnat (Ada support for GCC) -gcc-gnat: -gcc-gnat: Ada support for the GNU Compiler Collection. -gcc-gnat: -gcc-gnat: This package contains those parts of the compiler collection needed to -gcc-gnat: compile Ada code. GNAT implements Ada 95, Ada 2005 and Ada 2012, and -gcc-gnat: it may also be invoked in Ada 83 compatibility mode. By default, GNAT -gcc-gnat: assumes Ada 2012. -gcc-gnat: -gcc-gnat: -gcc-gnat: diff --git a/testing/source/gcc/slack-desc.gcc-go b/testing/source/gcc/slack-desc.gcc-go deleted file mode 100644 index 297396cc4..000000000 --- a/testing/source/gcc/slack-desc.gcc-go +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line -# up the first '|' above the ':' following the base package name, and the '|' on -# the right side marks the last column you can put a character in. You must make -# exactly 11 lines for the formatting to be correct. It's also customary to -# leave one space after the ':'. - - |-----handy-ruler------------------------------------------------------| -gcc-go: gcc-go (Go support for GCC) -gcc-go: -gcc-go: Go is a compiled, garbage-collected, concurrent programming language -gcc-go: developed by Google Inc. The initial design of Go was started in -gcc-go: September 2007 by Robert Griesemer, Rob Pike, and Ken Thompson. -gcc-go: Rob Pike has stated that Go is being used "for real stuff" at Google. -gcc-go: Go's "gc" compiler targets the Linux, Mac OS X, FreeBSD, OpenBSD and -gcc-go: Microsoft Windows operating systems, and the i386, amd64, and ARM -gcc-go: processor architectures. -gcc-go: -gcc-go: Homepage: http://golang.org diff --git a/testing/source/gcc/slack-desc.gcc-objc b/testing/source/gcc/slack-desc.gcc-objc deleted file mode 100644 index ac48f8bdc..000000000 --- a/testing/source/gcc/slack-desc.gcc-objc +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line -# up the first '|' above the ':' following the base package name, and the '|' on -# the right side marks the last column you can put a character in. You must make -# exactly 11 lines for the formatting to be correct. It's also customary to -# leave one space after the ':'. - - |-----handy-ruler------------------------------------------------------| -gcc-objc: gcc-objc (Objective-C/C++ support for GCC) -gcc-objc: -gcc-objc: Objective-C/C++ support for the GNU Compiler Collection. -gcc-objc: -gcc-objc: This package contains those parts of the compiler collection needed to -gcc-objc: compile code written in Objective-C and Objective-C++. Objective-C was -gcc-objc: originally developed to add object-oriented extensions to the C -gcc-objc: language, and is best known as the native language of the NeXT -gcc-objc: computer. -gcc-objc: -gcc-objc: diff --git a/testing/source/linux-5.18.x/build-all-kernels.sh b/testing/source/linux-5.18.x/build-all-kernels.sh deleted file mode 100755 index 09e684b17..000000000 --- a/testing/source/linux-5.18.x/build-all-kernels.sh +++ /dev/null @@ -1,175 +0,0 @@ -#!/bin/sh - -# Copyright 2018, 2021 Patrick J. Volkerding, Sebeka, Minnesota, USA -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -# This script uses the SlackBuild scripts present here to build a -# complete set of kernel packages for the currently running architecture. -# It needs to be run once on 64-bit (uname -m = x86_64) and once on IA32 -# (uname -m = i586 or i686). - -cd $(dirname $0) ; CWD=$(pwd) - -BUILD=${BUILD:-1} -if [ -z "$VERSION" ]; then - # Get the filename of the newest kernel tarball: - KERNEL_SOURCE_FILE="$(/bin/ls -t linux-*.tar.?z | head -n 1 )" - if echo $KERNEL_SOURCE_FILE | grep -q rc ; then # need to get rc versions a bit differently - VERSION=$(/bin/ls -t linux-*.tar.?z | head -n 1 | rev | cut -f 3- -d . | cut -f 1,2 -d - | rev) - else # normal release version - VERSION=$(/bin/ls -t linux-*.tar.?z | head -n 1 | rev | cut -f 3- -d . | cut -f 1 -d - | rev) - fi -fi -TMP=${TMP:-/tmp} - -# By default, install the packages as we build them and update the initrd. -INSTALL_PACKAGES=${INSTALL_PACKAGES:-YES} - -# Clean kernels before building them. Not doing so quit working some time -# after 4.19.x. -export KERNEL_CLEAN=YES - -# A list of recipes for build may be passed in the $RECIPES variable, otherwise -# we have defaults based on uname -m: -if [ -z "$RECIPES" ]; then - if uname -m | grep -wq x86_64 ; then - RECIPES="x86_64" - elif uname -m | grep -wq i.86 ; then - RECIPES="IA32_NO_SMP IA32_SMP" - else - echo "Error: no build recipes available for $(uname -m)" - exit 1 - fi -fi - -# Main build loop: -for recipe in $RECIPES ; do - - # Build recipes are defined here. These will select the appropriate .config - # files and package naming scheme, and define the output location. - if [ "$recipe" = "x86_64" ]; then - # Recipe for x86_64: - CONFIG_SUFFIX=".x64" - unset LOCALVERSION - OUTPUT=${OUTPUT:-${TMP}/output-x86_64-${VERSION}} - elif [ "$recipe" = "IA32_SMP" ]; then - # Recipe for IA32_SMP: - unset CONFIG_SUFFIX - LOCALVERSION="-smp" - OUTPUT=${OUTPUT:-${TMP}/output-ia32-${VERSION}} - elif [ "$recipe" = "IA32_NO_SMP" ]; then - # Recipe for IA32_NO_SMP: - unset CONFIG_SUFFIX - unset LOCALVERSION - OUTPUT=${OUTPUT:-${TMP}/output-ia32-${VERSION}} - else - echo "Error: recipe ${recipe} not implemented" - exit 1 - fi - - echo - echo "*************************************************" - echo "* Building kernels for recipe ${recipe}..." - echo "*************************************************" - echo - - # Build kernel-source package: - KERNEL_SOURCE_PACKAGE_NAME=$(PRINT_PACKAGE_NAME=YES KERNEL_CONFIG="config-generic${LOCALVERSION}-${VERSION}${LOCALVERSION}${CONFIG_SUFFIX}" VERSION=$VERSION BUILD=$BUILD ./kernel-source.SlackBuild) - KERNEL_CONFIG="config-generic${LOCALVERSION}-${VERSION}${LOCALVERSION}${CONFIG_SUFFIX}" VERSION=$VERSION BUILD=$BUILD ./kernel-source.SlackBuild - mkdir -p $OUTPUT - mv ${TMP}/${KERNEL_SOURCE_PACKAGE_NAME} $OUTPUT || exit 1 - if [ "${INSTALL_PACKAGES}" = "YES" ]; then - installpkg ${OUTPUT}/${KERNEL_SOURCE_PACKAGE_NAME} || exit 1 - fi - - # Build kernel-huge package: - # We will build in the just-built kernel tree. First, let's put back the - # symlinks: - ( cd $TMP/package-kernel-source - sh install/doinst.sh - ) - KERNEL_HUGE_PACKAGE_NAME=$(PRINT_PACKAGE_NAME=YES KERNEL_NAME=huge KERNEL_SOURCE=$TMP/package-kernel-source/usr/src/linux KERNEL_CONFIG=./kernel-configs/config-huge${LOCALVERSION}-${VERSION}${LOCALVERSION}${CONFIG_SUFFIX} CONFIG_SUFFIX=${CONFIG_SUFFIX} KERNEL_OUTPUT_DIRECTORY=$OUTPUT/kernels/huge$(echo ${LOCALVERSION} | tr -d -).s BUILD=$BUILD ./kernel-generic.SlackBuild) - KERNEL_NAME=huge KERNEL_SOURCE=$TMP/package-kernel-source/usr/src/linux KERNEL_CONFIG=./kernel-configs/config-huge${LOCALVERSION}-${VERSION}${LOCALVERSION}${CONFIG_SUFFIX} CONFIG_SUFFIX=${CONFIG_SUFFIX} KERNEL_OUTPUT_DIRECTORY=$OUTPUT/kernels/huge$(echo ${LOCALVERSION} | tr -d -).s BUILD=$BUILD ./kernel-generic.SlackBuild - if [ -r ${TMP}/${KERNEL_HUGE_PACKAGE_NAME} ]; then - mv ${TMP}/${KERNEL_HUGE_PACKAGE_NAME} $OUTPUT - else - echo "kernel-source build failed." - exit 1 - fi - if [ "${INSTALL_PACKAGES}" = "YES" ]; then - installpkg ${OUTPUT}/${KERNEL_HUGE_PACKAGE_NAME} || exit 1 - fi - - # Build kernel-generic package: - KERNEL_GENERIC_PACKAGE_NAME=$(PRINT_PACKAGE_NAME=YES KERNEL_NAME=generic KERNEL_SOURCE=$TMP/package-kernel-source/usr/src/linux KERNEL_CONFIG=./kernel-configs/config-generic${LOCALVERSION}-${VERSION}${LOCALVERSION}${CONFIG_SUFFIX} CONFIG_SUFFIX=${CONFIG_SUFFIX} KERNEL_OUTPUT_DIRECTORY=$OUTPUT/kernels/generic$(echo ${LOCALVERSION} | tr -d -).s BUILD=$BUILD ./kernel-generic.SlackBuild) - KERNEL_NAME=generic KERNEL_SOURCE=$TMP/package-kernel-source/usr/src/linux KERNEL_CONFIG=./kernel-configs/config-generic${LOCALVERSION}-${VERSION}${LOCALVERSION}${CONFIG_SUFFIX} CONFIG_SUFFIX=${CONFIG_SUFFIX} KERNEL_OUTPUT_DIRECTORY=$OUTPUT/kernels/generic$(echo ${LOCALVERSION} | tr -d -).s BUILD=$BUILD ./kernel-generic.SlackBuild - if [ -r ${TMP}/${KERNEL_GENERIC_PACKAGE_NAME} ]; then - mv ${TMP}/${KERNEL_GENERIC_PACKAGE_NAME} $OUTPUT - else - echo "kernel-generic build failed." - exit 1 - fi - if [ "${INSTALL_PACKAGES}" = "YES" ]; then - installpkg ${OUTPUT}/${KERNEL_GENERIC_PACKAGE_NAME} || exit 1 - fi - - # Build kernel-modules (for the just built generic kernel, but most of them - # will also work with the huge kernel): - KERNEL_MODULES_PACKAGE_NAME=$(PRINT_PACKAGE_NAME=YES KERNEL_SOURCE=$TMP/package-kernel-source/usr/src/linux KERNEL_CONFIG=$TMP/package-kernel-source/usr/src/linux/.config BUILD=$BUILD ./kernel-modules.SlackBuild) - KERNEL_SOURCE=$TMP/package-kernel-source/usr/src/linux KERNEL_CONFIG=$TMP/package-kernel-source/usr/src/linux/.config BUILD=$BUILD ./kernel-modules.SlackBuild - if [ -r ${TMP}/${KERNEL_MODULES_PACKAGE_NAME} ]; then - mv ${TMP}/${KERNEL_MODULES_PACKAGE_NAME} $OUTPUT - else - echo "kernel-modules build failed." - exit 1 - fi - if [ "${INSTALL_PACKAGES}" = "YES" ]; then - installpkg ${OUTPUT}/${KERNEL_MODULES_PACKAGE_NAME} || exit 1 - fi - - # Build kernel-headers: - KERNEL_HEADERS_PACKAGE_NAME=$(PRINT_PACKAGE_NAME=YES KERNEL_SOURCE=$TMP/package-kernel-source/usr/src/linux BUILD=$BUILD ./kernel-headers.SlackBuild) - KERNEL_SOURCE=$TMP/package-kernel-source/usr/src/linux BUILD=$BUILD ./kernel-headers.SlackBuild - if [ -r ${TMP}/${KERNEL_HEADERS_PACKAGE_NAME} ]; then - mv ${TMP}/${KERNEL_HEADERS_PACKAGE_NAME} $OUTPUT - else - echo "kernel-headers build failed." - exit 1 - fi - if [ "${INSTALL_PACKAGES}" = "YES" ]; then - upgradepkg --reinstall --install-new ${OUTPUT}/${KERNEL_HEADERS_PACKAGE_NAME} || exit 1 - fi - - # Update initrd: - if [ "${INSTALL_PACKAGES}" = "YES" ]; then - INITRD_VERSION="$(grep "Kernel Configuration" $TMP/package-kernel-source/usr/src/linux/.config | cut -f 3 -d ' ')" - INITRD_LOCALVERSION="$(cat $TMP/package-kernel-source/usr/src/linux/.config 2> /dev/null | grep CONFIG_LOCALVERSION= | cut -f 2 -d = | tr -d \")" - if [ -r /etc/mkinitrd.conf ]; then - mkinitrd -F /etc/mkinitrd.conf -k ${INITRD_VERSION}${INITRD_LOCALVERSION} - else # try this? - sh /usr/share/mkinitrd/mkinitrd_command_generator.sh -k ${INITRD_VERSION}${INITRD_LOCALVERSION} | sed "s/-c -k/-k/g" | bash - fi - fi - - echo - echo "${recipe} kernel packages done!" - echo - -done diff --git a/testing/source/linux-5.18.x/kernel-generic.SlackBuild b/testing/source/linux-5.18.x/kernel-generic.SlackBuild deleted file mode 100755 index 1f2fb66f1..000000000 --- a/testing/source/linux-5.18.x/kernel-generic.SlackBuild +++ /dev/null @@ -1,158 +0,0 @@ -#!/bin/sh - -# Copyright 2018, 2020 Patrick J. Volkerding, Sebeka, Minnesota, USA -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -# To use this script, point it to a Linux kernel source tree and a .config -# file by setting the appropriate environment variables: -# -# KERNEL_SOURCE=/usr/src/linux KERNEL_CONFIG=./kernel-configs/config-generic-4.14.23 ./kernel-generic.SlackBuild -# -# It can also build the huge (or any other) kernel: -# -# KERNEL_NAME=huge KERNEL_SOURCE=/usr/src/linux KERNEL_CONFIG=./kernel-configs/config-huge-4.14.23 ./kernel-generic.SlackBuild -# -# By default, it will call the package "kernel-generic" and use the source and -# .config already in /usr/src/linux (if possible). - -cd $(dirname $0) ; CWD=$(pwd) - -KERNEL_NAME=${KERNEL_NAME:-generic} -KERNEL_SOURCE=${KERNEL_SOURCE:-/usr/src/linux} -KERNEL_CONFIG=${KERNEL_CONFIG:-/usr/src/linux/.config} -CONFIG_SUFFIX=${CONFIG_SUFFIX:-} -BUILD=${BUILD:-1} -if [ ! -r "${KERNEL_CONFIG}" ]; then - echo "Error: the KERNEL_CONFIG environment variable needs to be set to the" - echo ".config file to be used to build this kernel. Example:" - echo "KERNEL_NAME=generic KERNEL_SOURCE=/usr/src/linux KERNEL_CONFIG=./kernel-configs/config-generic-4.14.23 ./kernel-generic.SlackBuild" - exit 1 -fi -if [ ! -d "${KERNEL_SOURCE}" ]; then - echo "Error: kernel source directory ${KERNEL_SOURCE} does not exist." - exit 1 -fi -# Get the kernel version from the kernel Makefile: -VERSION=$(grep "^VERSION = " ${KERNEL_SOURCE}/Makefile | rev | cut -f 1 -d ' ' | rev).$(grep "^PATCHLEVEL = " ${KERNEL_SOURCE}/Makefile | rev | cut -f 1 -d ' ' | rev).$(grep "^SUBLEVEL = " ${KERNEL_SOURCE}/Makefile | rev | cut -f 1 -d ' ' | rev)$(grep "^EXTRAVERSION = " ${KERNEL_SOURCE}/Makefile | rev | cut -f 1 -d ' ' | rev) -# Set LOCALVERSION to the value found inside the .config: -LOCALVERSION="$(cat ${KERNEL_SOURCE}/.config 2> /dev/null | grep CONFIG_LOCALVERSION= | cut -f 2 -d = | tr -d \")" -# The default kernel arch is x86 for all 32-bit and 64-bit x86: -if [ -z "${KERNEL_ARCH}" ]; then - case "$(uname -m)" in - i?86) KERNEL_ARCH=x86 ;; - x86_64) KERNEL_ARCH=x86 ;; - # Use uname -m for all other archs: - *) KERNEL_ARCH=$(uname -m) ;; - esac -fi -# If this variable is set to an output directory, we will also put copies of -# System.map.gz, bzImage, and config in there: -KERNEL_OUTPUT_DIRECTORY=${KERNEL_OUTPUT_DIRECTORY:-} - -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. -if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then - # We will need to copy the config and run make oldconfig and make - # prepare in order to generate kernel/bounds.s, where we can find - # the true $PACKAGE_ARCH. - if [ ! "${KERNEL_CONFIG}" = "${KERNEL_SOURCE}/.config" ]; then - cp -a ${KERNEL_CONFIG} ${KERNEL_SOURCE}/.config - fi - cd ${KERNEL_SOURCE} - make oldconfig 1> /dev/null 2> /dev/null - make prepare 1> /dev/null 2> /dev/null - PACKAGE_ARCH=$(cat kernel/bounds.s | grep -w "\-march=.*" | tr " " "\n" | grep -w "\-march=.*" | cut -f 2 -d = | tr - _) - echo "kernel-${KERNEL_NAME}${LOCALVERSION}-$(echo ${VERSION} | tr - _)$(echo ${LOCALVERSION} | tr - _)-${PACKAGE_ARCH}-$BUILD.txz" - exit 0 -fi - -NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} -TMP=${TMP:-/tmp} -PKG=$TMP/package-kernel-${KERNEL_NAME} - -rm -rf $PKG -mkdir -p $TMP $PKG - -# Set the variable $KERNEL_CLEAN to anything to run "make clean" before the -# build. Default is to start compiling in the tree as we found it. -if [ ! -z "${KERNEL_CLEAN}" ]; then - ( cd ${KERNEL_SOURCE} - echo "Cleaning kernel source (make clean)..." - make clean - # Make sure header files aren't missing... - make prepare - # Don't package the kernel in the sources: - find . -name "*Image" -exec rm "{}" \+ - # No need for these: - rm -f .config.old .version - find . -name "*.cmd" -exec rm -f "{}" \+ - rm .*.d - ) -fi - -# Copy the .config into the kernel source directory (unless it's there already) -if [ ! "${KERNEL_CONFIG}" = "${KERNEL_SOURCE}/.config" ]; then - echo "Copying the .config file to the kernel source tree:" - cp -a --verbose ${KERNEL_CONFIG} ${KERNEL_SOURCE}/.config -fi - -( cd ${KERNEL_SOURCE} - echo "Running make oldconfig..." - make oldconfig - echo "Building kernel..." - make $NUMJOBS bzImage || make bzImage || exit 1 - # Output files to a directory, if requested: - if [ ! -z "${KERNEL_OUTPUT_DIRECTORY}" ]; then - echo "Copying files to ${KERNEL_OUTPUT_DIRECTORY}..." - mkdir -p ${KERNEL_OUTPUT_DIRECTORY} - rm -f ${KERNEL_OUTPUT_DIRECTORY}/* - cp -a --verbose System.map ${KERNEL_OUTPUT_DIRECTORY} - cp -a --verbose .config ${KERNEL_OUTPUT_DIRECTORY}/config - cp -a --verbose arch/${KERNEL_ARCH}/boot/bzImage ${KERNEL_OUTPUT_DIRECTORY} - gzip -9 ${KERNEL_OUTPUT_DIRECTORY}/System.map - fi - echo "Preparing the package in $PKG..." - mkdir -p $PKG/boot - cp -a --verbose System.map $PKG/boot/System.map-${KERNEL_NAME}${LOCALVERSION}-${VERSION}${LOCALVERSION} - cp -a --verbose .config $PKG/boot/config-${KERNEL_NAME}${LOCALVERSION}-${VERSION}${LOCALVERSION}${CONFIG_SUFFIX} - cp -a --verbose arch/${KERNEL_ARCH}/boot/bzImage $PKG/boot/vmlinuz-${KERNEL_NAME}${LOCALVERSION}-${VERSION}${LOCALVERSION} - # Make symlinks: - ln -sf System.map-${KERNEL_NAME}${LOCALVERSION}-${VERSION}${LOCALVERSION} $PKG/boot/System.map - ln -sf config-${KERNEL_NAME}${LOCALVERSION}-${VERSION}${LOCALVERSION}${CONFIG_SUFFIX} $PKG/boot/config - ln -sf vmlinuz-${KERNEL_NAME}${LOCALVERSION}-${VERSION}${LOCALVERSION} $PKG/boot/vmlinuz - ln -sf vmlinuz-${KERNEL_NAME}${LOCALVERSION}-${VERSION}${LOCALVERSION} $PKG/boot/vmlinuz-${KERNEL_NAME}${LOCALVERSION} -) || exit 1 - -# Fetch the kernel architecture from the source tree: -cd ${KERNEL_SOURCE} -PACKAGE_ARCH=$(cat kernel/bounds.s | grep -w "\-march=.*" | tr " " "\n" | grep -w "\-march=.*" | cut -f 2 -d = | tr - _) - -mkdir $PKG/install -if [ -r $CWD/slack-desc/slack-desc.kernel-${KERNEL_NAME}${LOCALVERSION}.${PACKAGE_ARCH} ]; then - cat $CWD/slack-desc/slack-desc.kernel-${KERNEL_NAME}${LOCALVERSION}.${PACKAGE_ARCH} > $PKG/install/slack-desc -else - cat $CWD/slack-desc/slack-desc.kernel-template | sed "s/%PACKAGE_NAME%/kernel-${KERNEL_NAME}${LOCALVERSION}/g" > $PKG/install/slack-desc -fi - -# Make the package: -cd $PKG -/sbin/makepkg -l y -c n $TMP/kernel-${KERNEL_NAME}${LOCALVERSION}-$(echo ${VERSION} | tr - _)$(echo ${LOCALVERSION} | tr - _)-${PACKAGE_ARCH}-$BUILD.txz - diff --git a/testing/source/linux-5.18.x/kernel-headers.SlackBuild b/testing/source/linux-5.18.x/kernel-headers.SlackBuild deleted file mode 100755 index 2721350a1..000000000 --- a/testing/source/linux-5.18.x/kernel-headers.SlackBuild +++ /dev/null @@ -1,90 +0,0 @@ -#!/bin/sh - -# Copyright 2018 Patrick J. Volkerding, Sebeka, Minnesota, USA -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -# To use this script, point it to a Linux kernel source tree, and it will make -# the kernel-headers package using the .config to get all needed package -# version information: -# -# KERNEL_SOURCE=/usr/src/linux ./kernel-headers.SlackBuild - -cd $(dirname $0) ; CWD=$(pwd) - -PKGNAM=${PKGNAM:-kernel-headers} -BUILD=${BUILD:-1} -KERNEL_SOURCE=${KERNEL_SOURCE:-/usr/src/linux} -if [ -z "${HEADERS_ARCH}" ]; then - case "$(uname -m)" in - i?86) HEADERS_ARCH=x86 ;; - x86_64) HEADERS_ARCH=x86 ;; - # Use uname -m for all other archs: - *) HEADERS_ARCH=$(uname -m) ;; - esac -fi -if [ ! -d "${KERNEL_SOURCE}" ]; then - echo "Error: kernel source directory ${KERNEL_SOURCE} does not exist." - exit 1 -elif [ ! -r ${KERNEL_SOURCE}/.config ]; then - echo "Error: a .config was not found in ${KERNEL_SOURCE}." - exit 1 -fi -# Get the kernel version from the kernel Makefile: -VERSION=$(grep "^VERSION = " ${KERNEL_SOURCE}/Makefile | rev | cut -f 1 -d ' ' | rev).$(grep "^PATCHLEVEL = " ${KERNEL_SOURCE}/Makefile | rev | cut -f 1 -d ' ' | rev).$(grep "^SUBLEVEL = " ${KERNEL_SOURCE}/Makefile | rev | cut -f 1 -d ' ' | rev)$(grep "^EXTRAVERSION = " ${KERNEL_SOURCE}/Makefile | rev | cut -f 1 -d ' ' | rev) -# Set LOCALVERSION to the value found inside the .config: -LOCALVERSION="$(cat ${KERNEL_SOURCE}/.config 2> /dev/null | grep CONFIG_LOCALVERSION= | cut -f 2 -d = | tr -d \")" - -TMP=${TMP:-/tmp} -PKG=$TMP/package-$PKGNAM - -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. -if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then - echo "kernel-headers-$(echo ${VERSION} | tr - _)$(echo ${LOCALVERSION} | tr - _)-${HEADERS_ARCH}-$BUILD.txz" - exit 0 -fi - -rm -rf $PKG -mkdir -p $TMP $PKG -mkdir -p $PKG/usr - -# Generate the kernel headers and clean them up: -( cd ${KERNEL_SOURCE} - echo "Generating headers from the Linux kernel source tree in ${KERNEL_SOURCE}:" - make headers_install ARCH=${HEADERS_ARCH} INSTALL_HDR_PATH=$PKG/usr - cd $PKG/usr/include - # You won't want these files. The ones in libdrm work better. - rm -rf drm - # This next part seems pretty much cosmetic, but since we've been doing this - # for a long time (and others also do), we'll stick with it: - mv asm asm-${HEADERS_ARCH} - ln -sf asm-${HEADERS_ARCH} asm - # Remove unneeded dotfiles: - find . -name ".??*" -exec rm -f {} \+ -) - -mkdir -p $PKG/install -cat $CWD/slack-desc/slack-desc.kernel-headers > $PKG/install/slack-desc - -# Make the package: -cd $PKG -/sbin/makepkg -l y -c n $TMP/kernel-headers-$(echo ${VERSION} | tr - _)$(echo ${LOCALVERSION} | tr - _)-${HEADERS_ARCH}-$BUILD.txz - diff --git a/testing/source/linux-5.18.x/kernel-modules.SlackBuild b/testing/source/linux-5.18.x/kernel-modules.SlackBuild deleted file mode 100755 index ff083c16a..000000000 --- a/testing/source/linux-5.18.x/kernel-modules.SlackBuild +++ /dev/null @@ -1,146 +0,0 @@ -#!/bin/sh - -# Copyright 2018, 2020, 2022 Patrick J. Volkerding, Sebeka, Minnesota, USA -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -# To use this script, point it to a Linux kernel source tree and a .config -# file by setting the appropriate environment variables: -# -# KERNEL_SOURCE=/usr/src/linux KERNEL_CONFIG=./kernel-configs/config-generic-4.14.23 ./kernel-modules.SlackBuild -# -# By default, it will use the source and .config already in /usr/src/linux (if possible). - -# KERNEL_NAME is optional, and we don't use it. Define it to "-name" if -# you'd like an extra string after "kernel" in the package name -# (i.e. "kernel-name-modules"). - -cd $(dirname $0) ; CWD=$(pwd) - -KERNEL_NAME=${KERNEL_NAME:-} -KERNEL_SOURCE=${KERNEL_SOURCE:-/usr/src/linux} -KERNEL_CONFIG=${KERNEL_CONFIG:-/usr/src/linux/.config} -BUILD=${BUILD:-1} - -# The CONFIG_DEBUG_INFO_BTF_MODULES option adds a huge amount of debugging -# data to the modules which we don't actually need. We'll strip debugging -# information from kernel modules by default. If you are building a debug -# kernel and wish to retain this data, export the variable below set to "NO". -STRIP_DEBUG=${STRIP_DEBUG:-YES} - -if [ ! -r "${KERNEL_CONFIG}" ]; then - echo "Error: the KERNEL_CONFIG environment variable needs to be set to the" - echo ".config file to be used to build these modules. Example:" - echo "KERNEL_SOURCE=/usr/src/linux KERNEL_CONFIG=./kernel-configs/config-generic-4.14.23 ./kernel-modules.SlackBuild" - exit 1 -fi -if [ ! -d "${KERNEL_SOURCE}" ]; then - echo "Error: kernel source directory ${KERNEL_SOURCE} does not exist." - exit 1 -fi -# Get the kernel version from the kernel Makefile: -VERSION=$(grep "^VERSION = " ${KERNEL_SOURCE}/Makefile | rev | cut -f 1 -d ' ' | rev).$(grep "^PATCHLEVEL = " ${KERNEL_SOURCE}/Makefile | rev | cut -f 1 -d ' ' | rev).$(grep "^SUBLEVEL = " ${KERNEL_SOURCE}/Makefile | rev | cut -f 1 -d ' ' | rev)$(grep "^EXTRAVERSION = " ${KERNEL_SOURCE}/Makefile | rev | cut -f 1 -d ' ' | rev) -# Set LOCALVERSION to the value found inside the .config: -LOCALVERSION="$(cat ${KERNEL_SOURCE}/.config 2> /dev/null | grep CONFIG_LOCALVERSION= | cut -f 2 -d = | tr -d \")" - -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. -if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then - # We will need to copy the config and run make oldconfig and make - # prepare in order to generate kernel/bounds.s, where we can find - # the true $PACKAGE_ARCH. - if [ ! "${KERNEL_CONFIG}" = "${KERNEL_SOURCE}/.config" ]; then - cp -a ${KERNEL_CONFIG} ${KERNEL_SOURCE}/.config - fi - cd ${KERNEL_SOURCE} - make oldconfig 1> /dev/null 2> /dev/null - make prepare 1> /dev/null 2> /dev/null - PACKAGE_ARCH=$(cat kernel/bounds.s | grep -w "\-march=.*" | tr " " "\n" | grep -w "\-march=.*" | cut -f 2 -d = | tr - _) - echo "kernel${KERNEL_NAME}-modules${LOCALVERSION}-$(echo ${VERSION} | tr - _)$(echo ${LOCALVERSION} | tr - _)-${PACKAGE_ARCH}-$BUILD.txz" - exit 0 -fi - -NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} -TMP=${TMP:-/tmp} -PKG=$TMP/package-kernel${KERNEL_NAME}-modules - -rm -rf $PKG -mkdir -p $TMP $PKG - -# Set the variable $KERNEL_CLEAN to anything to run "make clean" before the -# build. Default is to start compiling in the tree as we found it. -if [ ! -z "${KERNEL_CLEAN}" ]; then - ( cd ${KERNEL_SOURCE} - echo "Cleaning kernel source (make clean)..." - make clean - # Make sure header files aren't missing... - make prepare - # Don't package the kernel in the sources: - find . -name "*Image" -exec rm "{}" \+ - # No need for these: - rm -f .config.old .version - find . -name "*.cmd" -exec rm -f "{}" \+ - rm .*.d - ) -fi - -# Copy the .config into the kernel source directory (unless it's there already) -if [ ! "${KERNEL_CONFIG}" = "${KERNEL_SOURCE}/.config" ]; then - echo "Copying the .config file to the kernel source tree:" - cp -a --verbose ${KERNEL_CONFIG} ${KERNEL_SOURCE}/.config -fi - -( cd ${KERNEL_SOURCE} - echo "Running make oldconfig..." - make oldconfig - echo "Running a preliminary make (needed to create modules.builtin.modinfo)..." - make $NUMJOBS || exit 1 - echo "Building kernel modules..." - make $NUMJOBS modules || exit 1 - echo "Installing kernel modules to $PKG..." - make INSTALL_MOD_PATH=$PKG modules_install || exit 1 - if [ "$STRIP_DEBUG" = "YES" ]; then - echo "Stripping debug info from kernel modules..." - find $PKG -name "*.ko" -exec strip --strip-debug "{}" \; - fi - # Fix build and source symlinks if they are pointing into /tmp: - ( cd $PKG/lib/modules/${VERSION}${LOCALVERSION} - for symlink in build source ; do - target=$(readlink $symlink) - if echo $target | grep -q "^/tmp/package-kernel-source/" ; then - rm -f $symlink - ln -sf $(echo $target | sed "s|/tmp/package-kernel-source/|/|g") $symlink - fi - done - ) - depmod -b $PKG -a ${VERSION}${LOCALVERSION} -) || exit 1 - -mkdir $PKG/install -cat $CWD/slack-desc/slack-desc.kernel-modules-template | sed "s/%PACKAGE_NAME%/kernel${KERNEL_NAME}-modules${LOCALVERSION}/g" > $PKG/install/slack-desc - -# Fetch the kernel architecture from the source tree: -cd ${KERNEL_SOURCE} -PACKAGE_ARCH=$(cat kernel/bounds.s | grep -w "\-march=.*" | tr " " "\n" | grep -w "\-march=.*" | cut -f 2 -d = | tr - _) - -# Make the package: -cd $PKG -/sbin/makepkg -l y -c n $TMP/kernel${KERNEL_NAME}-modules${LOCALVERSION}-$(echo ${VERSION} | tr - _)$(echo ${LOCALVERSION} | tr - _)-${PACKAGE_ARCH}-$BUILD.txz - diff --git a/testing/source/linux-5.18.x/kernel-source.SlackBuild b/testing/source/linux-5.18.x/kernel-source.SlackBuild deleted file mode 100755 index 3e5f7c9dd..000000000 --- a/testing/source/linux-5.18.x/kernel-source.SlackBuild +++ /dev/null @@ -1,194 +0,0 @@ -#!/bin/sh - -# Copyright 2018, 2020, 2021 Patrick J. Volkerding, Sebeka, Minnesota, USA -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -cd $(dirname $0) ; CWD=$(pwd) - -PKGNAM=${PKGNAM:-kernel-source} -BUILD=${BUILD:-1} -NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} -TMP=${TMP:-/tmp} -PKG=$TMP/package-$PKGNAM -# If CONFIG_PREEMPT=y and CONFIG_PREEMPT_DYNAMIC=y, then set a default preempt -# mode (none, voluntary, or full): -CONFIG_PREEMPT_DEFAULT_MODE=${CONFIG_PREEMPT_DEFAULT_MODE:-voluntary} - -# If a $VERSION is not passed to this script, use the newest linux-*.tar.xz -# found in this directory: -VERSION=${VERSION:-$(/bin/ls -t linux-*.tar.?z | head -n 1 | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} -if ! /bin/ls linux-*.tar.?z 1> /dev/null 2> /dev/null ; then - echo "Error: kernel source not found. (/bin/ls linux-*.tar.?z)" -fi - -# Automatically determine the architecture we're building on: -if [ -z "$ARCH" ]; then - case "$(uname -m)" in - # Use uname -m for all archs: - *) ARCH=$(uname -m) ;; - esac -fi - -# Kernel extraversion, such as "-smp" on 32-bit. There's usually no need to set -# this unless you're using something unusual. We use it to find which .config -# file to use, but we'll then use whatever CONFIG_LOCALVERSION is set to -# inside the .config. -LOCALVERSION=${LOCALVERSION:-""} - -# If KERNEL_CONFIG (name of kernel .config file in ./kernel-configs to use) -# has not been passed to this script, then we will select one. We will prefer -# to use a generic, SMP-supporting .config with a version number exactly -# matching the kernel sources. But if there's no exact version match, we will -# start with the newest .config we can find that's of the appropriate type. -if [ -z "${KERNEL_CONFIG}" ]; then # figure out the best matching .config - if [ "$ARCH" = "x86_64" ]; then - CONFIG_SUFFIX=".x64" - fi - if [ -z "${LOCALVERSION}" ]; then - if echo $ARCH | grep -q -E "i?86$" ; then - # Default to SMP extraversion on 32-bit: - LOCALVERSION="-smp" - fi - fi - if [ -r "$CWD/kernel-configs/config-generic${LOCALVERSION}-${VERSION}$LOCALVERSION${CONFIG_SUFFIX}" ]; then - # Exact match! - KERNEL_CONFIG="config-generic${LOCALVERSION}-${VERSION}${LOCALVERSION}${CONFIG_SUFFIX}" - else # no exact match, so find newest with the same name: - FIND_MATCH="$(/bin/ls -t $CWD/kernel-configs/config-generic${LOCALVERSION}-*${LOCALVERSION}${CONFIG_SUFFIX} 2> /dev/null | head -n 1)" - if [ -r "${FIND_MATCH}" ]; then - KERNEL_CONFIG="$(basename ${FIND_MATCH})" - unset FIND_MATCH - else - echo "Error: no matching .config file could be found for this kernel. Tried:" - echo " $CWD/kernel-configs/config-generic${LOCALVERSION}-${VERSION}${LOCALVERSION}${CONFIG_SUFFIX} (not found)" - exit 1 - fi - fi -else # We were given a name to use: - if [ ! -r "$CWD/kernel-configs/${KERNEL_CONFIG}" ]; then - echo "Error: specified kernel .config $CWD/kernel-configs/${KERNEL_CONFIG} was not found." - exit 1 - fi -fi -# Set LOCALVERSION to the value found inside the .config: -LOCALVERSION="$(cat $CWD/kernel-configs/${KERNEL_CONFIG} | grep CONFIG_LOCALVERSION= | cut -f 2 -d = | tr -d \")" - -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. -if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then - # We will have to extract and patch the kernel sources to find out the kernel version: - TEMPDIR=$(mktemp -d) - cd $TEMPDIR - tar xf $CWD/linux-${VERSION}.tar.?z || exit 1 - cd linux* - if [ -d $CWD/patches-${VERSION} ]; then - zcat $CWD/patches-${VERSION}/*.gz | patch -p1 --backup --suffix=.orig 1> /dev/null 2> /dev/null || exit 1 - fi - PACKAGE_VERSION=$(grep "^VERSION = " Makefile | rev | cut -f 1 -d ' ' | rev).$(grep "^PATCHLEVEL = " Makefile | rev | cut -f 1 -d ' ' | rev).$(grep "^SUBLEVEL = " Makefile | rev | cut -f 1 -d ' ' | rev)$(grep "^EXTRAVERSION = " Makefile | rev | cut -f 1 -d ' ' | rev) - cd $CWD - rm -rf $TEMPDIR - echo "kernel-source-$(echo ${PACKAGE_VERSION} | tr - _)$(echo ${LOCALVERSION} | tr - _)-noarch-$BUILD.txz" - exit 0 -fi - -echo "Using kernel config: $CWD/kernel-configs/${KERNEL_CONFIG}" - -rm -rf $PKG -mkdir -p $TMP $PKG -mkdir -p $PKG/usr/src - -echo "Untarring $CWD/linux-${VERSION}.tar.?z in $PKG/usr/src..." -( cd $PKG/usr/src - tar xf $CWD/linux-${VERSION}.tar.?z || exit 1 - echo "Making /usr/src/linux symlink..." - ln -sf linux-* linux - cd linux-* - if [ -d $CWD/patches-${VERSION} ]; then - echo "Applying kernel patches in $CWD/patches-${VERSION} and copying patches to $PKG/usr/src/linux-${VERSION}..." - zcat $CWD/patches-${VERSION}/*.gz | patch -p1 --verbose --backup --suffix=.orig || exit 1 - cp -a $CWD/patches-${VERSION}/*.gz . - fi - echo "Copying $CWD/kernel-configs/${KERNEL_CONFIG} to .config..." - cp -a $CWD/kernel-configs/${KERNEL_CONFIG} .config - echo "Fixing permissions/ownership..." - chown -R root:root . - find . \ - \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \+ -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \+ -) || exit 1 - -# Kernel is now ready to configure. We will also build this kernel so that -# the installed kernel source package is fully configured, and building an -# out-of-tree module (such as the NVIDIA driver) won't require the user -# to build the kernel sources first. -( cd $PKG/usr/src/linux-${VERSION} - echo "Making oldconfig..." - make oldconfig - if [ ! -r $CWD/kernel-configs/config-generic${LOCALVERSION}-${VERSION}${LOCALVERSION}${CONFIG_SUFFIX} ]; then - echo "Saving new .config as: $CWD/kernel-configs/config-generic${LOCALVERSION}-${VERSION}${LOCALVERSION}${CONFIG_SUFFIX}" - cp -a .config $CWD/kernel-configs/config-generic${LOCALVERSION}-${VERSION}${LOCALVERSION}${CONFIG_SUFFIX} - fi - - # If CONFIG_PREEMPT=y and CONFIG_PREEMPT_DYNAMIC=y, then set a default preempt - # mode (none, voluntary, or full): - if grep -wq CONFIG_PREEMPT=y .config ; then - if grep -wq CONFIG_PREEMPT_DYNAMIC=y .config ; then - # Sanity check: - if ! echo $CONFIG_PREEMPT_DEFAULT_MODE | grep -wq -e none -e voluntary -e full ; then - echo "ERROR: Invalid mode for CONFIG_PREEMPT_DEFAULT_MODE: $CONFIG_PREEMPT_DEFAULT_MODE" - exit 1 - fi - echo "Setting default PREEMPT mode: $CONFIG_PREEMPT_DEFAULT_MODE" - sed -i "s/^int preempt_dynamic_mode = preempt_dynamic_full;$/int preempt_dynamic_mode = preempt_dynamic_$CONFIG_PREEMPT_DEFAULT_MODE;/g" kernel/sched/core.c - fi - fi - - echo "Building kernel and modules (needed before clean for building NVIDIA to work)..." - make ${NUMJOBS} || exit 1 - make ${NUMJOBS} modules || exit 1 - echo "Cleaning up..." - make clean - # Make sure header files aren't missing... - make prepare - # Don't package the kernel in the sources: - find . -name "*Image" -exec rm "{}" \+ - # No need for these: - rm -f .config.old .version - find . -name "*.cmd" -exec rm -f "{}" \+ - rm .*.d - # Still some dotfiles laying around... probably fine though -) || exit 1 - -cd $PKG/usr/src/linux-${VERSION} -# Use the version number found in the Makefile in the package name. This is not -# always the same as the version in the source tarball's filename. For example, -# linux-4.14.tar.xz will have 4.14.0 as the version in the Makefile: -PACKAGE_VERSION=$(grep "^VERSION = " Makefile | rev | cut -f 1 -d ' ' | rev).$(grep "^PATCHLEVEL = " Makefile | rev | cut -f 1 -d ' ' | rev).$(grep "^SUBLEVEL = " Makefile | rev | cut -f 1 -d ' ' | rev)$(grep "^EXTRAVERSION = " Makefile | rev | cut -f 1 -d ' ' | rev) - -mkdir $PKG/install -cat $CWD/slack-desc/slack-desc.kernel-source > $PKG/install/slack-desc - -# Make the package: -cd $PKG -/sbin/makepkg -l y -c n $TMP/kernel-source-$(echo ${PACKAGE_VERSION} | tr - _)$(echo ${LOCALVERSION} | tr - _)-noarch-$BUILD.txz - diff --git a/testing/source/linux-5.18.x/slack-desc/slack-desc.kernel-generic-smp.i686 b/testing/source/linux-5.18.x/slack-desc/slack-desc.kernel-generic-smp.i686 deleted file mode 100644 index a6abc7703..000000000 --- a/testing/source/linux-5.18.x/slack-desc/slack-desc.kernel-generic-smp.i686 +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line -# up the first '|' above the ':' following the base package name, and the '|' -# on the right side marks the last column you can put a character in. You must -# make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':'. - - |-----handy-ruler------------------------------------------------------| -kernel-generic-smp: kernel-generic-smp (a general purpose SMP Linux kernel) -kernel-generic-smp: -kernel-generic-smp: This is a Linux kernel with built-in support for most disk -kernel-generic-smp: controllers. To use filesystems, or to load support for a SCSI or -kernel-generic-smp: other controller, then you'll need to load one or more kernel -kernel-generic-smp: modules using an initial ramdisk, or initrd. For more information -kernel-generic-smp: about creating an initrd, see the README.initrd file in the /boot -kernel-generic-smp: directory. -kernel-generic-smp: -kernel-generic-smp: SMP is "Symmetric multiprocessing", or multiple CPU/core support. -kernel-generic-smp: diff --git a/testing/source/linux-5.18.x/slack-desc/slack-desc.kernel-generic.i586 b/testing/source/linux-5.18.x/slack-desc/slack-desc.kernel-generic.i586 deleted file mode 100644 index 1054d54ca..000000000 --- a/testing/source/linux-5.18.x/slack-desc/slack-desc.kernel-generic.i586 +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line -# up the first '|' above the ':' following the base package name, and the '|' -# on the right side marks the last column you can put a character in. You must -# make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':'. - - |-----handy-ruler------------------------------------------------------| -kernel-generic: kernel-generic (a general purpose single processor Linux kernel) -kernel-generic: -kernel-generic: A Linux kernel with built-in support for most disk controllers. -kernel-generic: For filesystem support, or if you need to load support for a SCSI or -kernel-generic: other controller, then you'll need to load one or more kernel modules -kernel-generic: using an initial ramdisk, or initrd. For more information about -kernel-generic: creating an initrd, see the README.initrd file in the /boot directory. -kernel-generic: -kernel-generic: -kernel-generic: -kernel-generic: diff --git a/testing/source/linux-5.18.x/slack-desc/slack-desc.kernel-generic.x86_64 b/testing/source/linux-5.18.x/slack-desc/slack-desc.kernel-generic.x86_64 deleted file mode 100644 index b1410c979..000000000 --- a/testing/source/linux-5.18.x/slack-desc/slack-desc.kernel-generic.x86_64 +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line -# up the first '|' above the ':' following the base package name, and the '|' -# on the right side marks the last column you can put a character in. You must -# make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':'. - - |-----handy-ruler------------------------------------------------------| -kernel-generic: kernel-generic (a general purpose SMP Linux kernel) -kernel-generic: -kernel-generic: This is a Linux kernel with built-in support for most disk -kernel-generic: controllers. To use filesystems, or to load support for a SCSI or -kernel-generic: other controller, then you'll need to load one or more kernel -kernel-generic: modules using an initial ramdisk, or initrd. For more information -kernel-generic: about creating an initrd, see the README.initrd file in the /boot -kernel-generic: directory. -kernel-generic: -kernel-generic: SMP is "Symmetric multiprocessing", or multiple CPU/core support. -kernel-generic: diff --git a/testing/source/linux-5.18.x/slack-desc/slack-desc.kernel-headers b/testing/source/linux-5.18.x/slack-desc/slack-desc.kernel-headers deleted file mode 100644 index 511d5fdc7..000000000 --- a/testing/source/linux-5.18.x/slack-desc/slack-desc.kernel-headers +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line -# up the first '|' above the ':' following the base package name, and the '|' -# on the right side marks the last column you can put a character in. You must -# make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':'. - - |-----handy-ruler------------------------------------------------------| -kernel-headers: kernel-headers (Linux kernel include files) -kernel-headers: -kernel-headers: These are the include files from the Linux kernel. -kernel-headers: -kernel-headers: You'll need these to compile most system software for Linux. -kernel-headers: -kernel-headers: -kernel-headers: -kernel-headers: -kernel-headers: -kernel-headers: diff --git a/testing/source/linux-5.18.x/slack-desc/slack-desc.kernel-huge-smp.i686 b/testing/source/linux-5.18.x/slack-desc/slack-desc.kernel-huge-smp.i686 deleted file mode 100644 index 0757cea35..000000000 --- a/testing/source/linux-5.18.x/slack-desc/slack-desc.kernel-huge-smp.i686 +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line -# up the first '|' above the ':' following the base package name, and the '|' -# on the right side marks the last column you can put a character in. You must -# make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':'. - - |-----handy-ruler------------------------------------------------------| -kernel-huge-smp: kernel-huge-smp (a fully-loaded SMP Linux kernel) -kernel-huge-smp: -kernel-huge-smp: This is a Linux kernel with built-in support for most disk -kernel-huge-smp: controllers. If you're looking for a more stripped down kernel -kernel-huge-smp: (this one contains everything but the kitchen sink ;-), then install -kernel-huge-smp: the kernel-generic-smp in the /boot directory along with an initrd to -kernel-huge-smp: load support for your boot device and filesystem. For instructions -kernel-huge-smp: on the initrd, see README.initrd in the /boot directory. -kernel-huge-smp: -kernel-huge-smp: SMP is "Symmetric multiprocessing", or multiple CPU/core support. -kernel-huge-smp: diff --git a/testing/source/linux-5.18.x/slack-desc/slack-desc.kernel-huge.i586 b/testing/source/linux-5.18.x/slack-desc/slack-desc.kernel-huge.i586 deleted file mode 100644 index 1a5afb09a..000000000 --- a/testing/source/linux-5.18.x/slack-desc/slack-desc.kernel-huge.i586 +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line -# up the first '|' above the ':' following the base package name, and the '|' -# on the right side marks the last column you can put a character in. You must -# make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':'. - - |-----handy-ruler------------------------------------------------------| -kernel-huge: kernel-huge (a fully-loaded single processor Linux kernel) -kernel-huge: -kernel-huge: This is a Linux kernel with built-in support for most disk controllers -kernel-huge: and filesystems. If you're looking for a more stripped down kernel -kernel-huge: (this one contains everything but the kitchen sink ;-), then install -kernel-huge: the kernel-generic from the /boot directory along with an initrd to -kernel-huge: load support for your boot device and filesystem. For instructions -kernel-huge: on the initrd, see README.initrd in the /boot directory. -kernel-huge: -kernel-huge: -kernel-huge: diff --git a/testing/source/linux-5.18.x/slack-desc/slack-desc.kernel-huge.x86_64 b/testing/source/linux-5.18.x/slack-desc/slack-desc.kernel-huge.x86_64 deleted file mode 100644 index c15947b1d..000000000 --- a/testing/source/linux-5.18.x/slack-desc/slack-desc.kernel-huge.x86_64 +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line -# up the first '|' above the ':' following the base package name, and the '|' -# on the right side marks the last column you can put a character in. You must -# make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':'. - - |-----handy-ruler------------------------------------------------------| -kernel-huge: kernel-huge (a fully-loaded SMP Linux kernel) -kernel-huge: -kernel-huge: This is a Linux kernel with built-in support for most disk -kernel-huge: controllers. If you're looking for a more stripped down kernel -kernel-huge: (this one contains everything but the kitchen sink ;-), then install -kernel-huge: the kernel-generic in the /boot directory along with an initrd to -kernel-huge: load support for your boot device and filesystem. For instructions -kernel-huge: on the initrd, see README.initrd in the /boot directory. -kernel-huge: -kernel-huge: SMP is "Symmetric multiprocessing", or multiple CPU/core support. -kernel-huge: diff --git a/testing/source/linux-5.18.x/slack-desc/slack-desc.kernel-modules-template b/testing/source/linux-5.18.x/slack-desc/slack-desc.kernel-modules-template deleted file mode 100644 index 1338eb2ca..000000000 --- a/testing/source/linux-5.18.x/slack-desc/slack-desc.kernel-modules-template +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line -# up the first '|' above the ':' following the base package name, and the '|' -# on the right side marks the last column you can put a character in. You must -# make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':'. - - |-----handy-ruler------------------------------------------------------| -%PACKAGE_NAME%: %PACKAGE_NAME% (Linux kernel modules) -%PACKAGE_NAME%: -%PACKAGE_NAME%: Kernel modules are pieces of code that can be loaded and unloaded into -%PACKAGE_NAME%: the kernel upon demand. They extend the functionality of the kernel -%PACKAGE_NAME%: without the need to reboot the system. These modules provide support -%PACKAGE_NAME%: for hardware such as USB devices, RAID controllers, network -%PACKAGE_NAME%: interfaces, and display devices, or add other additional capabilities -%PACKAGE_NAME%: to the kernel. -%PACKAGE_NAME%: -%PACKAGE_NAME%: -%PACKAGE_NAME%: diff --git a/testing/source/linux-5.18.x/slack-desc/slack-desc.kernel-source b/testing/source/linux-5.18.x/slack-desc/slack-desc.kernel-source deleted file mode 100644 index cf254e748..000000000 --- a/testing/source/linux-5.18.x/slack-desc/slack-desc.kernel-source +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line -# up the first '|' above the ':' following the base package name, and the '|' on -# the right side marks the last column you can put a character in. You must make -# exactly 11 lines for the formatting to be correct. It's also customary to -# leave one space after the ':'. - - |-----handy-ruler------------------------------------------------------| -kernel-source: kernel-source (Linux kernel source) -kernel-source: -kernel-source: Source code for Linus Torvalds' Linux kernel. -kernel-source: -kernel-source: This is the complete and unmodified source code for the Linux kernel. -kernel-source: -kernel-source: -kernel-source: -kernel-source: -kernel-source: -kernel-source: diff --git a/testing/source/linux-5.18.x/slack-desc/slack-desc.kernel-source.vanilla b/testing/source/linux-5.18.x/slack-desc/slack-desc.kernel-source.vanilla deleted file mode 100644 index cf254e748..000000000 --- a/testing/source/linux-5.18.x/slack-desc/slack-desc.kernel-source.vanilla +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line -# up the first '|' above the ':' following the base package name, and the '|' on -# the right side marks the last column you can put a character in. You must make -# exactly 11 lines for the formatting to be correct. It's also customary to -# leave one space after the ':'. - - |-----handy-ruler------------------------------------------------------| -kernel-source: kernel-source (Linux kernel source) -kernel-source: -kernel-source: Source code for Linus Torvalds' Linux kernel. -kernel-source: -kernel-source: This is the complete and unmodified source code for the Linux kernel. -kernel-source: -kernel-source: -kernel-source: -kernel-source: -kernel-source: -kernel-source: diff --git a/testing/source/linux-5.18.x/slack-desc/slack-desc.kernel-template b/testing/source/linux-5.18.x/slack-desc/slack-desc.kernel-template deleted file mode 100644 index a2880bb2f..000000000 --- a/testing/source/linux-5.18.x/slack-desc/slack-desc.kernel-template +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line -# up the first '|' above the ':' following the base package name, and the '|' -# on the right side marks the last column you can put a character in. You must -# make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':'. - - |-----handy-ruler------------------------------------------------------| -%PACKAGE_NAME%: %PACKAGE_NAME% (a Linux kernel) -%PACKAGE_NAME%: -%PACKAGE_NAME%: This is a Linux kernel with built-in support for most disk -%PACKAGE_NAME%: controllers. To use filesystems, or to load support for a SCSI or -%PACKAGE_NAME%: other controller, then you'll need to load one or more kernel -%PACKAGE_NAME%: modules using an initial ramdisk, or initrd. For more information -%PACKAGE_NAME%: about creating an initrd, see the README.initrd file in the /boot -%PACKAGE_NAME%: directory. -%PACKAGE_NAME%: -%PACKAGE_NAME%: -%PACKAGE_NAME%: |