commit:     883377500a40fca29a1b47eaf25eb8879e340833
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 30 10:39:24 2021 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Thu Dec 30 10:39:35 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88337750

net-misc/rsync-3.2.3-r5: fix IPv6 support using musl

Closes: https://bugs.gentoo.org/609694
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 net-misc/rsync/rsync-3.2.3-r5.ebuild | 6 +++++-
 net-misc/rsync/rsync-9999.ebuild     | 6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/net-misc/rsync/rsync-3.2.3-r5.ebuild 
b/net-misc/rsync/rsync-3.2.3-r5.ebuild
index 684a8e105cd7..7f996c540050 100644
--- a/net-misc/rsync/rsync-3.2.3-r5.ebuild
+++ b/net-misc/rsync/rsync-3.2.3-r5.ebuild
@@ -10,7 +10,7 @@ fi
 
 WANT_LIBTOOL=none
 
-inherit autotools prefix systemd
+inherit autotools flag-o-matic prefix systemd
 
 DESCRIPTION="File transfer program to keep remote files into sync"
 HOMEPAGE="https://rsync.samba.org/";
@@ -47,6 +47,10 @@ src_prepare() {
 }
 
 src_configure() {
+       # Force enable IPv6 on musl - upstream bug:
+       # https://bugzilla.samba.org/show_bug.cgi?id=10715
+       use elibc_musl && use ipv6 && append-cppflags -DINET6
+
        local myeconfargs=(
                --with-rsyncd-conf="${EPREFIX}"/etc/rsyncd.conf
                --without-included-popt

diff --git a/net-misc/rsync/rsync-9999.ebuild b/net-misc/rsync/rsync-9999.ebuild
index 8c91d4f3a17a..0da8ff82f683 100644
--- a/net-misc/rsync/rsync-9999.ebuild
+++ b/net-misc/rsync/rsync-9999.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit prefix systemd
+inherit flag-o-matic prefix systemd
 
 DESCRIPTION="File transfer program to keep remote files into sync"
 HOMEPAGE="https://rsync.samba.org/";
@@ -59,6 +59,10 @@ src_prepare() {
 }
 
 src_configure() {
+       # Force enable IPv6 on musl - upstream bug:
+       # https://bugzilla.samba.org/show_bug.cgi?id=10715
+       use elibc_musl && use ipv6 && append-cppflags -DINET6
+
        local myeconfargs=(
                --with-rsyncd-conf="${EPREFIX}"/etc/rsyncd.conf
                --without-included-popt

Reply via email to