Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 bup (0.28~rc3-1) experimental; urgency=medium
 .
   * New upstream release.
Author: Robert Edmonds <edmonds@debian.org>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- bup-0.28~rc3.orig/Makefile
+++ bup-0.28~rc3/Makefile
@@ -25,7 +25,7 @@ current_sampledata := t/sampledata/var/r
 os := $(shell ($(pf); uname | sed 's/[-_].*//') $(isok))
 os := $(call shout,$(os),Unable to determine OS)
 
-CFLAGS := -Wall -O2 -Werror -Wno-unknown-pragmas $(PYINCLUDE) $(CFLAGS)
+CFLAGS := -Wall -O2 -Wno-unknown-pragmas $(PYINCLUDE) $(CFLAGS)
 CFLAGS := -D_FILE_OFFSET_BITS=64 $(CFLAGS)
 SOEXT:=.so
 
@@ -52,7 +52,7 @@ bup_cmds := cmd/bup-python\
 
 bup_deps := bup lib/bup/_version.py lib/bup/_helpers$(SOEXT) $(bup_cmds)
 
-all: $(bup_deps) Documentation/all $(current_sampledata)
+all: $(bup_deps) $(current_sampledata)
 
 bup:
 	ln -s main.py bup
--- /dev/null
+++ bup-0.28~rc3/config/config.h.tmp
@@ -0,0 +1,27 @@
+/*
+ * configuration for bup, generated Sun May 22 03:50:59 UTC 2016
+ * by pbuilder@chase
+ */
+#ifndef __AC_BUP_D
+#define __AC_BUP_D 1
+
+
+#define OS_LINUX 1
+#define HAVE_SYS_STAT_H 1
+#define HAVE_SYS_TYPES_H 1
+#define HAVE_UNISTD_H 1
+#define HAVE_SYS_MMAN_H 1
+#define HAVE_LINUX_FS_H 1
+#define HAVE_SYS_IOCTL_H 1
+#define HAVE_UTIMENSAT 1
+#define HAVE_UTIMES 1
+#define HAVE_LUTIMES 1
+#define HAVE_MINCORE 1
+#define BUP_MINCORE_BUF_TYPE unsigned char
+#define HAVE_STAT_ST_ATIM 1
+#define HAVE_STAT_ST_MTIM 1
+#define HAVE_STAT_ST_CTIM 1
+#define HAVE_TM_TM_GMTOFF 1
+#define PATH_SED "/bin/sed"
+
+#endif/* __AC_BUP_D */
--- bup-0.28~rc3.orig/configure-version
+++ bup-0.28~rc3/configure-version
@@ -14,15 +14,7 @@ update-vpy()
 {
     declare -r vpy=lib/bup/_version.py
     rm -f $vpy.tmp-$$
-    local hash date desc
-    hash=$(git log -1 --pretty=format:%H)
-    date=$(git log -1 --pretty=format:%ci)
-    desc=$(git describe --always --match="[0-9]*")
-    cat > $vpy.tmp-$$ <<-EOF
-	COMMIT='$hash'
-	NAMES='(tag: bup-$desc)'
-	DATE='$date'
-	EOF
+    ./debian/gen_version_py.sh > $vpy.tmp-$$
     if ! test -e $vpy || ! cmp -s $vpy $vpy.tmp-$$; then
         mv $vpy.tmp-$$ $vpy;
     fi
