Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79029 - knotify (system notifications, sounds) break with -arts use flag, even if not using arts sound server.
Summary: knotify (system notifications, sounds) break with -arts use flag, even if not...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-21 18:35 UTC by Dave Massey
Modified: 2006-10-18 21:59 UTC (History)
0 users

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


Attachments
Patch for make knotify compile with -arts USE flag (knotify_no_arts.patch,6.88 KB, patch)
2005-06-07 07:04 UTC, Francesco
Details | Diff
Edited ebuild to use kdelibs patch (kdelibs-3.4.0-r2.ebuild,3.25 KB, text/plain)
2005-06-07 07:06 UTC, Francesco
Details
This works (knotify_no_arts.patch,6.68 KB, patch)
2005-06-08 04:25 UTC, Francesco
Details | Diff
New ebuild to make in arts/knotify (kdelibs-3.4.0-r2.ebuild,3.34 KB, text/plain)
2005-06-08 04:34 UTC, Francesco
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Massey 2005-01-21 18:35:44 UTC
Compiling kdebase, kdelibs, and kdemultimedia with USE flag "-arts" breaks system notifications (knotify), even if you are not using the arts sound server, after lots of frustration and on 2 different architectures x86 and amd64, I determined this.  Not sure of cause, fix is to compile these 3 ebuilds with +arts, even if you are not going to use the sound server.    

Most noticable problem is entering in an external player for sound notifications, and sound still doesnt play. 

Reproducible: Always
Steps to Reproduce:
1. 
2.
3.
Comment 1 Dave Massey 2005-01-21 18:44:15 UTC
KDE 3.3.2  

Portage 2.0.51-r14 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.10-gentoo-r2 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jan 21 2005, 00:14:09)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.9.4, 1.8.5-r2, 1.5, 1.6.3, 1.7.9, 1.4_p6
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mirror.datapipe.net/gentoo http://mirrors.tds.net/gentoo ftp://mir.zyrianes.net/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 acpi alsa artswrappersuid avi berkdb bitmap-fonts cddb cdinstall cdparanoia cdr cdrom chroot crypt cups divx4linux dvd dvdr dvdread emul-linux-x86 encode f77 fam ffmpeg flac font-server fortran gif gimp gimpprint gpm gtk gtk2 icq imagemagick imlib java jp2 jpeg kde lzw lzw-tiff mad mjpeg motif mozilla mp3 mpeg mpeg4 mplayer msn multilib ncurses nls nptl nvidia oggvorbis opengl oss pam perl png python qt readline samba sdl ssl tcpd tiff transcode truetype truetype-fonts type1-fonts usb userlocales v4l v4l2 xine xinerama xml2 xmms xpm xrandr xscreensaver xv zlib"
Unset:  LDFLAGS, PORTDIR_OVERLAY
Comment 2 Simone Gotti (RETIRED) gentoo-dev 2005-01-24 03:30:42 UTC
Have you tried removing $HOME/.kde/share/config/knotifyrc. (it's also reported in bug #78551)
Comment 3 Dave Massey 2005-01-24 04:44:20 UTC
Yes I did, no effect.
Comment 4 Rohan McGovern 2005-01-26 01:20:07 UTC
I'd like to confirm that I am seeing the same bug.  The only significant difference between my system and Dave's is that I am using gcc-3.3.5-r1.
Comment 5 Simone Gotti (RETIRED) gentoo-dev 2005-01-26 02:14:13 UTC
Does it worked with previous versions of kde?
What external player are you using?

I think you should collect for infos and report it upstream at bugs.kde.org.
Comment 6 Rohan McGovern 2005-01-26 16:34:22 UTC
Agreed, I am also thinking this is in fact an upstream problem.  I just discovered that amaroK also has serious problems if compiled with -arts.  Looks like KDE developers are used to assuming that everyone has Arts installed :-)

(by the way, the 'breakage' of knotify is not just restricted to sound notifications.  I don't even use knotify for sound notifications, I noticed the breakage because the knotify object disappears from DCOP, which sure as heck should not be caused by not building Arts support.)
Comment 7 Gregorio Guidi (RETIRED) gentoo-dev 2005-01-30 06:59:33 UTC
> I noticed the breakage because the knotify object disappears from DCOP, 
> which sure as heck should not be caused by not building Arts support.

Indeed this seems to be the problem. knotify resides in the arts/ subdirectory
of kdelibs, which is not compiled with --without-arts, even if it works with
an external player.

This should be reported at bugs.kde.org
Comment 8 Dave Massey 2005-02-13 12:59:42 UTC
http://bugs.kde.org/show_bug.cgi?id=99246
Comment 9 Francesco 2005-06-07 07:04:52 UTC
Created attachment 60770 [details, diff]
Patch for make knotify compile with -arts USE flag

I found a patch online (google is magic!) and edited ebuild to use it. I'm
compiling right now, in the meanwhile I post it online so you can test it too!
Comment 10 Francesco 2005-06-07 07:06:08 UTC
Created attachment 60771 [details]
Edited ebuild to use kdelibs patch
Comment 11 Francesco 2005-06-08 04:25:29 UTC
Created attachment 60831 [details, diff]
This works

I had problems with the other patch, as de ifndef didn't work. Now I got
compiling correctly knotify by hand. Don't know if the ebuild does it. Maybe!
Comment 12 Francesco 2005-06-08 04:33:38 UTC
Well ebuld doesn't work because it launches the Makefile in kdelibs dir and with
-arts it doesn't go into arts/knotify dir.
I had to go into arts/knotify by hand and give make and make install. It worked
and now I have system sounds in kde without arts!

Now we have to work on the ebuild to make it work! I made a new edit work to it
but absolutely don't know if it can do what we need. I post it and let you test.
Comment 13 Francesco 2005-06-08 04:34:28 UTC
Created attachment 60832 [details]
New ebuild to make in arts/knotify

Don't know if it works! I hope!
Comment 14 Gregorio Guidi (RETIRED) gentoo-dev 2005-06-08 05:22:50 UTC
(In reply to comment #12)  
> Well ebuld doesn't work because it launches the Makefile in kdelibs dir and  
with  
> -arts it doesn't go into arts/knotify dir.  
> I had to go into arts/knotify by hand and give make and make install. It  
worked  
  
You just need to patch arts/configure.in.in and arts/Makefile.am too. There's 
no point searching for a Gentoo specific solution when this can be addresses 
in the KDE source. 
 
Comment 15 Francesco 2005-07-02 05:31:43 UTC
You're right but I was looking for a hack to solve the problem without spending
a week trying to understand code I didn't write and obviously I don't know.
I got that solution that works so we can use it, I think.
Kdelibs isn't the only one ebuild doesn't compile correcly with -arts. There's a
lot of work to do on all these ebuild.
Comment 16 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-10-18 21:58:53 UTC
Let's reopen this.
Comment 17 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-10-18 21:59:59 UTC
Aaaaaand now fixed in kdelibs-3.5.5-r3.
Enjoy!