Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 329833 - x11-apps/xdm: should require x11-apps/xsm, x11-apps/xmproxy and x11-wm/twm
Summary: x11-apps/xdm: should require x11-apps/xsm, x11-apps/xmproxy and x11-wm/twm
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-25 22:33 UTC by Martin Mokrejš
Modified: 2022-12-11 09:35 UTC (History)
2 users (show)

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 Martin Mokrejš 2010-07-25 22:33:36 UTC
xdm package should depend on x11-apps/xsm as it calls xsm as a fail-safe session manager from /usr/lib/X11/xdm/Xsession file. I have x86 computer where xdm calls it because it somehow does not want to find "Gnome" based on /etc/conf.d/xdm file contents and in $HOME/.xsession-errors I found the culprit: missing xsm.
Comment 1 Martin Mokrejš 2010-07-25 22:58:31 UTC
I know you will object but after one installs the missing xsm one gets errors into the console about missing smproxy and no twm window manager. I do not think this has to do with /etc/conf.d/xdm file contents. The fail-over code in startup scripts just falls-back to twm and therefore I believe it should be installed for everybody. Same for smproxy. If you disregard I would be happy if, based on the USE flags another window-manager execname replaced the twm call (in the shell script which I did not bother to locate). ;-)
Comment 2 Allister Beharry 2010-08-18 18:13:55 UTC
This also happened to me when I tried to use xdm (just for learning) as the display manager. When I login it crashes back to the login screen and widget. xdm.log shows it's trying to call xsm but fails The last line of the global Xsession calls xsm, but I had to emerge x11-apps/xsm separately. Once xsm is installed I can login and I get my nice black and white xterm.
Comment 3 Tomáš Chvátal (RETIRED) gentoo-dev 2011-03-08 12:59:53 UTC
It depends on xinit. Which with -minimal should pull all of those...
Comment 4 Martin Mokrejš 2015-05-23 16:23:44 UTC
I hit this issue again with a fresh install. 

# cat ~/.xsession-errors
/usr/lib64/X11/xdm/Xsession: line 71: exec: xsm: not found
#

I do not agree /etc/X11/Sessions/Xsession has a the failover call to xsm (which was not installed):

if [ -x "$startup" ]; then
        exec "$startup"
elif [ -x "$HOME/.Xclients" ]; then
        exec "$HOME/.Xclients"
elif [ -x /etc/X11/xinit/Xclients ]; then
        exec /etc/X11/xinit/Xclients
elif [ -x /etc/X11/Xclients ]; then
        exec /etc/X11/Xclients
else
        exec xsm
fi


Once you add xdm to your runlevel and reboot, if your Ctrl+Alt+F1 does not work (virtual keyb) you cannot login, ctrl+alt+backspace no longer works by default, and you can only turn-off power and boot into single-user mode.

Please either fix /etc/X11/Sessions/Xsession so that it exits or make sure the session manager file is executable.
Comment 5 Martin Mokrejš 2015-05-23 16:34:12 UTC
(In reply to Martin Mokrejš from comment #4)
> Please either fix /etc/X11/Sessions/Xsession so that it exits or make sure
> the session manager file is executable.

No, calling 'exit 255' does not help.
Comment 6 Martin Mokrejš 2015-05-23 17:04:06 UTC
(In reply to Tomáš Chvátal from comment #3)
> It depends on xinit. Which with -minimal should pull all of those...

So why on a Desktop profile is "minimal" kicking in? I do not have it in my "USE" flags in /etc/portage/make.conf, I do not see it in /etc/portage/package.use/* contents ...


# emerge -pv xinit

These are the packages that would be merged, in order:

Calculating dependencies  . ... done!
[ebuild   R    ] x11-apps/xinit-1.3.4-r1::gentoo  USE="minimal -systemd" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB


# USE="-minimal" emerge -pv xinit

These are the packages that would be merged, in order:

Calculating dependencies  ..... done!
[ebuild  N     ] x11-apps/xclock-1.0.7::gentoo  161 KiB
[ebuild  N     ] x11-wm/twm-1.0.8::gentoo  269 KiB
[ebuild  N     ] x11-apps/xsm-1.0.3::gentoo  USE="-rsh" 0 KiB
[ebuild   R    ] x11-apps/xinit-1.3.4-r1::gentoo  USE="-minimal* -systemd" 0 KiB

Total: 4 packages (3 new, 1 reinstall), Size of downloads: 429 KiB

# emerge --info

Portage 2.2.20 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop/gnome, gcc-4.8.4, glibc-2.20-r2, 3.18.14-default-pciehp x86_64)
=================================================================
System uname: Linux-3.18.14-default-pciehp-x86_64-Intel-R-_Core-TM-_i7-2640M_CPU_@_2.80GHz-with-gentoo-2.2
KiB Mem:     4022692 total,   3504768 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Wed, 20 May 2015 19:00:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.25 p1.1) 2.25
app-shells/bash:          4.3_p33-r2::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r2::gentoo, 3.3.5-r1::gentoo
dev-util/cmake:           3.2.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.16.3::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25::gentoo
sys-devel/gcc:            4.8.4::gentoo, 4.9.2::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

x-layman
    location: /var/lib/layman
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm Oracle-BCLA-JavaSE IBM-J1.6 skype-eula Nero-EULA-US AdobeFlash-10.3 skype-4.0.0.7-copyright AdobeFlash-11.x"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -maes -mpclmul -mpopcnt -mavx -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -maes -mpclmul -mpopcnt -mavx -march=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="rsync://ftp.fi.muni.cz/pub/linux/gentoo/ rsync://gentoo.mirror.dkm.cz/gentoo/ ftp://gentoo.mirror.web4u.cz/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acpi alsa amd64 amr apache apache2 apulse avx berkdb bindist bluetooth boost branding bzip2 cairo cdda cdr cgi cli coin colord cracklib crypt cryptlib cups cxx dbus device-mapper dhcp directfb dri drm dts dvd dvdr eds emboss encode evo exif fam fax fbcon ffmpeg firefox flac fontconfig fortran gbm gd gdbm geoip gif gimp glamor glpk gnome-keyring gnome-online-accounts gnutls gpm gstreamer gtk gudev hal hpijs hwdb iconv id3tag imaging innodb introspection java jce jpeg jpg keymap ladspa lapack laptop lcms ldap libnotify libsecret lm_sensors mad matroska mmx mmxext mng modules mp3 mp4 mpeg mpi mpich2 multilib mysql nautilus ncurses nfs nls nptl nptlonly nsplugin ntfsprogs ocr ogg opengl openmp pam pango parport pcre pdf perl php png ppds pppd python qt3support qt4 readline rendering resolvconf scanner sdl server session slideshow sndfile spell sqlite sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification suexec svg syslog tcl tcpd threads tiff tk tracker truetype udev unicode upower usb v4l v4l2 vim-syntax vnc vorbis wavpack wifi wxwidgets x11 x264 xcb xml xorg xrandr xv xvid xvmc zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="alias authz_host auth_basic auth_digest cgi cgid deflate dir env filter include info mem_cache mime mime_magic negotiation remoteip setenvif status userdir vhost_alias rewrite usertrack cache file_cache disk_cache charset_lite log_config log_forensic" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US en_GB cs cz" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4 php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="vesa vmware fbdev intel i915 i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 7 Martin Mokrejš 2015-05-23 17:06:45 UTC
# eselect profile list
Available profile symlink targets:
  [1]   default/linux/amd64/13.0
  [2]   default/linux/amd64/13.0/selinux
  [3]   default/linux/amd64/13.0/desktop
  [4]   default/linux/amd64/13.0/desktop/gnome *
  [5]   default/linux/amd64/13.0/desktop/gnome/systemd
  [6]   default/linux/amd64/13.0/desktop/kde
  [7]   default/linux/amd64/13.0/desktop/kde/systemd
  [8]   default/linux/amd64/13.0/developer
  [9]   default/linux/amd64/13.0/no-multilib
  [10]  default/linux/amd64/13.0/systemd
  [11]  default/linux/amd64/13.0/x32
  [12]  hardened/linux/amd64
  [13]  hardened/linux/amd64/selinux
  [14]  hardened/linux/amd64/no-multilib
  [15]  hardened/linux/amd64/no-multilib/selinux
  [16]  hardened/linux/amd64/x32
  [17]  hardened/linux/musl/amd64
  [18]  default/linux/uclibc/amd64
  [19]  hardened/linux/uclibc/amd64
#
Comment 8 Matt Turner gentoo-dev 2019-03-03 01:55:47 UTC
(In reply to Tomáš Chvátal (RETIRED) from comment #3)
> It depends on xinit. Which with -minimal should pull all of those...

xinit-1.4.0-r1.ebuild has 

IUSE="+minimal"

which is why Martin does not have x11-apps/xsm.

I cannot see where smproxy or twm would be called.
Comment 9 Larry the Git Cow gentoo-dev 2019-03-03 02:09:56 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9eab4843656a9d806f902602ccb19584f8863792

commit 9eab4843656a9d806f902602ccb19584f8863792
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2019-03-03 00:27:58 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2019-03-03 02:09:37 +0000

    x11-apps/xdm: Version bump to 1.1.2
    
    Various changes, addressing multiple bugs (in some cases partially):
            - Depend on x11-apps/xsm (bug 329833)
            - Drop IUSE=xdm-auth (bug 445662)
            - Add IUSE=xinerama (bug 384371)
            - Add IUSE=truetype (bug 608840)
            - Add IUSE=xpm
            - Add IUSE=systemd
            - Port to EAPI=7 and xorg-3.eclass
    
    Bug: https://bugs.gentoo.org/329833
    Bug: https://bugs.gentoo.org/445662
    Closes: https://bugs.gentoo.org/384371
    Closes: https://bugs.gentoo.org/608840
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 x11-apps/xdm/Manifest                              |   1 +
 x11-apps/xdm/files/xdm-1.1.12-consolekit.patch     | 269 +++++++++++++++++++++
 .../files/xdm-1.1.12-make-xinerama-optional.patch  |  34 +++
 x11-apps/xdm/xdm-1.1.12.ebuild                     |  84 +++++++
 4 files changed, 388 insertions(+)
Comment 10 jospezial 2022-12-11 09:35:18 UTC
See also Bug 682384
https://gitweb.gentoo.org/repo/gentoo.git/commit/x11-apps/xinit?id=d0ef4d020d04e5e968c13445ef44d7d64f6cef21
"x11-apps/xinit: Rename USE=minimal -> USE=twm"

current https://gitweb.gentoo.org/repo/gentoo.git/tree/x11-apps/xinit/xinit-1.4.2.ebuild has
IUSE="twm"
PDEPEND="x11-apps/xrdb
	twm? (
		x11-apps/xclock
		x11-apps/xsm
		x11-terms/xterm
		x11-wm/twm
	)
"

This flag is also relevant even if you don't have x11-apps/xdm but use x11-misc/sddm-0.18.1-r8 and try to chose xsession.
xinit is installed as a dependency of x11-base/xorg-server USE="xorg"