Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 177597 - media-libs/freetype missing x11-libs/libX11 dependency
Summary: media-libs/freetype missing x11-libs/libX11 dependency
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: foser (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-08 08:43 UTC by Calum
Modified: 2007-05-13 00:22 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Calum 2007-05-08 08:43:20 UTC
Freetype requires X11 to install - useless on a headless system

I use freetype on a headless system with PHP, and as such don't have (and don't want) X11 packages installed.

i686-pc-linux-gnu-gcc -c  -O2 -mcpu=i686 -pipe -fno-strict-aliasing -DFT_CONFIG_OPTION_SYSTEM_ZLIB -DFT_CONFIG_CONFIG_H="<ftconfig.h>" -I/var/tmp/portage/freetype-2.3.3/work/ft2demos-2.3.3/graph \
                -I/var/tmp/portage/freetype-2.3.3/work/ft2demos-2.3.3/graph/x11 \
                -I/usr/X11R6/include \
                -o /var/tmp/portage/freetype-2.3.3/work/ft2demos-2.3.3/obj/grx11.o /var/tmp/portage/freetype-2.3.3/work/ft2demos-2.3.3/graph/x11/grx11.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
/var/tmp/portage/freetype-2.3.3/work/ft2demos-2.3.3/graph/x11/grx11.c:35:22: X11/Xlib.h: No such file or directory
/var/tmp/portage/freetype-2.3.3/work/ft2demos-2.3.3/graph/x11/grx11.c:36:23: X11/Xutil.h: No such file or directory


Reproducible: Always

Steps to Reproduce:
emerge freetype
Comment 1 Calum 2007-05-08 08:43:53 UTC
Options used were

[ebuild     U ] media-libs/freetype-2.3.3 [2.1.10-r2] USE="zlib -bindist -debug% -doc" 0 kB
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2007-05-09 01:32:32 UTC
Thanks for the report.  I've added an X USE flag to control what utilities get built.  I also found a linking bug that I sent a patch upstream for.  Can you sync up and test freetype-2.3.3 with USE="-X"? (ebuild rev should be >=1.8).
Comment 3 Paolo Pedroni 2007-05-09 10:50:53 UTC
media-libs/freetype fails if with USE="-X". The error is:

x86_64-pc-linux-gnu-gcc -o /var/tmp/portage/media-libs/freetype-2.3.3/work/ft2demos-2.3.3/bin/.libs/ftdump /var/tmp/portage/media-libs/freetype-2.3.3/work/ft2demos-2.3.3/obj/ftdump.o /var/tmp/portage/media-libs/freetype-2.3.3/work/ft2demos-2.3.3/obj/common.o  /var/tmp/portage/media-libs/freetype-2.3.3/work/freetype-2.3.3/objs/.libs/libfreetype.so -lz
x86_64-pc-linux-gnu-gcc: /var/tmp/portage/media-libs/freetype-2.3.3/work/ft2demos-2.3.3/obj/common.o: No such file or directory
distcc[32321] ERROR: compile (null) on localhost failed
make: *** [/var/tmp/portage/media-libs/freetype-2.3.3/work/ft2demos-2.3.3/bin/ftdump] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: media-libs/freetype-2.3.3 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3648:   Called src_compile
  freetype-2.3.3.ebuild, line 101:   Called die

!!! ft2demos emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/log/portage/media-libs:freetype-2.3.3:20070509-104318.log'.

# emerge --info
Portage 2.1.2.2 (default-linux/amd64/2007.0/server, gcc-4.1.1, glibc-2.5-r2, 2.6.20-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.20-gentoo-r7 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4600+
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 09 May 2007 06:30:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O3 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k8 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="autoaddcvs ccache collision-protect digest distcc distlocks fixpackages metadata-transfer sandbox sfperms strict test userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://gentoo.ynet.sk/pub http://gentoo.inf.elte.hu/ http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ http://pandemonium.tiscali.de/pub/gentoo/"
LANG="it_IT.UTF-8"
LC_ALL="it_IT.UTF-8"
LINGUAS="it"
MAKEOPTS="-j11"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/xeffects /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="a52 aac aalib acpi amd64 bash-completion bcmath berkdb bitmap-fonts bzip2 caps cli cracklib crypt curl curlwrappers dbus dio dri dvd dvdread emul-linux-x86 encode exif expat fbcon ffmpeg fftw flac fortran ftp gd gdbm ggi gif glut gmp gnutls gphoto2 gpm guile hal hardenedphp iconv ieee1394 imagemagick imlib isdnlog java javascript jikes jpeg jpeg2k kerberos krb4 libcaca libg++ lm_sensors mad maildir matroska memlimit midi mime mmap mmx mp3 mpeg mpi ncurses nls nptl nptlonly offensive ogg openal opengl oss pam pcre perl png posix ppds pppd python quicktime readline recode reflection samba session sharedmem shorten sndfile sockets sox spell spl sse sse2 ssl svg symlink sysvipc tcl tcpd test theora threads tidy tiff tokenizer truetype truetype-fonts type1-fonts unicode usb vorbis x264 xine xinetd xml xml2 xorg xvid zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CTARGET, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Ryan Hill (RETIRED) gentoo-dev 2007-05-09 14:13:00 UTC
can you try with MAKEOPTS="-j1"?
Comment 5 Ryan Hill (RETIRED) gentoo-dev 2007-05-09 14:54:24 UTC
I think I found it.  Please try rev 1.9.
Comment 6 Paolo Pedroni 2007-05-09 17:44:01 UTC
(In reply to comment #4)
> can you try with MAKEOPTS="-j1"?
> 

With FEATURES="-distcc" MAKEOPTS="-j1" it works perfectly.
Comment 7 Paolo Pedroni 2007-05-09 17:45:36 UTC
(In reply to comment #5)
> I think I found it.  Please try rev 1.9.
> 

I will check that tomorrow after the daily "emerge --sync"
Comment 8 Paolo Pedroni 2007-05-10 07:22:14 UTC
(In reply to comment #5)
> I think I found it.  Please try rev 1.9.
> 

OK, perfect. Now it works out of the box.
Comment 9 Ryan Hill (RETIRED) gentoo-dev 2007-05-13 00:22:48 UTC
This is working for me on a headless box I just set up.  Please reopen if you're still having problems.