Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 169230 - net-print/foomatic-filters does not compile when USE="-cups" but net-print/cups is installed
Summary: net-print/foomatic-filters does not compile when USE="-cups" but net-print/cu...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-04 03:06 UTC by Cornelius Weig
Modified: 2007-04-07 12:17 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for foomatic-filters-3.0.20060720.ebuild (foomatic-filters.diff,510 bytes, patch)
2007-03-04 03:09 UTC, Cornelius Weig
Details | Diff
emerge --info (emerge-info,3.08 KB, text/plain)
2007-03-04 16:57 UTC, Cornelius Weig
Details
build.log for foomatic-filters (build.log,2.23 KB, text/plain)
2007-03-05 02:03 UTC, Cornelius Weig
Details
config.log for foomatic-filters (config.log,4.66 KB, text/plain)
2007-03-05 02:07 UTC, Cornelius Weig
Details
David's config.log (config.log,4.60 KB, text/plain)
2007-03-06 15:55 UTC, David Barnett
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cornelius Weig 2007-03-04 03:06:34 UTC
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
Comment 1 Cornelius Weig 2007-03-04 03:09:20 UTC
Created attachment 112011 [details, diff]
patch for foomatic-filters-3.0.20060720.ebuild
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-03-04 08:02:50 UTC
Comment on attachment 112011 [details, diff]
patch for foomatic-filters-3.0.20060720.ebuild

This doesn't fix absolutely anything.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-03-04 08:04:27 UTC
Reopen with some compile errors... 
Comment 4 Cornelius Weig 2007-03-04 16:56:01 UTC
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
Comment 5 Cornelius Weig 2007-03-04 16:57:34 UTC
Created attachment 112079 [details]
emerge --info
Comment 6 Cornelius Weig 2007-03-04 17:01:32 UTC
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.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-03-04 17:53:32 UTC
> !!! 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.
Comment 8 Cornelius Weig 2007-03-05 02:03:57 UTC
Created attachment 112131 [details]
build.log for foomatic-filters

sorry..   though it does not contain much more in this case
Comment 9 Cornelius Weig 2007-03-05 02:07:01 UTC
Created attachment 112132 [details]
config.log for foomatic-filters

ähem.. sorry, my first filed bug..
Comment 10 Cornelius Weig 2007-03-05 02:11:36 UTC
requested file added
Comment 11 David Barnett 2007-03-05 17:18:38 UTC
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
Comment 12 Cornelius Weig 2007-03-05 18:12:10 UTC
@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
Comment 13 David Barnett 2007-03-06 15:55:13 UTC
Created attachment 112292 [details]
David's config.log
Comment 14 David Barnett 2007-03-06 15:58:07 UTC
$ 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
Comment 15 David Barnett 2007-03-06 16:02:14 UTC
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".
Comment 16 Stefan Schweizer (RETIRED) gentoo-dev 2007-04-07 12:17:56 UTC
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}"