On Sat, 25 Oct 2025, [email protected] wrote:
I have done testing with legacy OS VMs and applied a workaround for outdated
SSL versions, which are unable to pull dist files from GitHub.
# SSL workaround for older macOS versions with GitHub download issues
platform darwin {
if {${os.major} <= 12} {
depends_build-append port:curl
fetch {
system "curl -L -o ${distpath}/${distname}.tar.xz
'${github.master_sites}/${distname}.tar.xz'"
}
}
}
With this change, the netatalk port is building on MacPorts supported OSs as
expected.
One a port is "published", its distfiles are fetched to the MacPorts
mirrors, where they're fetchable by all OS versions. Thus, there's no
need to include this in the Portfile. Distfiles normally "remain
fetched", so if you remove this from the Portfile, your tests should still
work.
What I do here is I have a script which can fetch distfiles via the curl
command, which I use as needed during port testing. Yes, that's a
nuisance, but it only affects port developers, not end users. There's an
ancient ticket to fix this, though in an overly complicated manner IMO:
https://trac.macports.org/ticket/51516
A similar issue exists for livecheck, which *is* an issue for end users,
though less importantly so.
Fred Wright