[Bug 286073] net/rsync: Fix stealth dependency on Python

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 13 Apr 2025 09:55:00 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286073

            Bug ID: 286073
           Summary: net/rsync: Fix stealth dependency on Python
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: rodrigo@FreeBSD.org
          Reporter: chris@chrullrich.net
          Assignee: rodrigo@FreeBSD.org
             Flags: maintainer-feedback?(rodrigo@FreeBSD.org)

net/rsync includes a Python script, installed as sbin/rrsync. It does not,
however, declare a dependency on Python; pkg-message advises that Python might
be needed. I was just bitten by this when upgrading some systems to Python 3.12
left the script with the old shebang line.

This patch adds a port option, PYTHON, that controls whether rrsync is
installed and adds the necessary dependency.

pkg-message vaguely referred to "some scripts provided by rsync" that require
Python, but I'm only aware of the one. I chickened out in PYTHON_DESC anyway.

The option is off by default (updating the package will remove rrsync) because
removing a script that may not have worked is less intrusive than installing
Python that may not have been there.

-- 
You are receiving this mail because:
You are the assignee for the bug.