Bug#388568: Acknowledgement (xserver-xorg: postinst can hang)
Hi All
On Tue, Oct 03 2006, at 22:12 +0200, Denis Barbier wrote:
> On Tue, Oct 03, 2006 at 06:44:53PM +0200, Wolfgang Pfeiffer wrote:
> > > The easiest solution is to remove the debug_echo. If it is needed for some
> > > reason, a construct like this should be made (note that this happens in a set
> > > +e block):
> >
> > > db_input "$PRIORITY" "$TEMPLATE"
> > > retval=$?
> > > if [ $retval -ne 0 ] ; then debug_echo "v_s_d_i/db_input $PRIORITY $TEMPLATE"
> > > ; fi
> > > if [ $? -eq 30 ]; then
> >
> > Thanks for finding the solution ... :)
> >
> > But could you please post the diff for the postinst script (provided
> > the code above is about this script) .. the snippets so far posted
> > here do not seem being self-explaining very much to me ... :)
>
> db_input "$PRIORITY" "$TEMPLATE"
> if [ $? -eq 30 ]; then
>
> The patch to fix 389506, 388568 and 386191 is attached.
Yes. Seems the patch works ... Thanks a lot, Denis. I upgraded nearly
the entire unstable system on that alu-PowerBook 5.8, including
xserver-xorg* packages (I just held back openssh, IIRC), and it seems,
even after rebooting the machine, everything's fine here ..
Jan, as to #379480:
... perhaps the patch helps even for what was described at
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=379480
I'm definitely not sure: but perhaps it helps to patch the source of
xserver-xorg ("apt-get source xserver-xorg") and see whether you have
a usable X ...
The patch should be available near the end of:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=388568
Simply patching the sources here, IIRC, was completely enough here
... no need to change any other files except applying the patch from
Denis, as it seems ...
After that, and compiling the sources, all I did (according to my
bash_history) was to install some of the newly created packages in the
dir with the new .deb packages :
dpkg -i x11-common_7.1.0-1_powerpc.deb xserver-xorg*
and then
aptitude -D dist-upgrade
At least this seems true at
Wed, 04 Oct 2006 3 o'clock in the morning, CET, .... :)
Even the frame-buffer in xorg.conf is enabled ... :)
Here's my current xorg.conf:
----------------------------------
# xorg.conf.dpkg-new (Xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf.dpkg-new manual page.
# (Type "man xorg.conf.dpkg-new" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following commands as root:
#
# cp /etc/X11/xorg.conf.dpkg-new /etc/X11/xorg.conf.dpkg-new.custom
# md5sum /etc/X11/xorg.conf.dpkg-new >/var/lib/xfree86/xorg.conf.dpkg-new.md5sum
# dpkg-reconfigure xserver-xorg
Section "Files"
# see http://wiki.debian.org/Xorg69To7:
# FontPath "unix/:7100" # local font server
# if the local font server has problems, we can fall back on these
FontPath "/usr/share/fonts/X11/misc"
# FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/share/fonts/X11/Type1"
# FontPath "/usr/share/fonts/X11/CID"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "/usr/share/fonts/X11/100dpi:unscaled"
FontPath "/usr/share/fonts/X11/75dpi:unscaled"
# FontPath "/usr/share/fonts/truetype"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection
Section "Module"
Load "bitmap"
Load "dbe"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "record"
Load "type1"
Load "v4l"
Load "vbe"
Load "evdev"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "macintosh"
Option "XkbLayout" "de"
Option "XkbVariant" "nodeadkeys"
Option "XkbOptions" "lv3:lwin_switch"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "false"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/input/mice"
Option "Protocol" "auto-dev"
Option "LeftEdge" "0"
Option "RightEdge" "850"
Option "TopEdge" "0"
Option "BottomEdge" "645"
Option "MinSpeed" "0.4"
Option "MaxSpeed" "1"
Option "AccelFactor" "0.02"
Option "FingerLow" "55"
Option "FingerHigh" "60"
Option "MaxTapMove" "20"
Option "MaxTapTime" "100"
Option "HorizScrollDelta" "0"
Option "VertScrollDelta" "30"
Option "SHMConfig" "on"
EndSection
Section "Device"
Identifier "ATI Technologies, Inc. Radeon R250 Lf [FireGL 9000]"
Driver "ati"
BusID "PCI:0:16:0"
Option "UseFBDev" "true"
Option "AGPSize" "16"
Option "AGPMode" "4"
Option "EnablePageFlip"
Option "DRIReinit" "true"
# Option "BackingStore" "True"
EndSection
Section "Monitor"
Identifier "Color LCD"
# DisplaySize 323 216
DisplaySize 321 214
Option "DPMS"
EndSection
Section "Screen"
Identifier "Default Screen"
Device "ATI Technologies, Inc. Radeon R250 Lf [FireGL 9000]"
Monitor "Color LCD"
DefaultDepth 24
SubSection "Display"
Depth 8
Modes "1440x960" "1280x800" "1152x720" "1024x768" "1024x640" "800x500" "720x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1440x960" "1280x800" "1152x720" "1024x768" "1024x640" "800x500" "720x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1440x960" "1280x800" "1152x720" "1024x768" "1024x640" "800x500" "720x480"
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Synaptics Touchpad"
EndSection
Section "DRI"
Mode 0666
EndSection
--------------------------------
>
> Denis
> Index: debian/xserver-xorg.config.in
> ===================================================================
> --- debian/xserver-xorg.config.in (révision 3516)
> +++ debian/xserver-xorg.config.in (copie de travail)
> @@ -828,7 +828,7 @@
> fi
> if [ -z "$DEFAULT" ]; then
> # fall back to some language-specific generic text
> - db_get xserver-xorg/config/device/default-identifier
> + db_metaget xserver-xorg/config/device/default-identifier Description
> DEFAULT=$RET
> fi
> # this question requires input validation
> @@ -988,7 +988,7 @@
>
> [ ... ]
Thanks, Denis.
And:
I can't be sure, whether all this will help you, Jan .. but good luck,
at any rate...
Best Regards
Wolfgang
--
Wolfgang Pfeiffer: /ICQ: 286585973/ + + + /AIM: crashinglinux/
http://profiles.yahoo.com/wolfgangpfeiffer
Key ID: E3037113
http://keyserver.mine.nu/pks/lookup?search=0xE3037113&fingerprint=on
Reply to: