It seems the GDM logs are places in /var/lib/gdm and /var/lib/log/gdm gdm is the only thing in /var/lib/log so I assume the gdm ebuild created it. This seems like the wrong place for these logs. Why not /var/log/gdm ? The GDM docs at the URL http://www.jirka.org/gdm-documentation/x232.html show the default LogDir to be <var>/log (search for LogDir on page) I don't know who's responsibility this is (ebuild/compiler flags/etc.) but Gentoo should follow the defaults, especially when they make sense. Reproducible: Always Steps to Reproduce: 1.ls /var/log 2.ls /var/lib 3.ls /var/lib/log Actual Results: 1. missing gdm directory 2. has gdm directory ?? 3. has only a gdm directory ?? Expected Results: 1. gdm containing all gdm logs 2. no gdm dir 3. no gdm dir This system is brand new, fresh and clean. No KDE or XDM (other than /etc/init.d/xdm ofcourse) Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5-gentoo- r1) ================================================================= System uname: 2.6.5-gentoo-r1 i686 AMD Athlon(tm) Processor Gentoo Base System version 1.4.3.13 Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer" CHOST="i386-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/ share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/contro l" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://adelie.polymtl.ca/ ftp://ftp.ndlug.nd.edu/pub/gentoo/ http://mirrors.tds.net/gentoo ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl acpi alsa avi berkdb bonobo cdr crypt cups curl divx4linux dvd encode foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg libg++ libwww mad mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl pam pdflib perl png python qt quicktime readline sdl slang spell ssl tcpd tiff truetype usb x86 xml2 xmms xv xvid zlib"
yeah i noticed this thing a while ago.. when we get around to it.
yeah i noticed this thing a while ago.. when we get around to it. Anyway, what's the proposed fix ?
As per the gdm documentation here http://www.jirka.org/gdm-documentation/x232.html LogDir /var/log/gdm not /var/lib/log/gdm ServAuthDir /var/gdm not /var/lib/gdm
Created attachment 33126 [details, diff] proposed patch I'll give it a shot. Please comment. One problem that I can't figure out yet. # qpkg -l -nc gdm | grep /var /var /var/gdm /var/gdm/.keep /var/lib /var/lib/gdm <<--show-up here but not exist /var/lib/log <<--show-up here but not exist /var/lib/log/gdm <<--show-up here but not exist /var/log /var/log/gdm /var/log/gdm/.keep # ls /var/lib/{gdm,log} ls: /var/lib/gdm: No such file or directory ls: /var/lib/log: No such file or directory
Don't forget about /etc/X11/gdm/gdm.conf Within this configuration there are LogDir and ServAuthDir both set to /var/lib/... instead of /var/... In my current gnome2.6 system I simply changed gdm.conf and created the new directories /var/gdm and /var/log/gdm Then I copied over the stuff from thier /var/lib counter parts and rebooted (fully) After it came back up I deleted /var/lib/gdm and /var/lib/log (since it only contained /gdm) I checked /var/log/gdm and the most recent :0.log was dated correctly and I have had no issues since. Also this is what I get StormCloud var # qpkg -l -nc gdm | grep /var /var /var/lib /var/lib/gdm /var/lib/log /var/lib/log/gdm StormCloud gdm # etcat -f gdm | grep /var /var/lib /var/lib/gdm /var /var/lib/log/gdm /var/lib/log StormCloud var # etcat -v gdm [ Results for search key : gdm ] [ Candidate applications found : 3 ] Only printing found installed programs. * gnome-base/gdm : [ ] 2.2.5.4-r5 (0) [ ] 2.4.1.7-r1 (0) [ I] 2.4.4.7-r1 (0) Hope this helps in some way. This whole things just seems so strange. Where did /var/lib come from ? (Note I don't know anything about ebuild programming or configure scripts)
I used the patch to fix the locations of logfiles in gdm-2.6.0.3 with some minor changes. That should take care of this bugs. Thanks for the help & please test.