From Fedora Project Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The Package-x-generic-16.pngqemu package maintainers use the qemu-fedora.git git repository in order to maintain the package's patch set.

The basic idea is:

  1. There should be an upstream tag corresponding to the pristine upstream sources - e.g. the kvm-88 tag in qemu-kvm.git corresponds to the qemu-kvm-devel-88 tarball
  2. Each commit in qemu-fedora.git descending from the upstream tag is an individual patch in the RPM
  3. Each commit is preferably cherry-picked from upstream using git cherry-pick -x
  4. Each commit should be signed off by the package maintainer who added it
  5. We match commits to patch filenames using Fedora-patch: meta-data
  6. The patch set should be re-based using git rebase <upstream tag> when moving to a new upstream release

In order to sync the patches from git to CVS, do e.g:

 $> git clean -f
 $> git format-patch -N kvm-88
 $> for p in 000*.patch; do mv $p /pkgs/qemu/devel/$(awk '/^Fedora-patch: / {print $2;}' $p); done