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