<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>177597</bug_id>
          
          <creation_ts>2007-05-08 08:43 0000</creation_ts>
          <short_desc>media-libs/freetype missing x11-libs/libX11 dependency</short_desc>
          <delta_ts>2007-05-13 00:22:48 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>2006.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>TEST-REQUEST</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>caluml@gmail.com</reporter>
          <assigned_to>foser@gentoo.org</assigned_to>
          <cc>fonts@gentoo.org</cc>
    
    <cc>jakub@gentoo.org</cc>
    
    <cc>paolo.pedroni@iol.it</cc>

      

      
          <long_desc isprivate="0">
            <who>caluml@gmail.com</who>
            <bug_when>2007-05-08 08:43:20 0000</bug_when>
            <thetext>Freetype requires X11 to install - useless on a headless system

I use freetype on a headless system with PHP, and as such don&apos;t have (and don&apos;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=&quot;&lt;ftconfig.h&gt;&quot; -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=&apos; is deprecated. Use `-mtune=&apos; or &apos;-march=&apos; 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</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>caluml@gmail.com</who>
            <bug_when>2007-05-08 08:43:53 0000</bug_when>
            <thetext>Options used were

[ebuild     U ] media-libs/freetype-2.3.3 [2.1.10-r2] USE=&quot;zlib -bindist -debug% -doc&quot; 0 kB</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dirtyepic@gentoo.org</who>
            <bug_when>2007-05-09 01:32:32 0000</bug_when>
            <thetext>Thanks for the report.  I&apos;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=&quot;-X&quot;? (ebuild rev should be &gt;=1.8).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>paolo.pedroni@iol.it</who>
            <bug_when>2007-05-09 10:50:53 0000</bug_when>
            <thetext>media-libs/freetype fails if with USE=&quot;-X&quot;. 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 &apos;src_compile&apos;
  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 &apos;/var/log/portage/media-libs:freetype-2.3.3:20070509-104318.log&apos;.

# 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=&quot;amd64&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;x86_64-pc-linux-gnu&quot;
CFLAGS=&quot;-march=k8 -O3 -pipe -fomit-frame-pointer&quot;
CHOST=&quot;x86_64-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo&quot;
CXXFLAGS=&quot;-march=k8 -O3 -pipe -fomit-frame-pointer&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
EMERGE_DEFAULT_OPTS=&quot;--with-bdeps y&quot;
FEATURES=&quot;autoaddcvs ccache collision-protect digest distcc distlocks fixpackages metadata-transfer sandbox sfperms strict test userfetch userpriv usersandbox&quot;
GENTOO_MIRRORS=&quot;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/&quot;
LANG=&quot;it_IT.UTF-8&quot;
LC_ALL=&quot;it_IT.UTF-8&quot;
LINGUAS=&quot;it&quot;
MAKEOPTS=&quot;-j11&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--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-*&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/portage/local/layman/xeffects /usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;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&quot; ALSA_CARDS=&quot;intel8x0&quot; ALSA_PCM_PLUGINS=&quot;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&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;keyboard mouse evdev&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; LINGUAS=&quot;it&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;radeon&quot;
Unset:  CTARGET, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dirtyepic@gentoo.org</who>
            <bug_when>2007-05-09 14:13:00 0000</bug_when>
            <thetext>can you try with MAKEOPTS=&quot;-j1&quot;?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dirtyepic@gentoo.org</who>
            <bug_when>2007-05-09 14:54:24 0000</bug_when>
            <thetext>I think I found it.  Please try rev 1.9.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>paolo.pedroni@iol.it</who>
            <bug_when>2007-05-09 17:44:01 0000</bug_when>
            <thetext>(In reply to comment #4)
&gt; can you try with MAKEOPTS=&quot;-j1&quot;?
&gt; 

With FEATURES=&quot;-distcc&quot; MAKEOPTS=&quot;-j1&quot; it works perfectly.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>paolo.pedroni@iol.it</who>
            <bug_when>2007-05-09 17:45:36 0000</bug_when>
            <thetext>(In reply to comment #5)
&gt; I think I found it.  Please try rev 1.9.
&gt; 

I will check that tomorrow after the daily &quot;emerge --sync&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>paolo.pedroni@iol.it</who>
            <bug_when>2007-05-10 07:22:14 0000</bug_when>
            <thetext>(In reply to comment #5)
&gt; I think I found it.  Please try rev 1.9.
&gt; 

OK, perfect. Now it works out of the box.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dirtyepic@gentoo.org</who>
            <bug_when>2007-05-13 00:22:48 0000</bug_when>
            <thetext>This is working for me on a headless box I just set up.  Please reopen if you&apos;re still having problems.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>