Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 609694 - net-misc/rsync-3.1.2: no IPv6 support on musl
Summary: net-misc/rsync-3.1.2: no IPv6 support on musl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: Normal blocker (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-18 09:43 UTC by Stijn Tintel
Modified: 2021-12-30 10:39 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stijn Tintel 2017-02-18 09:43:19 UTC
Due to a bug in rsync [1], IPv6 support is always disabled on musl systems. Due to this, rsync tries to resolve literal IPv6 addresses.

On IPv6-only musl systems, this renders portage unusable.

musltoo ~ # eix-sync 
 * Running emerge --sync
>>> Syncing repository 'gentoo' into '/usr/portage'...
>>> Starting rsync with rsync://[2a00:1828:2000:128::10]/gentoo-portage/...
>>> Checking server timestamp ...
rsync: getaddrinfo: 2a00:1828:2000:128::10 873: Name does not resolve
rsync error: error in socket IO (code 10) at clientserver.c(125) [Receiver=3.1.2]
>>> Retrying...

Please grab the fix from Alpine Linux [2], and add it to the musl overlay. Thanks.

[1] https://bugzilla.samba.org/show_bug.cgi?id=10715
[2] http://bugs.alpinelinux.org/issues/3158
Comment 1 Pierre-Olivier Mercier 2017-05-05 17:11:32 UTC
I made the proper patch suggested in the samba's bugzilla.

https://github.com/nemunaire/musl/commit/b156a0bae19359a4fb13ad5dc7ed7308fa473602#diff-717ae4b8b1a50f3b5736f51b1059f2d3

The upstreamable part is between lines 11 and 162, further lines are generated by autotools.
Comment 2 Larry the Git Cow gentoo-dev 2018-01-29 19:12:11 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/musl.git/commit/?id=5ec4cbb0630d630807af09d25689fb1a0bda8785

commit 5ec4cbb0630d630807af09d25689fb1a0bda8785
Author:     Pierre-Olivier Mercier <nemunaire@nemunai.re>
AuthorDate: 2017-05-05 16:43:17 +0000
Commit:     Pierre-Olivier Mercier <nemunaire@nemunai.re>
CommitDate: 2018-01-28 13:24:30 +0000

    net-misc/rsync: IPv6 compatibility fix
    
    Bug: https://bugs.gentoo.org/609694
    Bug: https://bugzilla.samba.org/show_bug.cgi?id=10715

 net-misc/rsync/Manifest                        |   1 +
 net-misc/rsync/files/rsync-fix-musl-ipv6.patch | 605 +++++++++++++++++++++++++
 net-misc/rsync/files/rsyncd.conf-3.0.9-r1      |  15 +
 net-misc/rsync/files/rsyncd.conf.d             |   5 +
 net-misc/rsync/files/rsyncd.init.d-r1          |  11 +
 net-misc/rsync/files/rsyncd.logrotate          |   9 +
 net-misc/rsync/files/rsyncd.service            |  12 +
 net-misc/rsync/files/rsyncd.xinetd-3.0.9-r1    |  10 +
 net-misc/rsync/rsync-3.1.2-r2.ebuild           |  89 ++++
 9 files changed, 757 insertions(+)}
Comment 3 Larry the Git Cow gentoo-dev 2021-12-30 10:39:37 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=883377500a40fca29a1b47eaf25eb8879e340833

commit 883377500a40fca29a1b47eaf25eb8879e340833
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2021-12-30 10:39:24 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2021-12-30 10:39:35 +0000

    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@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(-)