summaryrefslogtreecommitdiffstats
path: root/debian/patches/fix_rrsync_man_generation.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/fix_rrsync_man_generation.patch')
-rw-r--r--debian/patches/fix_rrsync_man_generation.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/debian/patches/fix_rrsync_man_generation.patch b/debian/patches/fix_rrsync_man_generation.patch
new file mode 100644
index 0000000..ffbe4ff
--- /dev/null
+++ b/debian/patches/fix_rrsync_man_generation.patch
@@ -0,0 +1,25 @@
+Description: Fix manpage installation for rrsync
+ Otherwise we would get "ERROR: support/rrsync.1 cannot be created."
+ I'm not confident this is the best approach on solving this issue,
+ but I know this works with no regressions.
+ This patch needs to be reviewed before being submitted to upstream.
+Author: Samuel Henrique <samueloph@debian.org>
+Index: rsync/maybe-make-man
+===================================================================
+--- rsync.orig/maybe-make-man
++++ rsync/maybe-make-man
+@@ -22,12 +22,8 @@ if [ ! -f "$flagfile" ]; then
+ cp -p "$srcdir/$outname" .
+ exit 0
+ else
+- echo "ERROR: $outname cannot be created."
+- if [ -f "$HOME/build_farm/build_test.fns" ]; then
+- exit 0 # No exit errorno to avoid a build failure in the samba build farm
+- else
+- exit 1
+- fi
++ "$srcdir/md-convert" "$srcdir/$inname"
++ cp -p "$srcdir/$outname" .
+ fi
+ fi
+ fi