commit:     5616d3b3c78fee3e7ba879eed5c606e05339bc50
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 26 08:54:04 2022 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Sat Nov 26 08:59:34 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5616d3b3

net-misc/rsync: fix rrsync.1 man page handling

Thanks to ionen for co-debugging the root cause of this.

Closes: https://bugs.gentoo.org/883049
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 net-misc/rsync/rsync-3.2.7-r1.ebuild | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/net-misc/rsync/rsync-3.2.7-r1.ebuild 
b/net-misc/rsync/rsync-3.2.7-r1.ebuild
index bbb1e1b44e26..6c31cf7b857f 100644
--- a/net-misc/rsync/rsync-3.2.7-r1.ebuild
+++ b/net-misc/rsync/rsync-3.2.7-r1.ebuild
@@ -96,6 +96,13 @@ src_prepare() {
        if use examples || use rrsync; then
                python_fix_shebang support/
        fi
+
+       if [[ -f rrsync.1 ]]; then
+               # If the pre-build rrsync.1 man page exists, then link to it
+               # from support/rrsync.1 to avoid rsync's build system attempting
+               # re-creating the man page (bug #883049).
+               ln -s ../rrsync.1 support/rrsync.1 || die
+       fi
 }
 
 src_configure() {

Reply via email to