From 8fadefc795f3650c5be3136da91c848ad35f2312 Mon Sep 17 00:00:00 2001
From: Li Zhou
Date: Mon, 28 Aug 2023 01:52:28 -0700
Subject: [PATCH] Setup build env for kernel 6.6.7 on bullseye
Those packages' changes in this commit are used to fix errors
met when building kernel 6.6.7.
(1)Add pahole/libtracefs-dev/libtraceevent-dev to fix below error met
when building kernel 6.6.7:
The following packages have unmet dependencies:
sbuild-build-depends-main-dummy : Depends: pahole but it is not
installable
Depends: libtracefs-dev (>= 1.3) but
it is not going to be installed
Depends: libtraceevent-dev (>= 1:1.5)
but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
(2)Add libtraceevent1/libtracefs1 and adapt libbpf0's version to fix
below error met when building kernel 6.6.7:
The following packages have unmet dependencies:
libtraceevent-dev : Depends: libtraceevent1 (= 1:1.6.3-1~bpo11+1) but
it is not going to be installed
libtracefs-dev : Depends: libtracefs1 (= 1.5.0-1~bpo11+1) but it is not
going to be installed
pahole : Depends: libbpf0 (>= 1:0.4.0) but it is not going to be
installed
E: Unable to correct problems, you have held broken packages.
(3)Add libbpf-dev to fix below error met when building qemu with above
changes:
The following packages have unmet dependencies:
libbpf-dev : Depends: libbpf0 (= 1:0.3-2) but 1:0.4.0-1 is to be
installed
E: Unable to correct problems, you have held broken packages.
Test plan:
The out of tree kernel modules for 6.6 aren't ready by now.
So many tests can't be done yet because the related test environments
need those OOT drivers. Here list the tests which have been done with
a test patch to remove the OOT drivers from the ISO temporarily.
There are also 2 patches as workaround for solving 2 issues met when
installing lab in jenkins job.
PASS: Build linux/linux-rt OK.
PASS: Build ISO OK.
PASS: Install and boot up OK on a AIO-SX lab with std/rt kernel.
Story: 2011000
Task: 49365
Depends-On: https://review.opendev.org/c/starlingx/kernel/+/907030
Signed-off-by: Li Zhou
Change-Id: If4555affaf52af13e5b9d80b0915844b0ef7a109
---
.../config/debian/common/base-bullseye.lst | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/debian-mirror-tools/config/debian/common/base-bullseye.lst b/debian-mirror-tools/config/debian/common/base-bullseye.lst
index c2402582..fcab44ec 100644
--- a/debian-mirror-tools/config/debian/common/base-bullseye.lst
+++ b/debian-mirror-tools/config/debian/common/base-bullseye.lst
@@ -270,7 +270,8 @@ libboost-program-options1.74.0 1.74.0-9
libboost-python1.74.0 1.74.0-9
libboost-regex1.74.0 1.74.0-9
libboost-thread1.74.0 1.74.0-9
-libbpf0 1:0.3-2
+libbpf0 1:0.4.0-1 https://snapshot.debian.org/archive/debian/20210526T023010Z/pool/main/libb/libbpf/libbpf0_0.4.0-1_amd64.deb
+libbpf-dev 1:0.4.0-1 https://snapshot.debian.org/archive/debian/20210526T023010Z/pool/main/libb/libbpf/libbpf-dev_0.4.0-1_amd64.deb
libbrotli1 1.0.9-2+b2
libbsd0 0.11.3-1
libbson-1.0-0 1.17.6-1
@@ -701,6 +702,10 @@ libtirpc3 1.3.1-1+deb11u1 https://snapshot.debian.org/archive/debian/20221106T1
libtirpc-common 1.3.1-1+deb11u1 https://snapshot.debian.org/archive/debian/20221106T145349Z/pool/main/libt/libtirpc/libtirpc-common_1.3.1-1+deb11u1_all.deb
libtirpc-dev 1.3.1-1+deb11u1 https://snapshot.debian.org/archive/debian/20221106T145349Z/pool/main/libt/libtirpc/libtirpc-dev_1.3.1-1+deb11u1_amd64.deb
libtool 2.4.6-15
+libtraceevent-dev 1:1.6.3-1~bpo11+1 https://snapshot.debian.org/archive/debian/20221011T212733Z/pool/main/libt/libtraceevent/libtraceevent-dev_1.6.3-1~bpo11%2B1_amd64.deb
+libtraceevent1 1:1.6.3-1~bpo11+1 https://snapshot.debian.org/archive/debian/20221011T212733Z/pool/main/libt/libtraceevent/libtraceevent1_1.6.3-1~bpo11%2B1_amd64.deb
+libtracefs-dev 1.5.0-1~bpo11+1 https://snapshot.debian.org/archive/debian/20221011T212733Z/pool/main/libt/libtracefs/libtracefs-dev_1.5.0-1~bpo11%2B1_amd64.deb
+libtracefs1 1.5.0-1~bpo11+1 https://snapshot.debian.org/archive/debian/20221011T212733Z/pool/main/libt/libtracefs/libtracefs1_1.5.0-1~bpo11%2B1_amd64.deb
libtsan0 10.2.1-6
libubsan1 10.2.1-6
libuchardet0 0.0.7-1
@@ -819,6 +824,7 @@ openssh-sftp-server 1:8.4p1-5+deb11u3 https://snapshot.debian.org/archive/debian
openssl 1.1.1n-0+deb11u5 https://snapshot.debian.org/archive/debian/20230611T210420Z/pool/main/o/openssl/openssl_1.1.1n-0%2Bdeb11u5_amd64.deb
original-awk 2018-08-27-1
ovmf 2020.11-2+deb11u1
+pahole 1.22-4~bpo11+1 https://snapshot.debian.org/archive/debian/20220202T154459Z/pool/main/d/dwarves/pahole_1.22-4~bpo11%2B1_amd64.deb
passwd 1:4.8.1-1
patch 2.7.6-7
pci.ids 0.0~2021.02.08-1