diff --git a/0805-configure-Fix-CONFIG_QEMU_HELPERDIR-generation.patch b/0805-configure-Fix-CONFIG_QEMU_HELPERDIR-generation.patch
index 9c7e3fa..dfaf285 100644
--- a/0805-configure-Fix-CONFIG_QEMU_HELPERDIR-generation.patch
+++ b/0805-configure-Fix-CONFIG_QEMU_HELPERDIR-generation.patch
@@ -18,9 +18,9 @@ index f9c31f4..9f33c7d 100755
 --- a/configure
 +++ b/configure
 @@ -3200,7 +3200,7 @@ echo "qemu_confdir=$qemu_confdir" >> $config_host_mak
+ echo "qemu_confdir=$qemu_confdir" >> $config_host_mak
  echo "qemu_datadir=$qemu_datadir" >> $config_host_mak
  echo "qemu_docdir=$qemu_docdir" >> $config_host_mak
- echo "qemu_localstatedir=$local_statedir" >> $config_host_mak
 -echo "CONFIG_QEMU_HELPERDIR=\"$libexecdir\"" >> $config_host_mak
 +echo "CONFIG_QEMU_HELPERDIR=\"`eval echo $libexecdir`\"" >> $config_host_mak
  
diff --git a/qemu.spec b/qemu.spec
index bf592fd..6e9d270 100644
--- a/qemu.spec
+++ b/qemu.spec
@@ -109,7 +109,7 @@
 Summary: QEMU is a FAST! processor emulator
 Name: qemu
 Version: 1.2.0
-Release: 21%{?dist}
+Release: 22%{?dist}
 # Epoch because we pushed a qemu-1.0 package. AIUI this can't ever be dropped
 Epoch: 2
 License: GPLv2+ and LGPLv2+ and BSD
@@ -1819,6 +1819,9 @@ fi
 %{_mandir}/man1/qemu-img.1*
 
 %changelog
+* Fri Nov 16 2012 Paolo Bonzini <pbonzini@redhat.com> - 2:1.2.0-22
+- Fix previous commit
+
 * Fri Nov 16 2012 Paolo Bonzini <pbonzini@redhat.com> - 2:1.2.0-21
 - Backport commit 38f419f (configure: Fix CONFIG_QEMU_HELPERDIR generation,
   2012-10-17)