Bug 179905 - kde-base/klaptopdaemon-3.5.7 missing symbols from libXss (libXScrnSaver)
Bug#: 179905 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: minor Priority: P2
Resolution: FIXED Assigned To: kde@gentoo.org Reported By: l.mierzwa@gmail.com
Component: KDE
URL:  http://bugs.kde.org/show_bug.cgi?id=145773
Summary: kde-base/klaptopdaemon-3.5.7 missing symbols from libXss (libXScrnSaver)
Keywords:  
Status Whiteboard: 
Opened: 2007-05-26 17:54 0000
Description:   Opened: 2007-05-26 17:54 0000
After upgrading to kde-3.5.7 (still masked) my klaptopdaemon tray icon don't
load, after checking my .xsession-errors show:

kded: WARNING: [KDEDModule* Kded::loadModule(const KService*, bool)] Could not
load library. [ Brak plików biblioteki dla "libkded_klaptopdaemon.la" w
ścieżce. ] (missing file)
kded: WARNING: [KDEDModule* Kded::loadModule(const KService*, bool)] Could not
load library. [ /usr/kde/3.5/lib/kde3/kded_klaptopdaemon.so: undefined symbol:
XScreenSaverQueryExtension ]

First I have rebuild klaptopdaemon but this did not helped so I disabled
xscreensaver in klaptopdaemon by adding those lines to its ebuild:

src_compile() {
        local myconf="--without-xscreensaver"
        kde-meta_src_compile
}

before that during klaptopdaemon emerge configure was finding xscreensaver
checks to be ok.

after that my klaptopdaeom tray icon started to work.

My emerge --info:

Portage 2.1.2.7 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r2,
2.6.21-gentoo-r2 i686)
=================================================================
System uname: 2.6.21-gentoo-r2 i686 AMD Turion(tm) 64 Mobile Technology ML-34
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 26 May 2007 10:30:09 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
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.17.50.0.15
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.20-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon64 -msse3 -fomit-frame-pointer"
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/revdep-rebuild
/etc/splash /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=athlon64 -msse3"
DISTDIR="/home/distfiles"
FEATURES="ccache distlocks fixpackages metadata-transfer noinfo sandbox
sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="pl_PL.UTF-8"
LC_ALL="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu"
LINGUAS="pl"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--progress"
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
--filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/xeffects
/usr/portage/local/layman/sunrise /usr/local/overlays/kadu
/usr/local/overlays/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="16bit 3dnow 3dnowext X a52 aac acct acl acpi addbookmarks additions aiglx
alias alsa amr arts asf autoreplace bash-completion berkdb beryl bzip2 cairo
cddb cdr cli connectionstatus contactnotes cracklib crypt css cups dbus dri dvd
dvdnav dvdr dvdread emboss emerald emoticons encode evo exif extras fam
fbsplash ffmpeg fftw fontconfig fuse gadu gdbm gif glib glibc-omitfp glitz glut
gnutls gpg2-experimental gphoto2 gtk hal hashstyle highlight history icons
iconv irda isdnlog jingle jpeg kde kdeenablefinal kdehiddenvisibility keyring
kipi kqemu ldap libg++ libnotify mad mikmod mjpeg mmap mmx mmxext mng mp2 mp3
mp4 mpeg mplayer mudflap musepack musicbrainz ncurses network nls nowlistening
nptl nptlonly nsplugin ntfs ogg opengl openmp oss pam pch pcre pdf perl
perlsuid pertty png profile python qt-copy qt3 qt3support qt4 quicktime rar
rdesktop readline real reflection reiserfs risky rtc samba sametime sasl sdl
session slang sms sndfile sounds spell spl srt sse sse2 ssl statistics
subtitles subversion svg symlink sysfs tcpd texteffect theora translator
truetype truetype-fonts type1-fonts unicode urandom usb utempter vcd vditool
visualization vorbis webpresence win32codecs x264 x86 xattr xcomposite xine xml
xorg xv xvid zlib" ALSA_CARDS="atiixp" 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" CAMERAS="all canon
ptp2 directory" ELIBC="glibc" INITNG_PLUGINS="also bash_launcher chdir chroot
conflict cpout critical ctrlaltdel daemon_clean debug_commands envparser find
fmon fstat history idleprobe initctl interactive iparser last limit lockfile
logfile netdev netprobe ngc4 ngcs nge pause provide reload renice rlparser
simple_launcher stcmd stdout suid syncron syslog sysreq unneeded usplash
dbus_event service_file" INPUT_DEVICES="mouse keyboard" KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses
text" LINGUAS="pl" USERLAND="GNU" VIDEO_CARDS="none fglrx"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, MAKEOPTS, PORTAGE_COMPRESS,
PORTAGE_COMPRESS_FLAGS

I don't have xscreensaver in my USE flags so maybe we need xscreensaver USE
flag on klaptopdaemon and if it is not set then we need to build klaptopdaeon
with configure --without-xscreensaver just to be sure that it will work?

Reproducible: Always

Steps to Reproduce:
1. emerge kde-3.5.7
2.
3.

------- Comment #1 From Łukasz Mierzwa 2007-05-26 18:02:21 0000 -------
Created an attachment (id=120388) [details]
patch for ebuild to add xscreensaver USE flag

------- Comment #2 From Peter Volkov 2007-05-27 16:02:23 0000 -------
Created an attachment (id=120451) [details]
klaptopdaemon-3.5.7-libXss-linking.patch

Disabling screensaver permanently is not a best solution. This patch fixes the
problem. Upstream developers put check for LIB_XSS but never inserted anything
into Makefile.am.

------- Comment #3 From Peter Volkov 2007-05-27 16:05:51 0000 -------
Created an attachment (id=120454) [details]
klaptopdaemon-3.5.7.ebuild.diff

This is patch for ebuild. Note that revdep-rebuild does not handle this problem
thus version bump is required. Also I think libXSS patch better to put in
kdeutils-3.5-patchset.

------- Comment #4 From Peter Volkov 2007-05-27 16:09:24 0000 -------
Similar solution was reported UPSTREAM. See comment #4 from upstream bug
report.

------- Comment #5 From Peter Volkov 2007-05-27 16:29:16 0000 -------
Created an attachment (id=120458) [details]
klaptopdaemon-3.5.7.ebuild.diff

In previous ebuild patch for ebuild was an error. We should use use_with
instead of use_enable for xscreensaver. Fixed diff attached.

And just two notes. I've tested both with xscreensaver enabled and disabled -
works. I have "-Wl,--as-needed" in LDFLAGS.

------- Comment #6 From Jorge Manuel B. S. Vicetto 2007-05-28 19:20:58 0000 -------
Created an attachment (id=120539) [details]
New klaptopdeamon diff which uses PATCHES instead of src_unpack

This diff to the ebuild uses the PATCHES variable instead of patching directly
in src_unpack.

From the following, it seems we're missing USE flags for xinerama, debug and
arts.

/var/log/portage/kde-base:klaptopdaemon-3.5.7:20070528-185318.log:./configure
--prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib --with-xscreensaver --with-x --enable-mitshm
--without-xinerama --with-qt-dir=/usr/qt/3 --enable-mt
--with-qt-libraries=/usr/qt/3/lib64 --disable-dependency-tracking
--disable-debug --without-debug --disable-final --without-arts
--prefix=/usr/kde/3.5 --mandir=/usr/kde/3.5/share/man
--infodir=/usr/kde/3.5/share/info --datadir=/usr/kde/3.5/share
--sysconfdir=/usr/kde/3.5/etc --enable-libsuffix=64 --libdir=/usr/kde/3.5/lib64
--build=x86_64-pc-linux-gnu

------- Comment #7 From Jorge Manuel B. S. Vicetto 2007-05-28 19:20:59 0000 -------
Created an attachment (id=120540) [details]
New klaptopdeamon diff which uses PATCHES instead of src_unpack

This diff to the ebuild uses the PATCHES variable instead of patching directly
in src_unpack.

From the following, it seems we're missing USE flags for xinerama, debug and
arts.

/var/log/portage/kde-base:klaptopdaemon-3.5.7:20070528-185318.log:./configure
--prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib --with-xscreensaver --with-x --enable-mitshm
--without-xinerama --with-qt-dir=/usr/qt/3 --enable-mt
--with-qt-libraries=/usr/qt/3/lib64 --disable-dependency-tracking
--disable-debug --without-debug --disable-final --without-arts
--prefix=/usr/kde/3.5 --mandir=/usr/kde/3.5/share/man
--infodir=/usr/kde/3.5/share/info --datadir=/usr/kde/3.5/share
--sysconfdir=/usr/kde/3.5/etc --enable-libsuffix=64 --libdir=/usr/kde/3.5/lib64
--build=x86_64-pc-linux-gnu

------- Comment #8 From Wulf Krueger (RETIRED) 2007-05-28 20:08:53 0000 -------
pva, Jorge,  thanks for the patches. Checked in to CVS.

Jorge, do an emerge -pv klaptopdaemon. Then look at kde.eclass. :-)
I've made a tiny change in your patch: Using ${P} is better.

------- Comment #9 From Wulf Krueger (RETIRED) 2007-05-29 16:10:38 0000 -------
*** Bug 180215 has been marked as a duplicate of this bug. ***