Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 179905 - kde-base/klaptopdaemon-3.5.7 missing symbols from libXss (libXScrnSaver)
Summary: kde-base/klaptopdaemon-3.5.7 missing symbols from libXss (libXScrnSaver)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo KDE team
URL: http://bugs.kde.org/show_bug.cgi?id=1...
Whiteboard:
Keywords:
: 180215 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-05-26 17:54 UTC by Łukasz Mierzwa
Modified: 2007-05-29 16:10 UTC (History)
3 users (show)

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


Attachments
patch for ebuild to add xscreensaver USE flag (klaptopdaemon_xscreensaver.patch,640 bytes, patch)
2007-05-26 18:02 UTC, Łukasz Mierzwa
Details | Diff
klaptopdaemon-3.5.7-libXss-linking.patch (klaptopdaemon-3.5.7-libXss-linking.patch,629 bytes, patch)
2007-05-27 16:02 UTC, Peter Volkov (RETIRED)
Details | Diff
klaptopdaemon-3.5.7.ebuild.diff (klaptopdaemon-3.5.7.ebuild.diff,915 bytes, patch)
2007-05-27 16:05 UTC, Peter Volkov (RETIRED)
Details | Diff
klaptopdaemon-3.5.7.ebuild.diff (klaptopdaemon-3.5.7.ebuild.diff,913 bytes, patch)
2007-05-27 16:29 UTC, Peter Volkov (RETIRED)
Details | Diff
New klaptopdeamon diff which uses PATCHES instead of src_unpack (klaptopdaemon-3.5.7.diff,753 bytes, patch)
2007-05-28 19:20 UTC, Jorge Manuel B. S. Vicetto (RETIRED)
Details | Diff
New klaptopdeamon diff which uses PATCHES instead of src_unpack (klaptopdaemon-3.5.7.diff,753 bytes, patch)
2007-05-28 19:20 UTC, Jorge Manuel B. S. Vicetto (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Łukasz Mierzwa 2007-05-26 17:54:09 UTC
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 Łukasz Mierzwa 2007-05-26 18:02:21 UTC
Created attachment 120388 [details, diff]
patch for ebuild to add xscreensaver USE flag
Comment 2 Peter Volkov (RETIRED) gentoo-dev 2007-05-27 16:02:23 UTC
Created attachment 120451 [details, diff]
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 Peter Volkov (RETIRED) gentoo-dev 2007-05-27 16:05:51 UTC
Created attachment 120454 [details, diff]
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 Peter Volkov (RETIRED) gentoo-dev 2007-05-27 16:09:24 UTC
Similar solution was reported UPSTREAM. See comment #4 from upstream bug report.
Comment 5 Peter Volkov (RETIRED) gentoo-dev 2007-05-27 16:29:16 UTC
Created attachment 120458 [details, diff]
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 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2007-05-28 19:20:58 UTC
Created attachment 120539 [details, diff]
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 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2007-05-28 19:20:59 UTC
Created attachment 120540 [details, diff]
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 Wulf Krueger (RETIRED) gentoo-dev 2007-05-28 20:08:53 UTC
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 Wulf Krueger (RETIRED) gentoo-dev 2007-05-29 16:10:38 UTC
*** Bug 180215 has been marked as a duplicate of this bug. ***