]> git.pld-linux.org Git - packages/XFree86.git/blob - XFree86-PLD.patch
- updated
[packages/XFree86.git] / XFree86-PLD.patch
1 diff -urN xc.org/config/cf/Imake.cf xc/config/cf/Imake.cf
2 --- xc.org/config/cf/Imake.cf   2003-11-21 15:13:57.000000000 +0100
3 +++ xc/config/cf/Imake.cf       2003-11-21 15:20:56.000000000 +0100
4 @@ -766,6 +766,10 @@
5  #   define s390Architecture
6  #  undef __s390__
7  # endif /* s390 */
8 +# ifdef alpha
9 +#  define AlphaArchitecture
10 +#  undef alpha
11 +# endif /* alpha */
12  # ifdef __alpha
13  #  define AlphaArchitecture
14  #  undef __alpha
15 diff -urN xc.org/config/cf/Imake.tmpl xc/config/cf/Imake.tmpl
16 --- xc.org/config/cf/Imake.tmpl 2003-11-21 15:13:57.000000000 +0100
17 +++ xc/config/cf/Imake.tmpl     2003-11-21 15:20:56.000000000 +0100
18 @@ -261,7 +261,7 @@
19  
20  #ifndef BuildHtmlManPages
21  #ifdef RmanCmd
22 -#define BuildHtmlManPages YES
23 +#define BuildHtmlManPages NO
24  #else
25  #define BuildHtmlManPages NO
26  #endif
27 @@ -854,11 +854,7 @@
28  #define LintlibDir $(USRLIBDIR)/lint
29  #endif
30  #ifndef SystemManDirectory
31 -#if SystemV4
32  #define SystemManDirectory /usr/share/man
33 -#else
34 -#define SystemManDirectory /usr/man
35 -#endif
36  #endif
37  #ifndef ManDirectoryRoot
38  #ifdef ProjectRoot
39 @@ -998,7 +994,7 @@
40  #define NoRConst NO /* YES if const for structs of funcs is bad */
41  #endif
42  #ifndef InstPgmFlags
43 -#define InstPgmFlags -s
44 +#define InstPgmFlags
45  #endif
46  #ifndef InstBinFlags
47  #define InstBinFlags -m 0755
48 @@ -1140,7 +1136,7 @@
49  #define CppCmd /LibDirName/cpp
50  #endif
51  #ifndef RawCppCmd
52 -#define RawCppCmd CppCmd -undef
53 +#define RawCppCmd CppCmd
54  #endif
55  #ifndef CppNoLineInfoOption
56  #define CppNoLineInfoOption /**/
57 diff -urN xc.org/config/cf/linux.cf xc/config/cf/linux.cf
58 --- xc.org/config/cf/linux.cf   2003-11-21 15:13:57.000000000 +0100
59 +++ xc/config/cf/linux.cf       2003-11-21 15:20:56.000000000 +0100
60 @@ -325,7 +325,7 @@
61   */
62  #if BuildXF86DRI
63  # if defined(i386Architecture)
64 -#  define BuildLibGlxWithoutPIC        YES
65 +#  define BuildLibGlxWithoutPIC        NO
66  # endif
67  #endif
68  
69 @@ -740,7 +740,7 @@
70  
71  #define HasVarRun              YES
72  #ifndef VarDbDirectory
73 -# define VarDbDirectory                $(VARDIR)/lib
74 +# define VarDbDirectory                /var/lib
75  #endif
76  
77  #ifndef XF86OSCardDrivers
78 diff -urN xc.org/config/cf/site.def xc/config/cf/site.def
79 --- xc.org/config/cf/site.def   2003-11-21 15:13:57.000000000 +0100
80 +++ xc/config/cf/site.def       2003-11-21 15:20:56.000000000 +0100
81 @@ -119,10 +119,14 @@
82  #define HasSentinel    YES
83  */
84  
85 -/*
86  #undef DefaultUserPath
87 -#define DefaultUserPath /bin:/usr/bin:$(BINDIR):/usr/ucb:/usr/local/bin
88 -*/
89 +#define DefaultUserPath /usr/local/bin:/bin:/usr/bin:$(BINDIR)
90 +#undef DefaultSystemPath
91 +#define DefaultSystemPath /sbin:/bin:/usr/sbin:/usr/bin:$(BINDIR)
92 +
93 +
94 +#define HasPam    YES
95 +#define HasPamMisc    YES
96  
97  
98  /* You do NOT need SetUID if you only run the server under xdm */
99 diff -urN xc.org/config/cf/X11.tmpl xc/config/cf/X11.tmpl
100 --- xc.org/config/cf/X11.tmpl   2003-11-21 15:13:57.000000000 +0100
101 +++ xc/config/cf/X11.tmpl       2003-11-21 15:20:56.000000000 +0100
102 @@ -1261,8 +1261,12 @@
103  # define UsbMouseSupport NO
104  #endif
105  
106 +#ifndef EtcX11Directory
107 +#define EtcX11Directory /etc/X11
108 +#endif
109 +
110  #ifndef DefaultFSConfigFile
111 -#define DefaultFSConfigFile $(LIBDIR)/fs/config
112 +#define DefaultFSConfigFile $(ETCX11DIR)/fs/config
113  #endif
114  
115  /* X-TrueType settings */
116 @@ -1385,7 +1389,7 @@
117  #define ConfigDir $(LIBDIR)/config
118  #endif
119  #ifndef DocDir
120 -#define DocDir $(LIBDIR)/doc
121 +#define DocDir $(LIBDIR)/share/doc
122  #endif
123  #ifndef DocHtmlDir
124  #define DocHtmlDir $(DOCDIR)/html
125 @@ -1397,31 +1401,31 @@
126  #define DocPdfDir $(DOCDIR)/PDF
127  #endif
128  #ifndef FontDir
129 -#define FontDir $(LIBDIR)/fonts
130 +#define FontDir /usr/share/fonts
131  #endif
132  #ifndef AdmDir
133 -#define AdmDir /usr/adm
134 +#define AdmDir /var/log
135  #endif
136  #ifndef XinitDir
137 -#define XinitDir $(LIBDIR)/xinit
138 +#define XinitDir $(ETCX11DIR)/xinit
139  #endif
140  #ifndef XdmDir
141 -#define XdmDir $(LIBDIR)/xdm
142 +#define XdmDir $(ETCX11DIR)/xdm
143  #endif
144  #ifndef XdmVarDir
145  #define XdmVarDir $(VARLIBDIR)/xdm
146  #endif
147  #ifndef XdmAuthDir
148 -#define XdmAuthDir $(LIBDIR)/xdm
149 +#define XdmAuthDir $(ETCX11DIR)/xdm
150  #endif
151  #ifndef XdmConfigurationSubdirectory           /* under xdm sources */
152  #define XdmConfigurationSubdirectory config
153  #endif
154  #ifndef TwmDir
155 -#define TwmDir $(LIBDIR)/twm
156 +#define TwmDir $(ETCX11DIR)/twm
157  #endif
158  #ifndef XsmDir
159 -#define XsmDir $(LIBDIR)/xsm
160 +#define XsmDir $(ETCX11DIR)/xsm
161  #endif
162  #ifndef NlsDir
163  #define NlsDir $(LIBDIR)/nls
164 @@ -1430,23 +1434,20 @@
165  #define XLocaleDir $(LIBDIR)/locale
166  #endif
167  #ifndef LbxproxyDir
168 -#define LbxproxyDir $(LIBDIR)/lbxproxy
169 +#define LbxproxyDir $(ETCX11DIR)/lbxproxy
170  #endif
171  #ifndef LbxproxyConfigSubdir           /* under lbxproxy sources */
172  #define LbxproxyConfigSubdir config
173  #endif
174  #ifndef ProxyManagerDir
175 -#define ProxyManagerDir $(LIBDIR)/proxymngr
176 +#define ProxyManagerDir $(ETCX11DIR)/proxymngr
177  #endif
178  #ifndef ServerConfigDir
179 -#define ServerConfigDir $(LIBDIR)/xserver
180 +#define ServerConfigDir $(ETCX11DIR)/xserver
181  #endif
182  #ifndef XPrintDir
183  #define XPrintDir ServerConfigDir
184  #endif
185 -#ifndef EtcX11Directory
186 -#define EtcX11Directory /etc/X11
187 -#endif
188  #ifndef InstallSecurityConfig
189  #define InstallSecurityConfig YES      /* Install sample security policy */
190  #endif
191 @@ -1478,10 +1479,10 @@
192  #define OsNameDefines /* as nothing */
193  #endif
194  #ifndef DefaultUserPath                        /* for xdm */
195 -#define DefaultUserPath :/bin:/usr/bin:$(BINDIR):/usr/ucb
196 +#define DefaultUserPath /usr/local/bin:/bin:/usr/bin:$(BINDIR)
197  #endif
198  #ifndef DefaultSystemPath              /* for xdm */
199 -#define DefaultSystemPath /etc:/bin:/usr/bin:$(BINDIR):/usr/ucb
200 +#define DefaultSystemPath /sbin:/bin:/usr/sbin:/usr/bin:$(BINDIR)
201  #endif
202  #ifndef DefaultSystemShell             /* for xdm to set in SHELL */
203  #define DefaultSystemShell BourneShell
204 @@ -1608,7 +1609,7 @@
205  
206       HTMLINDEXCMD = HtmlIndexCmd
207  
208 -       DOCUTILSRC = $(XTOP)/doc/util
209 +       DOCUTILSRC = $(XTOP)/share/doc/util
210          CLIENTSRC = $(TOP)/clients
211            DEMOSRC = $(TOP)/demos
212         XDOCMACROS = $(DOCUTILSRC)/macros.t
213 @@ -1622,7 +1623,7 @@
214          SERVERSRC = $(XTOP)/programs/Xserver
215         CONTRIBSRC = ContribDir
216     UNSUPPORTEDSRC = UnsupportedDir
217 -           DOCSRC = $(XTOP)/doc
218 +           DOCSRC = $(XTOP)/share/doc
219             RGBSRC = $(XTOP)/programs/rgb
220        BDFTOPCFSRC = $(PROGRAMSRC)/bdftopcf
221       MKFONTDIRSRC = $(PROGRAMSRC)/mkfontdir
222 diff -urN xc.org/config/cf/xf86site.def xc/config/cf/xf86site.def
223 --- xc.org/config/cf/xf86site.def       2003-11-21 15:13:57.000000000 +0100
224 +++ xc/config/cf/xf86site.def   2003-11-21 15:20:56.000000000 +0100
225 @@ -260,8 +260,8 @@
226  /*
227   * To not build/install the Cyrillic fonts, uncomment the following
228   *
229 -#define BuildCyrillicFonts     NO
230   */
231 +#define BuildCyrillicFonts     YES
232  
233  /*
234   * To not install the local font directory, uncomment the following
235 @@ -307,27 +307,26 @@
236   * HasGlide2 to YES and set the Glide2IncDir variable. 
237   * HasGlide2 is per default NO.
238   *
239 -#define HasGlide2 YES
240   */
241 +#define HasGlide2 YES
242  
243  /*
244   * Set the path to your Glide include files.
245   *
246 -#define Glide2IncDir /usr/include/glide
247   */
248 +#define Glide2IncDir /usr/include/glide
249  
250  /* 
251   * Have glide 3?
252   *
253 -#define HasGlide3 YES
254   */
255 +#define HasGlide3 YES
256  
257  /*
258   * Set the path to your Glide 3 include files.
259   *
260 -#define Glide3IncDir /usr/include/glide3
261   */
262 -
263 +#define Glide3IncDir /usr/include/glide3
264  
265  
266  /*
267 @@ -429,8 +428,8 @@
268   * Some Linux releases don't have a libtermcap.  In this case you may need
269   * to uncomment the following
270   *
271 -#define TermcapLibrary         -lncurses
272   */
273 +#define TermcapLibrary         -lncurses
274  
275  /*
276   * Build a server that dynamically loads the modules by setting
277 @@ -605,8 +604,8 @@
278   * To forceably build static libraries in addition to shared libraries,
279   * uncomment this.
280   *
281 -#define ForceNormalLib         YES
282   */
283 +#define ForceNormalLib         YES
284  
285  /*
286   * Uncomment this if your default tools (eg, gcc, ld, as, etc) are
287 diff -urN xc.org/config/cf/xfree86.cf xc/config/cf/xfree86.cf
288 --- xc.org/config/cf/xfree86.cf 2003-11-21 15:13:57.000000000 +0100
289 +++ xc/config/cf/xfree86.cf     2003-11-21 15:20:56.000000000 +0100
290 @@ -128,7 +128,7 @@
291  #define XConfigFile            XF86Config
292  #endif
293  #ifndef XConfigDir
294 -#define XConfigDir             $(LIBDIR)
295 +#define XConfigDir             $(ETCX11DIR)
296  #endif
297  #ifndef XLogFile
298  #define XLogFile               XFree86
299 @@ -760,7 +760,7 @@
300  
301  # ifndef XF86CardDrivers
302  #  define XF86CardDrivers      mga glint nv s3 s3virge sis savage \
303 -                               trident chips tdfx fbdev ati \
304 +                               trident chips fbdev ati \
305                                 DevelDrivers newport \
306                                 XF86OSCardDrivers XF86ExtraCardDrivers
307  # endif
308 diff -urN xc.org/config/imake/imake.c xc/config/imake/imake.c
309 --- xc.org/config/imake/imake.c 2003-11-21 15:13:57.000000000 +0100
310 +++ xc/config/imake/imake.c     2003-11-21 15:20:56.000000000 +0100
311 @@ -1057,6 +1057,7 @@
312    static char* suse = "/etc/SuSE-release";
313    static char* redhat = "/etc/redhat-release";
314    static char* debian = "/etc/debian_version";
315 +  static char* pld = "/etc/pld-release";
316  
317    fprintf (inFile, "%s\n", "#define LinuxUnknown    0");
318    fprintf (inFile, "%s\n", "#define LinuxSuSE       1");
319 @@ -1071,6 +1072,7 @@
320    fprintf (inFile, "%s\n", "#define LinuxTurbo      10");
321    fprintf (inFile, "%s\n", "#define LinuxWare       11");
322    fprintf (inFile, "%s\n", "#define LinuxYggdrasil  12");
323 +  fprintf (inFile, "%s\n", "#define LinuxPLD        13");
324  
325  #ifdef CROSSCOMPILE
326    if (CrossCompiling) {
327 @@ -1097,6 +1099,11 @@
328       * at the content of /etc/debian_version */
329      return;
330    }
331 +  if (lstat (pld, &sb) == 0) {
332 +    fprintf (inFile, "%s\n", "#define DefaultLinuxDistribution LinuxPLD");
333 +    fprintf (inFile, "%s\n", "#define DefaultLinuxDistName PLD");
334 +    return;
335 +  }
336    /* what's the definitive way to tell what any particular distribution is? */
337  
338    fprintf (inFile, "%s\n", "#define DefaultLinuxDistribution LinuxUnknown");
339 diff -urN xc.org/Makefile xc/Makefile
340 --- xc.org/Makefile     2003-11-21 15:13:57.000000000 +0100
341 +++ xc/Makefile 2003-11-21 15:20:56.000000000 +0100
342 @@ -8,7 +8,7 @@
343  # or add "MAKE = make" to this file.
344  
345  RELEASE = "Release 6.6"
346 -SHELL = /bin/sh
347 +SHELL = /bin/sh -e
348  RM = rm -f
349  MV = mv
350  WORLDOPTS =
351 diff -urN xc.org/programs/xdm/config/Xres.cpp xc/programs/xdm/config/Xres.cpp
352 --- xc.org/programs/xdm/config/Xres.cpp 2003-11-21 15:18:39.000000000 +0100
353 +++ xc/programs/xdm/config/Xres.cpp     2003-11-21 15:21:45.000000000 +0100
354 @@ -71,9 +71,9 @@
355  XHASHendif
356  #ifdef XPM
357  XHASHif PLANES >= 8
358 -xlogin*logoFileName: BITMAPDIR/**//XDM_PIXMAP
359 +xlogin*logoFileName: BITMAPDIR/**//xdm-pld-logo.xpm
360  XHASHelse
361 -xlogin*logoFileName: BITMAPDIR/**//XDM_BWPIXMAP
362 +xlogin*logoFileName: BITMAPDIR/**//xdm-pld-logo-bw.xpm
363  XHASHendif
364  xlogin*useShape: true
365  xlogin*logoPadding: 10
366 diff -urN xc.org/programs/xdm/resource.c xc/programs/xdm/resource.c
367 --- xc.org/programs/xdm/resource.c      2003-11-21 15:18:38.000000000 +0100
368 +++ xc/programs/xdm/resource.c  2003-11-21 15:20:56.000000000 +0100
369 @@ -84,31 +84,31 @@
370   */
371  #ifndef __EMX__
372  #ifndef DEF_SERVER_LINE 
373 -#define DEF_SERVER_LINE ":0 local /usr/bin/X11/X :0"
374 +#define DEF_SERVER_LINE ":0 local /usr/X11R6/bin/X :0"
375  #endif
376  #ifndef XRDB_PROGRAM
377 -#define XRDB_PROGRAM "/usr/bin/X11/xrdb"
378 +#define XRDB_PROGRAM "/usr/X11R6/X11/xrdb"
379  #endif
380  #ifndef DEF_SESSION
381 -#define DEF_SESSION "/usr/bin/X11/xterm -ls"
382 +#define DEF_SESSION "/usr/X11R6/bin/xterm -ls"
383  #endif
384  #ifndef DEF_USER_PATH
385 -#define DEF_USER_PATH ":/bin:/usr/bin:/usr/bin/X11:/usr/ucb"
386 +#define DEF_USER_PATH "/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin"
387  #endif
388  #ifndef DEF_SYSTEM_PATH
389 -#define DEF_SYSTEM_PATH "/etc:/bin:/usr/bin:/usr/bin/X11:/usr/ucb"
390 +#define DEF_SYSTEM_PATH "/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin"
391  #endif
392  #ifndef DEF_SYSTEM_SHELL
393  #define DEF_SYSTEM_SHELL "/bin/sh"
394  #endif
395  #ifndef DEF_FAILSAFE_CLIENT
396 -#define DEF_FAILSAFE_CLIENT "/usr/bin/X11/xterm"
397 +#define DEF_FAILSAFE_CLIENT "/usr/X11R6/bin/xterm"
398  #endif
399  #ifndef DEF_XDM_CONFIG
400 -#define DEF_XDM_CONFIG "/usr/lib/X11/xdm/xdm-config"
401 +#define DEF_XDM_CONFIG "/etc/X11/xdm/xdm-config"
402  #endif
403  #ifndef DEF_CHOOSER
404 -#define DEF_CHOOSER "/usr/lib/X11/xdm/chooser"
405 +#define DEF_CHOOSER "/etc/X11/xdm/chooser"
406  #endif
407  #ifndef DEF_AUTH_NAME
408  #ifdef HASXDMAUTH
409 @@ -118,7 +118,7 @@
410  #endif
411  #endif
412  #ifndef DEF_AUTH_DIR
413 -#define DEF_AUTH_DIR "/usr/lib/X11/xdm"
414 +#define DEF_AUTH_DIR "/etc/X11/xdm"
415  #endif
416  #ifndef DEF_USER_AUTH_DIR
417  #define DEF_USER_AUTH_DIR      "/tmp"
418 diff -urN xc.org/programs/xinit/Imakefile xc/programs/xinit/Imakefile
419 --- xc.org/programs/xinit/Imakefile     2003-11-21 15:18:47.000000000 +0100
420 +++ xc/programs/xinit/Imakefile 2003-11-21 15:20:56.000000000 +0100
421 @@ -46,11 +46,12 @@
422  #endif
423  InstallManPage(startx,$(MANDIR))
424  
425 -#if InstallXinitConfig
426 -InstallNonExecFile($(SAMPLECONFIG),$(XINITDIR))
427 -#else
428 -InstallNonExecFileNoClobber($(SAMPLECONFIG),$(XINITDIR))
429 -#endif
430 +XCOMM Red Hat gets this from a different package
431 +XCOMM #if InstallXinitConfig
432 +XCOMM InstallNonExecFile($(SAMPLECONFIG),$(XINITDIR))
433 +XCOMM #else
434 +XCOMM InstallNonExecFileNoClobber($(SAMPLECONFIG),$(XINITDIR))
435 +XCOMM #endif
436  
437  LinkConfDirectory(xinit,.,xinit,.)
438  
439 diff -urN xc.org/programs/Xserver/hw/xfree86/xf86cfg/Imakefile xc/programs/Xserver/hw/xfree86/xf86cfg/Imakefile
440 --- xc.org/programs/Xserver/hw/xfree86/xf86cfg/Imakefile        2003-11-21 15:17:43.000000000 +0100
441 +++ xc/programs/Xserver/hw/xfree86/xf86cfg/Imakefile    2003-11-21 15:20:56.000000000 +0100
442 @@ -100,7 +100,7 @@
443  
444  #if HasNCurses
445  CURSESLIB = NCursesLibName
446 -CURSESDEFINES  = -DHAS_NCURSES
447 +CURSESDEFINES  = -DHAS_NCURSES -I/usr/include/ncurses
448  #endif
449  
450  XF86CONFIGFILE = XConfigFile
451 diff -urN xc.org/programs/xterm/Imakefile xc/programs/xterm/Imakefile
452 --- xc.org/programs/xterm/Imakefile     2003-11-21 15:19:09.000000000 +0100
453 +++ xc/programs/xterm/Imakefile 2003-11-21 15:20:56.000000000 +0100
454 @@ -36,6 +36,10 @@
455  #define XkbClientLibs /**/
456  #endif
457  
458 +#if InstallXtermSetUID
459 +#undef InstallXtermSetUID
460 +#endif
461 +
462  #ifndef SpecialCObjectRule
463  #define SpecialCObjectRule(module,ignore,defines) \
464  module.o: ; $(CC) -c defines $(CFLAGS) module.c
465 @@ -57,6 +61,8 @@
466           PTYLIB = -lpucc
467  #endif
468  
469 +         PTYLIB = -lutil
470 +
471  #if defined(NetBSDArchitecture) || defined(OpenBSDArchitecture) || \
472      (defined(LinuxArchitecture) && \
473       (LinuxCLibMajorVersion == 6) && (LinuxCLibMinorVersion < 1))
474 @@ -115,7 +121,7 @@
475     MISC_DEFINES = /* -DALLOWLOGGING -DALLOWLOGFILEEXEC */
476      XKB_DEFINES = XkbClientDefines
477     PATH_DEFINES = -DPROJECTROOT=$(PROJECTROOT)
478 -        DEFINES = -I. $(XKB_DEFINES) $(TERMCAPDEFINES) $(FEATURE_DEFINES) $(SCROLLBAR_RIGHT) $(UTF8_OPTION) $(XRFDEF) $(PATH_DEFINES) $(TRACEDEF)
479 +        DEFINES = -I. -I/usr/include/ncurses $(XKB_DEFINES) $(TERMCAPDEFINES) $(FEATURE_DEFINES) $(SCROLLBAR_RIGHT) $(UTF8_OPTION) $(XRFDEF) $(PATH_DEFINES) $(TRACEDEF)
480         INCLUDES = $(XRFINCLUDES)
481  
482  #ifdef OS2Architecture
483 diff -urN xc.org/programs/xterm/xterm.h xc/programs/xterm/xterm.h
484 --- xc.org/programs/xterm/xterm.h       2003-11-21 15:19:12.000000000 +0100
485 +++ xc/programs/xterm/xterm.h   2003-11-21 15:20:56.000000000 +0100
486 @@ -73,7 +73,7 @@
487  #endif
488  
489  #ifndef DFT_TERMTYPE
490 -#define DFT_TERMTYPE "xterm"
491 +#define DFT_TERMTYPE "xterm-color"
492  #endif
493  
494  #ifndef X_NOT_POSIX
This page took 0.113446 seconds and 4 git commands to generate.