Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 151261

Summary: kdeprint from kdelibs-3.5.5 times out trying to connect to cupsd
Product: Gentoo Linux Reporter: Jochen Trumpf <Jochen.Trumpf>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED FIXED    
Severity: normal CC: bugs, pva, xmit
Priority: High    
Version: 2006.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch for kdeprint from kdelibs-3.5.5
patch for kdelibs-3.5.5 ebuild

Description Jochen Trumpf 2006-10-14 00:58:52 UTC
Hi,

the timeout is caused by a wrong value (1 instead of 1500) in a function call of m_socket->setTimeout in kdeprint/cups/kmcupsmanager.cpp line 920. The attached patch is copied from KDE WebSVN 3_5_BRANCH. Apparently it went in there after packaging of 3.5.5. I also attach a diff for the ebuild. Using those, my system works like a charm again.

Cheers,
Jochen
Comment 1 Jochen Trumpf 2006-10-14 00:59:59 UTC
Created attachment 99636 [details]
patch for kdeprint from kdelibs-3.5.5
Comment 2 Jochen Trumpf 2006-10-14 01:02:01 UTC
Created attachment 99637 [details]
patch for kdelibs-3.5.5 ebuild
Comment 3 Vasilis Lourdas 2006-10-15 03:29:45 UTC
The patch works here fine.

Portage 2.1.1 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.12.5
Last Sync: Sat, 14 Oct 2006 11:50:01 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.3.5-r2, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict userfetch"
GENTOO_MIRRORS="ftp://ftp.uoi.gr/mirror/OS/gentoo/ ftp://ftp.physics.auth.gr/pub/mirrors/gentoo/ ftp://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.tds.net/gentoo ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://mirror.bih.net.ba/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ "
LINGUAS="en"
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 /usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac acl acpi alsa apache2 arts artswrappersuid asf bash-completion berkdb bitmap-fonts bluetooth branding bzip2 bzlib cairo caps cdr chm cli crypt css ctype cups curl dba dbus dlloader dmi doc dri dts dvd dvdr dvdread effects elibc_glibc emboss encode esd examples exif expat fam fbcon ffmpeg firefox flac flatfile foomaticdb fortran ftp gd gdbm gif gimp gimpprint glx gmp gnome gnomedb gnutls gphoto2 gpm gstreamer gtk hal hddtemp howl iconv imagemagick imap imlib innodb input_devices_keyboard input_devices_mouse isdnlog jabber java javascript jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kernel_linux lcms ldap libg++ libsamplerate libwww linguas_en lm_sensors mad maildir mailwrapper mhash mikmod mime mmx mmxext motif mozdevelop mozilla mozsvg mp3 mpeg mplayer mpm-worker multiuser mysql mysqli ncurses nls no-old-linux nodrm nomalloccheck nptl nptlonly nsplugin nvidia objc odbc offensive ogg opengl pam pcntl pcre pdf pear perl php pic plugin png posix postgres postgresi ppds pppd python qt3 qt4 quicktime rar rdesktop readline recode reflection ruby sasl scanner sdl server session slang sndfile soap sockets speex spell spl spreadsheet sqlite sse ssl subtitles subversion svga symlink tcltk tcpd tetex threads tidy tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales utf8 vda video_cards_nvidia visualization vorbis win32codecs wmf wv wxgtk1 xine xml xmlreader xmlrpc xmlwriter xorg xpm xprint xscreensaver xsl xv xvid xvmc zip zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Matteo Azzali (RETIRED) gentoo-dev 2006-10-15 03:47:29 UTC
*** Bug 151433 has been marked as a duplicate of this bug. ***
Comment 5 Peter Volkov (RETIRED) gentoo-dev 2006-10-15 05:08:52 UTC
This patched fixed the problem for me too.
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-10-15 05:22:27 UTC
Will take care now.
Comment 7 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-10-15 08:09:34 UTC
Fixed in 3.5.5-r1.
Comment 8 Ioannis Aslanidis (RETIRED) gentoo-dev 2006-10-15 12:27:00 UTC
*** Bug 151492 has been marked as a duplicate of this bug. ***
Comment 9 Ioannis Aslanidis (RETIRED) gentoo-dev 2006-10-15 14:15:50 UTC
*** Bug 151506 has been marked as a duplicate of this bug. ***
Comment 10 Flavio 2007-02-28 14:52:42 UTC
(In reply to comment #1)
> Created an attachment (id=99636) [edit]
> patch for kdeprint from kdelibs-3.5.5

(In reply to comment #2)
> Created an attachment (id=99637) [edit]
> patch for kdelibs-3.5.5 ebuild
> 

Please, can you tell us, how to apply that patch?
I can't find the kmcupsmanager.cpp file.

I still have this problem on kde-base/kdeprint-3.5.5. 
I'm not be able to apply that patches. Should I apply both of them?

Thanks, 

Flavio.
Comment 11 Vasilis Lourdas 2007-02-28 18:19:45 UTC
(In reply to comment #10)
> Please, can you tell us, how to apply that patch?
> I can't find the kmcupsmanager.cpp file.
> 
> I still have this problem on kde-base/kdeprint-3.5.5. 
> I'm not be able to apply that patches. Should I apply both of them?

Hi,

This has already been fixed in kdelibs-3.5.5-r1 in mid-Oct 2006 (now the latest stable version in portage is kdelibs-3.5.5-r8. Just emerge sync and it will be ok.