Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 779988 - net-misc/rsync-3.2.3-r2: musl/IPv6 "name does not resolve"
Summary: net-misc/rsync-3.2.3-r2: musl/IPv6 "name does not resolve"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-04 12:54 UTC by Jonathan Davies
Modified: 2022-08-15 18:19 UTC (History)
1 user (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 Jonathan Davies 2021-04-04 12:54:24 UTC
Similiar to 609694, using the musl profile, I cannot sync from a mirror that offers both a IPv4 and IPv6 address (mirror.bytemark.co.uk for example) or my local mirror which is only on IPv6:

$ emerge --sync
>>> Syncing repository 'gentoo' into '/var/db/repos/gentoo'...
>>> Starting rsync with rsync://[2001:41c8:20:5e6::150]/gentoo-portage...
>>> Checking server timestamp ...
rsync: getaddrinfo: 2001:41c8:20:5e6::150 873: Name does not resolve
rsync error: error in socket IO (code 10) at clientserver.c(137) [Receiver=3.2.3]
>>> Retrying...


>>> Starting retry 1 of 3 with rsync://[2001:41c8:20:5fc::12]/gentoo-portage
>>> Checking server timestamp ...
rsync: getaddrinfo: 2001:41c8:20:5fc::12 873: Name does not resolve
rsync error: error in socket IO (code 10) at clientserver.c(137) [Receiver=3.2.3]
>>> Retrying...


>>> Starting retry 2 of 3 with rsync://212.110.163.12/gentoo-portage
>>> Checking server timestamp ...

 -========== B Y T E M A R K   H O S T I N G   M I R R O R  ==========-

Just using rsync however seems to work:

$ rsync -6 rsync://mirror.bytemark.co.uk/gentoo-portage | head

 -========== B Y T E M A R K   H O S T I N G   M I R R O R  ==========- 

drwxr-xr-x          8,192 2021/04/04 12:09:10 .
-rw-r--r--          1,349 2021/04/04 12:09:04 Manifest
-rw-r--r--         29,295 2021/04/04 12:09:04 Manifest.files.gz
-rw-r--r--            105 2021/01/01 00:09:24 header.txt
-rw-r--r--          7,491 2021/01/01 00:09:24 skel.ebuild
-rw-r--r--          1,491 2020/04/21 08:39:34 skel.metadata.xml
drwxr-xr-x          8,192 2021/04/04 12:09:04 acct-group

However if I use the IP address, it fails:

# rsync -6 rsync://[2001:41c8:20:5e6::150]/gentoo-portage 
rsync: getaddrinfo: 2001:41c8:20:5e6::150 873: Name does not resolve
rsync error: error in socket IO (code 10) at clientserver.c(137) [Receiver=3.2.3]

Reproducible: Always
Comment 1 Larry the Git Cow gentoo-dev 2021-04-19 01:11:38 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/musl.git/commit/?id=606d58773908bafca960d1a143fe59a61d9cd963

commit 606d58773908bafca960d1a143fe59a61d9cd963
Author:     Dave Hughes <davidhughes205@gmail.com>
AuthorDate: 2021-04-19 01:08:28 +0000
Commit:     Dave Hughes <davidhughes205@gmail.com>
CommitDate: 2021-04-19 01:11:02 +0000

    net-misc/rsync: fix ipv6
    
    Bug: https://bugs.gentoo.org/779988
    Closes: https://bugs.gentoo.org/779988
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: Dave Hughes <davidhughes205@gmail.com>

 net-misc/rsync/Manifest                     |   1 +
 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.xinetd-3.0.9-r1 |  10 ++
 net-misc/rsync/metadata.xml                 |  16 +++
 net-misc/rsync/rsync-3.2.3-r2.ebuild        | 156 ++++++++++++++++++++++++++++
 net-misc/rsync/rsync-9999.ebuild            | 156 ++++++++++++++++++++++++++++
 9 files changed, 379 insertions(+)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/musl.git/commit/?id=606d58773908bafca960d1a143fe59a61d9cd963

commit 606d58773908bafca960d1a143fe59a61d9cd963
Author:     Dave Hughes <davidhughes205@gmail.com>
AuthorDate: 2021-04-19 01:08:28 +0000
Commit:     Dave Hughes <davidhughes205@gmail.com>
CommitDate: 2021-04-19 01:11:02 +0000

    net-misc/rsync: fix ipv6
    
    Bug: https://bugs.gentoo.org/779988
    Closes: https://bugs.gentoo.org/779988
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: Dave Hughes <davidhughes205@gmail.com>

 net-misc/rsync/Manifest                     |   1 +
 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.xinetd-3.0.9-r1 |  10 ++
 net-misc/rsync/metadata.xml                 |  16 +++
 net-misc/rsync/rsync-3.2.3-r2.ebuild        | 156 ++++++++++++++++++++++++++++
 net-misc/rsync/rsync-9999.ebuild            | 156 ++++++++++++++++++++++++++++
 9 files changed, 379 insertions(+)
Comment 2 Jory A. Pratt gentoo-dev 2021-04-22 22:15:50 UTC
We need to stop forcing it and apply the patch from upstream bug report. Upstream doesn't seem to care that they use a problematic approach and could fix it even simpler for all users.
Comment 3 Michael 'veremitz' Everitt 2021-04-23 01:57:01 UTC
(In reply to Jory A. Pratt from comment #2)
> We need to stop forcing it and apply the patch from upstream bug report.
> Upstream doesn't seem to care that they use a problematic approach and could
> fix it even simpler for all users.

Got a link for that?! :)
Comment 4 Jory A. Pratt gentoo-dev 2021-04-29 23:55:17 UTC
(In reply to Michael 'veremitz' Everitt from comment #3)
> (In reply to Jory A. Pratt from comment #2)
> > We need to stop forcing it and apply the patch from upstream bug report.
> > Upstream doesn't seem to care that they use a problematic approach and could
> > fix it even simpler for all users.
> 
> Got a link for that?! :)

https://attachments.samba.org/attachment.cgi?id=13546
Comment 5 Jonathan Davies 2021-10-18 21:58:31 UTC
Patched merged upstream: https://github.com/WayneD/rsync/commit/1fa0bd1e87030c450026e149ccfa959e066b318a
Comment 6 Larry the Git Cow gentoo-dev 2022-08-15 18:19:52 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c3bbbf6d7dee9d7916d0a72030694ffed58517c

commit 1c3bbbf6d7dee9d7916d0a72030694ffed58517c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-08-15 18:02:04 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-08-15 18:19:46 +0000

    net-misc/rsync: drop obsolete IPv6 quirk for musl
    
    Closes: https://bugs.gentoo.org/779988
    Signed-off-by: Sam James <sam@gentoo.org>

 net-misc/rsync/rsync-3.2.5.ebuild | 4 ----
 net-misc/rsync/rsync-9999.ebuild  | 4 ----
 2 files changed, 8 deletions(-)