1
0

initial commit

imported from https://salsa.debian.org/kernel-team/linux.git
commit 9d5cc9d9d6501d7f1dd7e194d4b245bd0b6c6a22
version 6.11.4-1
This commit is contained in:
2024-10-23 12:12:30 +03:00
commit c3d09a3e94
1108 changed files with 137488 additions and 0 deletions

13
debian/templates/config.control.in vendored Normal file
View File

@@ -0,0 +1,13 @@
Package: @source_basename@-config-@version@
Meta-Rules-Target: config
Architecture: linux-any
Build-Profiles: <!pkg.linux.nosource>
Multi-Arch: same
Depends: ${misc:Depends}
Recommends: @source_basename@-source-@version@
Description: Debian kernel configurations for Linux @version@
This package contains the configuration files used to build the
official Debian kernel files, but without references to Debian's
signing certificates.
.
These can be used as a basis for configuring custom kernels.

15
debian/templates/docs.control.in vendored Normal file
View File

@@ -0,0 +1,15 @@
Package: @source_basename@-doc-@version@
Meta-Rules-Target: doc
Build-Profiles: <!nodoc !pkg.linux.quick>
Architecture: all
Build-Depends: cpio, graphviz, python3-sphinx, python3-sphinx-rtd-theme,
texlive-latex-base, texlive-latex-extra, dvipng, python3-yaml
Depends: ${misc:Depends}
Section: doc
Multi-Arch: foreign
Description: Linux kernel specific documentation for version @version@
This package provides the various README files and HTML documentation for
the Linux kernel version @version@. Plenty of information, including the
descriptions of various kernel subsystems, filesystems, driver-specific
notes and the like. An index to the documentation is installed as
/usr/share/doc/linux-doc-@version@/html/index.html.

10
debian/templates/docs.meta.control.in vendored Normal file
View File

@@ -0,0 +1,10 @@
Package: @source_basename@-doc@source_suffix@
Meta-Rules-Target: meta
Meta-Rules-Makeflags: INSTALLDOCS_LINK_DOC=@source_basename@-doc-@version@
Build-Profiles: <!nodoc !pkg.linux.nometa !pkg.linux.quick>
Section: doc
Architecture: all
Depends: @source_basename@-doc-@version@ (= ${binary:Version}), ${misc:Depends}
Description: Linux kernel specific documentation (meta-package)
This package depends on the package containing the documentation for the
latest Linux kernel.

View File

@@ -0,0 +1 @@
dir_to_symlink /usr/share/doc/@package@ @source_basename@-doc-@version@ 5.7~rc5-1~exp1 @package@

0
debian/templates/extra.control.in vendored Normal file
View File

15
debian/templates/headers.control.in vendored Normal file
View File

@@ -0,0 +1,15 @@
Package: linux-headers-@abiname@@localversion@
Meta-Rules-Target: headers
Build-Profiles: <!pkg.linux.nokernel>
Depends:
linux-headers-@abiname@-common@localversion_headers@ (= ${source:Version}),
linux-image-@abiname@@localversion@ (= ${binary:Version}) | linux-image-@abiname@@localversion@-unsigned (= ${binary:Version}),
linux-kbuild-@abiname@,
${misc:Depends}
Description: Header files for Linux @abiname@@localversion@
This package provides the architecture-specific kernel header files
for Linux kernel @abiname@@localversion@, generally
used for building out-of-tree kernel modules. These files are going to be
installed into /usr/src/linux-headers-@abiname@@localversion@, and can
be used for building modules that load into the kernel provided by the
linux-image-@abiname@@localversion@ package.

View File

@@ -0,0 +1,15 @@
Package: linux-headers-@abiname@-common@localversion@
Meta-Rules-Target: headers-common
Build-Profiles: <!pkg.linux.nokernel>
Architecture: all
Depends: ${misc:Depends}
Multi-Arch: foreign
Description: Common header files for Linux @abiname@@localversion@
This package provides the common kernel header files for Linux kernel
version @abiname@@featureset_desc@, generally used for building
out-of-tree kernel modules. These files are going to be installed into
/usr/src/linux-headers-@abiname@-common@localversion@.
.
To obtain a complete set of headers you also need to install the
linux-headers-@abiname@-(flavour) package, matching the flavour of
the kernel you intend the build for.

View File

@@ -0,0 +1,8 @@
Package: linux-headers@source_suffix@@localversion@
Meta-Rules-Target: meta
Meta-Rules-Makeflags: INSTALLDOCS_LINK_DOC=linux-headers-@abiname@@localversion@
Build-Profiles: <!pkg.linux.nokernel !pkg.linux.nometa>
Depends: linux-headers-@abiname@@localversion@ (= ${binary:Version}), ${misc:Depends}
Description: Header files for Linux @flavour@ configuration (meta-package)
This package depends on the architecture-specific header files for the latest
Linux kernel @flavour@ configuration.

View File

@@ -0,0 +1 @@
dir_to_symlink /usr/share/doc/@package@ linux-headers-@abiname@@localversion@ 5.7~rc5-1~exp1 @package@

18
debian/templates/headers.postinst.in vendored Normal file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/perl
# Author: Michael Gilbert <michael.s.gilbert@gmail.com>
# Origin: Stripped down version of the linux-headers postinst from Ubuntu's
# 2.6.32-14-generic kernel, which was itself derived from a
# Debian linux-image postinst script.
$|=1;
my $version = "@abiname@@localversion@";
if (-d "/etc/kernel/header_postinst.d") {
system ("run-parts --report --exit-on-error --arg=$version " .
"/etc/kernel/header_postinst.d") &&
die "Failed to process /etc/kernel/header_postinst.d";
}
exit 0;
__END__

View File

@@ -0,0 +1,4 @@
Test-Command: debian/tests/headers-kbuild @abiname@@localversion@
Architecture: @arch@
Restrictions: skip-not-installable, superficial
Features: test-name=headers-kbuild@localversion@

9
debian/templates/image-dbg.control.in vendored Normal file
View File

@@ -0,0 +1,9 @@
Package: linux-image-@abiname@@localversion@-dbg
Meta-Rules-Target: image-dbg
Build-Profiles: <!pkg.linux.nokernel !pkg.linux.nokerneldbg !pkg.linux.quick>
Depends: ${misc:Depends}
Section: debug
Priority: optional
Description: Debug symbols for linux-image-@abiname@@localversion@
This package provides the detached debug symbols for the Linux kernel
and modules in linux-image-@abiname@@localversion@.

View File

@@ -0,0 +1,32 @@
# Kernel dbg packages contain a full image with debug data
{{package}}: dbg-package-missing-depends
# glibc doesn't seem to check for a PT_GNU_STACK section in vDSOs, so
# it's OK that they don't have it
{% if arch in ['arm64', 'armhf'] %}
{{package}}: shared-library-lacks-stack-section *usr/lib/debug/lib/modules/{{abiname}}{{localversion}}/vdso/vdso.so*
{% endif %}
{% if arch in ['amd64', 'arm64', 'ppc64el', 's390x'] %}
{{package}}: shared-library-lacks-stack-section *usr/lib/debug/lib/modules/{{abiname}}{{localversion}}/vdso/vdso32.so*
{% endif %}
{% if arch in ['amd64', 'ppc64el', 's390x'] %}
{{package}}: shared-library-lacks-stack-section *usr/lib/debug/lib/modules/{{abiname}}{{localversion}}/vdso/vdso64.so*
{% endif %}
{% if arch in ['amd64'] %}
{{package}}: shared-library-lacks-stack-section *usr/lib/debug/lib/modules/{{abiname}}{{localversion}}/vdso/vdsox32.so*
{% endif %}
# It is intended that 64-bit kernels provide vDSOs for 32-bit executables.
# lintian currently allows i386 executables on amd64.
{% if arch in ['arm64', 'ppc64el', 's390x'] %}
{{package}}: binary-from-other-architecture *usr/lib/debug/lib/modules/{{abiname}}{{localversion}}/vdso/vdso32.so*
{% endif %}
{% if arch in ['amd64'] %}
{{package}}: binary-from-other-architecture *usr/lib/debug/lib/modules/{{abiname}}{{localversion}}/vdso/vdsox32.so*
{% endif %}
# Some 32-bit architectures need 64-bit kernels and we still build
# these as the "wrong" architecture rather than mandating multiarch.
{% if arch in ['hppa', 'mips', 'mipsel', 'powerpc'] %}
{{package}}: binary-from-other-architecture *usr/lib/debug/*
{% endif %}

View File

@@ -0,0 +1,9 @@
Package: linux-image@source_suffix@@localversion@-dbg
Meta-Rules-Target: meta
Meta-Rules-Makeflags: INSTALLDOCS_LINK_DOC=linux-image-@abiname@@localversion@-dbg
Build-Profiles: <!pkg.linux.nokernel !pkg.linux.nokerneldbg !pkg.linux.nometa !pkg.linux.quick>
Depends: linux-image-@abiname@@localversion@-dbg (= ${binary:Version}), ${misc:Depends}
Provides: linux-latest-image-dbg
Description: Debugging symbols for Linux @flavour@ configuration (meta-package)
This package depends on the detached debugging symbols for the latest
Linux kernel @flavour@ configuration.

View File

@@ -0,0 +1 @@
@package@: wrong-section-according-to-package-name linux-image@source_suffix@-@flavour@-dbg => debug

View File

@@ -0,0 +1 @@
dir_to_symlink /usr/share/doc/@package@ linux-image-@abiname@@localversion@-dbg 5.7~rc5-1~exp1 @package@

View File

@@ -0,0 +1,8 @@
Package: linux-bpf-dev
Meta-Rules-Target: bpf-dev
Build-Profiles: <!pkg.linux.nokernel !pkg.linux.quick>
Section: devel
Depends: ${misc:Depends}
Description: Headers for BPF development
The vmlinux.h header is provided to allow userspace to build BPF CO-RE
programs targeting the packaged kernel.

1
debian/templates/image-unsigned.NEWS.j2 vendored Symbolic link
View File

@@ -0,0 +1 @@
image.NEWS.j2

View File

@@ -0,0 +1,14 @@
Package: linux-image-@abiname@@localversion@-unsigned
Meta-Rules-Target: image
Build-Profiles: <!pkg.linux.nokernel>
Build-Depends:
# used by debian/rules.real to build udebs
kernel-wedge (>= 2.105~),
# used by kernel-wedge (only on Linux, thus not declared as a dependency)
kmod,
Depends: kmod, linux-base (>= 4.3~), ${misc:Depends}
Suggests: firmware-linux-free, linux-doc-@version@, debian-kernel-handbook
Conflicts: linux-image-@abiname@@localversion@
Replaces: linux-image-@abiname@@localversion@
Description: Linux @upstreamversion@ for @class@
The Linux kernel @upstreamversion@ and modules for use on @longclass@.

View File

@@ -0,0 +1 @@
image.lintian-overrides.j2

View File

@@ -0,0 +1 @@
image.postinst.in

View File

@@ -0,0 +1 @@
image.postrm.in

View File

@@ -0,0 +1 @@
image.preinst.in

1
debian/templates/image-unsigned.prerm.in vendored Symbolic link
View File

@@ -0,0 +1 @@
image.prerm.in

110
debian/templates/image.NEWS.j2 vendored Normal file
View File

@@ -0,0 +1,110 @@
{% if arch in ('ppc64', 'ppc64el') %}
linux (6.10-1~exp2) unstable; urgency=medium
* From Linux 6.10, the default kernel on ppc64 and ppc64el
architectures uses 4k page size.
After rebooting, you need to re-create all swap files or partitions.
They depend on the page size and will be not longer usable. See
mkswap(8) on how to do that.
Some file systems might be incompatible with the smaller page size.
At least btrfs created with default settings is known to be affected
and they will not work with this kernel any more.
A btrfs file system can be checked with file(1) (use file -s). It
will show:
BTRFS Filesystem sectorsize 65536
If this number is larger then 4096, the file system can not be
mounted with the default kernel anymore.
If you are affected and require the 64k page size of older kernels,
you can install linux-image-powerpc64-64k or
linux-image-powerpc64el-64k packages.
-- Bastian Blank <waldi@debian.org> Thu, 11 Jul 2024 11:12:35 +0200
{% endif %}
linux (5.10.46-4) unstable; urgency=medium
* From Linux 5.10.46-4, unprivileged calls to bpf() are disabled by
default, mitigating several security issues. However, an admin can
still change this setting later on, if needed, by writing 0 or 1 to
the kernel.unprivileged_bpf_disabled sysctl.
If you prefer to keep unprivileged calls to bpf() enabled, set the
sysctl:
kernel.unprivileged_bpf_disabled = 0
which is the upstream default.
-- Salvatore Bonaccorso <carnil@debian.org> Mon, 02 Aug 2021 22:59:24 +0200
linux (5.10~rc7-1~exp2) unstable; urgency=medium
* From Linux 5.10, all users are allowed to create user namespaces by
default. This will allow programs such as web browsers and container
managers to create more restricted sandboxes for untrusted or
less-trusted code, without the need to run as root or to use a
setuid-root helper.
The previous Debian default was to restrict this feature to processes
running as root, because it exposed more security issues in the
kernel. However, the security benefits of more widespread sandboxing
probably now outweigh this risk.
If you prefer to keep this feature restricted, set the sysctl:
kernel.unprivileged_userns_clone = 0
-- Ben Hutchings <benh@debian.org> Sun, 13 Dec 2020 17:11:36 +0100
linux-latest (86) unstable; urgency=medium
* From Linux 4.13.10-1, AppArmor is enabled by default. This allows
defining a "profile" for each installed program that can mitigate
security vulnerabilities in it. However, an incorrect profile might
disable some functionality of the program.
In case you suspect that an AppArmor profile is incorrect, see
<https://lists.debian.org/debian-devel/2017/11/msg00178.html> and
consider reporting a bug in the package providing the profile. The
profile may be part of the program's package or apparmor-profiles.
-- Ben Hutchings <ben@decadent.org.uk> Thu, 30 Nov 2017 20:08:25 +0000
linux-latest (81) unstable; urgency=medium
* From Linux 4.10, the old 'virtual syscall' interface on 64-bit PCs
(amd64) is disabled. This breaks chroot environments and containers
that use (e)glibc 2.13 and earlier, including those based on Debian 7
or RHEL/CentOS 6. To re-enable it, set the kernel parameter:
vsyscall=emulate
-- Ben Hutchings <ben@decadent.org.uk> Fri, 30 Jun 2017 23:50:03 +0100
linux-latest (76) unstable; urgency=medium
* From Linux 4.8, several changes have been made in the kernel
configuration to 'harden' the system, i.e. to mitigate security bugs.
Some changes may cause legitimate applications to fail, and can be
reverted by run-time configuration:
- On most architectures, the /dev/mem device can no longer be used to
access devices that also have a kernel driver. This breaks dosemu
and some old user-space graphics drivers. To allow this, set the
kernel parameter: iomem=relaxed
- The kernel log is no longer readable by unprivileged users. To
allow this, set the sysctl: kernel.dmesg_restrict=0
-- Ben Hutchings <ben@decadent.org.uk> Sat, 29 Oct 2016 02:05:32 +0100
linux-latest (75) unstable; urgency=medium
* From Linux 4.7, the iptables connection tracking system will no longer
automatically load helper modules. If your firewall configuration
depends on connection tracking helpers, you should explicitly load the
required modules. For more information, see
<https://home.regit.org/netfilter-en/secure-use-of-helpers/>.
-- Ben Hutchings <ben@decadent.org.uk> Sat, 29 Oct 2016 01:53:18 +0100

2
debian/templates/image.bug/control vendored Normal file
View File

@@ -0,0 +1,2 @@
Submit-As: src:linux
Package-Status: firmware-amd-graphics firmware-atheros firmware-bnx2 firmware-bnx2x firmware-brcm80211 firmware-cavium firmware-intelwimax firmware-intel-sound firmware-ipw2x00 firmware-ivtv firmware-iwlwifi firmware-libertas firmware-linux-nonfree firmware-misc-nonfree firmware-myricom firmware-netxen firmware-qlogic firmware-realtek firmware-samsung firmware-siano firmware-ti-connectivity xen-hypervisor

View File

@@ -0,0 +1,9 @@
add_0version() {
echo '** Version:' >&3
cat /proc/version >&3
echo >&3
}
ask_0version() {
true
}

View File

@@ -0,0 +1,9 @@
add_1cmdline() {
echo '** Command line:' >&3
cat /proc/cmdline >&3
echo >&3
}
ask_1cmdline() {
true
}

View File

@@ -0,0 +1,42 @@
_check() {
if [ $(($tainted & 1<<$1)) -ne 0 ]; then
result_short="$result_short$2"
result_long="$result_long * $3\n"
fi
}
add_1tainted() {
tainted=$(cat /proc/sys/kernel/tainted)
if [ "$tainted" -gt 0 ]; then
local result_short result_long
# Use debian/bin/update-bug-taint-list to update this
_check 0 P 'proprietary module was loaded'
_check 1 F 'module was force loaded'
_check 2 S 'kernel running on an out of specification system'
_check 3 R 'module was force unloaded'
_check 4 M 'processor reported a Machine Check Exception (MCE)'
_check 5 B 'bad page referenced or some unexpected page flags'
_check 6 U 'taint requested by userspace application'
_check 7 D 'kernel died recently, i.e. there was an OOPS or BUG'
_check 8 A 'ACPI table overridden by user'
_check 9 W 'kernel issued warning'
_check 10 C 'staging driver was loaded'
_check 11 I 'workaround for bug in platform firmware applied'
_check 12 O 'externally-built ("out-of-tree") module was loaded'
_check 13 E 'unsigned module was loaded'
_check 14 L 'soft lockup occurred'
_check 15 K 'kernel has been live patched'
_check 16 X 'auxiliary taint, defined for and used by distros'
_check 17 T 'kernel was built with the struct randomization plugin'
_check 18 N 'an in-kernel test has been run'
echo "** Tainted: $result_short ($tainted)" >&3
printf "$result_long" >&3
else
echo '** Not tainted' >&3
fi
echo >&3
}
ask_1tainted() {
true
}

View File

@@ -0,0 +1,21 @@
add_dmesg() {
local got_log=
echo '** Kernel log:' >&3
if [ "$(cat /proc/sys/kernel/dmesg_restrict)" = 0 ]; then
dmesg > >(tail -n 100 >&3) && got_log=y
elif command -v sudo >/dev/null; then
yesno "Use sudo to read the kernel log? " yep
if [ "$REPLY" = yep ]; then
sudo dmesg > >(tail -n 100 >&3) && got_log=y
fi
fi
test "$got_log" || echo 'Unable to read kernel log; any relevant messages should be attached' >&3
echo >&3
}
ask_dmesg() {
# Remind the user to attach the kernel log. This should also trigger
# a reminder in some MUAs if the user tries to send without it.
echo '** Kernel log: boot messages should be attached' >&3
echo >&3
}

View File

@@ -0,0 +1,60 @@
grep_model() {
case "$(uname -m)" in
alpha)
grep -E '^(system (type|variation|revision)|platform string)\b' /proc/cpuinfo
;;
arm*)
grep -E '^(Processor|Hardware|Revision)\b' /proc/cpuinfo
;;
x86_64)
local found=
for name in {sys,product,chassis,bios,board}_{vendor,name,version}; do
if [ -f /sys/class/dmi/id/$name ]; then
echo -n "$name: "
cat /sys/class/dmi/id/$name
found=y
fi
done
test -n "$found"
;;
mips|mips64)
grep -E '^(system type|cpu model)\b' /proc/cpuinfo
;;
parisc|parisc64)
grep -E '^(model|[hs]version)\b' /proc/cpuinfo
;;
ppc|ppc64|ppc64le)
grep -E -i '^(board|machine|model|motherboard|platform|revision|vendor)\b' /proc/cpuinfo
;;
s390|s390x)
grep -E '^processor\b' /proc/cpuinfo
;;
sparc|sparc64)
grep -E '^(cpu|fpu|pmu|prom|type)\b' /proc/cpuinfo
;;
sh4|sh4a)
grep -E '^(machine|cpu)\b' /proc/cpuinfo
;;
*)
false
;;
esac
# Device Tree model
if [ -r /proc/device-tree/model ]; then
echo "Device Tree model:" $(cat /proc/device-tree/model)
fi
}
add_model() {
local found=
echo '** Model information' >&3
grep_model >&3 2>/dev/null || echo "not available" >&3
echo >&3
}
ask_model() {
# This is still valid as long as the bug is being reported on the same
# system.
test $same_system = nop || add_model
}

View File

@@ -0,0 +1,13 @@
add_modules() {
echo '** Loaded modules:' >&3
# List modules along with any taint flags.
# We should be able to tell cut to use an empty output delimiter, but
# currently (coreutils 8.13-3) this results in null bytes in the output.
cut -d' ' -f1,7 /proc/modules | sed 's/ //' >&3
echo >&3
}
ask_modules() {
true
}

View File

@@ -0,0 +1,69 @@
_list_etc_network_interfaces() {
local file
for file in /etc/network/interfaces /etc/network/interfaces.d/*; do
if ! [ -f "$file" ]; then
continue
fi
case "${file##*/}" in
*[^-a-zA-Z0-9_]*)
continue
;;
esac
echo "$file"
done
}
_add_etc_network_interfaces() {
local file
test -f /etc/network/interfaces || return 0
echo '** Network interface configuration:' >&3
while read file; do
if ! [ -r "$file" ]; then
echo "*** $file: unreadable" >&3
echo >&3
continue
fi
echo "*** $file:" >&3
# Hide passwords/keys
awk '$1 ~ /key|pass|^wpa-(anonymous|identity|phase|pin|private|psk)/ { gsub(".", "*", $2); }
$1 == "ethtool-wol" { gsub(".", "*", $3); }
!/^[[:space:]]*\#/ { print; }
' <"$file" >&3
echo >&3
done < <(_list_etc_network_interfaces)
}
add_network() {
yesno "Include network configuration and status from this computer? " nop
test $REPLY = yep || return 0
_add_etc_network_interfaces
echo '** Network status:' >&3
if command -v ip >/dev/null; then
echo '*** IP interfaces and addresses:' >&3
ip address show >&3
echo >&3
fi
echo '*** Device statistics:' >&3
cat /proc/net/dev >&3
echo >&3
if command -v netstat >/dev/null; then
echo '*** Protocol statistics:' >&3
netstat -s >&3 || true
echo >&3
fi
echo >&3
}
ask_network() {
test $same_system = yep || return 0
test -f /etc/network/interfaces || return 0
yesno "Include network configuration from this computer? " nop
test $REPLY = yep || return 0
_add_etc_network_interfaces
}

12
debian/templates/image.bug/include-pci vendored Normal file
View File

@@ -0,0 +1,12 @@
add_pci() {
echo '** PCI devices:' >&3
lspci -nnvv >&3 2>/dev/null || echo 'not available' >&3
echo >&3
}
ask_pci() {
# This information shouldn't vary much between kernel versions, so
# include it anyway.
test $same_system = nop || add_pci
}

View File

@@ -0,0 +1,77 @@
_add_pstore_log() {
if [ $# -le 3 ]; then
return
fi
local backend="$1"
local event="$2"
local date="$3"
yesno "Include log of $event at $(date -d @$date +%c) stored by $backend?" yep
if [ $REPLY != yep ]; then
return
fi
echo >&3
echo "*** Log of $event at $(date -d @$date -Iseconds) from $backend" >&3
shift 3
for file in "$@"; do
tail -n +2 "$file" | sed 's/^<.>//' >&3
done
}
add_pstore() {
local backend
local i
local j
local file
local date
local head
local event
local log_files
if ! mountpoint -q /sys/fs/pstore; then
return 0
fi
set -- /sys/fs/pstore/dmesg-*-1
backend=${1#*/dmesg-}
backend=${backend%-1}
if [ "$backend" = '*' ]; then
return 0
fi
i=1
while [ -f /sys/fs/pstore/dmesg-$backend-$i ]; do
file=/sys/fs/pstore/dmesg-$backend-$i
head="$(head -1 "$file")"
# Is this the first part of a log?
if [ "x${head% Part1}" != "x$head" ]; then
# Flush previous log, if any
_add_pstore_log "$backend" "$event" "$date" $log_files
event="${head% Part1}"
date=$(stat -c %Y $file)
log_files=
j=1
fi
if [ "x$head" = "x$event Part$j" ]; then
# Each part is prepended to the list, because they're numbered
# backward in log history
log_files="$file $log_files"
j=$((j + 1))
fi
i=$((i + 1))
done
# Flush last log, if any
_add_pstore_log "$backend" "$event" "$date" $log_files
}
ask_pstore() {
add_pstore
}

11
debian/templates/image.bug/include-usb vendored Normal file
View File

@@ -0,0 +1,11 @@
add_usb() {
echo '** USB devices:' >&3
lsusb >&3 2>/dev/null || echo 'not available' >&3
echo >&3
}
ask_usb() {
# This information shouldn't vary much between kernel versions, so
# include it anyway.
test $same_system = nop || add_usb
}

8
debian/templates/image.bug/presubj vendored Normal file
View File

@@ -0,0 +1,8 @@
Please ensure that you are currently running the kernel version that you
are reporting on. This will allow your bug report to include useful
diagnostic information about the running kernel.
If you are reporting that the kernel fails to boot, please use a digital
camera, serial console or netconsole to record the boot messages and
attach these to your report. You can use the kernel parameter
'boot_delay=1000' to slow down the boot messages.

46
debian/templates/image.bug/script vendored Normal file
View File

@@ -0,0 +1,46 @@
#!/bin/bash
set -e
PATH=/sbin:/bin:/usr/sbin:/usr/bin
dir="$(dirname $0)"
. "$dir"/info
for file in "$dir"/include-*; do
name="$(echo $file | sed -e 's,^.*/include-,,')"
hooks+=($name)
. "$file"
done
if [ "$RELEASE" == "$(uname -r)" ]; then
running_ver="$(uname -v)"
running_ver="${running_ver#* $DISTRIBUTOR }"
running_ver="${running_ver%% *}"
if [ "$running_ver" != "$SOURCEVERSION" ]; then
cat <<EOF
You have installed version $PACKAGE_VERSION of
$PACKAGE_NAME, but version $running_ver is currently
running.
You should reboot to complete the upgrade. Until you do this, some
modules may fail to load. This is NOT a bug.
If you have already rebooted, check your boot loader configuration.
EOF
yesno "Do you still want to report a bug? " nop
if [ "$REPLY" = nop ]; then
exit 1
fi
fi
for hook in ${hooks[@]}; do
add_$hook
done
else
yesno "Does the bug you are reporting affect this computer? " yep
same_system=$REPLY
for hook in ${hooks[@]}; do
ask_$hook
done
fi

12
debian/templates/image.control.in vendored Normal file
View File

@@ -0,0 +1,12 @@
Package: linux-image-@abiname@@localversion@
Meta-Rules-Target: image
Build-Profiles: <!pkg.linux.nokernel>
Build-Depends:
# used by debian/rules.real to build udebs
kernel-wedge (>= 2.105~),
# used by kernel-wedge (only on Linux, thus not declared as a dependency)
kmod,
Depends: kmod, linux-base (>= 4.3~), ${misc:Depends}
Suggests: firmware-linux-free, linux-doc-@version@, debian-kernel-handbook
Description: Linux @upstreamversion@ for @class@
The Linux kernel @upstreamversion@ and modules for use on @longclass@.

View File

@@ -0,0 +1,13 @@
# Some 32-bit architectures need 64-bit kernels and we still build
# these as the "wrong" architecture rather than mandating multiarch.
{% if arch in ['mips', 'mipsel'] %}
{{package}}: binary-from-other-architecture *boot/vmlinu*
{% endif %}
{% if arch in ['hppa', 'mips', 'mipsel', 'powerpc'] %}
{{package}}: binary-from-other-architecture *lib/modules/*
{% endif %}
# vmlinux needs extra sections that would normally be stripped.
{% if arch in ['mips64el', 'mipsel', 'ppc64el'] %}
{{package}}: unstripped-binary-or-object *boot/vmlinu*
{% endif %}

View File

@@ -0,0 +1,5 @@
You are about to report a bug in a Linux kernel meta package.
This is probably not what you intended to do.
If you want to report a bug in the Linux kernel or modules, you should use
the package name linux-image-@abiname@@localversion@ instead.

View File

@@ -0,0 +1,9 @@
Package: linux-image@source_suffix@@localversion@
Meta-Rules-Target: meta
Meta-Rules-Makeflags: INSTALLDOCS_LINK_DOC=linux-image-@abiname@@localversion@
Build-Profiles: <!pkg.linux.nokernel !pkg.linux.nometa>
Depends: linux-image-@abiname@@localversion@ (= ${binary:Version}), ${misc:Depends}
Provides: linux-latest-modules-@abiname@@localversion@, wireguard-modules (= 1.0.0), virtualbox-guest-modules [amd64]
Description: Linux for @class@ (meta-package)
This package depends on the latest Linux kernel and modules for use on
@longclass@.

View File

@@ -0,0 +1 @@
dir_to_symlink /usr/share/doc/@package@ linux-image-@abiname@@localversion@ 5.7~rc5-1~exp1 @package@

25
debian/templates/image.postinst.in vendored Normal file
View File

@@ -0,0 +1,25 @@
#!/bin/sh -e
version=@abiname@@localversion@
image_path=/boot/@image-stem@-$version
if [ "$1" != configure ]; then
exit 0
fi
depmod $version
if [ -f /lib/modules/$version/.fresh-install ]; then
change=install
else
change=upgrade
fi
linux-update-symlinks $change $version $image_path
rm -f /lib/modules/$version/.fresh-install
if [ -d /etc/kernel/postinst.d ]; then
DEB_MAINT_PARAMS="$*" run-parts --report --exit-on-error --arg=$version \
--arg=$image_path /etc/kernel/postinst.d
fi
exit 0

31
debian/templates/image.postrm.in vendored Normal file
View File

@@ -0,0 +1,31 @@
#!/bin/sh -e
version=@abiname@@localversion@
image_path=/boot/@image-stem@-$version
rm -f /lib/modules/$version/.fresh-install
if [ "$1" != upgrade ] && command -v linux-update-symlinks >/dev/null; then
linux-update-symlinks remove $version $image_path
fi
if [ -d /etc/kernel/postrm.d ]; then
DEB_MAINT_PARAMS="$*" run-parts --report --exit-on-error --arg=$version \
--arg=$image_path /etc/kernel/postrm.d
fi
if [ "$1" = purge ]; then
for extra_file in modules.dep modules.isapnpmap modules.pcimap \
modules.usbmap modules.parportmap \
modules.generic_string modules.ieee1394map \
modules.ieee1394map modules.pnpbiosmap \
modules.alias modules.ccwmap modules.inputmap \
modules.symbols modules.ofmap \
modules.seriomap modules.\*.bin \
modules.softdep modules.weakdep modules.devname; do
eval rm -f /lib/modules/$version/$extra_file
done
rmdir /lib/modules/$version || true
fi
exit 0

21
debian/templates/image.preinst.in vendored Normal file
View File

@@ -0,0 +1,21 @@
#!/bin/sh -e
version=@abiname@@localversion@
image_path=/boot/@image-stem@-$version
if [ "$1" = abort-upgrade ]; then
exit 0
fi
if [ "$1" = install ]; then
# Create a flag file for postinst
mkdir -p /lib/modules/$version
touch /lib/modules/$version/.fresh-install
fi
if [ -d /etc/kernel/preinst.d ]; then
DEB_MAINT_PARAMS="$*" run-parts --report --exit-on-error --arg=$version \
--arg=$image_path /etc/kernel/preinst.d
fi
exit 0

17
debian/templates/image.prerm.in vendored Normal file
View File

@@ -0,0 +1,17 @@
#!/bin/sh -e
version=@abiname@@localversion@
image_path=/boot/@image-stem@-$version
if [ "$1" != remove ]; then
exit 0
fi
linux-check-removal $version
if [ -d /etc/kernel/prerm.d ]; then
DEB_MAINT_PARAMS="$*" run-parts --report --exit-on-error --arg=$version \
--arg=$image_path /etc/kernel/prerm.d
fi
exit 0

View File

13
debian/templates/libc-dev.control.in vendored Normal file
View File

@@ -0,0 +1,13 @@
Package: linux-libc-dev
Meta-Rules-Target: libc-dev
Section: devel
Architecture: all
Build-Depends:
# used by upstream headers_install target
rsync,
Depends: ${misc:Depends}
Multi-Arch: foreign
Description: Linux support headers for userspace development
This package provides userspaces headers from the Linux kernel. These files
are going to be installed into /usr/include, and are used by the installed
headers for GNU libc and other system libraries.

12
debian/templates/main.control.in vendored Normal file
View File

@@ -0,0 +1,12 @@
Package: @source_basename@-support-@abiname@
Meta-Rules-Target: support
Build-Profiles: <!pkg.linux.notools>
Architecture: all
Section: devel
Depends: ${python3:Depends}, python3-dacite, python3-jinja2, ${misc:Depends}
Multi-Arch: foreign
Description: Support files for Linux @upstreamversion@
This package provides support files for the Linux kernel build,
e.g. scripts to handle ABI information and for generation of
build system meta data.

View File

@@ -0,0 +1,3 @@
Test-Command: py.test debian/lib/python
Depends: python3-pytest, python3-jinja2
Restrictions: superficial

View File

@@ -0,0 +1,7 @@
Package: linux-image@source_suffix@-@arch@-signed-template
Meta-Rules-Target: signed-template
Build-Profiles: <!pkg.linux.nokernel>
Depends: dpkg-dev, python3:any, ${misc:Depends}
Description: Template for signed linux-image packages for @arch@
This package is used to control code signing by the Debian signing
service.

View File

@@ -0,0 +1 @@
linux-image@source_suffix@-@arch@-signed-template: script-not-executable

View File

@@ -0,0 +1 @@
headers.meta.control.in

View File

@@ -0,0 +1,3 @@
# linux-signed-* source packages are generated by the linux source
# package, so it is OK for their binaries to share documentation
@package@: usr-share-doc-symlink-to-foreign-package linux-headers-@abiname@@localversion@

View File

@@ -0,0 +1 @@
headers.meta.maintscript.in

1
debian/templates/signed.image.NEWS.j2 vendored Symbolic link
View File

@@ -0,0 +1 @@
image.NEWS.j2

View File

@@ -0,0 +1,22 @@
Package: linux-image-@abiname@@localversion@
Meta-Rules-Target: image
Meta-Sign-Package: linux-image-@abiname@@localversion@-unsigned
Meta-Sign-Files: boot/@image-stem@-@abiname@@localversion@:efi
Build-Profiles: <!pkg.linux.nokernel>
Build-Depends:
linux-image-@abiname@@localversion@-unsigned (= @signedtemplate_binaryversion@),
# used by debian/rules.real to build udebs
kernel-wedge (>= 2.105~),
# used by kernel-wedge (only on Linux, thus not declared as a dependency)
kmod,
# Used by debian/signing_templates/rules.real
rsync,
Built-Using: @source_basename@@source_suffix@ (= @version_complete@)
Depends: kmod, linux-base (>= 4.3~), ${misc:Depends}
Conflicts: linux-image-@abiname@@localversion@-unsigned
Replaces: linux-image-@abiname@@localversion@-unsigned
Suggests: firmware-linux-free, linux-doc-@version@, debian-kernel-handbook
Description: Linux @upstreamversion@ for @class@ (signed)
The Linux kernel @upstreamversion@ and modules for use on @longclass@.
.
The kernel image is signed for use with Secure Boot.

View File

@@ -0,0 +1 @@
image.postinst.in

1
debian/templates/signed.image.postrm.in vendored Symbolic link
View File

@@ -0,0 +1 @@
image.postrm.in

1
debian/templates/signed.image.preinst.in vendored Symbolic link
View File

@@ -0,0 +1 @@
image.preinst.in

1
debian/templates/signed.image.prerm.in vendored Symbolic link
View File

@@ -0,0 +1 @@
image.prerm.in

View File

@@ -0,0 +1,14 @@
Source: linux-signed@source_suffix@-@arch@
Section: kernel
Priority: optional
Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
Uploaders: Bastian Blank <waldi@debian.org>, maximilian attems <maks@debian.org>, Ben Hutchings <benh@debian.org>, Salvatore Bonaccorso <carnil@debian.org>
Standards-Version: 4.2.0
Build-Depends:
debhelper-compat (= 13),
python3:any,
sbsigntool [amd64 arm64],
Rules-Requires-Root: no
Vcs-Git: https://salsa.debian.org/kernel-team/linux.git
Vcs-Browser: https://salsa.debian.org/kernel-team/linux
Homepage: https://www.kernel.org/

View File

@@ -0,0 +1,7 @@
# linux-signed-* source packages are generated by the linux source
# package, and produce binaries with the same versions, even in case
# of a binNMU of linux
linux-signed-@arch@ source: version-substvar-for-external-package Depends *${binary:Version} linux-headers-* -> linux-headers-*
# The changelog is mostly copied from linux which is non-native
linux-signed-@arch@ source: odd-historical-debian-changelog-version * (for native)*

42
debian/templates/source.control.in vendored Normal file
View File

@@ -0,0 +1,42 @@
Section: kernel
Priority: optional
Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
Uploaders: Bastian Blank <waldi@debian.org>, maximilian attems <maks@debian.org>, Ben Hutchings <benh@debian.org>, Salvatore Bonaccorso <carnil@debian.org>
Standards-Version: 4.2.0
Build-Depends:
debhelper-compat (= 13),
# used to run debian/bin/*.py
python3:native,
python3-dacite:native,
python3-jinja2:native,
# used by debian/rules.real to prepare the source
quilt,
# used by debian/rules.real to build linux-perf and linux-support
dh-python <!pkg.linux.notools>,
Build-Depends-Arch:
# used by upstream to build include/generated/timeconst.h
bc <!pkg.linux.nokernel>,
# used by upstream to build signing tools and to process certificates
libssl-dev:native <!pkg.linux.nokernel>,
libssl-dev <!pkg.linux.notools>,
openssl <!pkg.linux.nokernel>,
# used by upstream to build objtool (native for images; host arch for
# linux-kbuild), perf (host arch)
libelf-dev:native <!pkg.linux.nokernel>,
libelf-dev <!pkg.linux.notools>,
lz4 [amd64 arm64] <!pkg.linux.nokernel>,
# used for bft debug info
pahole <!pkg.linux.nokernel> | dwarves:native (>= 1.16~) <!pkg.linux.nokernel>,
# used by debian/rules.real to build linux-headers
cpio <!pkg.linux.nokernel>,
# used by upstream to compress kernel
xz-utils <!pkg.linux.nokernel>,
# used by upstream to build genksyms, kconfig, and perf
bison <!pkg.linux.nokernel>,
bison <!pkg.linux.notools>,
flex <!pkg.linux.nokernel>,
flex <!pkg.linux.notools>,
Rules-Requires-Root: no
Vcs-Git: https://salsa.debian.org/kernel-team/linux.git
Vcs-Browser: https://salsa.debian.org/kernel-team/linux
Homepage: https://www.kernel.org/

16
debian/templates/sourcebin.control.in vendored Normal file
View File

@@ -0,0 +1,16 @@
Package: @source_basename@-source-@version@
Meta-Rules-Target: source
Build-Profiles: <!pkg.linux.nosource !pkg.linux.quick>
Architecture: all
Section: kernel
Build-Depends: patchutils, xz-utils
Depends: binutils, xz-utils, ${misc:Depends}
Recommends: build-essential, bc, rsync, kmod, cpio, bison, flex, libelf-dev, libssl-dev, @source_basename@-config-@version@
Suggests: libncurses-dev | ncurses-dev, qtbase5-dev, pkg-config
Multi-Arch: foreign
Description: Linux kernel source for version @version@ with Debian patches
This package provides source code for the Linux kernel version @version@.
This source closely tracks official Linux kernel releases. Debian's
modifications to that source consist of security fixes, bug fixes, and
features that have already been (or are believed to be) accepted by the
upstream maintainers.

View File

@@ -0,0 +1,9 @@
Package: @source_basename@-source@source_suffix@
Meta-Rules-Target: meta
Meta-Rules-Makeflags: INSTALLDOCS_LINK_DOC=@source_basename@-source-@version@
Build-Profiles: <!pkg.linux.nosource !pkg.linux.nometa !pkg.linux.quick>
Architecture: all
Depends: @source_basename@-source-@version@ (= ${binary:Version}), ${misc:Depends}
Description: Linux kernel source (meta-package)
This package depends on packages containing the sources of the latest Linux
kernel.

View File

@@ -0,0 +1 @@
dir_to_symlink /usr/share/doc/@package@ @source_basename@-source-@version@ 5.7~rc5-1~exp1 @package@

View File

@@ -0,0 +1,167 @@
Package: bpftool
Meta-Rules-Target: bpftool
Build-Profiles: <!pkg.linux.notools !pkg.linux.mintools>
Section: devel
Architecture: linux-any
Build-Depends:
python3-docutils <!nodoc !pkg.linux.notools>,
binutils-dev [hppa],
libelf-dev,
zlib1g-dev,
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Inspection and simple manipulation of BPF programs and maps
The bpftool command allows for inspection and simple modification of
Berkeley Packet Filter (BPF) objects on the system.
Package: linux-cpupower
Meta-Rules-Target: cpupower
Build-Profiles: <!pkg.linux.notools !pkg.linux.mintools>
Section: admin
Architecture: linux-any
Build-Depends:
libcap-dev,
libpci-dev,
libnl-3-dev,
libnl-genl-3-dev,
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: CPU power management tools for Linux
The cpupower command allows inspection and control of cpufreq and
cpuidle tunables for hardware that supports these features. It
replaces "cpufreq-info" and "cpufreq-set" in cpufrequtils.
.
${cpupower:Arch-Description}
Package: libcpupower1
Meta-Rules-Target: cpupower
Build-Profiles: <!pkg.linux.notools !pkg.linux.mintools>
Section: libs
Architecture: linux-any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: CPU frequency and voltage scaling tools for Linux (libraries)
libcpupower is a library for inspecting and controlling cpufreq and
cpuidle tunables.
.
This package contains the shared library.
Package: libcpupower-dev
Meta-Rules-Target: cpupower
Build-Profiles: <!pkg.linux.notools !pkg.linux.mintools>
Section: libdevel
Architecture: linux-any
Depends: ${misc:Depends}, libcpupower1 (= ${binary:Version})
Provides: libcpufreq-dev
Conflicts: libcpufreq-dev
Replaces: libcpufreq-dev
Description: CPU frequency and voltage scaling tools for Linux (development files)
libcpupower is a library for inspecting and controlling cpufreq and
cpuidle tunables.
.
This package is needed to compile programs against libcpupower.
Package: linux-perf
Meta-Rules-Target: perf
Build-Profiles: <!pkg.linux.notools !pkg.linux.mintools !nopython>
Section: devel
Architecture: alpha amd64 arm64 armel armhf hppa i386 loong64 mips mips64 mips64el mipsel mipsn32 mipsn32el mipsr6 mipsr6el mipsn32r6 mipsn32r6el mips64r6 mips64r6el powerpc ppc64 ppc64el riscv64 s390 s390x sh4 sparc sparc64
Build-Depends:
asciidoctor <!nodoc !pkg.linux.notools !nopython>,
gcc-multilib [amd64 mips64 mips64el mips64r6 mips64r6el ppc64 s390x sparc64] <!cross>,
libaudit-dev,
libbabeltrace-dev,
libdebuginfod-dev,
libdw-dev,
libnewt-dev,
libnuma-dev,
libopencsd-dev (>= 1.1.1),
libperl-dev,
libpython3-dev,
libtraceevent-dev (>= 1:1.5),
libunwind-dev [amd64 arm64 armel armhf hppa i386 mips mips64 mips64el mipsel powerpc ppc64 ppc64el sh4],
libzstd-dev,
python3-dev:any,
python3-setuptools,
Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}, ${python3:Depends}
Provides: linux-tools-@version@
Conflicts: linux-tools-@version@
Replaces: linux-tools-@version@
Suggests: linux-doc-@version@
Description: Performance analysis tools for Linux
This package contains the 'perf' performance analysis tools for Linux.
Package: usbip
Meta-Rules-Target: usbip
Build-Profiles: <!pkg.linux.notools !pkg.linux.mintools>
Architecture: linux-any
Build-Depends:
autoconf,
automake,
libtool,
libglib2.0-dev,
libudev-dev,
libwrap0-dev,
# debian/rules.d/tools/usb/usbip
rsync,
Depends: usb.ids, ${shlibs:Depends}, ${misc:Depends}
Section: admin
Description: USB device sharing system over IP network
USB/IP is a system for sharing USB devices over the network.
.
To share USB devices between computers with their full
functionality, USB/IP encapsulates "USB requests" into IP
packets and transmits them between computers.
.
Original USB device drivers and applications can be used
for remote USB devices without any modification of them. A
computer can use remote USB devices as if they were
directly attached.
.
Currently USB/IP provides no access control or encryption.
It should only be used in trusted environments.
.
This package provides the server component 'usbipd' and the
client tool 'usbip'.
Package: hyperv-daemons
Meta-Rules-Target: hyperv-daemons
Build-Profiles: <!pkg.linux.notools !pkg.linux.mintools>
Architecture: i386 amd64 x32 arm64
Pre-Depends: ${misc:Pre-Depends}
Depends: ${shlibs:Depends}, ${misc:Depends}
Section: admin
Description: Support daemons for Linux running on Hyper-V
Suite of daemons for Linux guests running on Hyper-V, consisting of
hv_kvp_daemon and hv_vss_daemon.
.
hv_kvp_daemon provides the key-value pair (KVP) service, allowing the
host to get and set the IP networking configuration of the guest.
(This requires helper scripts which are not currently included.)
.
hv_vss_daemon provides the volume shadow copy service (VSS), allowing
the host to freeze the guest filesystems while taking a snapshot.
Package: rtla
Meta-Rules-Target: rtla
Build-Profiles: <!pkg.linux.notools !pkg.linux.mintools>
Architecture: amd64 arm64 armhf i386 x32
Build-Depends: libtracefs-dev (>= 1.3), libtraceevent-dev (>= 1:1.5), python3-docutils
Depends: ${shlibs:Depends}
Section: devel
Description: Real-Time Linux Analysis tools
rtla provides a set of commands for analysing the real-time
properties of Linux. rtla uses kernel tracing capabilities to
provide precise information about the properties and root causes of
unexpected results.
Package: intel-sdsi
Meta-Rules-Target: sdsi
Build-Profiles: <!pkg.linux.notools !pkg.linux.mintools>
Architecture: amd64
Depends: ${shlibs:Depends}
Section: admin
Description: Intel On Demand (SDSi) provisioning tool
intel_sdsi is a tool for key certificate and activation payload
provisioning on Intel Xeon family processors with support for Intel
On Demand (formerly known as Software Defined Silicon or SDSi).
.
intel_sdsi allows the configuration of additional CPU features through
a license activation process.

View File

@@ -0,0 +1,8 @@
Package: linux-kbuild-@abiname@
Meta-Rules-Target: kbuild
Build-Profiles: <!pkg.linux.notools>
Architecture: linux-any
Depends: ${shlibs:Depends}, ${misc:Depends}
Multi-Arch: foreign
Description: Kbuild infrastructure for Linux @abiname@
This package provides the kbuild infrastructure for the headers packages for Linux kernel version @version@.