Rename /etc/X11/Xsession.d/60x11-localhost to match convention

Bug #340807 reported by Max Bowsher
8
Affects Status Importance Assigned to Milestone
xorg (Ubuntu)
Fix Released
High
Bryce Harrington
Karmic
Fix Released
High
Bryce Harrington
Lucid
Fix Released
High
Bryce Harrington

Bug Description

Binary package hint: xorg

There seems to be a mostly-upheld naming convention that files in /etc/X11/Xsession.d/ should be named as NNpackagename[_suffix]. All of the other Xsession.d files installed by x11-common follow this convention, but the new 60x11-localhost added today does not. It probably should.

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
Package: x11-common 1:7.4~5ubuntu15
PackageArchitecture: all
ProcEnviron:
 LC_COLLATE=C
 PATH=(custom, user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcVersion: Linux version 2.6.28-8-generic (buildd@yellow) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu1) ) #28-Ubuntu SMP Fri Mar 6 00:09:20 UTC 2009
SourcePackage: xorg
Uname: Linux 2.6.28-8-generic x86_64

Related branches

CVE References

Revision history for this message
Max Bowsher (maxb) wrote :
Revision history for this message
Max Bowsher (maxb) wrote :

Assigning to Bryce as requested on IRC.

Changed in xorg:
assignee: nobody → bryceharrington
Revision history for this message
Alexander Kallenbach (kallenbachalex) wrote :

I think this bug prevents me to log in.

I get an error-message that means that my session lasted less than 10 seconds and that there may be an installation-error.

Unter details I get the following message:

/etx/gdm/Xsession: Beginning session setup...
/etx/X11/Xsession.d/60x11-localhost: 4: Syntax error: Bad fd number

Revision history for this message
Max Bowsher (maxb) wrote :

Alex:
No, that is unrelated to the name of the file, and is already fixed in 7.4~5ubuntu15.

Revision history for this message
Bryce Harrington (bryce) wrote :

Since the file is under /etc, renaming it is not as trivial as just moving the file.
However I'm not certain what postrm magic is needed exactly... here's a first draft of a patch to do it.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

use remove_conffile_commit as used in x11-common.postinst.in (sorry, was wrong when suggested postrm.in), add a new rule after the current one with correct versions. Something like this:

if dpkg --compare-versions "$2" lt-nl "1:7.4~5ubuntu16"; then
  remove_conffile_commit "/etc/X11/Xsession.d/60x11-localhost"
fi

Revision history for this message
Bryce Harrington (bryce) wrote :

Thanks Timo, how's this look?

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

better, but I think it's best to put it inside the 'case "$1" in configure)' rule, at least it's commonly used in cases like this.

Revision history for this message
Bryce Harrington (bryce) wrote :

How's this then?

Changed in xorg (Ubuntu):
importance: Undecided → High
milestone: none → ubuntu-9.04-beta
status: New → In Progress
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

yeah, it should be good to go.

Revision history for this message
Bryce Harrington (bryce) wrote :

After installing the xorg package with this change, it does not seem to remove the script properly:

root@dorset:/etc/X11/Xsession.d# ls
20x11-common_process-args 55gnome-session_gnomerc 65mesa-check-x86-64 90x11-common_ssh-agent
30x11-common_xresources 60seahorse-plugins 70pulseaudio 99x11-common_start
40x11-common_xsessionrc 60x11-common_localhost 75dbus_dbus-launch
50x11-common_determine-startup 60x11-localhost 80im-switch
52libcanberra-gtk-module_add-to-gtk-modules 60xdg-user-dirs-update 90consolekit

Ideas?

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xorg - 1:7.4~5ubuntu16

---------------
xorg (1:7.4~5ubuntu16) jaunty; urgency=low

  [Tormod Volden]
  * apport/source_xorg.py: Use grep directly instead of shelling out, and
    look in /proc/modules as well. Also only set 'fglrx-installed' if
    there was a definite match.

  [Bryce Harrington]
  * x11-common.links: Add apport support for a several more packages.
  * local/Xsession.d/60x11-common_localhost:
    - Rename from 60x11-localhost for consistency (LP: #340807)
    - Redirect stderr in an sh-safe fashion
  * x11-common.postinst.in, x11-common.preinst.in, x11-common.postrm.in:
    - Remove renamed 60x11-localhost; handle upgrade failures gracefully
  * local/dexconf, local/Failsafe/failsafeDexconf:
    - Add hooks for Sun's virtualbox (LP: #319373)
  * local/Failsafe/failsafeXinit:
    - Use zenity for viewing logs, and vt2 for console login
      (LP: #310126)
    - Make translatable (LP: #335678)
  * apport/source_xorg.py: Suppress warning about keyboard geometry on :0
    (LP: #315777)

 -- Bryce Harrington <email address hidden> Wed, 18 Mar 2009 13:54:27 -0700

Changed in xorg:
status: In Progress → Fix Released
Revision history for this message
Bryce Harrington (bryce) wrote :

This regressed. When the file was renamed it didn't get added to git for some reason, then later I noticed the file was not in git and did not remember why it was where it was, so assumed it was a stray file and dropped it. Actually it is not stray and should be restored, else this bug will be regressed for users.

It appears since the file was present up until the last xorg upload, users who upgrade will still have the file, but fresh installs of karmic will find it missing, and may have problems running xhost and so on.

Changed in xorg (Ubuntu):
status: Fix Released → Triaged
Revision history for this message
Bryce Harrington (bryce) wrote :

This restores the missing file

Changed in xorg (Ubuntu Karmic):
assignee: nobody → Bryce Harrington (bryceharrington)
importance: Undecided → High
status: New → Triaged
Revision history for this message
Bryce Harrington (bryce) wrote :

Actually on second thought, it is bug 276357 which regresses rather than this one, just to be correct...

Changed in xorg (Ubuntu Lucid):
status: Triaged → Won't Fix
Changed in xorg (Ubuntu Karmic):
status: Triaged → Fix Released
Revision history for this message
Bryce Harrington (bryce) wrote :

Here is the file in question, in case anyone needs it to work around the problem while this SRU goes through the process. Copy this to /etc/X11/Xsession.d/

Changed in xorg (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Colin Watson (cjwatson) wrote :

Reopening while the SRU goes through, then.

Changed in xorg (Ubuntu):
status: Fix Released → Fix Committed
tags: added: verification-needed
Revision history for this message
Colin Watson (cjwatson) wrote :

Accepted into karmic-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Revision history for this message
Martin Pitt (pitti) wrote :

Setting karmic task to fix committed while it is only in -proposed.

I reject the duplicate xorg upload.

Changed in xorg (Ubuntu Karmic):
status: Fix Released → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xorg - 1:7.4+3ubuntu9

---------------
xorg (1:7.4+3ubuntu9) karmic-proposed; urgency=low

  * Restore 60x11-common_localhost. I dropped this before because the
    file was not in git so assumed it was stray. On further review I
    see this was intentionally added, just not to git, and was not stray.
    (LP: #340807)
  * control: Add Vcs-git tags

 -- Bryce Harrington <email address hidden> Wed, 04 Nov 2009 18:54:26 -0800

Changed in xorg (Ubuntu Karmic):
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

copied karmic-proposed to lucid.

Changed in xorg (Ubuntu Karmic):
status: Fix Released → Fix Committed
Changed in xorg (Ubuntu):
milestone: ubuntu-9.04-beta → none
status: Fix Committed → Fix Released
Revision history for this message
Steve Langasek (vorlon) wrote :

Can anyone confirm that this bug is fixed with the new upload?

Revision history for this message
rodrigo orellana n (rodrigo-orellana) wrote :

.

Revision history for this message
rodrigo orellana n (rodrigo-orellana) wrote :

trabajando en eso

Changed in xorg (Ubuntu):
assignee: Bryce Harrington (bryceharrington) → sayadeejay (rodrigo-orellana)
Revision history for this message
rodrigo orellana n (rodrigo-orellana) wrote :

trabajando...

Revision history for this message
rodrigo orellana n (rodrigo-orellana) wrote :

en eso,.

Revision history for this message
Steve Langasek (vorlon) wrote :

This bug was fixed in the package xorg - 1:7.4+3ubuntu10

xorg (1:7.4+3ubuntu10) karmic-proposed; urgency=low

  * local/Failsafe/failsafeXServer: Since dexconf no longer produces
    an xorg.conf, it will neither generate a failsafe xorg.conf, so now
    we just generate one directly. Otherwise X won't start a failsafe
    session properly.
    (LP: #477149)
 -- Bryce Harrington <email address hidden> Mon, 09 Nov 2009 15:39:57 -0800

xorg (1:7.4+3ubuntu9) karmic-proposed; urgency=low

  * Restore 60x11-common_localhost. I dropped this before because the
    file was not in git so assumed it was stray. On further review I
    see this was intentionally added, just not to git, and was not stray.
    (LP: #340807)
  * control: Add Vcs-git tags
 -- Bryce Harrington <email address hidden> Wed, 04 Nov 2009 18:54:26 -0800

xorg (1:7.4+3ubuntu8) karmic-proposed; urgency=low

  * debian/local/Failsafe/failsafe{XServer,Xinit},
    debian/x11-common.failsafe-x.upstart: convert Bulletproof-X support over
    to upstart, for compatibility with gdm in karmic. LP: #474806.
  * debian/rules: install the new upstart job with dh_installinit.
  * debian/control: bump the debhelper versioned build-dependency for the
    same
 -- Steve Langasek <email address hidden> Wed, 04 Nov 2009 18:00:49 -0800

Changed in xorg (Ubuntu Karmic):
status: Fix Committed → Fix Released
Changed in xorg (Ubuntu):
assignee: sayadeejay (rodrigo-orellana) → Bryce Harrington (bryceharrington)
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (137.5 KiB)

This bug was fixed in the package xorg - 1:7.5+1ubuntu1

---------------
xorg (1:7.5+1ubuntu1) lucid; urgency=low

  * Merge from Debian unstable.

xorg (1:7.5+1) unstable; urgency=low

  * Drop xorg-dev dependency on x11proto-xf86misc-dev and libxxf86misc-dev,
    which are obsolete.
  * Same with x11proto-trap-dev and libxtrap-dev.
  * The call to udevadm trigger has moved to xserver-xorg-core and the
    drivers, remove it from xserver-xorg.postinst.
  * Upload to unstable.

xorg (1:7.5~3ubuntu4) lucid; urgency=low

  * debian/x11-common.failsafe-x.upstart:
    - Revert the changes from the last upload since it's been decided that
      there won't be a DKMS upstart task.

xorg (1:7.5~3ubuntu3) lucid; urgency=low

  * debian/x11-common.failsafe-x.upstart: (LP: #453365)
    - Start on the build-failed signal that DKMS may emit
      during a failed build for nvidia or fglrx.

xorg (1:7.5~3ubuntu2) lucid; urgency=low

  * scripts/vars.*: Drop wacom from input-all until it builds again.

xorg (1:7.5~3ubuntu1) lucid; urgency=low

  * Merge from Debian experimental. Remaining changes:
    - apport/source_xorg.py, x11-common.install, x11-common.links:
      + apport hook for xorg-server crashes
    - control:
      + Add xqbiff (<= 0.75-4) to x11-common Conflicts (LP 217724).
      + Add xinput to xorg Depends so it will stay in main
      + Move xfonts-scalable to Recommends (LP 84938)
    - rules, control:
      + Add a dependency to x11-common for each binary built to save
        disk/livecd space.
      + Symlink the doc directories to x11-common, explicitly remove the
        doc directories on upgrade for the now symlinked doc directories
    - local/Failsafe/*, x11-common.install, x11-common.failsafe-x.upstart,
      rules: Bulletproof-X.
    - local/Xsession:
      + If ~/.xsession-errors is bigger than 0.5MiB, truncate it to the last
        0.5MiB to avoid having it grow indefinitively. (This does not happen
        with gdm anyway since gdm cleans the file on login).
    - local/Xsession.d/60x11-common_localhost: Allow X connections from
      local unix domain sockets instead of forcing TCP since hostname
      validation is not necessary in this case. (LP 276357)
    - local/dexconf:
      + Add extra bits for ps3fb xorg.conf.
      + dexconf: Bring Device back to the Screen-section, nvidia-settings
        and aticonfig need that.
      + Add customizations to detect if running in KVM/VBOX environment
        and specify the driver, H/V rates, DefaultDepth, etc.
    - local/xserver-wrapper.c: Stop handling -config specifically in the
      wrapper, as Xorg now handles this itself.
    - scripts/vars.*: Don't include radeonhd in video-all.
    - scripts/vars.i386: Add geode to video-all.
    - scripts/vars.{i386,amd64}: Add vmmouse (LP 407816).
    - x11-common.postinst.in, postrm.in, preinst.in: Remove old configuration
      files.
    - xserver-xorg.postinst.in: Migrate psb users to vesa.
  * control: Drop Breaks on gdm, since it was only needed during karmic.
    Likewise for Conflicts/Replaces hal.
  * control, local/debian-setup-keyboard: Use console-setup, until the
    new version is merged.

xorg (1:7.5~3) experimental; ur...

Changed in xorg (Ubuntu Lucid):
status: Won't Fix → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.