fontconfig: resolve tarball issue fcobjshash.h (#23190)

This commit is contained in:
Tamara Dahlgren 2021-04-23 06:37:25 -07:00 committed by GitHub
parent 6d789a5835
commit 19b9789b45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,12 @@ class Fontconfig(AutotoolsPackage):
depends_on('font-util')
depends_on('uuid', when='@2.13.1:')
# Resolve known issue with tarballs 2.12.3 - 2.13.0 plus
# https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/10
@run_before('configure')
def _rm_offending_header(self):
force_remove(join_path('src', 'fcobjshash.h'))
def configure_args(self):
font_path = join_path(self.spec['font-util'].prefix, 'share', 'fonts')