x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./include -I/usr/lib64 -DHAVE_LIBKPATHSEA -Wimplicit -Wreturn-type -O2 -pipe -march=native -c -o filesrch.o filesrch.c x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./include -I/usr/lib64 -DHAVE_LIBKPATHSEA -Wimplicit -Wreturn-type -O2 -pipe -march=native -c -o ftlib.o ftlib.c ftlib.c:23:10: fatal error: ft2build.h: No such file or directory #include <ft2build.h> ^~~~~~~~~~~~ compilation terminated. ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.0-no-multilib-hardened_libressl_20180501-232759 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-7.3.0 * Available Python interpreters, in order of preference: [1] python3.5 [2] python2.7 (fallback) Available Ruby profiles: [1] ruby23 (with Rubygems) * emerge -qpv app-text/ttf2pk2 [ebuild N ] app-text/ttf2pk2-2.0_p20170524
Created attachment 529662 [details] emerge-info.txt
Created attachment 529664 [details] app-text:ttf2pk2-2.0_p20170524:20180503-212649.log
Created attachment 529666 [details] emerge-history.txt
Created attachment 529668 [details] environment
Created attachment 529670 [details] etc.portage.tbz2
Created attachment 529672 [details] logs.tbz2
It seems to be caused by any freetype version >2.8. First time it appeared with 2.8.1 with some packages. So, for workaround you have to mask all versions >2.8.
(In reply to Nikita Zlobin from comment #7) > It seems to be caused by any freetype version >2.8. First time it appeared > with 2.8.1 with some packages. So, for workaround you have to mask all > versions >2.8. Is this really connected with freetype version >2.8? I installed freetype versions >2.8 since Sep 18 01:26:21 2017 and I installed succesfully ttf2pk2 in Dec 2017 and Jan 2018.
(In reply to Juergen Rose from comment #8) > (In reply to Nikita Zlobin from comment #7) > > It seems to be caused by any freetype version >2.8. First time it appeared > > with 2.8.1 with some packages. So, for workaround you have to mask all > > versions >2.8. > > Is this really connected with freetype version >2.8? I installed freetype > versions >2.8 since Sep 18 01:26:21 2017 and I installed succesfully ttf2pk2 > in Dec 2017 and Jan 2018. After downgrading freetype to version 2.9 I could again emerge ttf2pk2-2.0_p20170524.
*** Bug 655134 has been marked as a duplicate of this bug. ***
I can confirm the issue, and for me downgrading from freetype-2.9.1-r4 to freetype-2.9.1-r3 fixes the problem. Looking at the freetype-ebuild files the change from r3 to r4 causing this seems to be changing from --enable-freetype-config to --disable-freetype-config.
I confirm that downgrading media-libs/freetype from version 2.9.1-r4 to version 2.9.1-r3 fixes the problem.
I have exactly the same bug for app-text/xdvik.
Not only me :) https://bugs.gentoo.org/655358
It builds on freetype > 2.8 when you add "-I/usr/include/freetype" to CFLAGS and "-lfreetype" to LIBS for the package
adding --enable-freetype-config to the 2.9.x version also allows it to merge without issues
For me downgrading to 2.9.1-r3 did the trick
I've got exactly the same problem. Downgrading truetype to 2.9.1-r3 worked for me.
Similar bug: https://bugs.gentoo.org/655358 was fixed!
The same patch used in comment 19 works here.
Created attachment 552264 [details] new ebuild.
Same bug. Fixed by adding `-I/usr/include/freetype2` to CFLAGS and `-lfreetype` to LIBS, like darkkirb suggested. (Do note the "2" at the end though) Did so using a custom /etc/portage/env/freetype file: CFLAGS="${CFLAGS} -I/usr/include/freetype2" LIBS="${LIBS} -lfreetype"
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ee53a45f539106e4e72763503d959e1eed0f781 commit 6ee53a45f539106e4e72763503d959e1eed0f781 Author: Stefan Strogin <stefan.strogin@gmail.com> AuthorDate: 2019-01-15 17:19:47 +0000 Commit: Alexey Shvetsov <alexxy@gentoo.org> CommitDate: 2019-01-22 13:02:29 +0000 app-text/ttf2pk2: use pkg-config instead of freetype-config Patch by Aidan Thornton, taken from a975bbac7 "app-text/xdvik: use pkg-config instead of freetype-config" Closes: https://bugs.gentoo.org/654770 Package-Manager: Portage-2.3.56, Repoman-2.3.12 Signed-off-by: Stefan Strogin <stefan.strogin@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/10840 Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org> .../ttf2pk2-2.0_p20170524-freetype2-config.patch | 23 ++++++++++ app-text/ttf2pk2/ttf2pk2-2.0_p20170524-r1.ebuild | 50 ++++++++++++++++++++++ 2 files changed, 73 insertions(+)
reverted until modern QA is provided
*** Bug 675970 has been marked as a duplicate of this bug. ***
Fixed in https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ceae9e8ff4ae85a93a3419942776a7c16b9ce5fe