From a7010111db752212f9975cf14e566fd09e424a49 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Tue, 20 Nov 2018 14:53:42 -0600 Subject: [PATCH] workaround el7 freetype bug #1651788 --- GraphicsMagick.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/GraphicsMagick.spec b/GraphicsMagick.spec index 5db2f39..e3c5b16 100644 --- a/GraphicsMagick.spec +++ b/GraphicsMagick.spec @@ -172,6 +172,13 @@ sed -i.rpath -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure %build + +## hopefully, temporary workaround for freetype bug, +## https://bugzilla.redhat.com/show_bug.cgi?id=1651788 +%if 0%{?rhel} == 7 +CFLAGS="$RPM_OPT_FLAGS -DFT_ENCODING_PRC=FT_ENCODING_GB2312" +%endif + %configure --enable-shared --disable-static \ --docdir=%{_pkgdocdir} \ --with-lcms2 \