Hi there,
I am trying to test an idea for a minor change to the behaviour of a function in the vma-reader.c file in the pve-qemu-kvm repository, but I'm having a very hard time getting my change into the source and compiling it.
I'm quite a n00b when it comes to Git and Quilt, let alone both at once, so I think I just need a little guidance on how exactly to use those when creating a patch for PVE. Hopefully someone here can point me in the right direction...
So far I have set up a dev VM following the Developer Documentation instructions (https (colon-slash-slash) pve (dot) proxmox (dot) com/wiki/Developer_Documentation) and the Build instructions (https (colon-slash-slash) git (dot) proxmox (dot) com/?p=pve-common.git;a=blob_plain;f=README.dev;hb=HEAD). I'm trying this on Debian Stretch and I have modified the sources.list for the appropriate repo and all that, so I have my working PVE installation all done with packages installed, etc., and I have cloned the git modules.
The problem I'm running into is working with the patches - I'm not getting it right to create a valid patch file that I can then add with quilt/git and have it included when I run 'make dinstall'.
So far I have a patch file that I added to the Quilt series following the instructions here:
https (colon-slash-slash) raphaelhertzog (dot) com/2012/08/08/how-to-use-quilt-to-manage-patches-in-debian-packages/
But if I compare my patch file and the patch files in pve-qemu-kvm/debian/pve/patches, I see the one Quilt generated is missing lines and it looks like the patches were actually generated with Git. Which makes me wonder where the "Learn to use the quilt patch scripts" from Development Environment setup fits into things... To make things worse, when I try to even apply the existing Quilt patches in pve/patches it throws errors (mostly files not found) and I have to force the patches, & I don't know if that's what I should be doing... If I try using Git to apply the patches ("git apply patches/pve/*.patch") I just get a long list of "0 files changed."
I feel like the different docs I'm looking at are maybe intended for different versions and I can't tell what does or doesn't apply anymore between Git and Quilt. I'd really appreciate if someone could please explain the current, correct workflow for "clone & branch repo -> apply all patches -> make desired edits -> generate patch file" up to "make dinstall" is supposed to go?
edit: apologies for the weird URLs; new users can't post links and all that...
I am trying to test an idea for a minor change to the behaviour of a function in the vma-reader.c file in the pve-qemu-kvm repository, but I'm having a very hard time getting my change into the source and compiling it.
I'm quite a n00b when it comes to Git and Quilt, let alone both at once, so I think I just need a little guidance on how exactly to use those when creating a patch for PVE. Hopefully someone here can point me in the right direction...
So far I have set up a dev VM following the Developer Documentation instructions (https (colon-slash-slash) pve (dot) proxmox (dot) com/wiki/Developer_Documentation) and the Build instructions (https (colon-slash-slash) git (dot) proxmox (dot) com/?p=pve-common.git;a=blob_plain;f=README.dev;hb=HEAD). I'm trying this on Debian Stretch and I have modified the sources.list for the appropriate repo and all that, so I have my working PVE installation all done with packages installed, etc., and I have cloned the git modules.
The problem I'm running into is working with the patches - I'm not getting it right to create a valid patch file that I can then add with quilt/git and have it included when I run 'make dinstall'.
So far I have a patch file that I added to the Quilt series following the instructions here:
https (colon-slash-slash) raphaelhertzog (dot) com/2012/08/08/how-to-use-quilt-to-manage-patches-in-debian-packages/
But if I compare my patch file and the patch files in pve-qemu-kvm/debian/pve/patches, I see the one Quilt generated is missing lines and it looks like the patches were actually generated with Git. Which makes me wonder where the "Learn to use the quilt patch scripts" from Development Environment setup fits into things... To make things worse, when I try to even apply the existing Quilt patches in pve/patches it throws errors (mostly files not found) and I have to force the patches, & I don't know if that's what I should be doing... If I try using Git to apply the patches ("git apply patches/pve/*.patch") I just get a long list of "0 files changed."
I feel like the different docs I'm looking at are maybe intended for different versions and I can't tell what does or doesn't apply anymore between Git and Quilt. I'd really appreciate if someone could please explain the current, correct workflow for "clone & branch repo -> apply all patches -> make desired edits -> generate patch file" up to "make dinstall" is supposed to go?
edit: apologies for the weird URLs; new users can't post links and all that...