Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 654770 - app-text/ttf2pk2-2.0_p20170524 : ftlib.c:23:10: fatal error: ft2build.h: No such file or directory
Summary: app-text/ttf2pk2-2.0_p20170524 : ftlib.c:23:10: fatal error: ft2build.h: No s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: TeX project
URL:
Whiteboard:
Keywords: PullRequest
: 655134 675970 (view as bug list)
Depends on:
Blocks: freetype-config
  Show dependency tree
 
Reported: 2018-05-03 21:32 UTC by Toralf Förster
Modified: 2019-02-13 22:20 UTC (History)
17 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,15.28 KB, text/plain)
2018-05-03 21:32 UTC, Toralf Förster
Details
app-text:ttf2pk2-2.0_p20170524:20180503-212649.log (app-text:ttf2pk2-2.0_p20170524:20180503-212649.log,10.85 KB, text/plain)
2018-05-03 21:32 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,122.17 KB, text/plain)
2018-05-03 21:32 UTC, Toralf Förster
Details
environment (environment,10.29 KB, text/plain)
2018-05-03 21:32 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,13.06 KB, application/x-bzip)
2018-05-03 21:32 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,108.66 KB, application/x-bzip)
2018-05-03 21:32 UTC, Toralf Förster
Details
new ebuild. (ttf2pk2-2.0_p20170524-r1.ebuild,1.49 KB, text/plain)
2018-10-22 17:00 UTC, Luke A. Guest
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-05-03 21:32:04 UTC
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
Comment 1 Toralf Förster gentoo-dev 2018-05-03 21:32:07 UTC
Created attachment 529662 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-05-03 21:32:10 UTC
Created attachment 529664 [details]
app-text:ttf2pk2-2.0_p20170524:20180503-212649.log
Comment 3 Toralf Förster gentoo-dev 2018-05-03 21:32:13 UTC
Created attachment 529666 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-05-03 21:32:16 UTC
Created attachment 529668 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-05-03 21:32:19 UTC
Created attachment 529670 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-05-03 21:32:22 UTC
Created attachment 529672 [details]
logs.tbz2
Comment 7 Nikita Zlobin 2018-05-14 09:57:53 UTC
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.
Comment 8 Juergen Rose 2018-06-20 13:24:25 UTC
(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.
Comment 9 Juergen Rose 2018-06-20 14:50:04 UTC
(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.
Comment 10 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-07-07 19:42:57 UTC
*** Bug 655134 has been marked as a duplicate of this bug. ***
Comment 11 Flo Gravo 2018-07-10 09:36:41 UTC
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.
Comment 12 Francesco Turco 2018-07-10 11:13:28 UTC
I confirm that downgrading media-libs/freetype from version 2.9.1-r4 to version 2.9.1-r3 fixes the problem.
Comment 13 Vadim Dyadkin 2018-08-27 19:26:39 UTC
I have exactly the same bug for app-text/xdvik.
Comment 14 Vadim Dyadkin 2018-08-27 19:30:15 UTC
Not only me :)
https://bugs.gentoo.org/655358
Comment 15 darkkirb 2018-09-08 08:23:29 UTC
It builds on freetype > 2.8 when you add "-I/usr/include/freetype" to CFLAGS and "-lfreetype" to LIBS for the package
Comment 16 Denis Descheneaux 2018-09-10 19:01:53 UTC
adding --enable-freetype-config to the 2.9.x version also allows it to merge without issues
Comment 17 Victor Orozco 2018-09-13 04:20:30 UTC
For me downgrading to 2.9.1-r3 did the trick
Comment 18 PhoenixStarEclipse 2018-09-18 15:26:55 UTC
I've got exactly the same problem. Downgrading truetype to 2.9.1-r3 worked for me.
Comment 19 Andrés Becerra Sandoval 2018-10-12 16:23:43 UTC
Similar bug:

https://bugs.gentoo.org/655358

was fixed!
Comment 20 Luke A. Guest 2018-10-22 16:59:16 UTC
The same patch used in comment 19 works here.
Comment 21 Luke A. Guest 2018-10-22 17:00:02 UTC
Created attachment 552264 [details]
new ebuild.
Comment 22 Andrzej Korwin-Mikke 2018-11-05 17:42:40 UTC
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"
Comment 23 Larry the Git Cow gentoo-dev 2019-01-22 13:03:14 UTC
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(+)
Comment 24 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2019-01-22 13:25:34 UTC
reverted until modern QA is provided
Comment 25 Jeroen Roovers (RETIRED) gentoo-dev 2019-01-22 13:38:42 UTC
*** Bug 675970 has been marked as a duplicate of this bug. ***