diff --git a/xinit-1.0.7-unset.patch b/xinit-1.0.7-unset.patch new file mode 100644 index 0000000..ad19be0 --- /dev/null +++ b/xinit-1.0.7-unset.patch @@ -0,0 +1,13 @@ +diff -up xinit-1.0.7/startx.cpp.jx xinit-1.0.7/startx.cpp +--- xinit-1.0.7/startx.cpp.jx 2007-09-16 17:24:48.000000000 -0400 ++++ xinit-1.0.7/startx.cpp 2008-02-11 14:05:03.000000000 -0500 +@@ -13,6 +13,9 @@ XCOMM Site administrators are STRONGLY u + XCOMM + XCOMM $XFree86: xc/programs/xinit/startx.cpp,v 3.16tsi Exp $ + ++unset DBUS_SESSION_BUS_ADDRESS ++unset SESSION_MANAGER ++ + #if defined(__SCO__) || defined(__UNIXWARE__) + + XCOMM Check for /usr/bin/X11 and BINDIR in the path, if not add them. diff --git a/xorg-x11-xinit.spec b/xorg-x11-xinit.spec index ef28ad2..3ea5262 100644 --- a/xorg-x11-xinit.spec +++ b/xorg-x11-xinit.spec @@ -3,7 +3,7 @@ Summary: X.Org X11 X Window System xinit startup scripts Name: xorg-x11-%{pkgname} Version: 1.0.7 -Release: 3%{?dist} +Release: 4%{?dist} License: MIT/X11 Group: User Interface/X URL: http://www.x.org @@ -23,6 +23,7 @@ Source100: ck-xinit-session.c Patch1: xinit-1.0.2-client-session.patch Patch2: xinit-1.0.7-poke-ck.patch +Patch3: xinit-1.0.7-unset.patch BuildRequires: pkgconfig BuildRequires: libX11-devel @@ -40,10 +41,6 @@ Requires: xorg-x11-server-utils Requires: ConsoleKit-x11 Requires: ConsoleKit-libs -# NOTE: xinit, startx moved to xorg-x11-xinit during the X.Org X11R7 -# modularization. These Obsoletes lines ensure upgrades work smoothly. -Obsoletes: XFree86, xorg-x11 - # NOTE: Most of the xinitrc scripts/config files are now in xorg-x11-xinit, # so the xinitrc package became unnecessary. The xdm configs/scripts move # to the xdm package. @@ -61,6 +58,7 @@ X.Org X11 X Window System xinit startup scripts %setup -q -n %{pkgname}-%{version} %patch1 -p1 -b .client-session #%patch2 -p1 -b .poke-ck +%patch3 -p1 -b .unset %build autoreconf @@ -120,6 +118,10 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man1/xinit.1* %changelog +* Mon Feb 11 2008 Adam Jackson 1.0.7-4 +- xinit-1.0.7-unset.patch: Unset various session-related environment + variables at the top of startx. (#431899) + * Mon Feb 4 2008 Ray Strode 1.0.7-3 - don't special case dbus-launch. dbus-x11 now installs a script into /etc/X11/xinit/xinitrc.d.