make clean deb
rm -rf *~ proxmox-kernel-[0-9]*/ *.prepared config-6.5.11.org
rm -f *.deb *.dsc *.changes *.buildinfo *.build proxmox-kernel*.tar.*
test -f "submodules/ubuntu-kernel/README" || git submodule update --init submodules/ubuntu-kernel
test -f "submodules/zfsonlinux/Makefile" || git submodule update --init --recursive submodules/zfsonlinux
rm -rf proxmox-kernel-6.5.11/ubuntu-kernel ubuntu-kernel.prepared
mkdir -p proxmox-kernel-6.5.11
cp -a submodules/ubuntu-kernel proxmox-kernel-6.5.11/ubuntu-kernel
cd proxmox-kernel-6.5.11/ubuntu-kernel; python3 debian/scripts/misc/annotations --arch amd64 --export >../../config-6.5.11.org
cp config-6.5.11.org proxmox-kernel-6.5.11/ubuntu-kernel/.config
sed -i proxmox-kernel-6.5.11/ubuntu-kernel/Makefile -e 's/^EXTRAVERSION.*$/EXTRAVERSION=-7-pve/'
rm -rf proxmox-kernel-6.5.11/ubuntu-kernel/debian proxmox-kernel-6.5.11/ubuntu-kernel/debian.master
set -e; cd proxmox-kernel-6.5.11/ubuntu-kernel; \
for patch in ../../patches/kernel/*.patch; do \
echo "applying patch '$patch'"; \
patch --batch -p1 < "${patch}"; \
done
applying patch '../../patches/kernel/0001-Make-mkcompile_h-accept-an-alternate-timestamp-strin.patch'
patching file init/Makefile
applying patch '../../patches/kernel/0002-wireless-Add-Debian-wireless-regdb-certificates.patch'
patching file net/wireless/certs/debian.hex
applying patch '../../patches/kernel/0003-bridge-keep-MAC-of-first-assigned-port.patch'
patching file net/bridge/br_stp_if.c
applying patch '../../patches/kernel/0004-pci-Enable-overrides-for-missing-ACS-capabilities-4..patch'
patching file Documentation/admin-guide/kernel-parameters.txt
patching file drivers/pci/quirks.c
applying patch '../../patches/kernel/0005-kvm-disable-default-dynamic-halt-polling-growth.patch'
patching file virt/kvm/kvm_main.c
applying patch '../../patches/kernel/0006-net-core-downgrade-unregister_netdevice-refcount-lea.patch'
patching file net/core/dev.c
applying patch '../../patches/kernel/0007-Revert-fortify-Do-not-cast-to-unsigned-char.patch'
patching file include/linux/fortify-string.h
applying patch '../../patches/kernel/0008-kvm-xsave-set-mask-out-PKRU-bit-in-xfeatures-if-vCPU.patch'
patching file arch/x86/kvm/cpuid.c
patching file arch/x86/kvm/cpuid.h
patching file arch/x86/kvm/x86.c
applying patch '../../patches/kernel/0009-allow-opt-in-to-allow-pass-through-on-broken-hardwar.patch'
patching file drivers/iommu/intel/iommu.c
applying patch '../../patches/kernel/0010-Revert-nSVM-Check-for-reserved-encodings-of-TLB_CONT.patch'
patching file arch/x86/kvm/svm/nested.c
applying patch '../../patches/kernel/0011-KVM-nSVM-Advertise-support-for-flush-by-ASID.patch'
patching file arch/x86/kvm/svm/svm.c
applying patch '../../patches/kernel/0012-revert-memfd-improve-userspace-warnings-for-missing-.patch'
patching file mm/memfd.c
applying patch '../../patches/kernel/0013-Revert-UBUNTU-SAUCE-ceph-make-sure-all-the-files-suc.patch'
patching file fs/crypto/keyring.c
patching file fs/inode.c
applying patch '../../patches/kernel/0014-drm-amd-Fix-UBSAN-array-index-out-of-bounds-for-SMU7.patch'
patching file drivers/gpu/drm/amd/include/pptable.h
patching file drivers/gpu/drm/amd/pm/powerplay/hwmgr/pptable_v1_0.h
applying patch '../../patches/kernel/0015-drm-amd-Fix-UBSAN-array-index-out-of-bounds-for-Pola.patch'
patching file drivers/gpu/drm/amd/pm/powerplay/hwmgr/pptable_v1_0.h
applying patch '../../patches/kernel/0016-drm-amd-Fix-UBSAN-array-index-out-of-bounds-for-Powe.patch'
patching file drivers/gpu/drm/amd/pm/powerplay/hwmgr/pptable_v1_0.h
patching file drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_pptable.h
applying patch '../../patches/kernel/0017-KVM-x86-Fix-lapic-timer-interrupt-lost-after-loading.patch'
patching file arch/x86/include/asm/kvm-x86-ops.h
patching file arch/x86/include/asm/kvm_host.h
patching file arch/x86/kvm/lapic.c
patching file arch/x86/kvm/vmx/vmx.c
touch ubuntu-kernel.prepared
rm -rf proxmox-kernel-6.5.11/modules/pkg-zfs proxmox-kernel-6.5.11/modules/tmp pkg-zfs.prepared
mkdir -p proxmox-kernel-6.5.11/modules/tmp
cp -a submodules/zfsonlinux/* proxmox-kernel-6.5.11/modules/tmp
cd proxmox-kernel-6.5.11/modules/tmp; make kernel
make[1]: Entering directory '/mnt/usb/pve-kernel/proxmox-kernel-6.5.11/modules/tmp'
test -f "upstream/README.md" || git submodule update --init
rm -rf zfs-linux-2.2.2 zfs-linux-2.2.2.tmp
cp -a upstream zfs-linux-2.2.2.tmp
cp -a debian zfs-linux-2.2.2.tmp/debian
mv zfs-linux-2.2.2.tmp zfs-linux-2.2.2
tar czf zfs-linux_2.2.2.orig.tar.gz --exclude="zfs-linux-2.2.2/debian" zfs-linux-2.2.2
cd zfs-linux-2.2.2; dpkg-buildpackage -S -uc -us -d
dpkg-buildpackage: info: source package zfs-linux
dpkg-buildpackage: info: source version 2.2.2-pve1
dpkg-buildpackage: info: source distribution bookworm
dpkg-buildpackage: info: source changed by Proxmox Support Team <support@proxmox.com>
dpkg-source --before-build .
debian/rules clean
make[2]: Entering directory '/mnt/usb/pve-kernel/proxmox-kernel-6.5.11/modules/tmp/zfs-linux-2.2.2'
dh clean --with autoreconf,python3,sphinxdoc
debian/rules override_dh_auto_clean
make[3]: Entering directory '/mnt/usb/pve-kernel/proxmox-kernel-6.5.11/modules/tmp/zfs-linux-2.2.2'
find . -name .gitignore -delete
rm -rf zfs-2.2.2
dh_auto_clean
make[3]: Leaving directory '/mnt/usb/pve-kernel/proxmox-kernel-6.5.11/modules/tmp/zfs-linux-2.2.2'
dh_clean
make[2]: Leaving directory '/mnt/usb/pve-kernel/proxmox-kernel-6.5.11/modules/tmp/zfs-linux-2.2.2'
dpkg-source -b .
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building zfs-linux using existing ./zfs-linux_2.2.2.orig.tar.gz
dpkg-source: info: using patch list from debian/patches/series
can't find file to patch at input line 16
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|From: Debian ZFS on Linux maintainers
| <pkg-zfsonlinux-devel@alioth-lists.debian.net>
|Date: Wed, 30 Jan 2019 15:12:04 +0100
|Subject: [PATCH] Check-for-META-and-DCH-consistency-in-autoconf
|
|Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|---
| config/zfs-meta.m4 | 34 +++++++++++++++++++++++++++++-----
| 1 file changed, 29 insertions(+), 5 deletions(-)
|
|diff --git a/config/zfs-meta.m4 b/config/zfs-meta.m4
|index 20064a0fb..4d5f545ad 100644
|--- a/config/zfs-meta.m4
|+++ b/config/zfs-meta.m4
--------------------------
No file to patch. Skipping patch.
3 out of 3 hunks ignored
dpkg-source: info: the patch has fuzz which is not allowed, or is malformed
dpkg-source: info: if patch '0001-Check-for-META-and-DCH-consistency-in-autoconf.patch' is correctly applied by quilt, use 'quilt refresh' to update it
dpkg-source: info: if the file is present in the unpacked source, make sure it is also present in the orig tarball
dpkg-source: error: LC_ALL=C patch -t -F 0 -N -p1 -u -V never -E -b -B .pc/0001-Check-for-META-and-DCH-consistency-in-autoconf.patch/ --reject-file=- < zfs-linux-2.2.2.orig.WtrwIQ/debian/patches/0001-Check-for-META-and-DCH-consistency-in-autoconf.patch subprocess returned exit status 1
dpkg-buildpackage: error: dpkg-source -b . subprocess returned exit status 2
make[1]: *** [Makefile:71: zfs-linux_2.2.2-pve1.dsc] Error 2
make[1]: Leaving directory '/mnt/usb/pve-kernel/proxmox-kernel-6.5.11/modules/tmp'
make: *** [Makefile:124: pkg-zfs.prepared] Error 2