When disabling the cups USE flag while cups is still installed, the emerge of foomatic-filters fails. This is because the Makefile is not properly configured for cups, when cups is installed, but the cups-USE flag is not set (configure wants texttops but can't find it). An additional check for the cups-USE fixes the problem (see patch). Reproducible: Always Steps to Reproduce: 1. install cups 2. disable cups USE-flag 3. (re)install foomatic-filter Actual Results: the ebuild aborts Expected Results: foomatic installed
Created attachment 112011 [details, diff] patch for foomatic-filters-3.0.20060720.ebuild
Comment on attachment 112011 [details, diff] patch for foomatic-filters-3.0.20060720.ebuild This doesn't fix absolutely anything.
Reopen with some compile errors...
Here are the compile errors: ... checking for mpage... no checking for texttops... no file-converter: configure: error: cannot find a2ps, enscript, mpage, or CUPS' texttops. You need to have at least one installed !!! Please attach the following file when filing a report to bugs.gentoo.org: !!! /var/tmp/portage/net-print/foomatic-filters-3.0.20060720/work/foomatic-filters-3.0-20060720/config.log !!! ERROR: net-print/foomatic-filters-3.0.20060720 failed. Call stack: ebuild.sh, line 1614: Called dyn_compile ebuild.sh, line 971: Called qa_call 'src_compile' environment, line 3677: Called src_compile foomatic-filters-3.0.20060720.ebuild, line 50: Called econf ebuild.sh, line 577: Called die
Created attachment 112079 [details] emerge --info
I think, that the additional check does fix the problem. Because if USE-cups is deactivated, the user does obviously not want programs to be built against it, which is what the patch does. Building foomatic-filters against cups despite USE="-cups" would silently override the USE-flag.
> !!! Please attach the following file when filing a report to bugs.gentoo.org: > /var/tmp/portage/net-print/foomatic-filters-3.0.20060720/work/foomatic-filters-3.0-20060720/config.log Please, do it, the message is there for a reason.
Created attachment 112131 [details] build.log for foomatic-filters sorry.. though it does not contain much more in this case
Created attachment 112132 [details] config.log for foomatic-filters ähem.. sorry, my first filed bug..
requested file added
I get the same error and have CUPS installed and USE="cups". foomatic-filters says it can't find CUPS TEXTTOPS. Maybe this should be a separate bug since the issue here is disabling checks for CUPS when USE="-cups", whereas my issue is that the checks themselves don't seem to work right. cups-1.2.6 foomatic-filters-3.0.20060720 /usr/libexec/cups/filter/texttops
@david: you might also want to add your /var/tmp/portage/net-print/foomatic-filters-3.0.20060720/work/foomatic-filters-3.0-20060720/config.log and emerge --info
Created attachment 112292 [details] David's config.log
$ emerge --info Portage 2.1.2-r9 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo-r6 i686) ================================================================= System uname: 2.6.18-gentoo-r6 i686 Celeron (Mendocino) Gentoo Base System release 1.12.9 Timestamp of tree: Mon, 05 Mar 2007 21:00:03 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.4 [enabled] dev-lang/python: 2.3.5-r3, 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r6 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.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=i686 -O2" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=i686 -O2" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distcc distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LINGUAS="en" MAKEOPTS="-j3" 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" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa bash-completion berkdb bitmap-fonts bzip2 cairo cdr cli cracklib crypt dbus dri dvd dvdr emboss encode fam fortran gdbm gif gpm gstreamer gtk hal iconv isdnlog jpeg ldap libg++ midi mp3 mpeg ncurses nls nptl nptlonly ogg opengl pam pcre perl png ppds pppd python quicktime readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts unicode win32codecs x86 xml xorg xv zlib" ALSA_CARDS="emu10k1" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="mach64 vesa vga" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Sorry about the formatting on the emerge --info...looks like Links does pasting weird. I don't know if it's related, but foomatic-filters tried to install as a dependency when I did "emerge -va1 tiff cups" and now I can't find anything that depends or PDEPENDs on it. I even tried "emerge -vpet tiff cups".
thank you, I fixed this properly: Index: foomatic-filters-3.0.20060720.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/net-print/foomatic-filters/foomatic-filters-3.0.20060720.ebuild,v retrieving revision 1.15 diff -u -b -B -r1.15 foomatic-filters-3.0.20060720.ebuild --- foomatic-filters-3.0.20060720.ebuild 19 Feb 2007 21:37:57 -0000 1.15 +++ foomatic-filters-3.0.20060720.ebuild 7 Apr 2007 12:16:23 -0000 @@ -16,13 +16,14 @@ IUSE="cups" RDEPEND="cups? ( >=net-print/cups-1.1.19 ) - dev-lang/perl + !cups? ( || ( app-text/enscript - net-print/cups app-text/a2ps app-text/mpage ) + ) + dev-lang/perl virtual/ghostscript" DEPEND="${RDEPEND}"