Bug#385078: xserver-xorg: impossible mouse configuration other than /dev/input/mice

2006-09-19 Thread David Nusinow
On Sun, Sep 17, 2006 at 05:54:43PM -0400, José Parrella wrote:
> tags 385078 +patch
> thank you
> 
> Please try this patch. I'm not a bash (nor debconf!) guru but I think
> that it address your concerns regarding the non-interactivity for the
> mouse device setting. Please let me know if the patch works for you.
> Therefore I'm providing:
> 
> 1) A full, NMU-ready, source package in [1]
> 2) i386 binary packages in [1], and
> 3) A diff regarding the config.in, which you'll find attached
> 
> Note that this upload does not fix several Lintian warnings that my
> build system reports. I will be glad to fix this if the patch works.
> Thank you very much for your time and attention to details.

Thank you for the patch but I think this is not exactly the right solution.
I'll work up a proper fix for this over the coming couple of days.

 - David Nusinow


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#385078: xserver-xorg: impossible mouse configuration other than /dev/input/mice

2006-09-18 Thread Mario 'BitKoenig' Holbe
On Mon, Sep 18, 2006 at 12:41:32PM -0400, José Parrella wrote:
> Indeed. I do not mean to steal their work (and actually the Developer's

I didn't mean stealing too, I meant more like fiddling into their plans.
Like, if they are working on it currently and you NMU something
inbetween, this would probably provoke new bugreports which dont fit in
the old picture, they have to care about them, however, etc. pp.

> About the diff, I used debdiff. If you think the produced diff is
> misleading, please let me know.

I think it's just reverse, i.e. diff new against old instead of old
against new.


Mario
-- 
If you think technology can solve your problems you don't understand
technology and you don't understand your problems.
-- Bruce Schneier


signature.asc
Description: Digital signature


Bug#385078: xserver-xorg: impossible mouse configuration other than /dev/input/mice

2006-09-18 Thread José Parrella
Mario 'BitKoenig' Holbe escribió:
> Well, I would like to try it, but since I've changed my VGA-card
> recently, I hit #375689 and thus went over to a fully self-managed
> xorg.conf.

It's ok. That's actually why I'm not testing this myself.

> Hm, I think (or better I strongly hope :)) the xorg-maintainers are
> hardly working on the package-configuration thingies, so I personally
> would not suggest to NMU currently.

Indeed. I do not mean to steal their work (and actually the Developer's
Reference specifies a protocol for this) but I think it would be
irresponsible from my part if I release a patched source package without
new entries in the changelog stating my name and email address.

About the diff, I used debdiff. If you think the produced diff is
misleading, please let me know.

Jose

-- 
José M. Parrella -> Debian Sid, k2.6.17.13
Escuela de Ingenieria Electrica
Universidad Central de Venezuela -> ucvlug.info



Bug#385078: xserver-xorg: impossible mouse configuration other than /dev/input/mice

2006-09-18 Thread Mario 'BitKoenig' Holbe
Hi,

On Sun, Sep 17, 2006 at 05:54:43PM -0400, José Parrella wrote:
> Please try this patch. I'm not a bash (nor debconf!) guru but I think
> that it address your concerns regarding the non-interactivity for the
> mouse device setting. Please let me know if the patch works for you.

Well, I would like to try it, but since I've changed my VGA-card
recently, I hit #375689 and thus went over to a fully self-managed
xorg.conf.

> Therefore I'm providing:
> 1) A full, NMU-ready, source package in [1]

Hm, I think (or better I strongly hope :)) the xorg-maintainers are
hardly working on the package-configuration thingies, so I personally
would not suggest to NMU currently.

> 3) A diff regarding the config.in, which you'll find attached

Is it possible that your diff is a reverse-diff?


regards
   Mario
-- 
It is practically impossible to teach good programming style to students
that have had prior exposure to BASIC: as potential programmers they are
mentally mutilated beyond hope of regeneration.  -- Dijkstra


signature.asc
Description: Digital signature


Bug#385078: xserver-xorg: impossible mouse configuration other than /dev/input/mice

2006-09-17 Thread José Parrella
tags 385078 +patch
thank you

Please try this patch. I'm not a bash (nor debconf!) guru but I think
that it address your concerns regarding the non-interactivity for the
mouse device setting. Please let me know if the patch works for you.
Therefore I'm providing:

1) A full, NMU-ready, source package in [1]
2) i386 binary packages in [1], and
3) A diff regarding the config.in, which you'll find attached

Note that this upload does not fix several Lintian warnings that my
build system reports. I will be glad to fix this if the patch works.
Thank you very much for your time and attention to details.

Jose

[1] http://debian.bureado.com.ve/xorg/

-- 
José M. Parrella -> Debian Sid, k2.6.17.13
Escuela de Ingenieria Electrica
Universidad Central de Venezuela -> ucvlug.info
diff -Nru /tmp/R5Q1ya1nbL/xorg-7.0.23/debian/xserver-xorg.config.in /tmp/poysleOqJV/xorg-7.0.23/debian/xserver-xorg.config.in
--- /tmp/R5Q1ya1nbL/xorg-7.0.23/debian/xserver-xorg.config.in   2006-09-17 17:11:38.0 -0400
+++ /tmp/poysleOqJV/xorg-7.0.23/debian/xserver-xorg.config.in   2006-07-19 01:16:26.0 -0400
@@ -1136,22 +1136,11 @@
 
 MAY_BE_NULL=yes auto_answer validate_string_db_input "$(priority_ceil $PRIORITY)" xserver-xorg/config/inputdevice/keyboard/options "$XKBOPTIONS"
 
-# Ask the user about their mouse port
-db_input medium xserver-xorg/config/inputdevice/mouse/port
+AUTODETECTED_PORT="/dev/input/mice"
+AUTODETECTED_PROTOCOL="ImPS/2"
 
-# If the user wasn't asked, see if a previous answer was set
-if [ "$_" = "30" ]
-then
-   db_get xserver-xorg/config/inputdevice/mouse/port
-   if [ -z $RET ]
-   then
-# If a previous answer wasn't set, then we should use our defaults
-   AUTODETECTED_PORT="/dev/input/mice"
-   AUTODETECTED_PROTOCOL="ImPS/2"
-   db_subst xserver-xorg/config/inputdevice/mouse/port choices $AUTODETECTED_PORT
-   auto_answer db_input "$(priority_ceil low)" xserver-xorg/config/inputdevice/mouse/port "${AUTODETECTED_PORT}"
-   fi
-fi 
+db_subst xserver-xorg/config/inputdevice/mouse/port choices $AUTODETECTED_PORT
+auto_answer db_input "$(priority_ceil low)" xserver-xorg/config/inputdevice/mouse/port "${AUTODETECTED_PORT}"
 
 db_get xserver-xorg/config/inputdevice/mouse/port
 case "$RET" in



Bug#385078: xserver-xorg: impossible mouse configuration other than /dev/input/mice

2006-08-28 Thread Mario 'BitKoenig' Holbe
Package: xserver-xorg
Version: 1:7.0.23
Severity: serious

Hello,

upgrading xserver-xorg from 6.9.0.dfsg.1-6 to 1:7.0.23 broke my
previously running X:

No core pointer

Fatal server error:
failed to initialize core devices

This is because xserver-xorg.config forces mouse port to /dev/input/mice
while it was /dev/gpmdata before. And since /dev/input/mice just doesn't
exist, startx fails.
I think this is because xserver-xorg.config seems to hardcode the mouse
port to /dev/input/mice currently:

xserver-xorg.config:2022:AUTODETECTED_PORT="/dev/input/mice"
xserver-xorg.config:2023:AUTODETECTED_PROTOCOL="ImPS/2"
xserver-xorg.config:2024:
xserver-xorg.config:2025:db_subst xserver-xorg/config/inputdevice/mouse/port 
choices $AUTODETECTED_PORT
xserver-xorg.config:2026:auto_answer db_input "$(priority_ceil low)" 
xserver-xorg/config/inputdevice/mouse/port "${AUTODETECTED_PORT}"
xserver-xorg.config:2027:
xserver-xorg.config:2028:db_get xserver-xorg/config/inputdevice/mouse/port

And because I always configured X via xserver-xorg, the config entry has
the seen flag set and is not shown again. I'm not even able to change it
via dpkg-reconfigure :/ Yes, my debconf/priority is set to low, but also
an explicit dpkg-reconfigure -plow doesn't show it.

I don't know why you think you need to hardcode things this way - okay,
the mouse autodetection didn't work well with 6.9 (especially with gpm
running it left the mouse in some strange state), but IMHO asking users
then would be a better option.

Since for most users /dev/input/mice should be available, I don't set
the bug's severity to grave. However, I don't think the package is
suitable for release with this behaviour. Especially because the package
currently breaks previously running systems this way.

My X was always configured via the package's config-interface. This is
currently impossible - I have to manually fix my xorg.conf since the
package doesn't leave me another chance :/


regards
   Mario
-- 
It is practically impossible to teach good programming style to students
that have had prior exposure to BASIC: as potential programmers they are
mentally mutilated beyond hope of regeneration.  -- Dijkstra


signature.asc
Description: Digital signature