fontconfig: add v2.13.94 and fix test with dash (#26961)

Fix install --test=root with /bin/sh -> dash: A test uses
SIGINT SIGTERM SIGABRT EXIT for trap -> use signal numbers
This commit is contained in:
Bernhard Kaindl 2021-10-27 16:20:57 +02:00 committed by GitHub
parent f4431851ab
commit d1803af957
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,6 +11,7 @@ class Fontconfig(AutotoolsPackage):
homepage = "https://www.freedesktop.org/wiki/Software/fontconfig/" homepage = "https://www.freedesktop.org/wiki/Software/fontconfig/"
url = "https://www.freedesktop.org/software/fontconfig/release/fontconfig-2.12.3.tar.gz" url = "https://www.freedesktop.org/software/fontconfig/release/fontconfig-2.12.3.tar.gz"
version('2.13.94', sha256='246d1640a7e54fba697b28e4445f4d9eb63dda1b511d19986249368ee7191882')
version('2.13.93', sha256='0f302a18ee52dde0793fe38b266bf269dfe6e0c0ae140e30d72c6cca5dc08db5') version('2.13.93', sha256='0f302a18ee52dde0793fe38b266bf269dfe6e0c0ae140e30d72c6cca5dc08db5')
version('2.13.1', sha256='9f0d852b39d75fc655f9f53850eb32555394f36104a044bb2b2fc9e66dbbfa7f') version('2.13.1', sha256='9f0d852b39d75fc655f9f53850eb32555394f36104a044bb2b2fc9e66dbbfa7f')
version('2.12.3', sha256='ffc3cbf6dd9fcd516ee42f48306a715e66698b238933d6fa7cef02ea8b3b818e') version('2.12.3', sha256='ffc3cbf6dd9fcd516ee42f48306a715e66698b238933d6fa7cef02ea8b3b818e')
@ -25,6 +26,10 @@ class Fontconfig(AutotoolsPackage):
depends_on('uuid', when='@2.13.1:') depends_on('uuid', when='@2.13.1:')
depends_on('python@3:', type='build', when='@2.13.93:') depends_on('python@3:', type='build', when='@2.13.93:')
def patch(self):
"""Make test/run-test.sh compatible with dash"""
filter_file('SIGINT SIGTERM SIGABRT EXIT', '2 15 6 0', 'test/run-test.sh')
# Resolve known issue with tarballs 2.12.3 - 2.13.0 plus # Resolve known issue with tarballs 2.12.3 - 2.13.0 plus
# https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/10 # https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/10
@run_before('configure') @run_before('configure')