The summary says most of it, but here goes: sys-apps/baselayout-1.12.14 removes the XSESSION variable from /etc/rc.conf, leaving in its place a note saying "XSESSION has moved to /etc/env.d/90xsession". However, that file does not exist. Reproducible: Always Steps to Reproduce: 1. Install sys-apps/baselayout-1.12.14. I upgraded from stable (1.12.13) Actual Results: XSESSION is removed from /etc/rc.conf and /etc/env.d/90xsession not created. Expected Results: XSESSION is moved to new file /etc/env.d/90xsession. $ emerge --info sys-apps/baselayout Portage 2.1.8.3 (default/linux/x86/10.0/desktop, gcc-4.4.3, glibc-2.11.2-r0, 2.6.35-gentoo-r4-iqgryn i686) ================================================================= System Settings ================================================================= System uname: Linux-2.6.35-gentoo-r4-iqgryn-i686-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4400+-with-gentoo-1.12.14 Timestamp of tree: Mon, 27 Sep 2010 09:55:01 +0000 ccache version 2.4 [disabled] app-shells/bash: 4.1_p7 dev-java/java-config: 2.1.11 dev-lang/python: 2.6.5-r3, 3.1.2-r4 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 1.12.14 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.65-r1 sys-devel/automake: 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.3-r2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b sys-devel/make: 3.81-r2 virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 AdobeFlash-10.1" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -ggdb" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /usr/share/hddtemp/hddtemp.db" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O2 -pipe -ggdb" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests collision-protect distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu" LINGUAS="en_US en" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/custom" SYNC="rsync://iqgryn-server.homelinux.net/gentoo-portage" USE="3dnow 3dnowext 7zip X a52 aac acct acl acpi aim akode alsa animgif ao arts audiofile avahi bash-completion bluetooth boost branding bzip2 cairo calendar caps cdaudio cdda cddb cdparanoia cdr chardet chroot cjk cleartype cli consolekit contrib coverart cracklib crypt cscope css cuda cups curl cvs cxx d dbus detex device-mapper dga disk-partition diskio divx doc dri dvd dvdr elf emboss encode exif expat fam fastcgi fat ffmpeg fftw firefox flac fmod font-server fontforge foomaticdb fortran fts3 gcj gd gdbm gif gimp git glibc-omitfp glitz glsa glut gmedia gmp gnutls gphoto2 gpm graphics gs gsm gstreamer gtk gtkhtml hal handbook hbci hddtemp iconv icq icu id3 idn imagemagick imlib iostats jabber jadetex java java5 java6 jpeg jpeg2k kde kpathsea kqemu lame laptop latex lcms libnotify libsamplerate lm_sensors logrotate lua lyrics lzma lzo mad matroska md5sum md5sum-external mdnsresponder-compat mfd-rewrites mikmod mjpeg mmap mmx mmxext mng modules motif moznocompose moznoirc moznomail mp3 mp4 mpd mpeg mpi mpi-threads msn mudflap multiuser music musicbrainz nano-syntax ncurses network network-cron nls nowin nptl nptlonly nsplugin ntfs ntp nvidia objc ocaml ofa offensive ofx ogg openal opengl openmp optimization optimized-qmake pam pango pcre pdf perl phonon pic pipe png policykit posix ppds prediction pulseaudio python qt-static qt3 qt3support qt4 rdesktop readline realmedia reflection reiserfs restrict-javascript romio rtc scenarios schroedinger science screen sdl sensord session slp smp snmp speex spell sqlite srt sse sse2 ssh ssl startup-notification stream stroke subtitles subversion svg symlink sysfs syslog sysvipc tcpd tex4ht theora threads thunderbird tiff toolbar transcode truetype udev unicode usb userlocales utempter vaapi vcd vdpau videos vidix vim-pager vim-syntax vim-with-x vnc voice vorbis vpx winbind wma wmf wmp x264 x86 xcb xcomposite xetex xine xinerama xml xorg xpm xprint xscreensaver xulrunner xv xvid xvmc yahoo zip zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" 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 ubx" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia vesa" 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" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= sys-apps/baselayout-1.12.14 was built with the following: USE="unicode -bootstrap -build -static"
*** Bug 338956 has been marked as a duplicate of this bug. ***
What's the acceptable solution for this? A better postinst message or an actual script to do the migration?
(In reply to comment #2) > What's the acceptable solution for this? A better postinst message or an > actual script to do the migration? > We're Gentoo - an ewarn should be ok, a script solution would be better, but is not a must have.
i'm of the same opinion.. To get this bug closed faster, I've got a bit of a script (below) that might help speed up the process... it only does the migration if no XSESSION has been set in /etc/env.d already and it exists in /etc/rc.conf #!/bin/sh if ! grep XSESSION -r /etc/env.d/* &>/dev/null; then if grep 'XSESSION=' /etc/rc.conf &>/dev/null; then sed -n 's/^[# ]*XSESSION=/&/p' /etc/rc.conf >/etc/env.d/90xsession fi fi
Any movement on this? It'd be really nice to have a baselayout-1 with an XSESSION that works, since current stable doesn't.
stable works fine if you configure your system. the point of the comment was to tell users where to place the new setting, not to automatically rewrite things for them. in fact, the xinit ebuild already tells people exactly that: http://bugs.gentoo.org/294999#c4 at this point, pretty much everyone has upgraded, so i dont see much value in trying to automate this migration