Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 365627 - net-print/cups-1.4.6-r1 fails in setup phase
Summary: net-print/cups-1.4.6-r1 fails in setup phase
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
: 365699 (view as bug list)
Depends on:
Blocks: cups-1.4-usb
  Show dependency tree
 
Reported: 2011-05-01 20:24 UTC by Ingo Brunberg
Modified: 2012-01-25 02:32 UTC (History)
4 users (show)

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


Attachments
cups-1.4.6-r1 build log (build.log,1.04 KB, text/plain)
2011-05-01 21:24 UTC, Philip Kovacs
Details
one possible fix (cups.patch,611 bytes, patch)
2011-05-02 22:31 UTC, Andreas Wiese
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ingo Brunberg 2011-05-01 20:24:49 UTC
cups-1.4.6-r1 fails to build when the usblp module is detected.

A stupid decision, IMHO. I chose Gentoo because it let's me do what I think is right. In this case I have good reasons for still using usblp besides libusb. A warning would be absolutely sufficient.

Reproducible: Always
Comment 1 tman 2011-05-01 20:58:49 UTC
i can confirm this check and fail too.

i had to recompile my kernel. idk if its really recommend
Comment 2 Philip Kovacs 2011-05-01 21:24:36 UTC
Created attachment 271807 [details]
cups-1.4.6-r1 build log
Comment 3 Philip Kovacs 2011-05-01 21:26:06 UTC
 emerge --info
Portage 2.1.9.46 (default/linux/x86/10.0/desktop, gcc-4.5.2, libc-0-r0, 2.6.38-gentoo-r3 i686)
=================================================================
System uname: Linux-2.6.38-gentoo-r3-i686-Intel-R-_Pentium-R-_4_CPU_2.40GHz-with-gentoo-1.12.14
Timestamp of tree: Sun, 01 May 2011 18:15:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1-r1, 3.1.3-r1
dev-util/cmake:      2.8.4-r1
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.5.2
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.81-r2
sys-kernel/linux-headers: 2.6.36.1
sys-libs/glibc:      2.11.3
virtual/os-headers:  0
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gc                                                onf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=native -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned                                                 sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.mirrors.pair.com/ http://distfiles.gento                                                o.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --d                                                elete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups                                                 cxx dbus dri dts dvd dvdr emboss encode exif fbcon firefox flac gdu gif gpm gtk iconv imlib jpeg lcms l                                                ibnotify mad mikmod mmx mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp oss                                                 pango pcre pdf perl png policykit ppds pppd python qt3support readline sdl session slang spell sse sse2                                                 ssl startup-notification svg sysfs tcpd tiff truetype udev unicode usb v4l vorbis x264 x86 xcb xcomposi                                                te xml xml2 xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cm                                                ipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident                                                 usb-audio via82xx via82xx-modem ymfpci" 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 s                                                hare shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_defau                                                lt 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 inc                                                lude info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_                                                id userdir usertrack vhost_alias" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool                                                 swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclo                                                ck itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timin                                                g tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk h                                                d44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18"                                                 USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ip                                                p2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos accoun                                                t"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS,                                                 PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Andreas Wiese 2011-05-02 22:29:03 UTC
*** Bug 365699 has been marked as a duplicate of this bug. ***
Comment 5 Andreas Wiese 2011-05-02 22:31:39 UTC
Created attachment 271927 [details, diff]
one possible fix

This would fix the issue.
Comment 6 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-05-03 08:35:18 UTC
cups should fail in pkg_pretend() and not pkg_setup() after bug 365543 is fixed.
Comment 7 Andreas Wiese 2011-05-03 13:59:34 UTC
Maybe we could agree on »should warn in …« instead of »should fail in …«?  This would be so much less annoying…
Comment 8 Tomáš Chvátal (RETIRED) gentoo-dev 2011-05-08 14:09:57 UTC
(In reply to comment #7)
> Maybe we could agree on »should warn in …« instead of »should fail in …«?  This
> would be so much less annoying…

It can warn, but for most users the printing WON'T work. And then they will open yet another round of bugs about "I can't print". Which is more annoying than forcing users to use working setup.
Comment 9 Ingo Brunberg 2011-05-09 10:59:07 UTC
It's my decision, how I compile my kernel, not yours. If I ignore the warning, it's my fault. But if a package maintainer thinks, he needs to let the build fail, although it would compile and work (if handled correctly) just fine, I will keep blaiming that maintainer.
Comment 10 Andreas Wiese 2011-05-09 11:27:25 UTC
Full ACK.  What about a USE=doofus (you could name it what you want… USE=expert for all I care) on all .config-depending ebuilds and enabling/disabling it by default?  And with USE=-doofus or USE=expert the ebuild shouldn't give a hang about my .config.
Comment 11 Mitch Harder 2011-05-10 16:23:36 UTC
There are patches out there that supposedly address the issue of incompatibility between libusb and kernel usb.

http://www.cups.org/str.php?L3357

The discussion in this thread claims Ubuntu and Debian are already incorporating versions of this patch.

I checked the Ubuntu diff file (cups_1.4.6-5ubuntu1.diff) for cups in Natty, and it does appear to contain a version of the patch (the diff file is an integrated patch, so I didn't research which version, other than to confirm it was there).
Comment 12 Artem Savkov 2011-05-22 09:27:19 UTC
Printers wich use foo2zjs still need usblp to upload firmware, so maybe the ebuild can fail when usblp is compiled into kernel, and warn if it is compiled as module.
Comment 13 Andreas K. Hüttel archtester gentoo-dev 2012-01-24 23:19:40 UTC
This bug is long obsolete, as the ebuild does not abort anymore (only warn aggressively).
Comment 14 Andreas Wiese 2012-01-25 02:32:04 UTC
Thank you!