Hi all,
I'm trying to build the latest (6.8.12-2) kernel, with a view to applying/testing a patch, but I'm struggling to get the kernel to build at all.
I'm following the README instructions, but no matter what I try I get stuck at this error when running
I've tried using quilt to rectify the problem as suggested in the error message but to no avail.. Unfortunately I'm not super familiar with what dpkg is doing here, and the comments in the last few commits in the
Anyone able to help?
I'm trying to build the latest (6.8.12-2) kernel, with a view to applying/testing a patch, but I'm struggling to get the kernel to build at all.
I'm following the README instructions, but no matter what I try I get stuck at this error when running
make build-dir-fresh
-
Code:
cd zfs-linux-2.2.6; dpkg-buildpackage -S -uc -us -d
dpkg-buildpackage: info: source package zfs-linux
dpkg-buildpackage: info: source version 2.2.6-pve1
dpkg-buildpackage: info: source distribution bookworm
dpkg-buildpackage: info: source changed by Proxmox Support Team <support@proxmox.com>
dpkg-source --before-build .
dpkg-source: warning: diff 'zfs-linux-2.2.6/debian/patches/0001-Check-for-META-and-DCH-consistency-in-autoconf.patch' doesn't contain any patch
debian/rules clean
make[3]: Entering directory '/root/pve-kernel/proxmox-kernel-6.8.12/modules/tmp/zfs-linux-2.2.6'
dh clean --with autoreconf,python3,sphinxdoc
debian/rules override_dh_auto_clean
make[4]: Entering directory '/root/pve-kernel/proxmox-kernel-6.8.12/modules/tmp/zfs-linux-2.2.6'
find . -name .gitignore -delete
rm -rf zfs-2.2.6
dh_auto_clean
make[4]: Leaving directory '/root/pve-kernel/proxmox-kernel-6.8.12/modules/tmp/zfs-linux-2.2.6'
dh_clean
make[3]: Leaving directory '/root/pve-kernel/proxmox-kernel-6.8.12/modules/tmp/zfs-linux-2.2.6'
dpkg-source -b .
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: warning: diff 'zfs-linux-2.2.6/debian/patches/0001-Check-for-META-and-DCH-consistency-in-autoconf.patch' doesn't contain any patch
dpkg-source: info: building zfs-linux using existing ./zfs-linux_2.2.6.orig.tar.gz
dpkg-source: info: using patch list from debian/patches/series
patch: **** Only garbage was found in the patch input.
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.6.orig.TMcvo1/debian/patches/0001-Check-for-META-and-DCH-consistency-in-autoconf.patch subprocess returned exit status 2
dpkg-buildpackage: error: dpkg-source -b . subprocess returned exit status 2
make[2]: *** [Makefile:71: zfs-linux_2.2.6-pve1.dsc] Error 2
make[2]: Leaving directory '/root/pve-kernel/proxmox-kernel-6.8.12/modules/tmp'
make[1]: *** [Makefile:124: pkg-zfs.prepared] Error 2
make[1]: Leaving directory '/root/pve-kernel'
make: *** [Makefile:86: build-dir-fresh] Error 2
I've tried using quilt to rectify the problem as suggested in the error message but to no avail.. Unfortunately I'm not super familiar with what dpkg is doing here, and the comments in the last few commits in the
pve-kernel
repo suggest that the patches didn't need to be changed for the new version of ZFS, so I'm not really sure what to do from here...Anyone able to help?