Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 296082 - [gnome-overlay] app-misc/tracker ebuild should not depend on CONFIG_INOTIFY
Summary: [gnome-overlay] app-misc/tracker ebuild should not depend on CONFIG_INOTIFY
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-07 14:55 UTC by Florian Scandella
Modified: 2009-12-09 22:08 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Scandella 2009-12-07 14:55:14 UTC
please just check CONFIG_INOTIFY_USER .. from linux 2.6.32 makefile:

CONFIG_INOTIFY: Say Y here to enable legacy in kernel inotify support. Inotify is a file change notification system.  It is a replacement for dnotify. This option only provides the legacy inotify in kernel API.  There are no in tree kernel users of this interface since it is deprecated. You only need this if you are loading an out of tree kernel module that uses inotify.



Reproducible: Always
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-12-07 16:22:32 UTC
Please describe why ? Afaik, tracker-0.7 does not need this anymore as it is handled by glib/gio.
Comment 2 Florian Scandella 2009-12-07 23:06:04 UTC
maybe it does not need it, although it's used indirectly through gio and my guess is tracker is not usable without inotify.
anyway, my point was that checking for CONFIG_INOTIFY (as the ebuild does now) is wrong. 
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-12-07 23:13:08 UTC
Without a more detailed explanation, I'll stick to what the source says:
$ egrep "include.*inotify.h" * -r
src/libtracker-miner/tracker-monitor.c:#include <sys/inotify.h>
[and more...]
Comment 4 Florian Scandella 2009-12-07 23:21:43 UTC
did you even read my report? it has nothing to do with tracker using inotify or not.
it's about CONFIG_INOTIFY vs. CONFIG_INOTIFY_USER, where the first one is only used by kernel modules (or not anymore, it's deprecated).
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-12-07 23:28:12 UTC
erm sorry I'm a bit sleepy, what is the request about ? Should we change the check, remove it ?
Comment 6 Florian Scandella 2009-12-07 23:47:47 UTC
this is what i propose:

diff --git a/app-misc/tracker/tracker-0.7.10.ebuild b/app-misc/tracker/tracker-0.7.10.ebuild
index 0f40e6a..55eddac 100644
--- a/app-misc/tracker/tracker-0.7.10.ebuild
+++ b/app-misc/tracker/tracker-0.7.10.ebuild
@@ -85,7 +85,7 @@ function notify_inotify() {
 }
 
 function inotify_enabled() {
-       linux_chkconfig_present INOTIFY && linux_chkconfig_present INOTIFY_USER
+       linux_chkconfig_present INOTIFY_USER
 }
 
 pkg_setup() {
Comment 7 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-12-08 00:00:13 UTC
so if I understand this right, we now ignore invalid setups for older kernels, right ?
Comment 8 Florian Scandella 2009-12-08 00:16:29 UTC
CONFIG_INOTIFY_USER is available since 2.6.18 (http://cateee.net/lkddb/web-lkddb/INOTIFY_USER.html) and earlier kernels depended on CONFIG_INOTIFY. so you could not have CONFIG_INOTIFY_USER enabled an not CONFIG_INOTIFY. i see no problems here.
Comment 9 Florian Scandella 2009-12-08 00:20:46 UTC
FYI, just found bug #283763, udev had the same problem. 
Comment 10 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-12-09 22:08:17 UTC
Fixed in overlay. Thanks for reporting.
Comment 11 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-12-09 22:08:53 UTC
Fixed in overlay. Thanks for reporting.