Bug 265896 - net/rsync: 3.2.5 fails to fetch: fetch: 141521: No such file or directory
Summary: net/rsync: 3.2.5 fails to fetch: fetch: 141521: No such file or directory
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Rodrigo Osorio
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-17 06:15 UTC by p5B2EA84B3
Modified: 2022-08-18 06:39 UTC (History)
0 users

See Also:
koobs: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description p5B2EA84B3 2022-08-17 06:15:33 UTC
=======================<phase: fetch          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License GPLv3+ accepted by the user
=> rsync-3.2.5.tar.gz doesn't seem to exist in /portdistfiles/.
=> Attempting to fetch https://www.mirrorservice.org/sites/rsync.samba.org/src/rsync-3.2.5.tar.gz
rsync-3.2.5.tar.gz                                    1103 kB 2127 kBps    01s
=> rsync-patches-3.2.5.tar.gz doesn't seem to exist in /portdistfiles/.
=> Attempting to fetch https://www.mirrorservice.org/sites/rsync.samba.org/src/rsync-patches-3.2.5.tar.gz
fetch: 141521: No such file or directory
fetch: 141521: No such file or directory
rsync-patches-3.2.5.tar.gz                             138 kB 1557 kBps    00s
=> Attempting to fetch http://rsync.mirror.garr.it/src/rsync-patches-3.2.5.tar.gz
fetch: 141521: No such file or directory
fetch: 141521: No such file or directory
=> Attempting to fetch http://www.mirrorservice.org/sites/rsync.samba.org/src/rsync-patches-3.2.5.tar.gz
fetch: 141521: No such file or directory
fetch: 141521: No such file or directory
fetch: http://www.mirrorservice.org/sites/rsync.samba.org/src/rsync-patches-3.2.5.tar.gz: size unknown
fetch: http://www.mirrorservice.org/sites/rsync.samba.org/src/rsync-patches-3.2.5.tar.gz: size of remote file is not known
rsync-patches-3.2.5.tar.gz                             138 kB 1597 kBps    00s
=> Attempting to fetch https://download.samba.org/pub/rsync/src/rsync-patches-3.2.5.tar.gz
fetch: 141521: No such file or directory
fetch: 141521: No such file or directory
fetch: https://download.samba.org/pub/rsync/src/rsync-patches-3.2.5.tar.gz: size unknown
fetch: https://download.samba.org/pub/rsync/src/rsync-patches-3.2.5.tar.gz: size of remote file is not known
rsync-patches-3.2.5.tar.gz                             138 kB 3969 kBps    00s
=> Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/rsync-patches-3.2.5.tar.gz
fetch: 141521: No such file or directory
fetch: 141521: No such file or directory
=> Couldn't fetch it - please try to retrieve this
=> port manually into /portdistfiles/ and try again.
*** Error code 1

Stop.
make: stopped in /usr/ports/net/rsync
=>> Cleaning up wrkdir
===>  Cleaning for rsync-3.2.5
build of net/rsync | rsync-3.2.5 ended at Wed Aug 17 08:10:47 CEST 2022
build time: 00:00:16
!!! build failure encountered !!!
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2022-08-17 06:31:14 UTC
Unable to reproduce on all URL's. The error also seems weird:

fetch: 141521: No such file or directory

'141521' is the content length of rsync.samba.org/src/rsync-patches-3.2.5.tar, but that error seems to be the filename its trying to fetch?

----------
requesting https://www.mirrorservice.org/sites/rsync.samba.org/src/rsync-patches-3.2.5.tar.gz
>>> GET /sites/rsync.samba.org/src/rsync-patches-3.2.5.tar.gz HTTP/1.1
>>> Host: www.mirrorservice.org
>>> Accept: */*
>>> User-Agent: fetch libfetch/2.0
>>> Connection: close
>>>
^C<<< HTTP/1.1 200 OK
<<< Date: Wed, 17 Aug 2022 06:26:18 GMT
<<< Server: Apache
<<< Last-Modified: Sun, 14 Aug 2022 17:27:41 GMT
<<< Accept-Ranges: bytes
last modified: [2022-08-14 17:27:41]
<<< Content-Length: 141521
-----------


- Can you confirm ports is updated to the latest tree, and there are no modifications to tree or make.conf that may effect it?

- What environment is the command being run in? Local, poudriere?
- What command is being used?
- Does fetch'ing manually work? If not, please provide fetch -vvv <url> output
Comment 2 Rodrigo Osorio freebsd_committer freebsd_triage 2022-08-17 06:33:45 UTC
The issue was caused by duplicate entries in distinfo file

TIMESTAMP = 1660557599
SHA256 (rsync-3.2.5.tar.gz) = 2ac4d21635cdf791867bc377c35ca6dda7f50d919a58be45057fd51600c69aba
SIZE (rsync-3.2.5.tar.gz) = 1129957
SHA256 (rsync-patches-3.2.5.tar.gz) = e7b1fdf1fc0fca68fd254246c2dc04f6ac90241e665dcf9dfc21dccd8270b6bb
SIZE (rsync-patches-3.2.5.tar.gz) = 141521
SHA256 (rsync-patches-3.2.5.tar.gz) = e7b1fdf1fc0fca68fd254246c2dc04f6ac90241e665dcf9dfc21dccd8270b6bb
SIZE (rsync-patches-3.2.5.tar.gz) = 141521
SHA256 (rsync-patches-3.2.5.tar.gz) = e7b1fdf1fc0fca68fd254246c2dc04f6ac90241e665dcf9dfc21dccd8270b6bb
SIZE (rsync-patches-3.2.5.tar.gz) = 141521

I'm fixing this issue
Comment 3 commit-hook freebsd_committer freebsd_triage 2022-08-17 08:08:04 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1c2e6a5f3eeeae1b80acd25e32ada9685804ec8b

commit 1c2e6a5f3eeeae1b80acd25e32ada9685804ec8b
Author:     Rodrigo Osorio <rodrigo@FreeBSD.org>
AuthorDate: 2022-08-17 06:16:15 +0000
Commit:     Rodrigo Osorio <rodrigo@FreeBSD.org>
CommitDate: 2022-08-17 07:52:41 +0000

    net/rsync: Remove duplicate entries in distinfo

    This is a quick fix to unbreak the port.

    The issue was caused by multiple additional patched
    coming from the same distfile archive. If you enable
    more than one of those options makesum script add a
    distinfo description for each option.

    PR:             265896

 net/rsync/distinfo | 4 ----
 1 file changed, 4 deletions(-)
Comment 4 commit-hook freebsd_committer freebsd_triage 2022-08-17 08:11:05 UTC
A commit in branch 2022Q3 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7dc1a00adc354287544d6c98eef74a71a2bb8a7a

commit 7dc1a00adc354287544d6c98eef74a71a2bb8a7a
Author:     Rodrigo Osorio <rodrigo@FreeBSD.org>
AuthorDate: 2022-08-17 06:16:15 +0000
Commit:     Rodrigo Osorio <rodrigo@FreeBSD.org>
CommitDate: 2022-08-17 07:54:37 +0000

    net/rsync: Remove duplicate entries in distinfo

    This is a quick fix to unbreak the port.

    The issue was caused by multiple additional patched
    coming from the same distfile archive. If you enable
    more than one of those options makesum script add a
    distinfo description for each option.

    PR:             265896
    (cherry picked from commit 1c2e6a5f3eeeae1b80acd25e32ada9685804ec8b)

 net/rsync/distinfo | 4 ----
 1 file changed, 4 deletions(-)