Hello,
I would like to rebuild (with some changes) in Debian Stable (13.3) the Linux kernel package distributed with the experimental repository:
Code:
$ apt list linux-image-6.19-amd64*linux-image-6.19-amd64-dbg/experimental 6.19~rc8-1~exp1 amd64linux-image-6.19-amd64/experimental 6.19~rc8-1~exp1 amd64After updating the repository configuration, I updated the local list of packages and I downloaded the source code:
Code:
$ apt -t experimental source linuxSelected version '6.19~rc8-1~exp1' (experimental) for linuxNOTICE: 'linux' packaging is maintained in the 'Git' version control system at:https://salsa.debian.org/kernel-team/linux.gitPlease use:git clone https://salsa.debian.org/kernel-team/linux.gitto retrieve the latest (possibly unreleased) updates to the package.Need to get 161 MB of source archives.Get:1 http://deb.debian.org/debian experimental/main linux 6.19~rc8-1~exp1 (dsc) [183 kB]Get:2 http://deb.debian.org/debian experimental/main linux 6.19~rc8-1~exp1 (tar) [159 MB]Get:3 http://deb.debian.org/debian experimental/main linux 6.19~rc8-1~exp1 (diff) [1452 kB] Fetched 161 MB in 20s (8026 kB/s) dpkg-source: info: extracting linux in linux-6.19~rc8dpkg-source: info: unpacking linux_6.19~rc8.orig.tar.xzdpkg-source: info: unpacking linux_6.19~rc8-1~exp1.debian.tar.xzdpkg-source: info: using patch list from debian/patches/seriesdpkg-source: info: applying debian/gitignore.patchdpkg-source: info: applying debian/dfsg/arch-powerpc-platforms-8xx-ucode-disable.patchdpkg-source: info: applying debian/dfsg/drivers-media-dvb-dvb-usb-af9005-disable.patchdpkg-source: info: applying debian/dfsg/video-remove-nvidiafb-and-rivafb.patchdpkg-source: info: applying debian/dfsg/documentation-fix-broken-link-to-cipso-draft.patchdpkg-source: info: applying debian/version.patchdpkg-source: info: applying debian/uname-version-timestamp.patchdpkg-source: info: applying debian/kernelvariables.patchdpkg-source: info: applying debian/mips-boston-disable-its.patchdpkg-source: info: applying debian/mips-ieee754-relaxed.patchdpkg-source: info: applying debian/mips-enable-r2-to-r6-emu-by-default.patchdpkg-source: info: applying debian/arch-sh4-fix-uimage-build.patchdpkg-source: info: applying debian/tools-perf-perf-read-vdso-in-libexec.patchdpkg-source: info: applying debian/tools-perf-install-python-bindings.patchdpkg-source: info: applying debian/wireless-add-debian-wireless-regdb-certificates.patchdpkg-source: info: applying debian/export-symbols-needed-by-binder.patchdpkg-source: info: applying debian/android-enable-building-binder-as-module.patchdpkg-source: info: applying debian/documentation-drop-sphinx-version-check.patchdpkg-source: info: applying debian/perf-traceevent-support-asciidoctor-for-documentatio.patchdpkg-source: info: applying debian/kbuild-look-for-module.lds-under-arch-directory-too.patchdpkg-source: info: applying debian/kbuild-abort-build-if-subdirs-used.patchdpkg-source: info: applying debian/makefile-make-compiler-version-comparison-optional.patchdpkg-source: info: applying bugfix/all/revert-tools-build-clean-cflags-and-ldflags-for-fixdep.patchdpkg-source: info: applying debian/fixdep-allow-overriding-hostcc-and-hostld.patchdpkg-source: info: applying debian/linux-perf-remove-remaining-source-filenames-from-executable.patchdpkg-source: info: applying features/all/drivers-media-dvb-usb-af9005-request_firmware.patchdpkg-source: info: applying debian/iwlwifi-do-not-request-unreleased-firmware.patchdpkg-source: info: applying debian/firmware_loader-log-direct-loading-failures-as-info-for-d-i.patchdpkg-source: info: applying bugfix/all/radeon-amdgpu-firmware-is-required-for-drm-and-kms-on-r600-onward.patchdpkg-source: info: applying debian/af_802154-Disable-auto-loading-as-mitigation-against.patchdpkg-source: info: applying debian/rds-Disable-auto-loading-as-mitigation-against-local.patchdpkg-source: info: applying debian/hamradio-disable-auto-loading-as-mitigation-against-local-exploits.patchdpkg-source: info: applying debian/fs-enable-link-security-restrictions-by-default.patchdpkg-source: info: applying debian/yama-disable-by-default.patchdpkg-source: info: applying debian/add-sysctl-to-disallow-unprivileged-CLONE_NEWUSER-by-default.patchdpkg-source: info: applying features/all/security-perf-allow-further-restriction-of-perf_event_open.patchdpkg-source: info: applying features/x86/intel-iommu-add-option-to-exclude-integrated-gpu-only.patchdpkg-source: info: applying features/x86/intel-iommu-add-kconfig-option-to-exclude-igpu-by-default.patchdpkg-source: info: applying debian/snd-pcsp-disable-autoload.patchdpkg-source: info: applying bugfix/x86/viafb-autoload-on-olpc-xo1.5-only.patchdpkg-source: info: applying debian/fjes-disable-autoload.patchdpkg-source: info: applying debian/fanotify-taint-on-use-of-fanotify_access_permissions.patchdpkg-source: info: applying debian/btrfs-warn-about-raid5-6-being-experimental-at-mount.patchdpkg-source: info: applying bugfix/arm/arm-dts-kirkwood-fix-sata-pinmux-ing-for-ts419.patchdpkg-source: info: applying bugfix/x86/perf-tools-fix-unwind-build-on-i386.patchdpkg-source: info: applying bugfix/arm/arm-mm-export-__sync_icache_dcache-for-xen-privcmd.patchdpkg-source: info: applying bugfix/powerpc/powerpc-boot-fix-missing-crc32poly.h-when-building-with-kernel_xz.patchdpkg-source: info: applying bugfix/arm64/arm64-acpi-Add-fixup-for-HPE-m400-quirks.patchdpkg-source: info: applying features/x86/x86-memtest-WARN-if-bad-RAM-found.patchdpkg-source: info: applying features/x86/x86-make-x32-syscall-support-conditional.patchdpkg-source: info: applying bugfix/all/disable-some-marvell-phys.patchdpkg-source: info: applying bugfix/all/fs-add-module_softdep-declarations-for-hard-coded-cr.patchdpkg-source: info: applying features/all/lockdown/efi-add-an-efi_secure_boot-flag-to-indicate-secure-b.patchdpkg-source: info: applying features/all/lockdown/efi-lock-down-the-kernel-if-booted-in-secure-boot-mo.patchdpkg-source: info: applying features/all/lockdown/mtd-disable-slram-and-phram-when-locked-down.patchdpkg-source: info: applying features/all/lockdown/arm64-add-kernel-config-option-to-lock-down-when.patchdpkg-source: info: applying features/all/db-mok-keyring/KEYS-Make-use-of-platform-keyring-for-module-signature.patchdpkg-source: info: applying bugfix/all/module-disable-matching-missing-version-crc.patchdpkg-source: info: applying bugfix/all/usbip-document-tcp-wrappers.patchdpkg-source: info: applying bugfix/all/kbuild-fix-recordmcount-dependency.patchdpkg-source: info: applying bugfix/all/tools-perf-remove-shebangs.patchdpkg-source: info: applying bugfix/all/tools-build-remove-bpf-run-time-check-at-build-time.patchdpkg-source: info: applying bugfix/all/cpupower-fix-checks-for-cpu-existence.patchdpkg-source: info: applying bugfix/all/libapi-define-_fortify_source-as-2-not-empty.patchdpkg-source: info: applying bugfix/all/tools-perf-fix-missing-ldflags-for-some-programs.patchdpkg-source: info: applying bugfix/all/tools_lib_symbol_use_d_fortify_source_2_for_non_debug_builds.patchdpkg-source: info: applying bugfix/all/perf-tools-support-extra-cxxflags.patchdpkg-source: info: applying bugfix/all/perf-tools-pass-extra_cflags-through-to-libbpf-build-again.patchdpkg-source: info: applying bugfix/all/kbuild-bpf-fix-btf-reproducibility.patchdpkg-source: info: applying bugfix/all/perf-docs-Fix-perf-check-manual-page-built-with-asci.patchdpkg-source: info: applying bugfix/all/libbpf-use-the-standard-fixdep-build-rule.patchdpkg-source: info: applying bugfix/all/tools-hv-Make-the-sample-hv_get_dhcp_info-script-mor.patchwhen I try to build the debian package, the build system complains about missing gcc-15:
Code:
$ sudo apt install rust-src libconfig-dev rustc:native$ cd linux-6.19~rc8$ dch --local aki$ export DEB_BUILD_PROFILES='nodoc pkg.linux.nokerneldbg pkg.linux.nokerneldbginfo pkg.linux.nosource'$ dpkg-buildpackage -b --jobs $(($(nproc)*2)) --no-sign -P $DEB_BUILD_PROFILES dpkg-buildpackage: info: source package linuxdpkg-buildpackage: info: source version 6.19~rc8-1~exp1aki1dpkg-buildpackage: info: source distribution UNRELEASEDdpkg-buildpackage: info: source changed by aki <aki@debian-inatek.local>dpkg-buildpackage: info: host architecture amd64 dpkg-source --before-build .dpkg-checkbuilddeps: error: unmet build dependencies: gcc-15-for-hostdpkg-buildpackage: error: build dependencies/conflicts unsatisfied; abortingdpkg-buildpackage: hint: satisfy build dependencies with your package manager frontendThe gcc-15 is not available in Debian Stable, indeed:
Code:
$ rmadison -a amd64 gcc-15-for-hostgcc-15-for-host | 15.2.0-12 | testing | amd64gcc-15-for-host | 15.2.0-12 | unstable | amd64So, what's the best way to solve this ?
Thanks.
Statistics: Posted by Aki — 2026-02-07 15:08