Fix for modern GCC and for drifting download URL (#48015)

This commit is contained in:
Brian Vanderwende 2024-12-18 18:51:07 -07:00 committed by GitHub
parent d3ab84e5d8
commit 40ac1613e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,6 +15,19 @@ class Ncftp(AutotoolsPackage):
license("ClArtistic")
version("3.2.7", sha256="dbde0d3b4d28ba3a445621e10deaee57a6ba3ced277cc9dbce4052bcddf6cb2a")
version("3.2.6", sha256="129e5954850290da98af012559e6743de193de0012e972ff939df9b604f81c23")
depends_on("ncurses")
def url_for_version(self, version):
url = "https://www.ncftp.com/public_ftp/ncftp/{}-src.tar.gz"
if version < Version("3.2.7"):
return url.format(f"older_versions/ncftp-{version}")
else:
return url.format(f"ncftp-{version}")
def setup_build_environment(self, env):
if self.spec.satisfies("%gcc@10:"):
# https://bugs.gentoo.org/722550
env.set("CFLAGS", "-fcommon")