[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-redhat-users
Subject: kde-redhat-users digest, Vol 1 #1141 - 2 msgs
From: kde-redhat-users-request () lists ! sourceforge ! net
Date: 2006-03-19 4:13:14
Message-ID: 20060319041402.05C331654E () sc8-sf-spam2 ! sourceforge ! net
[Download RAW message or body]
Send kde-redhat-users mailing list submissions to
kde-redhat-users@lists.sourceforge.net
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/kde-redhat-users
or, via email, send a message with subject or body 'help' to
kde-redhat-users-request@lists.sourceforge.net
You can reach the person managing the list at
kde-redhat-users-admin@lists.sourceforge.net
When replying, please edit your Subject line so it is more specific
than "Re: Contents of kde-redhat-users digest..."
Today's Topics:
1. Re: No keyboard input possible - solved somewhat (John Mallett)
2. Re: kdelibs-3.5.1-2.4.fc4.kde - libfam/gamin disabled (?) (=?utf-8?q?=C3=98yvind_Stegard?=)
[Attachment #4 (multipart/digest)]
--__--__--
Message: 1
From: John Mallett <jmallett@kol.co.nz>
To: kde-redhat-users@lists.sourceforge.net
Subject: Re: [kde-redhat-users] No keyboard input possible - solved somewhat
Date: Sat, 18 Mar 2006 23:21:45 +1300
User-Agent: KMail/1.9.1
References: <4415AA3A.6000704@gmx.de> <4415C334.50309@math.unl.edu> \
<4416FCB6.30001@gmx.de>
In-Reply-To: <4416FCB6.30001@gmx.de>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200603182321.45965.jmallett@kol.co.nz>
Sender: kde-redhat-users-admin@lists.sourceforge.net
Precedence: bulk
Reply-To: kde-redhat-users@lists.sourceforge.net
List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/kde-redhat-users>,
<mailto:kde-redhat-users-request@lists.sourceforge.net?subject=unsubscribe>
List-Id: General discussion for kde-redhat users \
<kde-redhat-users.lists.sourceforge.net>
List-Post: <mailto:kde-redhat-users@lists.sourceforge.net>
List-Help: <mailto:kde-redhat-users-request@lists.sourceforge.net?subject=help>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/kde-redhat-users>,
<mailto:kde-redhat-users-request@lists.sourceforge.net?subject=subscribe>
List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum=kde-redhat-users>
On Wednesday 15 March 2006 06:26, Klaus-Peter Schrage wrote:
> Rex Dieter wrote:
> > > To add some more details to the mystery: I have created a new user,
> > > and after logging in from a console with this new identity, I could
> > > start a kde session successfully. kde is only misbehaving when started
> > > for me, my regular user.
> > > But I really can't tell what happened; I haven't touched any related
> > > configuration file for a long time.
> >
> > Could be an owner ship of items in /dev. ???
try
diff -qr /home/kdedev/.kde/ /home/john/.kde/ | less
It will tell you what files are diffrent
diff -u /home/kdedev/.kde/<myfile> /home/john/.kde/<myfile>
for a list of the differences between the files
once you have figured out where the problem is you will have the fun of
figuring out what caused the problem
Have fun John Mallet
from the man
-q Report only whether the files differ, not the details of the
differences.
-r When comparing directories, recursively compare any
subdirectories found.
-u Use the unified output format.
-y Use the side by side output format.
--__--__--
Message: 2
From: =?utf-8?q?=C3=98yvind_Stegard?= <oyvinst@ifi.uio.no>
To: kde-redhat-users@lists.sourceforge.net
Subject: Re: [kde-redhat-users] kdelibs-3.5.1-2.4.fc4.kde - libfam/gamin disabled (?)
Date: Sat, 18 Mar 2006 22:37:28 +0100
User-Agent: KMail/1.9.1
References: <200603140928.42193.oyvinst@ifi.uio.no> <4416E44E.3090604@math.unl.edu> \
<200603141730.04550.oyvinst@ifi.uio.no>
In-Reply-To: <200603141730.04550.oyvinst@ifi.uio.no>
MIME-Version: 1.0
Content-Type: Multipart/Mixed;
boundary="Boundary-00=_Y2HHE/Dqf67k6E8"
Message-Id: <200603182237.28464.oyvinst@ifi.uio.no>
Sender: kde-redhat-users-admin@lists.sourceforge.net
Precedence: bulk
Reply-To: kde-redhat-users@lists.sourceforge.net
List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/kde-redhat-users>,
<mailto:kde-redhat-users-request@lists.sourceforge.net?subject=unsubscribe>
List-Id: General discussion for kde-redhat users \
<kde-redhat-users.lists.sourceforge.net>
List-Post: <mailto:kde-redhat-users@lists.sourceforge.net>
List-Help: <mailto:kde-redhat-users-request@lists.sourceforge.net?subject=help>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/kde-redhat-users>,
<mailto:kde-redhat-users-request@lists.sourceforge.net?subject=subscribe>
List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum=kde-redhat-users>
On Tuesday 14 March 2006 17:30, Øyvind Stegard wrote:
<snip>
> FYI, putting inotify.h and inotify-syscalls.h from
> http://www.kernel.org/pub/linux/kernel/people/rml/inotify/headers/
>
> into /usr/include/linux did not help the kdelibs configure script detection
> routine (it attempts a compilation by including these headers (#include
> <linux/inotify.h>) and checking some defines in pre-processor stage, or so
> it seems). I might investigate some more, even try to "localize" these
> headers into kdelibs (only referenced from configure-stuff and
> kio/kio/kdirwatch.cpp).
>
> Gamin includes it's own local copies of the inotify-headers.
I hacked kdirwatch.cpp to force-enable inotify (and force-disable
dnotify+FAM). This means that whatever the configure-script detects about
inotify-presence is ignored. In addition, I added the necessary
inotify-headers into kdelibs-3.5.1/kio/kio/: inotify.h (from kernel 2.6.15.6)
and inotify-syscalls.h (defines syscall-numbers for inotify). kdirwatch.cpp
now includes these headers instead. Rebuilt kdelibs, and now I have inotify,
finally =) .. I've attached the patch if anyone's interested. Be aware, it's
a hack, I didn't bother with autoconf/automake stuff. The --enable/disable
dnotify/inotify/libfam switches no longer have any effect after it has been
applied, inotify is always used (#defined). So make sure you're running an
inotify-enabled kernel if you build kdelibs with this (should probably
introduce explicit kernel version dependency into SRPM spec-file). A proper
solution to this problem would be in order =) ...
Øyvind
--
< Øyvind Stegard < oyvinst at ifi uio no >
< http://www.oyvind.nu/
< `Lottery: A tax on people who are bad at math.'
["kdelibs-3.5.1-force-local-inotify.patch" (text/x-diff)]
diff -uNr kdelibs-3.5.1/kio/kio/inotify.h kdelibs-3.5.1.new/kio/kio/inotify.h
--- kdelibs-3.5.1/kio/kio/inotify.h 1970-01-01 01:00:00.000000000 +0100
+++ kdelibs-3.5.1.new/kio/kio/inotify.h 2006-03-18 20:02:26.000000000 +0100
@@ -0,0 +1,113 @@
+/*
+ * Inode based directory notification for Linux
+ *
+ * Copyright (C) 2005 John McCutchan
+ */
+
+#ifndef _LINUX_INOTIFY_H
+#define _LINUX_INOTIFY_H
+
+#include <linux/types.h>
+
+/*
+ * struct inotify_event - structure read from the inotify device for each event
+ *
+ * When you are watching a directory, you will receive the filename for events
+ * such as IN_CREATE, IN_DELETE, IN_OPEN, IN_CLOSE, ..., relative to the wd.
+ */
+struct inotify_event {
+ __s32 wd; /* watch descriptor */
+ __u32 mask; /* watch mask */
+ __u32 cookie; /* cookie to synchronize two events */
+ __u32 len; /* length (including nulls) of name */
+ char name[0]; /* stub for possible name */
+};
+
+/* the following are legal, implemented events that user-space can watch for */
+#define IN_ACCESS 0x00000001 /* File was accessed */
+#define IN_MODIFY 0x00000002 /* File was modified */
+#define IN_ATTRIB 0x00000004 /* Metadata changed */
+#define IN_CLOSE_WRITE 0x00000008 /* Writtable file was closed */
+#define IN_CLOSE_NOWRITE 0x00000010 /* Unwrittable file closed */
+#define IN_OPEN 0x00000020 /* File was opened */
+#define IN_MOVED_FROM 0x00000040 /* File was moved from X */
+#define IN_MOVED_TO 0x00000080 /* File was moved to Y */
+#define IN_CREATE 0x00000100 /* Subfile was created */
+#define IN_DELETE 0x00000200 /* Subfile was deleted */
+#define IN_DELETE_SELF 0x00000400 /* Self was deleted */
+#define IN_MOVE_SELF 0x00000800 /* Self was moved */
+
+/* the following are legal events. they are sent as needed to any watch */
+#define IN_UNMOUNT 0x00002000 /* Backing fs was unmounted */
+#define IN_Q_OVERFLOW 0x00004000 /* Event queued overflowed */
+#define IN_IGNORED 0x00008000 /* File was ignored */
+
+/* helper events */
+#define IN_CLOSE (IN_CLOSE_WRITE | IN_CLOSE_NOWRITE) /* close */
+#define IN_MOVE (IN_MOVED_FROM | IN_MOVED_TO) /* moves */
+
+/* special flags */
+#define IN_ONLYDIR 0x01000000 /* only watch the path if it is a directory */
+#define IN_DONT_FOLLOW 0x02000000 /* don't follow a sym link */
+#define IN_MASK_ADD 0x20000000 /* add to the mask of an already existing watch */
+#define IN_ISDIR 0x40000000 /* event occurred against dir */
+#define IN_ONESHOT 0x80000000 /* only send event once */
+
+/*
+ * All of the events - we build the list by hand so that we can add flags in
+ * the future and not break backward compatibility. Apps will get only the
+ * events that they originally wanted. Be sure to add new events here!
+ */
+#define IN_ALL_EVENTS (IN_ACCESS | IN_MODIFY | IN_ATTRIB | IN_CLOSE_WRITE | \
+ IN_CLOSE_NOWRITE | IN_OPEN | IN_MOVED_FROM | \
+ IN_MOVED_TO | IN_DELETE | IN_CREATE | IN_DELETE_SELF | \
+ IN_MOVE_SELF)
+
+#ifdef __KERNEL__
+
+#include <linux/dcache.h>
+#include <linux/fs.h>
+#include <linux/config.h>
+
+#ifdef CONFIG_INOTIFY
+
+extern void inotify_inode_queue_event(struct inode *, __u32, __u32,
+ const char *);
+extern void inotify_dentry_parent_queue_event(struct dentry *, __u32, __u32,
+ const char *);
+extern void inotify_unmount_inodes(struct list_head *);
+extern void inotify_inode_is_dead(struct inode *);
+extern u32 inotify_get_cookie(void);
+
+#else
+
+static inline void inotify_inode_queue_event(struct inode *inode,
+ __u32 mask, __u32 cookie,
+ const char *filename)
+{
+}
+
+static inline void inotify_dentry_parent_queue_event(struct dentry *dentry,
+ __u32 mask, __u32 cookie,
+ const char *filename)
+{
+}
+
+static inline void inotify_unmount_inodes(struct list_head *list)
+{
+}
+
+static inline void inotify_inode_is_dead(struct inode *inode)
+{
+}
+
+static inline u32 inotify_get_cookie(void)
+{
+ return 0;
+}
+
+#endif /* CONFIG_INOTIFY */
+
+#endif /* __KERNEL __ */
+
+#endif /* _LINUX_INOTIFY_H */
diff -uNr kdelibs-3.5.1/kio/kio/inotify-syscalls.h kdelibs-3.5.1.new/kio/kio/inotify-syscalls.h
--- kdelibs-3.5.1/kio/kio/inotify-syscalls.h 1970-01-01 01:00:00.000000000 +0100
+++ kdelibs-3.5.1.new/kio/kio/inotify-syscalls.h 2006-03-18 20:02:26.000000000 +0100
@@ -0,0 +1,61 @@
+#ifndef _LINUX_INOTIFY_SYSCALLS_H
+#define _LINUX_INOTIFY_SYSCALLS_H
+
+#include <sys/syscall.h>
+
+#if defined(__i386__)
+# define __NR_inotify_init 291
+# define __NR_inotify_add_watch 292
+# define __NR_inotify_rm_watch 293
+#elif defined(__x86_64__)
+# define __NR_inotify_init 253
+# define __NR_inotify_add_watch 254
+# define __NR_inotify_rm_watch 255
+#elif defined(__powerpc__) || defined(__powerpc64__)
+# define __NR_inotify_init 275
+# define __NR_inotify_add_watch 276
+# define __NR_inotify_rm_watch 277
+#elif defined (__ia64__)
+# define __NR_inotify_init 1277
+# define __NR_inotify_add_watch 1278
+# define __NR_inotify_rm_watch 1279
+#elif defined (__s390__)
+# define __NR_inotify_init 284
+# define __NR_inotify_add_watch 285
+# define __NR_inotify_rm_watch 286
+#elif defined (__alpha__)
+# define __NR_inotify_init 444
+# define __NR_inotify_add_watch 445
+# define __NR_inotify_rm_watch 446
+#elif defined (__sparc__) || defined (__sparc64__)
+# define __NR_inotify_init 151
+# define __NR_inotify_add_watch 152
+# define __NR_inotify_rm_watch 156
+#elif defined (__arm__)
+# define __NR_inotify_init 316
+# define __NR_inotify_add_watch 317
+# define __NR_inotify_rm_watch 318
+#elif defined (__sh__)
+# define __NR_inotify_init 290
+# define __NR_inotify_add_watch 291
+# define __NR_inotify_rm_watch 292
+#else
+# error "Unsupported architecture!"
+#endif
+
+static inline int inotify_init (void)
+{
+ return syscall (__NR_inotify_init);
+}
+
+static inline int inotify_add_watch (int fd, const char *name, __u32 mask)
+{
+ return syscall (__NR_inotify_add_watch, fd, name, mask);
+}
+
+static inline int inotify_rm_watch (int fd, __u32 wd)
+{
+ return syscall (__NR_inotify_rm_watch, fd, wd);
+}
+
+#endif /* _LINUX_INOTIFY_SYSCALLS_H */
diff -uNr kdelibs-3.5.1/kio/kio/kdirwatch.cpp kdelibs-3.5.1.new/kio/kio/kdirwatch.cpp
--- kdelibs-3.5.1/kio/kio/kdirwatch.cpp 2006-01-19 18:06:10.000000000 +0100
+++ kdelibs-3.5.1.new/kio/kio/kdirwatch.cpp 2006-03-18 20:02:08.000000000 +0100
@@ -35,6 +35,13 @@
#include <config.h>
#include <errno.h>
+// Override configure script Inotify detection, force it here.
+#define HAVE_INOTIFY 1
+
+// Disable dnotify and FAM
+#undef HAVE_DNOTIFY
+#undef HAVE_FAM
+
#ifdef HAVE_DNOTIFY
#include <unistd.h>
#include <time.h>
@@ -71,22 +78,8 @@
#include <linux/types.h>
// Linux kernel headers are documented to not compile
#define _S390_BITOPS_H
-#include <linux/inotify.h>
-
-static inline int inotify_init (void)
-{
- return syscall (__NR_inotify_init);
-}
-
-static inline int inotify_add_watch (int fd, const char *name, __u32 mask)
-{
- return syscall (__NR_inotify_add_watch, fd, name, mask);
-}
-
-static inline int inotify_rm_watch (int fd, __u32 wd)
-{
- return syscall (__NR_inotify_rm_watch, fd, wd);
-}
+#include "inotify.h"
+#include "inotify-syscalls.h"
#ifndef IN_ONLYDIR
#define IN_ONLYDIR 0x01000000
--__--__----
_______________________________________________
kde-redhat-users mailing list
kde-redhat-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kde-redhat-users
End of kde-redhat-users Digest
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic