---- XFree86-4.2.0/xc/config/cf/xfree86.cf.orig Sat Feb 2 22:43:40 2002
-+++ XFree86-4.2.0/xc/config/cf/xfree86.cf Sun Feb 3 01:19:18 2002
-@@ -815,7 +815,7 @@
- */
- #if !defined(BuildPexExt)
- # if XF86Server && !defined(AlphaArchitecture) && !defined(ia64Architecture) && !defined(s390xArchitecture)
+diff -urN xc.orig/config/cf/xfree86.cf xc/config/cf/xfree86.cf
+--- xc.orig/config/cf/xfree86.cf Mon Dec 30 15:52:31 2002
++++ xc/config/cf/xfree86.cf Mon Dec 30 20:44:34 2002
+@@ -1122,7 +1122,7 @@
+ && !defined(ia64Architecture) \
+ && !defined(s390xArchitecture) \
+ && !defined (x86_64Architecture)
-# define BuildPexExt NO /* But we turn off PEX anyway now */
+# define BuildPexExt YES /* But we turn off PEX anyway now */
# else
# define BuildPexExt NO
# endif
-@@ -1021,7 +1021,7 @@
+@@ -1363,7 +1363,7 @@
*/
#ifndef BuildXIE
# if XF86Server
# else
# define BuildXIE NO
# endif
---- XFree86-4.2.0/xc/programs/xdpyinfo/Imakefile.orig Thu Dec 27 21:02:34 2001
-+++ XFree86-4.2.0/xc/programs/xdpyinfo/Imakefile Sun Feb 3 10:56:30 2002
+diff -urN xc.orig/programs/xdpyinfo/Imakefile xc/programs/xdpyinfo/Imakefile
+--- xc.orig/programs/xdpyinfo/Imakefile Mon Dec 30 15:54:07 2002
++++ xc/programs/xdpyinfo/Imakefile Mon Dec 30 20:40:08 2002
@@ -10,11 +10,6 @@
SHMDEFINES = -DMITSHM
#endif
---- XFree86-4.1.0.org/xc/Makefile Wed Mar 22 22:23:30 2000
-+++ XFree86-4.1.0/xc/Makefile Wed Dec 20 13:41:02 2000
+diff -urN xc.orig/Makefile xc/Makefile
+--- xc.orig/Makefile Mon Dec 30 15:54:17 2002
++++ xc/Makefile Mon Dec 30 16:02:13 2002
@@ -8,10 +8,10 @@
# or add "MAKE = make" to this file.
WIN32WORLDOPTS = -i
TOP = .
CURRENT_DIR = .
-diff -Nur XFree86-4.0.2.org/xc/config/cf/Imake.cf XFree86-4.0.2/xc/config/cf/Imake.cf
---- XFree86-4.0.2.org/xc/config/cf/Imake.cf Mon Nov 6 23:53:47 2000
-+++ XFree86-4.0.2/xc/config/cf/Imake.cf Wed Dec 20 13:41:02 2000
-@@ -689,6 +689,10 @@
+diff -urN xc.orig/config/cf/Imake.cf xc/config/cf/Imake.cf
+--- xc.orig/config/cf/Imake.cf Mon Dec 30 15:52:30 2002
++++ xc/config/cf/Imake.cf Mon Dec 30 16:02:13 2002
+@@ -723,6 +723,10 @@
# define s390Architecture
# undef __s390__
# endif /* s390 */
# ifdef __alpha
# define AlphaArchitecture
# undef __alpha
-diff -Nur XFree86-4.0.2.org/xc/config/cf/Imake.tmpl XFree86-4.0.2/xc/config/cf/Imake.tmpl
---- XFree86-4.0.2.org/xc/config/cf/Imake.tmpl Tue Dec 5 01:45:28 2000
-+++ XFree86-4.0.2/xc/config/cf/Imake.tmpl Wed Dec 20 13:41:02 2000
-@@ -220,7 +220,7 @@
+diff -urN xc.orig/config/cf/Imake.tmpl xc/config/cf/Imake.tmpl
+--- xc.orig/config/cf/Imake.tmpl Mon Dec 30 15:52:30 2002
++++ xc/config/cf/Imake.tmpl Mon Dec 30 16:02:13 2002
+@@ -253,7 +253,7 @@
#ifndef BuildHtmlManPages
#ifdef RmanCmd
#else
#define BuildHtmlManPages NO
#endif
-@@ -686,11 +686,7 @@
+@@ -833,11 +833,7 @@
#define LintlibDir $(USRLIBDIR)/lint
#endif
#ifndef SystemManDirectory
#endif
#ifndef ManDirectoryRoot
#ifdef ProjectRoot
-@@ -817,7 +813,7 @@
+@@ -974,7 +970,7 @@
#define NoRConst NO /* YES if const for structs of funcs is bad */
#endif
#ifndef InstPgmFlags
#endif
#ifndef InstBinFlags
#define InstBinFlags -m 0755
-@@ -958,7 +954,7 @@
- #define CppCmd /lib/cpp
+@@ -1112,7 +1108,7 @@
+ #define CppCmd /LibDirName/cpp
#endif
#ifndef RawCppCmd
-#define RawCppCmd CppCmd -undef
#endif
#ifndef CppNoLineInfoOption
#define CppNoLineInfoOption /**/
-diff -Nur XFree86-4.0.2.org/xc/config/cf/X11.tmpl XFree86-4.0.2/xc/config/cf/X11.tmpl
---- XFree86-4.0.2.org/xc/config/cf/X11.tmpl Sat Dec 16 07:39:25 2000
-+++ XFree86-4.0.2/xc/config/cf/X11.tmpl Wed Dec 20 13:41:02 2000
-@@ -882,8 +882,12 @@
- #endif
+diff -urN xc.orig/config/cf/X11.tmpl xc/config/cf/X11.tmpl
+--- xc.orig/config/cf/X11.tmpl Mon Dec 30 15:52:30 2002
++++ xc/config/cf/X11.tmpl Mon Dec 30 16:02:13 2002
+@@ -1256,8 +1256,12 @@
+ # define UsbMouseSupport NO
#endif
+#ifndef EtcX11Directory
#endif
/* X-TrueType settings */
-@@ -1002,7 +1006,7 @@
+@@ -1380,7 +1384,7 @@
#define ConfigDir $(LIBDIR)/config
#endif
#ifndef DocDir
#endif
#ifndef DocHtmlDir
#define DocHtmlDir $(DOCDIR)/html
-@@ -1011,31 +1015,31 @@
+@@ -1389,31 +1393,31 @@
#define DocPsDir $(DOCDIR)/PostScript
#endif
#ifndef FontDir
#endif
#ifndef NlsDir
#define NlsDir $(LIBDIR)/nls
-@@ -1047,23 +1051,20 @@
+@@ -1425,23 +1429,20 @@
#define PexApiDir $(LIBDIR)/PEX
#endif
#ifndef LbxproxyDir
#ifndef InstallSecurityConfig
#define InstallSecurityConfig YES /* Install sample security policy */
#endif
-@@ -1095,10 +1096,10 @@
+@@ -1473,10 +1474,10 @@
#define OsNameDefines /* as nothing */
#endif
#ifndef DefaultUserPath /* for xdm */
#endif
#ifndef DefaultSystemShell /* for xdm to set in SHELL */
#define DefaultSystemShell BourneShell
-@@ -1211,7 +1212,7 @@
+@@ -1603,7 +1604,7 @@
HTMLINDEXCMD = HtmlIndexCmd
CLIENTSRC = $(TOP)/clients
DEMOSRC = $(TOP)/demos
XDOCMACROS = $(DOCUTILSRC)/macros.t
-@@ -1225,7 +1226,7 @@
+@@ -1617,7 +1618,7 @@
SERVERSRC = $(XTOP)/programs/Xserver
CONTRIBSRC = ContribDir
UNSUPPORTEDSRC = UnsupportedDir
RGBSRC = $(XTOP)/programs/rgb
BDFTOPCFSRC = $(PROGRAMSRC)/bdftopcf
MKFONTDIRSRC = $(PROGRAMSRC)/mkfontdir
-diff -Nur XFree86-4.0.2.org/xc/config/cf/linux.cf XFree86-4.0.2/xc/config/cf/linux.cf
---- XFree86-4.0.2.org/xc/config/cf/linux.cf Thu Dec 14 20:24:08 2000
-+++ XFree86-4.0.2/xc/config/cf/linux.cf Wed Dec 20 13:45:03 2000
-@@ -286,7 +286,7 @@
+diff -urN xc.orig/config/cf/linux.cf xc/config/cf/linux.cf
+--- xc.orig/config/cf/linux.cf Mon Dec 30 15:52:31 2002
++++ xc/config/cf/linux.cf Mon Dec 30 16:20:00 2002
+@@ -320,7 +320,7 @@
*/
#if BuildXF86DRI
# if defined(i386Architecture)
# endif
#endif
-@@ -298,7 +298,7 @@
- # if defined(i386Architecture) || defined(ia64Architecture)
+@@ -333,7 +333,7 @@
+ # if defined(i386Architecture) || defined(ia64Architecture) || defined(SparcArchitecture) || defined(AlphaArchitecture) || defined(x86_64Architecture)
# if OSMajorVersion == 2
/* Only tested for Linux 2.2.0 through 2.2.12 */
-# if OSMinorVersion == 2 && OSTeenyVersion <= 12
# define BuildXF86DRM YES
# else
/* Only tested for Linux 2.3.0 through 2.3.18 */
-@@ -565,7 +565,7 @@
- #define StandardCppDefines StandardDefines
+@@ -721,7 +721,7 @@
#define HasVarRun YES
--#define VarDbDirectory $(VARDIR)/lib
-+#define VarDbDirectory /var/lib
+ #ifndef VarDbDirectory
+-# define VarDbDirectory $(VARDIR)/lib
++# define VarDbDirectory /var/lib
+ #endif
#ifndef XF86OSCardDrivers
- # define XF86OSCardDrivers v4l
-@@ -704,10 +704,10 @@
+@@ -936,10 +936,10 @@
#endif
#ifndef LinkGLToUsrLib
#endif
-diff -Nur XFree86-4.0.2.org/xc/config/cf/site.def XFree86-4.0.2/xc/config/cf/site.def
---- XFree86-4.0.2.org/xc/config/cf/site.def Tue Jun 27 02:55:45 2000
-+++ XFree86-4.0.2/xc/config/cf/site.def Wed Dec 20 13:41:02 2000
-@@ -131,10 +131,14 @@
+diff -urN xc.orig/config/cf/site.def xc/config/cf/site.def
+--- xc.orig/config/cf/site.def Mon Dec 30 15:52:31 2002
++++ xc/config/cf/site.def Mon Dec 30 16:02:13 2002
+@@ -119,10 +119,14 @@
#define HasSentinel YES
*/
/* You do NOT need SetUID if you only run the server under xdm */
-diff -Nur XFree86-4.0.2.org/xc/config/cf/xf86site.def XFree86-4.0.2/xc/config/cf/xf86site.def
---- XFree86-4.0.2.org/xc/config/cf/xf86site.def Thu Dec 14 20:24:16 2000
-+++ XFree86-4.0.2/xc/config/cf/xf86site.def Wed Dec 20 13:41:03 2000
-@@ -134,16 +134,16 @@
+diff -urN xc.orig/config/cf/xf86site.def xc/config/cf/xf86site.def
+--- xc.orig/config/cf/xf86site.def Mon Dec 30 15:52:31 2002
++++ xc/config/cf/xf86site.def Mon Dec 30 16:28:24 2002
+@@ -234,8 +234,8 @@
+ /*
+ * To not build/install the Cyrillic fonts, uncomment the following
+ *
+-#define BuildCyrillicFonts NO
+ */
++#define BuildCyrillicFonts YES
+
+ /*
+ * To not install the local font directory, uncomment the following
+@@ -281,27 +281,26 @@
+ * HasGlide2 to YES and set the Glide2IncDir variable.
+ * HasGlide2 is per default NO.
+ *
+-#define HasGlide2 YES
+ */
++#define HasGlide2 YES
+
+ /*
+ * Set the path to your Glide include files.
+ *
+-#define Glide2IncDir /usr/include/glide
+ */
++#define Glide2IncDir /usr/include/glide
+
+ /*
+ * Have glide 3?
+ *
+-#define HasGlide3 YES
+ */
++#define HasGlide3 YES
+
+ /*
+ * Set the path to your Glide 3 include files.
+ *
+-#define Glide3IncDir /usr/include/glide3
+ */
+-
++#define Glide3IncDir /usr/include/glide3
+
+
+ /*
+@@ -403,8 +402,8 @@
* Some Linux releases don't have a libtermcap. In this case you may need
* to uncomment the following
*
/*
* If you have Tk (which is required to build XF86Setup), uncomment this
- * Note: version 4.0 or 4.1 is required, and XF86Setup links it statically by
- * default.
+@@ -413,8 +412,8 @@
+ * default.
+ * - XF86Setup is not built or supported with XFree86 4.x
*
-#define HasTk YES
*/
/*
* Set the paths and names for your Tk library if they don't match the
-@@ -156,25 +156,25 @@
+@@ -427,25 +426,25 @@
*
* Some Linux releases need TkLibDir set to /usr/X11R6/lib
*
/*
* Set the paths and names for your Tcl library if they don't match the
-@@ -184,17 +184,17 @@
+@@ -455,17 +454,17 @@
*
* Some Linux releases need TclIncDir set to /usr/include/tcl.
*
/*
* Build a server that dynamically loads the modules by setting
-@@ -436,8 +436,8 @@
- /*
- * To not build/install the Cyrillic fonts, uncomment the following
- *
--#define BuildCyrillicFonts NO
- */
-+#define BuildCyrillicFonts YES
-
- /*
- * To not build/install the Latin2 fonts, uncomment the following
-@@ -626,8 +626,8 @@
+@@ -677,8 +676,8 @@
* To forceably build static libraries in addition to shared libraries,
* uncomment this.
*
/*
* Uncomment this if your default tools (eg, gcc, ld, as, etc) are
-@@ -713,26 +713,26 @@
- * HasGlide2 to YES and set the Glide2IncDir variable.
- * HasGlide2 is per default NO.
- *
--#define HasGlide2 YES
- */
-+#define HasGlide2 YES
-
- /*
- * Set the path to your Glide include files.
- *
--#define Glide2IncDir /usr/include/glide
- */
-+#define Glide2IncDir /usr/include/glide
-
- /*
- * The 3Dfx 3D DRI driver requires glide 3.
- *
--#define HasGlide3 YES
- */
-+#define HasGlide3 YES
-
- /*
- * Set the path to your Glide 3 include files.
- *
--#define Glide3IncDir /usr/include/glide3
- */
-+#define Glide3IncDir /usr/include/glide3
-
- /*
- * Undefine the following if you don't want to have config files and
-diff -Nur XFree86-4.0.2.org/xc/config/cf/xfree86.cf XFree86-4.0.2/xc/config/cf/xfree86.cf
---- XFree86-4.0.2.org/xc/config/cf/xfree86.cf Thu Dec 14 20:24:17 2000
-+++ XFree86-4.0.2/xc/config/cf/xfree86.cf Wed Dec 20 13:52:03 2000
-@@ -28,7 +28,7 @@
+diff -urN xc.orig/config/cf/xfree86.cf xc/config/cf/xfree86.cf
+--- xc.orig/config/cf/xfree86.cf Mon Dec 30 15:52:31 2002
++++ xc/config/cf/xfree86.cf Mon Dec 30 16:02:13 2002
+@@ -107,7 +107,7 @@
#define XConfigFile XF86Config
#endif
#ifndef XConfigDir
#endif
#ifndef XLogFile
#define XLogFile XFree86
-@@ -653,7 +653,7 @@
+@@ -877,7 +877,7 @@
/* Pure PCI drivers should go first */
# ifndef XF86CardDrivers
# define XF86CardDrivers ati mga glint s3 s3virge sis savage\
DevelDrivers vga \
XF86OSCardDrivers XF86ExtraCardDrivers
# endif
-diff -Nur XFree86-4.0.2.org/xc/config/imake/imake.c XFree86-4.0.2/xc/config/imake/imake.c
---- XFree86-4.0.2.org/xc/config/imake/imake.c Wed Nov 29 17:33:50 2000
-+++ XFree86-4.0.2/xc/config/imake/imake.c Wed Dec 20 13:41:03 2000
-@@ -952,6 +952,7 @@
- static char* yast = "/sbin/YaST";
+diff -urN xc.orig/config/imake/imake.c xc/config/imake/imake.c
+--- xc.orig/config/imake/imake.c Mon Dec 30 15:52:31 2002
++++ xc/config/imake/imake.c Mon Dec 30 16:02:13 2002
+@@ -1057,6 +1057,7 @@
+ static char* suse = "/etc/SuSE-release";
static char* redhat = "/etc/redhat-release";
static char* debian = "/etc/debian_version";
+ static char* pld = "/etc/pld-release";
fprintf (inFile, "%s\n", "#define LinuxUnknown 0");
fprintf (inFile, "%s\n", "#define LinuxSuSE 1");
-@@ -966,6 +967,7 @@
+@@ -1071,6 +1072,7 @@
fprintf (inFile, "%s\n", "#define LinuxTurbo 10");
fprintf (inFile, "%s\n", "#define LinuxWare 11");
fprintf (inFile, "%s\n", "#define LinuxYggdrasil 12");
+ fprintf (inFile, "%s\n", "#define LinuxPLD 13");
- if (lstat (yast, &sb) == 0) {
- fprintf (inFile, "%s\n", "#define DefaultLinuxDistribution LinuxSuSE");
-@@ -982,6 +984,11 @@
- fprintf (inFile, "%s\n", "#define DefaultLinuxDistName Debian");
- /* You could also try to get the version of the Debian distrib by looking
+ #ifdef CROSSCOMPILE
+ if (CrossCompiling) {
+@@ -1097,6 +1099,11 @@
* at the content of /etc/debian_version */
-+ return;
-+ }
+ return;
+ }
+ if (lstat (pld, &sb) == 0) {
+ fprintf (inFile, "%s\n", "#define DefaultLinuxDistribution LinuxPLD");
+ fprintf (inFile, "%s\n", "#define DefaultLinuxDistName PLD");
- return;
- }
++ return;
++ }
/* what's the definitive way to tell what any particular distribution is? */
-diff -Nur XFree86-4.0.2.org/xc/programs/Xserver/hw/xfree86/XF86Setup/Imakefile XFree86-4.0.2/xc/programs/Xserver/hw/xfree86/XF86Setup/Imakefile
---- XFree86-4.0.2.org/xc/programs/Xserver/hw/xfree86/XF86Setup/Imakefile Sat Sep 4 15:04:28 1999
-+++ XFree86-4.0.2/xc/programs/Xserver/hw/xfree86/XF86Setup/Imakefile Wed Dec 20 13:41:03 2000
+
+ fprintf (inFile, "%s\n", "#define DefaultLinuxDistribution LinuxUnknown");
+diff -urN xc.orig/programs/Xserver/hw/xfree86/XF86Setup/Imakefile xc/programs/Xserver/hw/xfree86/XF86Setup/Imakefile
+--- xc.orig/programs/Xserver/hw/xfree86/XF86Setup/Imakefile Mon Dec 30 15:53:38 2002
++++ xc/programs/Xserver/hw/xfree86/XF86Setup/Imakefile Mon Dec 30 16:02:13 2002
@@ -118,7 +118,7 @@
XCONFIG_DEFINES = $(EXT_DEFINES) -DXF86SETUP \
$(SITE_FONT_PATH) $(SITE_RGB_DB) \
-DNO_WRAPPERS
-diff -Nur XFree86-4.0.2.org/xc/programs/Xserver/hw/xfree86/XF86Setup/phase5.tcl XFree86-4.0.2/xc/programs/Xserver/hw/xfree86/XF86Setup/phase5.tcl
---- XFree86-4.0.2.org/xc/programs/Xserver/hw/xfree86/XF86Setup/phase5.tcl Sun Apr 5 18:15:52 1998
-+++ XFree86-4.0.2/xc/programs/Xserver/hw/xfree86/XF86Setup/phase5.tcl Wed Dec 20 13:41:03 2000
+diff -urN xc.orig/programs/Xserver/hw/xfree86/XF86Setup/phase5.tcl xc/programs/Xserver/hw/xfree86/XF86Setup/phase5.tcl
+--- xc.orig/programs/Xserver/hw/xfree86/XF86Setup/phase5.tcl Mon Dec 30 15:53:38 2002
++++ xc/programs/Xserver/hw/xfree86/XF86Setup/phase5.tcl Mon Dec 30 16:02:13 2002
@@ -38,7 +38,7 @@
set devid [lindex $DeviceIDs $idx]
global Device_$devid
mesg $messages(phase5.4) okay
} else {
mesg $messages(phase5.5) okay
-diff -Nur XFree86-4.0.2.org/xc/programs/xdm/config/Xres.cpp XFree86-4.0.2/xc/programs/xdm/config/Xres.cpp
---- XFree86-4.0.2.org/xc/programs/xdm/config/Xres.cpp Wed Nov 29 17:46:09 2000
-+++ XFree86-4.0.2/xc/programs/xdm/config/Xres.cpp Wed Dec 20 13:41:03 2000
-@@ -66,9 +66,9 @@
+diff -urN xc.orig/programs/Xserver/hw/xfree86/xf86cfg/Imakefile xc/programs/Xserver/hw/xfree86/xf86cfg/Imakefile
+--- xc.orig/programs/Xserver/hw/xfree86/xf86cfg/Imakefile Mon Dec 30 15:53:56 2002
++++ xc/programs/Xserver/hw/xfree86/xf86cfg/Imakefile Mon Dec 30 16:02:13 2002
+@@ -93,7 +93,7 @@
+
+ #if HasNCurses
+ CURSESLIB = NCursesLibName
+-CURSESDEFINES = -DHAS_NCURSES
++CURSESDEFINES = -DHAS_NCURSES -I/usr/include/ncurses
+ #endif
+
+ XF86CONFIGFILE = XConfigFile
+diff -urN xc.orig/programs/xdm/config/Xres.cpp xc/programs/xdm/config/Xres.cpp
+--- xc.orig/programs/xdm/config/Xres.cpp Mon Dec 30 15:54:07 2002
++++ xc/programs/xdm/config/Xres.cpp Mon Dec 30 16:02:13 2002
+@@ -70,10 +70,10 @@
+ #endif /* XPM */
/**/#endif
#ifdef XPM
-/**/#if PLANES >= 8
/**/#endif
xlogin*useShape: true
xlogin*logoPadding: 10
-diff -Nur XFree86-4.0.2.org/xc/programs/xdm/resource.c XFree86-4.0.2/xc/programs/xdm/resource.c
---- XFree86-4.0.2.org/xc/programs/xdm/resource.c Sun Dec 6 07:08:49 1998
-+++ XFree86-4.0.2/xc/programs/xdm/resource.c Wed Dec 20 13:41:03 2000
-@@ -70,31 +70,31 @@
+diff -urN xc.orig/programs/xdm/resource.c xc/programs/xdm/resource.c
+--- xc.orig/programs/xdm/resource.c Mon Dec 30 15:54:06 2002
++++ xc/programs/xdm/resource.c Mon Dec 30 16:02:13 2002
+@@ -73,31 +73,31 @@
+ * if it is server-specific). DO NOT CHANGE THESE DEFINITIONS!
*/
- #ifndef __EMX__
#ifndef DEF_SERVER_LINE
-#define DEF_SERVER_LINE ":0 local /usr/bin/X11/X :0"
+#define DEF_SERVER_LINE ":0 local /usr/X11R6/bin/X :0"
#endif
#ifndef DEF_AUTH_NAME
#ifdef HASXDMAUTH
-@@ -104,7 +104,7 @@
+@@ -107,7 +107,7 @@
#endif
#endif
#ifndef DEF_AUTH_DIR
#endif
#ifndef DEF_USER_AUTH_DIR
#define DEF_USER_AUTH_DIR "/tmp"
-diff -Nur XFree86-4.0.2.org/xc/programs/xinit/Imakefile XFree86-4.0.2/xc/programs/xinit/Imakefile
---- XFree86-4.0.2.org/xc/programs/xinit/Imakefile Tue Dec 5 01:59:44 2000
-+++ XFree86-4.0.2/xc/programs/xinit/Imakefile Wed Dec 20 13:41:03 2000
-@@ -41,11 +41,13 @@
+diff -urN xc.orig/programs/xinit/Imakefile xc/programs/xinit/Imakefile
+--- xc.orig/programs/xinit/Imakefile Mon Dec 30 15:54:10 2002
++++ xc/programs/xinit/Imakefile Mon Dec 30 16:31:27 2002
+@@ -39,11 +39,12 @@
InstallNamedProg(startx,startx,$(BINDIR))
InstallManPage(startx,$(MANDIR))
+XCOMM #else
+XCOMM InstallNonExecFileNoClobber($(SAMPLECONFIG),$(XINITDIR))
+XCOMM #endif
-+
- #endif
LinkConfDirectory(xinit,.,xinit,.)
-diff -Nur XFree86-4.0.2.org/xc/programs/xterm/Imakefile XFree86-4.0.2/xc/programs/xterm/Imakefile
---- XFree86-4.0.2.org/xc/programs/xterm/Imakefile Tue Dec 5 02:00:14 2000
-+++ XFree86-4.0.2/xc/programs/xterm/Imakefile Wed Dec 20 13:43:30 2000
+
+diff -urN xc.orig/programs/xterm/Imakefile xc/programs/xterm/Imakefile
+--- xc.orig/programs/xterm/Imakefile Mon Dec 30 15:54:16 2002
++++ xc/programs/xterm/Imakefile Mon Dec 30 16:35:55 2002
@@ -36,6 +36,10 @@
#define XkbClientLibs /**/
#endif
+ PTYLIB = -lutil
+
- #if ((LinuxCLibMajorVersion == 6) && (LinuxCLibMinorVersion < 1))
- PTYLIB = -lutil
- #endif
-@@ -109,7 +115,7 @@
- -DOSMINORVERSION=$(OSMINORVERSION)
+ #if defined(NetBSDArchitecture) || defined(OpenBSDArchitecture) || \
+ (defined(LinuxArchitecture) && \
+ (LinuxCLibMajorVersion == 6) && (LinuxCLibMinorVersion < 1))
+@@ -110,7 +116,7 @@
MISC_DEFINES = /* -DALLOWLOGGING -DALLOWLOGFILEEXEC */
XKB_DEFINES = XkbClientDefines
-- DEFINES = -I. $(XKB_DEFINES) $(TERMCAPDEFINES) $(FEATURE_DEFINES) $(SCROLLBAR_RIGHT) $(UTF8_OPTION) $(XRFDEF)
-+ DEFINES = -I. -I/usr/include/ncurses $(XKB_DEFINES) $(TERMCAPDEFINES) $(FEATURE_DEFINES) $(SCROLLBAR_RIGHT) $(UTF8_OPTION) $(XRFDEF)
+ PATH_DEFINES = -DPROJECTROOT=$(PROJECTROOT)
+- DEFINES = -I. $(XKB_DEFINES) $(TERMCAPDEFINES) $(FEATURE_DEFINES) $(SCROLLBAR_RIGHT) $(UTF8_OPTION) $(XRFDEF) $(PATH_DEFINES) $(TRACEDEF)
++ DEFINES = -I. -I/usr/include/ncurses $(XKB_DEFINES) $(TERMCAPDEFINES) $(FEATURE_DEFINES) $(SCROLLBAR_RIGHT) $(UTF8_OPTION) $(XRFDEF) $(PATH_DEFINES) $(TRACEDEF)
+ INCLUDES = $(XRFINCLUDES)
#ifdef OS2Architecture
- MAINSRC = os2main.c
-diff -Nur XFree86-4.0.2.org/xc/programs/xterm/xterm.h XFree86-4.0.2/xc/programs/xterm/xterm.h
---- XFree86-4.0.2.org/xc/programs/xterm/xterm.h Sat Dec 9 05:02:44 2000
-+++ XFree86-4.0.2/xc/programs/xterm/xterm.h Wed Dec 20 13:41:03 2000
-@@ -62,7 +62,7 @@
+diff -urN xc.orig/programs/xterm/xterm.h xc/programs/xterm/xterm.h
+--- xc.orig/programs/xterm/xterm.h Mon Dec 30 15:54:16 2002
++++ xc/programs/xterm/xterm.h Mon Dec 30 16:02:13 2002
+@@ -73,7 +73,7 @@
#endif
#ifndef DFT_TERMTYPE
#endif
#ifndef X_NOT_POSIX
---- XFree86-4.0.2/xc/programs/Xserver/hw/xfree86/xf86cfg/Imakefile~ Thu Dec 14 20:47:46 2000
-+++ XFree86-4.0.2/xc/programs/Xserver/hw/xfree86/xf86cfg/Imakefile Fri Dec 22 17:58:27 2000
-@@ -92,7 +92,7 @@
-
- #if HasNCurses
- CURSESLIB = NCursesLibName
--CURSESDEFINES = -DHAS_NCURSES
-+CURSESDEFINES = -DHAS_NCURSES -I/usr/include/ncurses
- #endif
-
- DEFINES = -DXF86CONFIG=\"XConfigFile\" $(MODULEDEFINES) \
---- XFree86-4.2.1/xc/programs/xterm/XTerm.ad~ Thu Sep 5 10:05:48 2002
-+++ XFree86-4.2.1/xc/programs/xterm/XTerm.ad Thu Sep 5 10:05:48 2002
-@@ -5,115 +5,115 @@
- !
- ! $XFree86: xc/programs/xterm/XTerm.ad,v 3.22 2002/01/05 22:05:02 dickey Exp $
-
--XTerm.JoinSession:False
-+XTerm.JoinSession: False
-
--*SimpleMenu*BackingStore: NotUseful
--*SimpleMenu*menuLabel.font: -adobe-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-*
--*SimpleMenu*menuLabel.vertSpace: 100
--*SimpleMenu*HorizontalMargins: 16
--*SimpleMenu*Sme.height: 16
--
--*SimpleMenu*Cursor: left_ptr
--
--*mainMenu.Label: Main Options
--*mainMenu*securekbd*Label: Secure Keyboard
--*mainMenu*allowsends*Label: Allow SendEvents
--*mainMenu*logging*Label: Log to File
--*mainMenu*print*Label: Print Window
--*mainMenu*redraw*Label: Redraw Window
--*mainMenu*8-bit control*Label: 8-Bit Controls
--*mainMenu*backarrow key*Label: Backarrow Key (BS/DEL)
--*mainMenu*num-lock*Label: Alt/NumLock Modifiers
--*mainMenu*meta-esc*Label: Meta Sends Escape
--*mainMenu*delete-is-del*Label: Delete is DEL
--*mainMenu*oldFunctionKeys*Label: Old Function-Keys
--*mainMenu*sunFunctionKeys*Label: Sun Function-Keys
--*mainMenu*sunKeyboard*Label: VT220 Keyboard
--*mainMenu*hpFunctionKeys*Label: HP Function-Keys
--*mainMenu*scoFunctionKeys*Label: SCO Function-Keys
--*mainMenu*suspend*Label: Send STOP Signal
--*mainMenu*continue*Label: Send CONT Signal
--*mainMenu*interrupt*Label: Send INT Signal
--*mainMenu*hangup*Label: Send HUP Signal
--*mainMenu*terminate*Label: Send TERM Signal
--*mainMenu*kill*Label: Send KILL Signal
--*mainMenu*quit*Label: Quit
--
--*vtMenu.Label: VT Options
--*vtMenu*scrollbar*Label: Enable Scrollbar
--*vtMenu*jumpscroll*Label: Enable Jump Scroll
--*vtMenu*reversevideo*Label: Enable Reverse Video
--*vtMenu*autowrap*Label: Enable Auto Wraparound
--*vtMenu*reversewrap*Label: Enable Reverse Wraparound
--*vtMenu*autolinefeed*Label: Enable Auto Linefeed
--*vtMenu*appcursor*Label: Enable Application Cursor Keys
--*vtMenu*appkeypad*Label: Enable Application Keypad
--*vtMenu*scrollkey*Label: Scroll to Bottom on Key Press
--*vtMenu*scrollttyoutput*Label: Scroll to Bottom on Tty Output
--*vtMenu*allow132*Label: Allow 80/132 Column Switching
--*vtMenu*cursesemul*Label: Enable Curses Emulation
--*vtMenu*visualbell*Label: Enable Visual Bell
--*vtMenu*poponbell*Label: Enable Pop on Bell
--*vtMenu*marginbell*Label: Enable Margin Bell
--*vtMenu*cursorblink*Label: Enable Blinking Cursor
--*vtMenu*titeInhibit*Label: Enable Alternate Screen Switching
--*vtMenu*activeicon*Label: Enable Active Icon
--*vtMenu*softreset*Label: Do Soft Reset
--*vtMenu*hardreset*Label: Do Full Reset
--*vtMenu*clearsavedlines*Label: Reset and Clear Saved Lines
--*vtMenu*tekshow*Label: Show Tek Window
--*vtMenu*tekmode*Label: Switch to Tek Mode
--*vtMenu*vthide*Label: Hide VT Window
--*vtMenu*altscreen*Label: Show Alternate Screen
--
--*fontMenu.Label: VT Fonts
--*fontMenu*fontdefault*Label: Default
--*fontMenu*font1*Label: Unreadable
--*VT100*font1: nil2
--*IconFont: nil2
--*fontMenu*font2*Label: Tiny
--*VT100*font2: 5x7
--*fontMenu*font3*Label: Small
--*VT100*font3: 6x10
--*fontMenu*font4*Label: Medium
--*VT100*font4: 7x13
--*fontMenu*font5*Label: Large
--*VT100*font5: 9x15
--*fontMenu*font6*Label: Huge
--*VT100*font6: 10x20
--*fontMenu*fontescape*Label: Escape Sequence
-+*SimpleMenu*BackingStore: NotUseful
-+*SimpleMenu*menuLabel.font: -adobe-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-*
-+*SimpleMenu*menuLabel.vertSpace: 100
-+*SimpleMenu*HorizontalMargins: 16
-+*SimpleMenu*Sme.height: 16
-+
-+*SimpleMenu*Cursor: left_ptr
-+
-+*mainMenu.Label: Main Options
-+*mainMenu*securekbd*Label: Secure Keyboard
-+*mainMenu*allowsends*Label: Allow SendEvents
-+*mainMenu*logging*Label: Log to File
-+*mainMenu*print*Label: Print Window
-+*mainMenu*redraw*Label: Redraw Window
-+*mainMenu*8-bit control*Label 8-Bit Controls
-+*mainMenu*backarrow key*Label: Backarrow Key (BS/DEL)
-+*mainMenu*num-lock*Label: Alt/NumLock Modifiers
-+*mainMenu*meta-esc*Label: Meta Sends Escape
-+*mainMenu*delete-is-del*Label: Delete is DEL
-+*mainMenu*oldFunctionKeys*Label: Old Function-Keys
-+*mainMenu*sunFunctionKeys*Label: Sun Function-Keys
-+*mainMenu*sunKeyboard*Label: VT220 Keyboard
-+*mainMenu*hpFunctionKeys*Label: HP Function-Keys
-+*mainMenu*scoFunctionKeys*Label: SCO Function-Keys
-+*mainMenu*suspend*Label: Send STOP Signal
-+*mainMenu*continue*Label: Send CONT Signal
-+*mainMenu*interrupt*Label: Send INT Signal
-+*mainMenu*hangup*Label: Send HUP Signal
-+*mainMenu*terminate*Label: Send TERM Signal
-+*mainMenu*kill*Label: Send KILL Signal
-+*mainMenu*quit*Label: Quit
-+
-+*vtMenu.Label: VT Options
-+*vtMenu*scrollbar*Label: Enable Scrollbar
-+*vtMenu*jumpscroll*Label: Enable Jump Scroll
-+*vtMenu*reversevideo*Label: Enable Reverse Video
-+*vtMenu*autowrap*Label: Enable Auto Wraparound
-+*vtMenu*reversewrap*Label: Enable Reverse Wraparound
-+*vtMenu*autolinefeed*Label: Enable Auto Linefeed
-+*vtMenu*appcursor*Label: Enable Application Cursor Keys
-+*vtMenu*appkeypad*Label: Enable Application Keypad
-+*vtMenu*scrollkey*Label: Scroll to Bottom on Key Press
-+*vtMenu*scrollttyoutput*Label: Scroll to Bottom on Tty Output
-+*vtMenu*allow132*Label: Allow 80/132 Column Switching
-+*vtMenu*cursesemul*Label: Enable Curses Emulation
-+*vtMenu*visualbell*Label: Enable Visual Bell
-+*vtMenu*poponbell*Label: Enable Pop on Bell
-+*vtMenu*marginbell*Label: Enable Margin Bell
-+*vtMenu*cursorblink*Label: Enable Blinking Cursor
-+*vtMenu*titeInhibit*Label: Enable Alternate Screen Switching
-+*vtMenu*activeicon*Label: Enable Active Icon
-+*vtMenu*softreset*Label: Do Soft Reset
-+*vtMenu*hardreset*Label: Do Full Reset
-+*vtMenu*clearsavedlines*Label: Reset and Clear Saved Lines
-+*vtMenu*tekshow*Label: Show Tek Window
-+*vtMenu*tekmode*Label: Switch to Tek Mode
-+*vtMenu*vthide*Label: Hide VT Window
-+*vtMenu*altscreen*Label: Show Alternate Screen
-+
-+*fontMenu.Label: VT Fonts
-+*fontMenu*fontdefault*Label: Default
-+*fontMenu*font1*Label: Unreadable
-+*VT100*font1: nil2
-+*IconFont: nil2
-+*fontMenu*font2*Label: Tiny
-+*VT100*font2: 5x7
-+*fontMenu*font3*Label: Small
-+*VT100*font3: 6x10
-+*fontMenu*font4*Label: Medium
-+*VT100*font4: 7x13
-+*fontMenu*font5*Label: Large
-+*VT100*font5: 9x15
-+*fontMenu*font6*Label: Huge
-+*VT100*font6: 10x20
-+*fontMenu*fontescape*Label: Escape Sequence
- *fontMenu*fontsel*Label: Selection
- !fontescape and fontsel overridden by application
--*fontMenu*font-linedrawing*Label: Line-Drawing Characters
--*fontMenu*font-doublesize*Label: Doublesized Characters
--*fontMenu*font-loadable*Label: VT220 Soft Fonts
--
--*tekMenu.Label: Tek Options
--*tekMenu*tektextlarge*Label: Large Characters
--*tekMenu*tektext2*Label: #2 Size Characters
--*tekMenu*tektext3*Label: #3 Size Characters
--*tekMenu*tektextsmall*Label: Small Characters
--*tekMenu*tekpage*Label: PAGE
--*tekMenu*tekreset*Label: RESET
--*tekMenu*tekcopy*Label: COPY
--*tekMenu*vtshow*Label: Show VT Window
--*tekMenu*vtmode*Label: Switch to VT Mode
--*tekMenu*tekhide*Label: Hide Tek Window
--
--*tek4014*fontLarge: 9x15
--*tek4014*font2: 8x13
--*tek4014*font3: 6x13
--*tek4014*fontSmall: 6x10
-+*fontMenu*font-linedrawing*Label: Line-Drawing Characters
-+*fontMenu*font-doublesize*Label: Doublesized Characters
-+*fontMenu*font-loadable*Label: VT220 Soft Fonts
-+
-+*tekMenu.Label: Tek Options
-+*tekMenu*tektextlarge*Label: Large Characters
-+*tekMenu*tektext2*Label: #2 Size Characters
-+*tekMenu*tektext3*Label: #3 Size Characters
-+*tekMenu*tektextsmall*Label: Small Characters
-+*tekMenu*tekpage*Label: PAGE
-+*tekMenu*tekreset*Label: RESET
-+*tekMenu*tekcopy*Label: COPY
-+*tekMenu*vtshow*Label: Show VT Window
-+*tekMenu*vtmode*Label: Switch to VT Mode
-+*tekMenu*tekhide*Label: Hide Tek Window
-+
-+*tek4014*fontLarge: 9x15
-+*tek4014*font2: 8x13
-+*tek4014*font3: 6x13
-+*tek4014*fontSmall: 6x10
-
- ! Enable Colour by default.
--
--*VT100*colorMode: on
--*VT100*boldColors: on
--*VT100*dynamicColors: on
-+*VT100*colorMode: on
-+*VT100*boldColors: on
-+*VT100*dynamicColors: on
+diff -urN xc.orig/programs/xterm/XTerm.ad xc/programs/xterm/XTerm.ad
+--- xc.orig/programs/xterm/XTerm.ad Mon Dec 30 15:54:16 2002
++++ xc/programs/xterm/XTerm.ad Mon Dec 30 20:05:06 2002
+@@ -115,8 +115,8 @@
+ *VT100*dynamicColors: on
! Uncomment this to use color for underline attribute
-!*VT100*colorULMode: on
-!*VT100*underLine: off
-+*VT100*colorULMode: on
-+*VT100*colorULMode: on
-+*VT100*underLine: on
++*VT100*colorULMode: on
++*VT100*underLine: on
! Uncomment this to use color for the bold attribute
!*VT100*colorBDMode: on
-@@ -121,21 +121,177 @@
- ! Uncomment this to use the bold/underline colors in preference to other colors
- !*VT100*colorAttrMode: on
-
--*VT100*color0: black
--*VT100*color1: red3
--*VT100*color2: green3
--*VT100*color3: yellow3
--*VT100*color4: blue3
--*VT100*color5: magenta3
--*VT100*color6: cyan3
--*VT100*color7: gray90
--*VT100*color8: gray30
--*VT100*color9: red
--*VT100*color10: green
--*VT100*color11: yellow
--*VT100*color12: blue
--*VT100*color13: magenta
--*VT100*color14: cyan
--*VT100*color15: white
--*VT100*colorUL: yellow
--*VT100*colorBD: white
-+*VT100*color0: black
-+*VT100*color1: red3
-+*VT100*color2: green3
-+*VT100*color3: yellow3
-+*VT100*color4: blue3
-+*VT100*color5: magenta3
-+*VT100*color6: cyan3
-+*VT100*color7: gray90
-+*VT100*color8: gray30
-+*VT100*color9: red
-+*VT100*color10: green
-+*VT100*color11: yellow
-+*VT100*color12: blue
-+*VT100*color13: magenta
-+*VT100*color14: cyan
-+*VT100*color15: white
-+*VT100*colorBD: white
-+*VT100*colorUL: green
+@@ -142,3 +142,159 @@
+ *VT100*color15: white
+ *VT100*colorUL: yellow
+ *VT100*colorBD: white
+
+! This file causes when loaded using xrdb correct behaviour of xterm
+! is you are using enclosed xterm.tcap and xterm.ti.
-diff -urN XFree86-4.1.0.orig/xc/config/cf/Server.tmpl XFree86-4.1.0/xc/config/cf/Server.tmpl
---- XFree86-4.1.0.orig/xc/config/cf/Server.tmpl Fri Apr 20 17:51:15 2001
-+++ XFree86-4.1.0/xc/config/cf/Server.tmpl Sun Jun 17 20:17:24 2001
-@@ -31,8 +31,14 @@
- #ifndef MakeDllModules
- #define MakeDllModules NO
+diff -urN xc.orig/config/cf/Server.tmpl xc/config/cf/Server.tmpl
+--- xc.orig/config/cf/Server.tmpl Mon Dec 30 15:52:30 2002
++++ xc/config/cf/Server.tmpl Mon Dec 30 17:31:51 2002
+@@ -25,8 +25,14 @@
+ #ifndef DoThreadedServer
+ #define DoThreadedServer NO
#endif
+#ifndef XserverNeedsSetUID
+#define XserverNeedsSetUID NO
+#define InstallServerSetUID (XserverNeedsSetUID && !UseXserverWrapper)
#endif
- /*
-diff -urN XFree86-4.1.0.orig/xc/config/cf/xf86site.def XFree86-4.1.0/xc/config/cf/xf86site.def
---- XFree86-4.1.0.orig/xc/config/cf/xf86site.def Sun Jun 17 19:42:08 2001
-+++ XFree86-4.1.0/xc/config/cf/xf86site.def Sun Jun 17 20:17:24 2001
-@@ -348,13 +348,15 @@
+ #ifdef CrossCompileDir
+diff -urN xc.orig/config/cf/xf86site.def xc/config/cf/xf86site.def
+--- xc.orig/config/cf/xf86site.def Mon Dec 30 15:52:31 2002
++++ xc/config/cf/xf86site.def Mon Dec 30 17:37:06 2002
+@@ -69,14 +69,15 @@
*/
/*
- * If you only run the X server under xdm the X servers don't need to be
- * installed SetUID, and you may comment out the lines below. If you run
- * the servers by hand (with xinit or startx), then they do need to be
-- * installed SetUID on most OSs.
-- * Consult your system administrator before making the X server setuid.
+- * installed SetUID on most platforms.
+ * The X servers need to run as root on most OSs. We're now using a
+ * wrapper in that case, but we still need to make it known that the
+ * servers need SetUID. When only using xdm, this (and the wrapper)
+ * are not required. Disabling this automatically disables use of the
+ * wrapper.
*
--#define InstallXserverSetUID NO
+- * Consult your system administrator before making the X server setuid.
+ * If you're only starting the Xservers with xdm set this to NO
-+ *
-+#define XserverNeedsSetUID NO
+ *
+-#define InstallXserverSetUID NO
++#define XserverNeedsSetUID NO
*/
- /*
-diff -urN XFree86-4.1.0.orig/xc/config/cf/xfree86.cf XFree86-4.1.0/xc/config/cf/xfree86.cf
---- XFree86-4.1.0.orig/xc/config/cf/xfree86.cf Sun Jun 17 19:42:08 2001
-+++ XFree86-4.1.0/xc/config/cf/xfree86.cf Sun Jun 17 20:17:24 2001
-@@ -720,12 +720,15 @@
+
+diff -urN xc.orig/config/cf/xfree86.cf xc/config/cf/xfree86.cf
+--- xc.orig/config/cf/xfree86.cf Mon Dec 30 15:52:31 2002
++++ xc/config/cf/xfree86.cf Mon Dec 30 17:31:51 2002
+@@ -1104,12 +1104,15 @@
#endif
/*
# endif
#endif
-diff -urN XFree86-4.1.0.orig/xc/programs/Xserver/Imakefile XFree86-4.1.0/xc/programs/Xserver/Imakefile
---- XFree86-4.1.0.orig/xc/programs/Xserver/Imakefile Fri May 18 19:48:30 2001
-+++ XFree86-4.1.0/xc/programs/Xserver/Imakefile Sun Jun 17 20:17:24 2001
+diff -urN xc.orig/programs/Xserver/Imakefile xc/programs/Xserver/Imakefile
+--- xc.orig/programs/Xserver/Imakefile Mon Dec 30 15:53:22 2002
++++ xc/programs/Xserver/Imakefile Mon Dec 30 17:31:51 2002
@@ -4,11 +4,6 @@
*/
- XCOMM $XFree86: xc/programs/Xserver/Imakefile,v 3.229 2001/05/18 17:48:30 torrey Exp $
+ XCOMM $XFree86: xc/programs/Xserver/Imakefile,v 3.275 2002/12/21 00:19:11 torrey Exp $
-#ifndef InstallXserverSetUID
-#define InstallXserverSetUID NO
#include <Server.tmpl>
#ifdef XFree86Version
-@@ -1068,6 +1063,11 @@
- $(XNESTLIBS) $(LOADABLEEXTS) $(LIBCWRAPPER),$(XNESTSYSLIBS))
+@@ -1146,6 +1141,11 @@
#endif /* XnestServer */
-+
+
+#if UseXserverWrapper
+SetUIDProgramTarget(Xwrapper,os/wrapper.o,NullParameter,$(PAMLIBS),NullParameter)
+InstallProgramWithFlags(Xwrapper,$(BINDIR),$(INSTUIDFLAGS))
+#endif
-
- #if XnonServer
++
+ #if defined(XnonServer) && XnonServer
XCOMM
-diff -urN XFree86-4.1.0.orig/xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_init.c XFree86-4.1.0/xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_init.c
---- XFree86-4.1.0.orig/xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_init.c Tue Nov 14 22:59:24 2000
-+++ XFree86-4.1.0/xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_init.c Sun Jun 17 20:17:24 2001
+ XCOMM non server, just compile sources for build test
+diff -urN xc.orig/programs/Xserver/hw/xfree86/os-support/linux/lnx_init.c xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_init.c
+--- xc.orig/programs/Xserver/hw/xfree86/os-support/linux/lnx_init.c Mon Dec 30 15:53:52 2002
++++ xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_init.c Mon Dec 30 17:31:51 2002
@@ -66,7 +66,10 @@
/* check if we're run with euid==0 */
if (geteuid() != 0)
}
/*
-diff -urN XFree86-4.1.0.orig/xc/programs/Xserver/os/Imakefile XFree86-4.1.0/xc/programs/Xserver/os/Imakefile
---- XFree86-4.1.0.orig/xc/programs/Xserver/os/Imakefile Mon Apr 23 18:17:12 2001
-+++ XFree86-4.1.0/xc/programs/Xserver/os/Imakefile Sun Jun 17 20:18:35 2001
-@@ -116,6 +116,7 @@
+diff -urN xc.orig/programs/Xserver/os/Imakefile xc/programs/Xserver/os/Imakefile
+--- xc.orig/programs/Xserver/os/Imakefile Mon Dec 30 15:53:58 2002
++++ xc/programs/Xserver/os/Imakefile Mon Dec 30 17:31:52 2002
+@@ -120,6 +120,7 @@
INCLUDES = -I. -I../include -I$(XINCLUDESRC) -I$(EXTINCSRC) \
- -I$(SERVERSRC)/Xext -I$(FONTINCSRC) \
+ -I$(SERVERSRC)/Xext -I$(FONTINCSRC) -I$(SERVERSRC)/render \
-I$(TOP)/lib/Xau -I../lbx Krb5Includes
+ EXTRA_DEFINES = -DUSE_PAM
DEPEND_DEFINES = $(DBM_DEFINES) $(XDMCP_DEFINES) $(EXT_DEFINES) \
$(TRANS_INCLUDES) $(CONNECTION_FLAGS) DependDefines
LINTLIBS = ../dix/llib-ldix.ln
-@@ -159,6 +160,14 @@
- cc -c $(DBM_DEFINES) $(CDEBUGFLAGS) $(ALLDEFINES) $*.c
- #else
+@@ -166,6 +167,14 @@
SpecialCObjectRule(oscolor,$(ICONFIGFILES),$(DBM_DEFINES))
-+#endif
-+
+ #endif
+
+#if UseXserverWrapper
+AllTarget(wrapper.o)
+
+ WRAPPER_DEFINES = -DXSERVER_PATH=\"/etc/X11/X\"
+
+SpecialCObjectRule(wrapper,NullParameter,$(WRAPPER_DEFINES))
- #endif
-
++#endif
++
#if HasKrb5
-diff -urN XFree86-4.1.0.orig/xc/programs/Xserver/os/wrapper.c XFree86-4.1.0/xc/programs/Xserver/os/wrapper.c
---- XFree86-4.1.0.orig/xc/programs/Xserver/os/wrapper.c Thu Jan 1 01:00:00 1970
-+++ XFree86-4.1.0/xc/programs/Xserver/os/wrapper.c Sun Jun 17 20:17:24 2001
+ LinkSourceFile(k5encode.c,$(XAUTHSRC))
+ #endif
+diff -urN xc.orig/programs/Xserver/os/wrapper.c xc/programs/Xserver/os/wrapper.c
+--- xc.orig/programs/Xserver/os/wrapper.c Thu Jan 1 01:00:00 1970
++++ xc/programs/Xserver/os/wrapper.c Mon Dec 30 17:31:52 2002
@@ -0,0 +1,304 @@
+/*
+ * X server wrapper.
+ exit(1);
+}
+
-diff -urN XFree86-4.1.0.orig/xc/programs/xinit/xinit.c XFree86-4.1.0/xc/programs/xinit/xinit.c
---- XFree86-4.1.0.orig/xc/programs/xinit/xinit.c Mon Apr 16 08:51:46 2001
-+++ XFree86-4.1.0/xc/programs/xinit/xinit.c Sun Jun 17 20:17:24 2001
-@@ -148,6 +148,7 @@
+diff -urN xc.orig/programs/xinit/startx.cpp xc/programs/xinit/startx.cpp
+--- xc.orig/programs/xinit/startx.cpp Mon Dec 30 15:54:10 2002
++++ xc/programs/xinit/startx.cpp Mon Dec 30 17:31:52 2002
+@@ -53,7 +53,7 @@
+ sysclientrc=XINITDIR/xinitrc
+ sysserverrc=XINITDIR/xserverrc
+ defaultclient=BINDIR/xterm
+-defaultserver=BINDIR/X
++defaultserver=BINDIR/Xwrapper
+ defaultclientargs=""
+ defaultserverargs=""
+ clientargs=""
+diff -urN xc.orig/programs/xinit/xinit.c xc/programs/xinit/xinit.c
+--- xc.orig/programs/xinit/xinit.c Mon Dec 30 15:54:10 2002
++++ xc/programs/xinit/xinit.c Mon Dec 30 17:31:52 2002
+@@ -146,6 +146,7 @@
#define OK_EXIT 0
#define ERR_EXIT 1
+char *default_wrapper = BINDIR "/Xwrapper";
char *default_server = "X";
char *default_display = ":0"; /* choose most efficient */
- #ifndef __EMX__
-@@ -317,7 +318,10 @@
+ char *default_client[] = {"xterm", "-geometry", "+1+1", "-n", "login", NULL};
+@@ -332,7 +333,10 @@
if (argc == 0 ||
- #ifndef __EMX__
+ #ifndef __UNIXOS2__
(**argv != '/' && **argv != '.')) {
- *sptr++ = default_server;
+ if (access(default_wrapper, X_OK) == 0)
#else
(**argv != '/' && **argv != '\\' && **argv != '.' &&
!(isalpha(**argv) && (*argv)[1]==':'))) {
---- XFree86-4.2.0/xc/programs/xinit/startx.cpp.orig Fri Nov 30 21:57:48 2001
-+++ XFree86-4.2.0/xc/programs/xinit/startx.cpp Sun Mar 3 12:52:13 2002
-@@ -53,7 +53,7 @@
- sysclientrc=XINITDIR/xinitrc
- sysserverrc=XINITDIR/xserverrc
- defaultclient=BINDIR/xterm
--defaultserver=BINDIR/X
-+defaultserver=BINDIR/Xwrapper
- defaultclientargs=""
- defaultserverargs=""
- clientargs=""
---- xc/config/cf/xfree86.cf~ Wed Oct 2 12:24:39 2002
-+++ xc/config/cf/xfree86.cf Wed Oct 2 12:22:43 2002
-@@ -308,7 +308,7 @@
+diff -urN xc.orig/config/cf/xfree86.cf xc/config/cf/xfree86.cf
+--- xc.orig/config/cf/xfree86.cf Mon Dec 30 15:52:31 2002
++++ xc/config/cf/xfree86.cf Mon Dec 30 21:56:41 2002
+@@ -343,7 +343,7 @@
# define XF86CardDrivers mga glint nv tga s3 s3virge sis rendition \
- neomagic i740 savage \
+ neomagic i740 tdfx savage \
cirrus vmware tseng trident chips apm \
-- GlideDriver fbdev i128 \
-+ fbdev i128 \
- ati AgpGartDrivers DevelDrivers ark cyrix \
- siliconmotion \
- vesa vga XF86OSCardDrivers XF86ExtraCardDrivers
+- GlideDriver fbdev i128 nsc \
++ fbdev i128 nsc \
+ ati i810 AgpGartDrivers DevelDrivers ark \
+ cyrix siliconmotion \
+ vesa vga \
---- XFree86-4.0.1Z/xc/config/cf/Library.tmpl.pic Wed Dec 13 16:19:03 2000
-+++ XFree86-4.0.1Z/xc/config/cf/Library.tmpl Wed Dec 13 16:19:28 2000
-@@ -147,8 +147,8 @@
- # define _NormalCleanDir() LibCleanDir(unshared)
- # else
- # define _NormalLibMkdir() $(_NULLCMD_)
--# define _NormalObjCompile(options) NormalLibObjCompile(options)
+diff -urN xc.orig/config/cf/Library.tmpl xc/config/cf/Library.tmpl
+--- xc.orig/config/cf/Library.tmpl Mon Dec 30 15:52:30 2002
++++ xc/config/cf/Library.tmpl Mon Dec 30 19:33:30 2002
+@@ -212,9 +212,9 @@
+ # if !DoSharedLib && defined(IncludeNormalLibInSharedObject)
+ # define _NormalObjCompile(options) NormalRelocLibObjCompile(options)
+ # else
+-# define _NormalObjCompile(options) NormalLibObjCompile(options)
++# define _NormalObjCompile(options) NormalLibObjCompile(options $(PICFLAGS))
+ # endif
-# define _NormalObjCplusplusCompile(options) NormalLibObjCplusplusCompile(options)
-+# define _NormalObjCompile(options) NormalLibObjCompile(options $(PICFLAGS))
+# define _NormalObjCplusplusCompile(options) NormalLibObjCplusplusCompile(options $(PICFLAGS))
# define _NormalCleanDir() $(_NULLCMD_)
# endif
#endif
+@@ -227,8 +227,8 @@
+ # define _SharedObjCompile(options) NormalSharedLibObjCompile(options)
+ # define _SharedObjCplusplusCompile(options) NormalSharedLibObjCplusplusCompile(options)
+ #else
+-# define _SharedObjCompile(options) NormalLibObjCompile(options)
+-# define _SharedObjCplusplusCompile(options) NormalLibObjCplusplusCompile(options)
++# define _SharedObjCompile(options) NormalLibObjCompile(options $(PICFLAGS))
++# define _SharedObjCplusplusCompile(options) NormalLibObjCplusplusCompile(options $(PICFLAGS))
+ #endif
+ #endif
+
-diff -Nur XFree86-4.0.2.org/xc/programs/xdm/Imakefile XFree86-4.0.2/xc/programs/xdm/Imakefile
---- XFree86-4.0.2.org/xc/programs/xdm/Imakefile Wed Nov 29 17:46:07 2000
-+++ XFree86-4.0.2/xc/programs/xdm/Imakefile Thu Dec 21 13:10:37 2000
-@@ -225,9 +225,9 @@
+diff -urN xc.orig/programs/xdm/Imakefile xc/programs/xdm/Imakefile
+--- xc.orig/programs/xdm/Imakefile Mon Dec 30 15:54:06 2002
++++ xc/programs/xdm/Imakefile Mon Dec 30 18:33:35 2002
+@@ -256,9 +256,9 @@
'-DDEF_SYSTEM_SHELL="$(BOURNE_SHELL)"' \
'-DDEF_FAILSAFE_CLIENT="$(BINDIR)/xterm"' \
'-DDEF_XDM_CONFIG="$(XDMDIR)/xdm-config"' \
+ '-DDEF_CHOOSER="$(BINDIR)/chooser"' \
+ '-DDEF_AUTH_DIR="$(XDMVARDIR)"' \
+ '-DDEF_GREETER_LIB="$(USRLIBDIR)/libXdmGreet.so"'
- #endif
ComplexProgramTarget_1(xdm,$(LOCAL_LIBRARIES),NullParameter)
-@@ -247,7 +247,7 @@
+ LinkConfDirectory(xdm,.,xdm,.)
+@@ -277,7 +277,7 @@
#if BuildChooser
SpecialCObjectRule(chooser, $(ICONFIGFILES), $(SOCK_DEFINES))
NormalProgramTarget(chooser,$(OBJS3),$(DEPLIBS3),$(LIBS3),NullParameter)
InstallAppDefaults(Chooser)
#endif
#if BuildBoth
-diff -Nur XFree86-4.0.2.org/xc/programs/xdm/config/Imakefile XFree86-4.0.2/xc/programs/xdm/config/Imakefile
---- XFree86-4.0.2.org/xc/programs/xdm/config/Imakefile Mon Jan 31 20:33:43 2000
-+++ XFree86-4.0.2/xc/programs/xdm/config/Imakefile Thu Dec 21 13:20:54 2000
-@@ -5,9 +5,7 @@
+diff -urN xc.orig/programs/xdm/config/Imakefile xc/programs/xdm/config/Imakefile
+--- xc.orig/programs/xdm/config/Imakefile Mon Dec 30 15:54:07 2002
++++ xc/programs/xdm/config/Imakefile Mon Dec 30 18:38:58 2002
+@@ -9,13 +9,7 @@
all:: Xservers.ws xdm-config Xservers Xresources
-#if defined(i386Architecture) && (defined(NetBSDArchitecture) || defined(OpenBSDArchitecture))
-DEFAULTVT=vt05
-#endif
+-
+-#if defined(LinuxDistribution) && (LinuxDistribution == LinuxDebian)
+-DEFAULTVT=vt7
+-#endif
+DEFAULTVT=vt9
#ifndef XdmPixmap
# define XdmPixmap XFree86.xpm
-@@ -25,7 +23,11 @@
+@@ -39,7 +33,11 @@
#endif
CppFileTarget(Xservers.ws,Xserv.ws.cpp,-DBINDIR=$(BINDIR) -DDEFAULTVT=$(DEFAULTVT),NullParameter)
CppFileTarget(Xresources,Xres.cpp,$(XPM_DEFINES),NullParameter)
LinkFile(Xservers,Xservers.$(SERVERSTYPE))
-diff -Nur XFree86-4.0.2.org/xc/programs/xdm/config/Xres.cpp XFree86-4.0.2/xc/programs/xdm/config/Xres.cpp
---- XFree86-4.0.2.org/xc/programs/xdm/config/Xres.cpp Thu Dec 21 13:06:17 2000
-+++ XFree86-4.0.2/xc/programs/xdm/config/Xres.cpp Thu Dec 21 13:19:25 2000
-@@ -36,9 +36,7 @@
+diff -urN xc.orig/programs/xdm/config/Xres.cpp xc/programs/xdm/config/Xres.cpp
+--- xc.orig/programs/xdm/config/Xres.cpp Mon Dec 30 15:54:07 2002
++++ xc/programs/xdm/config/Xres.cpp Mon Dec 30 18:41:24 2002
+@@ -41,9 +41,7 @@
/**/#endif
#endif /* XPM */
/**/#ifdef COLOR
xlogin*borderWidth: 1
xlogin*frameWidth: 5
xlogin*innerFramesWidth: 2
-@@ -47,6 +45,8 @@
+@@ -52,6 +50,8 @@
xlogin*background: grey
!xlogin*foreground: darkgreen
xlogin*greetColor: Blue3
#endif /* XPM */
xlogin*failColor: red
*Foreground: black
-diff -Nur XFree86-4.0.2.org/xc/programs/xdm/greeter/Imakefile XFree86-4.0.2/xc/programs/xdm/greeter/Imakefile
---- XFree86-4.0.2.org/xc/programs/xdm/greeter/Imakefile Wed Jun 14 21:43:32 2000
-+++ XFree86-4.0.2/xc/programs/xdm/greeter/Imakefile Thu Dec 21 13:20:13 2000
-@@ -77,8 +77,6 @@
- DEFINES = $(GREETER_DEFINES) $(XDMAUTH_DEFINES) $(RPC_DEFINES) \
- $(KRBIV_DEFINES) $(KRB5_DEFINES) $(PWD_DEFINES) $(PAM_DEFINES)
-
--SHLIBDIR = $(XDMDIR)
--
- SRCS = greet.c verify.c Login.c
- OBJS = greet.o verify.o Login.o
-
-diff -urN XFree86-4.1.0.orig/xc/programs/xman/vendor.h XFree86-4.1.0/xc/programs/xman/vendor.h
---- XFree86-4.1.0.orig/xc/programs/xman/vendor.h Thu Apr 19 21:54:51 2001
-+++ XFree86-4.1.0/xc/programs/xman/vendor.h Sun Jun 17 22:42:16 2001
-@@ -62,7 +62,7 @@
- #if defined(MANCONFIGSTYLE_FreeBSD)
- # define MANCONF "/etc/manpath.config"
- #elif defined(MANCONFIGSTYLE_Linux) || defined(MANCONFIGSTYLE_OpenBSD) || defined(MANCONFIGSTYLE_BSD)
--# define MANCONF "/etc/man.conf"
-+# define MANCONF "/etc/man.config"
- #endif
-
- /*
-diff -urN XFree86-4.1.0.orig/xc/programs/xman/xman.man XFree86-4.1.0/xc/programs/xman/xman.man
---- XFree86-4.1.0.orig/xc/programs/xman/xman.man Sat Jan 27 19:21:18 2001
-+++ XFree86-4.1.0/xc/programs/xman/xman.man Sun Jun 17 22:41:25 2001
+diff -urN xc.orig/programs/xman/Imakefile xc/programs/xman/Imakefile
+--- xc.orig/programs/xman/Imakefile Mon Dec 30 15:54:14 2002
++++ xc/programs/xman/Imakefile Mon Dec 30 18:21:38 2002
+@@ -26,7 +26,7 @@
+ # if defined(LinuxDistribution) && (LinuxDistribution == LinuxRedHat)
+ MANCONF = -DMANCONF=\"/etc/man.config\"
+ # else
+- MANCONF = -DMANCONF=\"/etc/man.conf\"
++ MANCONF = -DMANCONF=\"/etc/man.config\"
+ # endif
+ #elif defined(OpenBSDArchitecture) || defined(NetBSDArchitecture) || \
+ defined(DarwinArchitecture)
+diff -urN xc.orig/programs/xman/xman.man xc/programs/xman/xman.man
+--- xc.orig/programs/xman/xman.man Mon Dec 30 15:54:14 2002
++++ xc/programs/xman/xman.man Mon Dec 30 18:12:17 2002
@@ -93,8 +93,8 @@
.SH "BSD AND LINUX SYSTEMS"
.PP