Both imlib2-1.0.6.20030220-r1 and imlib2-1.0.7.20030629 fail to compile when USE="-X" is set. The configure script shows: checking for X... disabled configure: WARNING: Xlib support is disabled. However Xlib seems to be needed for compiling parts of the api.c and font.c source. Reproducible: Always Steps to Reproduce: 1. USE="-X" emerge imlib2 Actual Results: Expected Results: Portage 2.0.48-r5 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1) ================================================================= System uname: 2.4.20-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz GENTOO_MIRRORS="ftp://ftp.citylink.co.nz/gentoo http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss apm avi crypt cups encode foomaticdb gif gpm jpeg gnome libg++ mad mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml gdbm berkdb slang readline arts bonobo svga java X sdl tcpd pam libwww ssl perl python esd imlib oggvorbis gtk qt kde motif opengl 3dfx cdr doc dvd sse tcltk tetex -3dnow" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
Created attachment 16495 [details] emerge log
Created attachment 16496 [details] config log
hello. i confirm this behaviour. For some reason imlib2 is needed on my x-less server. (-x -X in USE). and imlib2 can't compile. tried with imlib2-1.0.7.20030629.ebuild and imlib2-1.0.6.20030220-r1.ebuild. the error is the following : gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../src -I../loaders -I../libltdl -I/usr/X11R6/include -I/usr/include -I/usr/include -march=i586 -O3 -pipe -c api.c -MT api.lo -MD -MP -MF .deps/api.TPlo -fPIC -DPIC -o .libs/api.lo In file included from api.c:34: font.h:119: parse error before "XFontSet" reason is that this XFontSet is declared on none of the .h on the system.. XFontSet is declared in /usr/include/X11/Xlib.h: which of course is not included if xfree is not installed.
Quote from the Imlib2 homepage (http://www.enlightenment.org/pages/imlib2.html) : Imlib 2 can run without a display, so it can be easily used for background image processing for web sites or servers - it only requires the X libraries to be installed - that is all - it does not require an XServer to run unless you wish to display images
thanks brandy, i've added virtual/x11 to DEPEND in all the imlib2 ebuilds
actually, this bug serves as a reminder of what all needs to change when xfree-libs becomes a separate package
i speak with the author of imlib2 and hi help me to create a version without X. Her corrected this in the cvs of imlib2. Simply remove all #include <X11/*> from the source and try to compile with --without-x an all runs fine. Hth
Created attachment 20012 [details, diff] imlib2-1.1.0.ebuild.diff
As for imlib2-1.1.0.ebuild, it can be compiled with USE="-X" without virtual/x11 dependency. Please apply a patch attached above.
Should be fixed in 1.1.0-r1. Reopen if there are still issues.
bleh
Ok, really fixed. Mike, not that we have to elibtoolize it, else the loaders and filters have invalid paths in thier .la's ...
umm i dunno who you talked to about imlib2 but it hasnt been 'corrected' in cvs ... all the files still explicitly require the X11 header files ... i'll talk to raster (the primary dev of E) and see whats up
ok, i removed the imlib2-1.1.0-rX ebuilds and added in a cvs snapshot i also pushed 1.1.0 to stable ... so if you want to build imlib2 w/out X you have to use the snapshot ... i'm not going to patch imlib2-1.1.0