This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Amarok and inotify [gentoo specific]

Tags: None
(comma "," separated)
radfoj
Registered Member
Posts
20
Karma
0
Hi,

since I realized that amarok in svn is inotify-supported, I decided to give a try while I have inotify-enabled kernel for some time.

So I set amarok to watch changes in folders and tried copy two times some song to "watched folders". But what surprised me, that it takes several seconds (10 - 20) till this songs appear in amarok collection. Same after I deleted this songs from Krusader ... they stayed in amarok collection after that for several seconds (+-20). From what I know about inotify, it should appear immediatelly. I played with beagle some time ago, and it gives results instantly.

Strange, something is wrong in my opinion. So I tried than watch to output of configure and here we go:

checking linux/inotify.h usability? no
checking linux/inotify.h presence? no
checking for linux/inotify.h? no

Doesnt look well, does it? Is the file missing or what? Doesnt seem so:

$ locate linux/inotify.h
/usr/src/linux-2.6.16-ck9/include/linux/inotify.h

Is my symlink allright? Seems so:

$ ls -l /usr/src/linux
lrwxrwxrwx 1 root root 16 2006-05-06 04:43 /usr/src/linux -> linux-2.6.16-ck9

So where is the problem, what else should I check?

Finally, few questions I have in my mind:

- With inotify, should amarok show new added song immediatelly?
- Is it due NO passed in configure? How does it goes there in your case?
- Is there anything special to pass to configure to inotify.h will be found? Or is it distribution specific?
- Or is problem somwhere in svn amarok code, or not yet finished?

Here are some additional infos about my box:

Portage 2.1 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.3.6-r3, 2.6.16-ck9 i686)
=================================================================
System uname: 2.6.16-ck9 i686 AMD Athlon(tm) processor
Gentoo Base System version 1.12.1

amarok-svn ebuild

$ grep -i inotify /usr/src/linux/.config
CONFIG_INOTIFY=y

Thanks for your attention.

Last edited by radfoj on Wed Jun 14, 2006 5:42 am, edited 1 time in total.
User avatar
dangle_wtf
Moderator
Posts
1252
Karma
0

Re: Amarok and inotify

Tue Jun 13, 2006 11:53 pm
you'll need to update sys-kernel/linux-headers to at least 2.6.13... and since that version's not in portage, 2.6.16 is the one you'll need.


"There are two theories to arguing with women. Neither one works."
.
If men could get pregnant, we'd learn the true meaning of "screaming nancyboy wuss"
radfoj
Registered Member
Posts
20
Karma
0

Re: Amarok and inotify

Wed Jun 14, 2006 5:26 am
Thanks you, dangle, you are right.

I tried to update to sys-kernel/linux-headers-2.6.16 and now:

$ locate linux/inotify.h
/usr/include/linux/inotify.h
/usr/src/linux-2.6.16-ck9/include/linux/inotify.h

Then amarok configure changes  :biggrin:

checking linux/inotify.h usability... yes
checking linux/inotify.h presence... yes
checking for linux/inotify.h... yes

and finally, collection in amarok is instantly changed after adding or deleting songs from filesystem.  :wink:

But becouse  sys-kernel/linux-headers-2.6.16 is keyworded only this like:

KEYWORDS="-* ~amd64 ~ppc64"

i downgraded back to linux-headers-2.6.11-r2 and will wait till somebody look on it and keyword it for x86 or mark this stable. I believe, that some progress will be done for 1.4.1 amarok release, which is knocking on the door. I mean progress on gentoo side to support inotify - probably Flameeyes ? :biggrin:

Last edited by radfoj on Wed Jun 14, 2006 5:28 am, edited 1 time in total.
User avatar
dangle_wtf
Moderator
Posts
1252
Karma
0
You might also be able to symlink the existing inotify.h to
/usr/include/linux/inotify.h

The file is also provided by klibc, so you will probably already have one *somewhere*.
Here, it's /usr/lib/klibc/include/linux/inotify.h

It's a dirty hack until linux-headers-2.6.16 is stable, although I'm using it from ~x86 with no probs.


"There are two theories to arguing with women. Neither one works."
.
If men could get pregnant, we'd learn the true meaning of "screaming nancyboy wuss"


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]