Bug 130871 - emerge of hplip-0.9.7-r3 fails when USE=-cups is set
Bug#: 130871 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: printing@gentoo.org Reported By: martinsw@linux-net.dnsalias.net
Component: Printing
URL: 
Summary: emerge of hplip-0.9.7-r3 fails when USE=-cups is set
Keywords:  
Status Whiteboard: 
Opened: 2006-04-22 11:37 0000
Description:   Opened: 2006-04-22 11:37 0000
# emerge --info
Portage 2.0.54 (default-linux/x86/no-nptl/2.4, gcc-3.3.6, glibc-2.3.5-r2,
2.4.32-it4linux i686)
=================================================================
System uname: 2.4.32-it4linux i686 AMD Duron(tm)
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.10
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.4.30-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -mcpu=athlon-tbird -march=athlon -fomit-frame-pointer -ffast-math
-pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -mcpu=athlon-tbird -march=athlon -fomit-frame-pointer -ffast-math
-pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://funtaskic.informatik.uni-bremen.de/ftp/gentoo/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/etc/portage/overlay"
SYNC="rsync://rsync.linux-net.dnsalias.net/gentoo-portage/"
USE="3dnowex 3dnowext 3dnox X acl acpi alsa apm arts audiofile avi berkdb
bitmap-fonts bzip2 bzlib cdr crypt curl dri dts eds emboss encode esd exif
expat fam ffmpeg flac foomaticdb fortran gd gdbm gif glut gmp gnome gstreamer
gtk gtk2 gtkhtml guile idn imagemagick imlib jack java jpeg kde lcms ldap
libg++ libwww mad mhash mikmod ming mmx mmx2 mmxext mng motif mozilla mp3 mpeg
mysql ncurses nls ogg opengl oss pam pcre pda pdflib perl png python qt
quicktime readline ruby samba scanner sdl spell sqlite ssl tcltk tcpd tetex
tiff truetype truetype-fonts type1-fonts udev usb vorbis wmf x86 xml xml2 xmms
xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS

------- Comment #1 From Martin 2006-04-22 11:40:30 0000 -------
when emerging hplip the configure process fails when checking for cups-devel
as defined by the USE-Flags it should not check for cups, becaus it is NOT
installed 

output from emerge/configure:

[...]
checking for i686-pc-linux-gnu-install_initd... no
checking for install_initd... no
checking for pthread_create in -lpthread... yes
checking for CRYPTO_free in -lcrypto... yes
checking for snmp_timeout in -lnetsnmp... no
checking for ANSI C header files... (cached) yes
checking cups/cups.h usability... no
checking cups/cups.h presence... no
checking for cups/cups.h... no
configure: error: cannot find cups-devel support

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/hplip-0.9.7-r3/work/hplip-0.9.7/config.log

!!! ERROR: net-print/hplip-0.9.7-r3 failed.
!!! Function econf, Line 495, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.

------- Comment #2 From Martin 2006-04-22 11:43:17 0000 -------
this bug also affects hplip-0.9.8-r2

install of hpijs works fine 

------- Comment #3 From Jakub Moc (RETIRED) 2006-04-22 12:12:14 0000 -------
bug-wranglers@gentoo.org

------- Comment #4 From Marcelo Goes 2006-04-22 18:25:09 0000 -------
Indeed so. This affects all versions of hplip in the tree.
My proposed solution is to make hplip hard depend on cups. Objections?

------- Comment #5 From Stefan Schweizer 2006-04-23 02:04:50 0000 -------
If you can find no other way to build it w/o cups that is ok.

I would make cups harddep now and if somone comes up with a solution it can
still be changed. hplip deps are broken currently and need to be fixed asap.

------- Comment #6 From Marcelo Goes 2006-04-23 10:10:40 0000 -------
Done, cups is now a hard dependency. If anyone has a better fix, please make
sure to let us know.

Thanks for reporting!