Skip to content

Commit

Permalink
depends: fix fontconfig with newer glibc
Browse files Browse the repository at this point in the history
See comment for more detail
  • Loading branch information
theuni authored and Bushstar committed Sep 20, 2018
1 parent 3209033 commit 8f6ceb6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions depends/packages/fontconfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ define $(package)_config_cmds
$($(package)_autoconf)
endef

# 2.12.1 uses CHAR_WIDTH which is reserved and clashes with some glibc versions, but newer versions of fontconfig
# have broken makefiles which needlessly attempt to re-generate headers with gperf.
# Instead, change all uses of CHAR_WIDTH, and disable the rule that forces header re-generation.
# This can be removed once the upstream build is fixed.
define $(package)_build_cmds
sed -i 's/CHAR_WIDTH/CHARWIDTH/g' fontconfig/fontconfig.h src/fcobjshash.gperf src/fcobjs.h src/fcobjshash.h && \
sed -i 's/fcobjshash.h: fcobjshash.gperf/fcobjshash.h:/' src/Makefile && \
$(MAKE)
endef

Expand Down

0 comments on commit 8f6ceb6

Please sign in to comment.