libzmq: Fix gcc11 build failure (#24563)

This commit is contained in:
Chuck Atkins 2021-06-29 00:33:35 -04:00 committed by GitHub
parent b87d9c29c1
commit a7b6149cc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,6 +46,9 @@ class Libzmq(AutotoolsPackage):
conflicts('%gcc@8:', when='@:4.2.2')
# Fix aggressive compiler warning false positive
patch('https://github.com/zeromq/libzmq/commit/92b2c38a2c51a1942a380c7ee08147f7b1ca6845.patch', sha256='8ebde83ee148989f9118d36ebaf256532627b8a6e7a486842110623331972edb', when='@4.2.3:4.3.4 %gcc@11:')
def url_for_version(self, version):
if version <= Version('4.1.4'):
url = "http://download.zeromq.org/zeromq-{0}.tar.gz"