Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 407595 - x11-libs/fltk[cairo] should depend on x11-libs/cairo
Summary: x11-libs/fltk[cairo] should depend on x11-libs/cairo
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal minor (vote)
Assignee: Desktop Misc. Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-09 22:19 UTC by Karl-Johan Karlsson
Modified: 2012-03-12 07:10 UTC (History)
0 users

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 Karl-Johan Karlsson 2012-03-09 22:19:02 UTC
Tried to emerge x11-libs/fltk-1.3.0-r1 with USE="cairo". Got the following error:

=== making src ===
make[1]: Entering directory `/var/tmp/portage/x11-libs/fltk-1.3.0-r1/work/fltk-1.3.0/src'
echo Compiling Fl.cxx...
Compiling Fl.cxx...
x86_64-pc-linux-gnu-g++ -I..     -Wall -Wunused -Wno-format-y2k  -fPIC -fno-exceptions -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE    -march=native -O2 -pipe -fweb -ftracer  -DFL_LIBRARY -c Fl.cxx -o Fl.o
In file included from ../FL/Fl.H:36:0,
                 from Fl.cxx:57:
../FL/Fl_Cairo.H:42:26: fatal error: cairo-xlib.h: No such file or directory
compilation terminated.
make[1]: *** [Fl.o] Error 1

Looking at another machine where fltk is already installed, cairo-xlib comes from x11-libs/cairo:

# locate cairo-xlib.h 
/usr/include/cairo/cairo-xlib.h
# qfile /usr/include/cairo/cairo-xlib.h
x11-libs/cairo (/usr/include/cairo/cairo-xlib.h)

Manually installing x11-libs/cairo-1.10.2-r2 makes x11-libs/fltk-1.3.0-r1 compile properly.

Looking at x11-libs/fltk/fltk-1.3.0-r1.ebuild, "cairo" only appears in IUSE and in a use_enable call. It should be a dependency as well.

Reproducible: Always




Portage 2.2.0_alpha90 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.14.1-r2, 3.2.9-gentoo x86_64)
=================================================================
System uname: Linux-3.2.9-gentoo-x86_64-Intel-R-_Core-TM-_i7-2640M_CPU_@_2.80GHz-with-gentoo-2.1
Timestamp of tree: Fri, 09 Mar 2012 13:45:01 +0000
app-shells/bash:          4.2_p20
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.3
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5.1
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.2-r1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo sunrise local
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 googleearth AdobeFlash-10.1 AdobeFlash-10.3 google-talkplugin skype-eula"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fweb -ftracer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -fweb -ftracer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical --keep-going --quiet-build=n"
FEATURES="assume-digests binpkg-logs buildpkg distlocks ebuild-locks fixlafiles news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="http://ftp.sunet.se/pub/Linux/distributions/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--enable-new-dtags"
LINGUAS="en en_US en_GB en_UK sv sv_SE"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=10"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aacs acl acpi alsa amd64 anthy avi bash-completion berkdb bluetooth bluray bzip2 cairo canna cdr cjk cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr dvdread emacs exif ffmpeg fftw flac fontconfig fortran fuse gdbm gif gimp glitz gphoto2 gpm gstreamer gtk gtk3 hal handbook iconv idn ipv6 javascript jingle jpeg kde laptop lensfun lm_sensors logrotate mad matroska mmap mmx mmxext mng modules motif mp3 mudflap multilib ncurses nls nptl nptlonly nsplugin offensive ogg opengl openmp pam pcre pdf phonon plasma png policykit pppd qt qt3 qt3support qt4 quicktime qwt raw readline resid samba sasl sdl semantic-desktop session sid smp sndfile sqlite sse sse2 ssl ssse3 svg sysfs tcpd theora tiff truetype unicode usb vorbis wicd wifi wma wmf x264 xcb xine xinerama xorg xrandr xv xvid xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse joystick evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US en_GB en_UK sv sv_SE" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2012-03-12 07:10:15 UTC
+  12 Mar 2012; Samuli Suominen <ssuominen@gentoo.org> fltk-1.3.0.ebuild,
+  fltk-1.3.0-r1.ebuild:
+  Missing x11-libs/cairo RDEPEND for USE="cairo" wrt #407595 by Karl-Johan
+  Karlsson