Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 655358 - app-text/xdvik-22.87.03-r1 : dvi-init.h:30:11: fatal error: ft2build.h: No such file or directory
Summary: app-text/xdvik-22.87.03-r1 : dvi-init.h:30:11: fatal error: ft2build.h: No su...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: CJK Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: freetype-config
  Show dependency tree
 
Reported: 2018-05-09 15:55 UTC by Toralf Förster
Modified: 2020-08-12 13:55 UTC (History)
9 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.89 KB, text/plain)
2018-05-09 15:55 UTC, Toralf Förster
Details
app-text:xdvik-22.87.03-r1:20180509-095111.log (app-text:xdvik-22.87.03-r1:20180509-095111.log,18.12 KB, text/plain)
2018-05-09 15:55 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,259.14 KB, text/plain)
2018-05-09 15:55 UTC, Toralf Förster
Details
environment (environment,94.14 KB, text/plain)
2018-05-09 15:55 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,16.12 KB, application/x-bzip)
2018-05-09 15:55 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,15.31 KB, application/x-bzip)
2018-05-09 15:55 UTC, Toralf Förster
Details
Use pkgconfig to find freetype2 (kpse-use-pkgconfig-for-freetype2.patch,1015 bytes, patch)
2018-10-03 19:13 UTC, Aidan Thornton
Details | Diff

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-09 15:55:04 UTC
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.  -I./gui -DPS_GS -I/usr/lib64  -I/usr/include  -I/usr/lib64 -Wimplicit -Wreturn-type -O2 -pipe -march=native -c -o dvi-draw.o dvi-draw.c
In file included from dvi-draw.c:54:0:
dvi-init.h:30:11: 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-desktop-plasma_ffmpeg4_20180501-112342

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python3.6 (fallback)
  [3]   python2.7 (fallback)
  [4]   pypy3 (fallback)
  [5]   pypy (fallback)
  [6]   jython2.7 (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.7.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpv app-text/xdvik
[ebuild  N    ] app-text/xdvik-22.87.03-r1  USE="-Xaw3d -emacs -motif -neXt"
Comment 1 Toralf Förster gentoo-dev 2018-05-09 15:55:07 UTC
Created attachment 530616 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-05-09 15:55:10 UTC
Created attachment 530618 [details]
app-text:xdvik-22.87.03-r1:20180509-095111.log
Comment 3 Toralf Förster gentoo-dev 2018-05-09 15:55:13 UTC
Created attachment 530620 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-05-09 15:55:17 UTC
Created attachment 530622 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-05-09 15:55:20 UTC
Created attachment 530624 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-05-09 15:55:23 UTC
Created attachment 530626 [details]
logs.tbz2
Comment 7 Arfrever Frehtes Taifersar Arahesis 2018-05-09 20:22:39 UTC
checking for x86_64-pc-linux-gnu-freetype-config... no
checking for freetype-config... no
Comment 8 Juergen Rose 2018-07-06 07:39:21 UTC
I have the same issue. Is there any patch?
Comment 9 Juergen Rose 2018-07-06 07:48:15 UTC
I miss freetype-config on my systems as well.

root@lynx:/root(9)# genlop -t freetype | tail

     Fri May  4 23:47:55 2018 >>> media-libs/freetype-2.9.1-r1
       merge time: 33 seconds.

     Thu May 10 09:45:27 2018 >>> media-libs/freetype-2.9
       merge time: 34 seconds.

     Wed Jun  6 19:30:35 2018 >>> media-libs/freetype-2.9.1-r4
       merge time: 42 seconds.
Comment 10 TSM 2018-07-06 14:18:00 UTC
There's a line in freetype ebuild that disables freetype-config.
I think it should be replaced to either always enabling freetype-config or bind it to some USE flag which is required by this package.
Comment 11 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-07-07 19:17:55 UTC
(In reply to TSM from comment #10)
> There's a line in freetype ebuild that disables freetype-config.
> I think it should be replaced to either always enabling freetype-config or
> bind it to some USE flag which is required by this package.

Wrong. xdvik needs to be fixed to no longer use freetype-config which is long deprecated.
Comment 12 Juergen Rose 2018-07-10 09:14:13 UTC
As a workaround I masked:

>media-libs/freetype-2.9 .
Comment 13 Francesco Turco 2018-07-10 11:12:24 UTC
On my system downgrading media-libs/freetype from version 2.9.1-r4 to version 2.9.1-r3 fixes the problem.
Comment 14 Krait Bosheit Takoj 2018-08-22 01:57:32 UTC
(In reply to Francesco Turco from comment #13)
> On my system downgrading media-libs/freetype from version 2.9.1-r4 to
> version 2.9.1-r3 fixes the problem.

This worked for me as well.
Comment 15 Vadim Dyadkin 2018-08-27 19:29:21 UTC
It looks as the same bug as https://bugs.gentoo.org/654770
Comment 16 darkkirb 2018-09-08 08:24:23 UTC
It builds on freetype > 2.8 when you add "-I/usr/include/freetype" to CFLAGS and "-lfreetype" to LIBS for the package
Comment 17 Aidan Thornton 2018-10-03 19:13:42 UTC
Created attachment 549202 [details, diff]
Use pkgconfig to find freetype2

This patch should fix the problem if you can get eautoreconf to complete successfully. I was stumped by it erroring out later on due to an apparently-unrelated issue. Good luck! (Patch is somewhat tested; autoreconf manages to rebuild the necessary files before failing, and that's enough to compile xdvik.)
Comment 18 Larry the Git Cow gentoo-dev 2018-10-08 21:52:04 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a975bbac7fdb2ee7d70131caa9b039a5801ddd13

commit a975bbac7fdb2ee7d70131caa9b039a5801ddd13
Author:     Naohiro Aota <naota@gentoo.org>
AuthorDate: 2018-10-08 21:43:02 +0000
Commit:     Naohiro Aota <naota@gentoo.org>
CommitDate: 2018-10-08 21:51:19 +0000

    app-text/xdvik: use pkg-config instead of freetype-config
    
    Also, bump to EAPI=6 and introduced CDEPEND variable.
    
    Thanks to Aidan Thornton for the patch.
    
    Closes: https://bugs.gentoo.org/655358
    Signed-off-by: Naohiro Aota <naota@gentoo.org>
    Package-Manager: Portage-2.3.50, Repoman-2.3.11

 .../files/xdvik-22.87.03-freetype2-config.patch    |  23 +++++
 app-text/xdvik/xdvik-22.87.03-r2.ebuild            | 115 +++++++++++++++++++++
 2 files changed, 138 insertions(+)
Comment 19 CaptainBlood 2020-08-12 13:31:56 UTC
(In reply to Francesco Turco from comment #13)
> On my system downgrading media-libs/freetype from version 2.9.1-r4 to
> version 2.9.1-r3 fixes the problem.

fails with stable media-libs/freetype-2.10.2-r1 amd64.
Advice succeded. :)
Thks 4 ur attention, interest & support.
Comment 20 CaptainBlood 2020-08-12 13:55:44 UTC
Once above done, did update freetype to latest stable.
Thks 4 ur attention, interest & support.