[Bug 268403] The ports mirror does not cache all the files that need to be downloaded like gentoo does

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 22 Dec 2022 00:54:49 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268403

--- Comment #12 from Philip Paeps <philip@FreeBSD.org> ---
Now we're starting to get useful information ...

Your MASTER_SITE_OVERRIDE is set wrong.

fetch: http://distcache.freebsd.org/ports-distfiles/bashbash-5.2.tar.gz: Not
Found
fetch:
http://distcache.freebsd.org/ports-distfiles/TeXtexlive-20210325-texmf.tar.xz:
Not Found

These work fine:
http://distcache.freebsd.org/ports-distfiles/bash/bash-5.2.tar.gz
http://distcache.freebsd.org/ports-distfiles/TeX/texlive-20210325-texmf.tar.xz

Note the additional '/'es.

This is wrong:
MASTER_SITE_OVERRIDE?=http://distcache.freebsd.org/ports-distfiles/${DIST_SUBDIR}

It should be:
MASTER_SITE_OVERRIDE?=http://distcache.freebsd.org/ports-distfiles/${DIST_SUBDIR}/

You could also simply set it to this as I recommended:
MASTER_SITE_OVERRIDE?=  ${MASTER_SITE_BACKUP}

Reading through Mk/bsd.port.mk, setting this would achieve the same effect:

MASTER_SITE_FREEBSD=

-- 
You are receiving this mail because:
You are on the CC list for the bug.