spider root # USE="gimpprint" emerge gimp -v Calculating dependencies ...done! >>> emerge (1 of 6) net-print/foomatic-filters-3.0.2 to / >>> Downloading http://gentoo.chem.wisc.edu/gentoo/distfiles/foomatic-filters-3.0.2.tar.gz --22:28:58-- http://gentoo.chem.wisc.edu/gentoo/distfiles/foomatic-filters-3.0.2.tar.gz => `/usr/portage/distfiles/foomatic-filters-3.0.2.tar.gz' Resolving gentoo.chem.wisc.edu... 128.104.70.13 Connecting to gentoo.chem.wisc.edu[128.104.70.13]:80... connected. HTTP request sent, awaiting response... 200 OK Length: 125,875 [application/x-tar] 100%[======================================>] 125,875 658.06K/s 22:28:58 (657.08 KB/s) - `/usr/portage/distfiles/foomatic-filters-3.0.2.tar.gz' saved [125875/125875] >>> md5 src_uri ;-) foomatic-filters-3.0.2.tar.gz >>> Unpacking source... >>> Unpacking foomatic-filters-3.0.2.tar.gz to /var/tmp/portage/foomatic-filters-3.0.2/work >>> Source unpacked. ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib creating cache ./config.cache checking for a BSD compatible install... /bin/install -c checking whether ln -s works... yes checking whether make sets ${MAKE}... yes checking for perl... /usr/bin/perl checking for printcap/... /etc/printcap checking for cups/... /usr/lib/cups checking for cups/filter/... /usr/lib/cups/filter checking for ppr/... /usr/lib/ppr checking for ppr/interfaces/... /usr/lib/ppr/interfaces checking for ppr/lib/... /usr/lib/ppr/lib checking for a2ps... no checking for enscript... no checking for mpage... no checking for texttops... no configure: error: cannot find a2ps, enscript, mpage, or CUPS' texttops. You needto have at least one installed !!! ERROR: net-print/foomatic-filters-3.0.2 failed. !!! Function econf, Line 449, Exitcode 1 !!! econf failed !!! If you need support, post the topmost build error, NOT this status message. I am using lprng, not cups; a cursury search of my system using slocate shows indeed that I do not have any of those installed. My ghostscript virtual is filled by spider etc # emerge -p virtual/ghostscript These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] app-text/ghostscript-7.07.1-r7 spider etc # emerge --info Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r4-Desktop i686) ================================================================= System uname: 2.6.9-gentoo-r4-Desktop i686 AMD Athlon(tm) XP 1800+ Gentoo Base System version 1.4.16 distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig candy ccache confcache distlocks nospinner sandbox sfperms userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow X acl alsa apm arts avi bash-completion berkdb bidi bitmap-fonts bmp canna cdr cjk cross crypt dga directfb divx4linux dvd dvdr encode ethereal fam flac foomaticdb fortran gdbm ggi gif gpm gtk gtk2 imagemagick imap imlib ipv6 javajpeg kde kerberos ldap libwww mad memlimit mikmod mmx motif mpeg ncurses nis nls nptl oggvorbis openal opengl pam pdflib perl pic pie png posix python qt quicktime readline samba sdl spell sse ssl svga tcpd tiff truetype unicode usb wxwindows xml2 xmms xv xvid zlib"
I can confirm that there is a dependency problem in foomatic-filters. I think this reflects a general pattern of packages that depend on a small feature that can be provided by different packages: in this case the TextToPs feature in a2ps, enscript, mpage and cups. mpage is small enough (80KB source, 303KiB installed) so that foomatic-filters could depend on it, so I added app-text/mpage to DEPEND in foomatic-filters-3.0.2.ebuild. Worked like a charm. I hope someone can put the dependency in the ebuild, unless there is some policy against disambiguating between alternative packages providing the same feature.
Created attachment 57145 [details, diff] adds a 4-way or DEPEND with the providers. Ew. ;) Something like this should do it, how nasty ;) Or make a virtual/whatever and dep on that, your choice really.
Created attachment 57146 [details, diff] adds a 4-way or DEPEND with the providers. Ew. ;) Something like this should do it, how nasty ;) Or make a virtual/whatever and dep on that, your choice really.
Any activity? something wrong with the submitted fix?
sorry, added