Commit f6a11402 authored by Mike Gabriel's avatar Mike Gabriel

Xserver/os/oscolor.c: Follow X.org in dropping the rgb.txt file entirely.…

Xserver/os/oscolor.c: Follow X.org in dropping the rgb.txt file entirely. Content of that file is now hard-coded. Adopting an exact copy of os/oscolor.c from X.org leads to this compiler warning: ``` oscolor.c:844:1: warning: string length ‘7614’ is greater than the length ‘4095’ ISO C99 compilers are required to support [-Woverlength-strings] }; ^ ``` This will be address later in coordination with X.org. Note: there is a tiny change in oscolor.c as we ship it. The original X.org file includes <X11/keysym.h> which seems unneeded. We drop that one line from oscolor.c. Fixes ArcticaProject/nx-libs#259.
parent e1f2902b
...@@ -161,13 +161,11 @@ install-full: ...@@ -161,13 +161,11 @@ install-full:
$(INSTALL_DIR) $(DESTDIR)/$(ETCDIR_NX) $(INSTALL_DIR) $(DESTDIR)/$(ETCDIR_NX)
$(INSTALL_FILE) etc/keystrokes.cfg $(DESTDIR)/$(ETCDIR_NX)/ $(INSTALL_FILE) etc/keystrokes.cfg $(DESTDIR)/$(ETCDIR_NX)/
$(INSTALL_FILE) etc/rgb $(DESTDIR)$(ETCDIR_NX)/
$(INSTALL_FILE) etc/nxagent.keyboard $(DESTDIR)$(ETCDIR_NX)/ $(INSTALL_FILE) etc/nxagent.keyboard $(DESTDIR)$(ETCDIR_NX)/
$(INSTALL_DIR) $(DESTDIR)$(PREFIX)/share/nx $(INSTALL_DIR) $(DESTDIR)$(PREFIX)/share/nx
$(INSTALL_FILE) nx-X11/lib/X11/XErrorDB $(DESTDIR)$(PREFIX)/share/nx/ $(INSTALL_FILE) nx-X11/lib/X11/XErrorDB $(DESTDIR)$(PREFIX)/share/nx/
$(INSTALL_FILE) nx-X11/lib/X11/Xcms.txt $(DESTDIR)$(PREFIX)/share/nx/ $(INSTALL_FILE) nx-X11/lib/X11/Xcms.txt $(DESTDIR)$(PREFIX)/share/nx/
$(INSTALL_SYMLINK) $(ETCDIR_NX)/rgb $(DESTDIR)$(PREFIX)/share/nx/rgb
$(INSTALL_FILE) VERSION $(DESTDIR)$(PREFIX)/share/nx/VERSION.nxagent $(INSTALL_FILE) VERSION $(DESTDIR)$(PREFIX)/share/nx/VERSION.nxagent
$(INSTALL_FILE) VERSION $(DESTDIR)$(PREFIX)/share/nx/VERSION.nxproxy $(INSTALL_FILE) VERSION $(DESTDIR)$(PREFIX)/share/nx/VERSION.nxproxy
......
This diff is collapsed. Click to expand it.
...@@ -539,9 +539,6 @@ X_BYTE_ORDER = ByteOrder ...@@ -539,9 +539,6 @@ X_BYTE_ORDER = ByteOrder
#ifndef HasMktemp #ifndef HasMktemp
#define HasMktemp NO /* if you have the mktemp command */ #define HasMktemp NO /* if you have the mktemp command */
#endif #endif
#ifndef HasNdbm
#define HasNdbm NO
#endif
#ifndef HasSecureRPC #ifndef HasSecureRPC
#define HasSecureRPC NO /* if you have Secure RPC */ #define HasSecureRPC NO /* if you have Secure RPC */
#endif #endif
...@@ -1286,13 +1283,6 @@ TCLIBDIR = TclLibDir ...@@ -1286,13 +1283,6 @@ TCLIBDIR = TclLibDir
#ifndef ToolkitStringsABIOptions #ifndef ToolkitStringsABIOptions
#define ToolkitStringsABIOptions /**/ #define ToolkitStringsABIOptions /**/
#endif #endif
#ifndef NdbmDefines
#if HasNdbm
#define NdbmDefines -DNDBM
#else
#define NdbmDefines /**/
#endif
#endif
#ifndef HasLdRunPath #ifndef HasLdRunPath
#define HasLdRunPath NO #define HasLdRunPath NO
#endif #endif
...@@ -1317,9 +1307,6 @@ TCLIBDIR = TclLibDir ...@@ -1317,9 +1307,6 @@ TCLIBDIR = TclLibDir
#ifndef MathLibrary #ifndef MathLibrary
#define MathLibrary -lm #define MathLibrary -lm
#endif #endif
#ifndef DBMLibrary
#define DBMLibrary -ldbm
#endif
#ifndef DlLibrary #ifndef DlLibrary
#define DlLibrary -ldl #define DlLibrary -ldl
#endif #endif
......
...@@ -65,7 +65,6 @@ Imake.tmpl provides defaults for the following variables: ...@@ -65,7 +65,6 @@ Imake.tmpl provides defaults for the following variables:
HasLibCrypt boolean for system has libcrypt HasLibCrypt boolean for system has libcrypt
HasMotif boolean for system has Motif HasMotif boolean for system has Motif
HasMotif2 boolean for system has Motif2 or OpenMotif HasMotif2 boolean for system has Motif2 or OpenMotif
HasNdbm boolean for system has ndbm routines
HasPoll use poll() syscall? HasPoll use poll() syscall?
HasPurify boolean for system has Purify HasPurify boolean for system has Purify
HasPutenv boolean for libc has putenv() HasPutenv boolean for libc has putenv()
...@@ -114,7 +113,6 @@ Imake.tmpl provides defaults for the following variables: ...@@ -114,7 +113,6 @@ Imake.tmpl provides defaults for the following variables:
MkCookieCmd command to generate an xauth cookie MkCookieCmd command to generate an xauth cookie
MsMacros macro flag for TroffCmd, normally "-ms" MsMacros macro flag for TroffCmd, normally "-ms"
MvCmd command to rename a file MvCmd command to rename a file
NdbmDefines -D's to turn on use of ndbm routines
NeedConstPrototoypes whether const is supported NeedConstPrototoypes whether const is supported
NeedFunctionPrototypes whether or not to force function prototypes NeedFunctionPrototypes whether or not to force function prototypes
NeedNestedPrototypes whether nested prototypes are supported NeedNestedPrototypes whether nested prototypes are supported
...@@ -176,7 +174,6 @@ X11.tmpl provides defaults for the following variables: ...@@ -176,7 +174,6 @@ X11.tmpl provides defaults for the following variables:
DebugLibX11 build libX11_d.a DebugLibX11 build libX11_d.a
DefaultCursorTheme name of default cursor theme DefaultCursorTheme name of default cursor theme
DefaultFontPath default server font path DefaultFontPath default server font path
DefaultRGBDatabase default server rgb color database
DefaultSystemPath default system xdm PATH environment variable DefaultSystemPath default system xdm PATH environment variable
DefaultSystemShell default /bin/sh DefaultSystemShell default /bin/sh
DefaultUserPath default user xdm PATH environment variable DefaultUserPath default user xdm PATH environment variable
...@@ -220,7 +217,6 @@ X11.tmpl provides defaults for the following variables: ...@@ -220,7 +217,6 @@ X11.tmpl provides defaults for the following variables:
ShmDefines MIT-SHM define ShmDefines MIT-SHM define
TwmDir directory in which to install twm config files TwmDir directory in which to install twm config files
UseCCMakeDepend boolean for using alternate makedepend script UseCCMakeDepend boolean for using alternate makedepend script
UseRgbTxt use rgb.txt file as is instead of DBM-compiled
VarDirectory directory in /var for logs, etc., and config VarDirectory directory in /var for logs, etc., and config
VendorHasX11R6_3libXext don't need Security & AppGroup in xrx plug-in VendorHasX11R6_3libXext don't need Security & AppGroup in xrx plug-in
XAppLoadDir directory in which to install app defaults XAppLoadDir directory in which to install app defaults
......
...@@ -312,12 +312,6 @@ XORGRELSTRING = XorgManVersionString ...@@ -312,12 +312,6 @@ XORGRELSTRING = XorgManVersionString
#ifndef DefaultFSFontPath #ifndef DefaultFSFontPath
# define DefaultFSFontPath DefaultFontPath # define DefaultFSFontPath DefaultFontPath
#endif #endif
#ifndef DefaultRGBDatabase
#define DefaultRGBDatabase $(USRDATADIR)/rgb
#endif
#ifndef UseRgbTxt
#define UseRgbTxt NO /* default is to compile with dbm */
#endif
#ifndef UseMemLeak #ifndef UseMemLeak
#define UseMemLeak NO #define UseMemLeak NO
#endif #endif
......
...@@ -165,7 +165,6 @@ ...@@ -165,7 +165,6 @@
#if defined(cygwinArchitecture) #if defined(cygwinArchitecture)
#define DefaultFontPath /mnt/NX/fonts/base/,/mnt/NX/fonts/misc/,/mnt/NX/fonts/Speedo/,/mnt/NX/fonts/Type1/,/mnt/NX/fonts/75dpi/,/mnt/NX/fonts/100dpi/,/mnt/NX/fonts/TTF/ #define DefaultFontPath /mnt/NX/fonts/base/,/mnt/NX/fonts/misc/,/mnt/NX/fonts/Speedo/,/mnt/NX/fonts/Type1/,/mnt/NX/fonts/75dpi/,/mnt/NX/fonts/100dpi/,/mnt/NX/fonts/TTF/
#define DefaultRGBDatabase /mnt/NX/fonts/rgb
#endif /* #if defined(cygwinArchitecture) */ #endif /* #if defined(cygwinArchitecture) */
/* /*
......
...@@ -660,10 +660,6 @@ XFREE86JAPANESEDOCDIR = $(DOCDIR)/Japanese ...@@ -660,10 +660,6 @@ XFREE86JAPANESEDOCDIR = $(DOCDIR)/Japanese
# define OtherIConfigFiles $(IRULESRC)/xf86.rules # define OtherIConfigFiles $(IRULESRC)/xf86.rules
#endif #endif
#ifndef UseRgbTxt
# define UseRgbTxt YES
#endif
#ifndef ManSuffix #ifndef ManSuffix
# define ManSuffix 1 # define ManSuffix 1
#endif #endif
......
...@@ -160,10 +160,7 @@ INSTPGMFLAGS = ...@@ -160,10 +160,7 @@ INSTPGMFLAGS =
#if HasPam && HasPamMisc #if HasPam && HasPamMisc
PAMLIBS = PamLibraries PamMiscLibraries PAMLIBS = PamLibraries PamMiscLibraries
#endif #endif
#if !(SystemV4 || UseRgbTxt) SYSLIBS = $(ZLIB) MathLibrary $(USB) \
DBMLIBS = DBMLibrary
#endif
SYSLIBS = $(ZLIB) MathLibrary $(DBMLIBS) $(USB) \
$(PAMLIBS) $(EXTRASYSLIBS) $(PAMLIBS) $(EXTRASYSLIBS)
#if !HasCbrt #if !HasCbrt
CBRT = mi/LibraryTargetName(cbrt) CBRT = mi/LibraryTargetName(cbrt)
......
...@@ -91,7 +91,6 @@ OBJS = \ ...@@ -91,7 +91,6 @@ OBJS = \
* .macros files or site.def in the directory util/imake.includes/: * .macros files or site.def in the directory util/imake.includes/:
* *
* DefaultFontPath COMPILEDDEFAULTFONTPATH * DefaultFontPath COMPILEDDEFAULTFONTPATH
* DefaultRGBDatabase RGB_DB
* *
* The sample util/imake.includes/Imake.tmpl will provide generic defaults. * The sample util/imake.includes/Imake.tmpl will provide generic defaults.
* The values in site.h are simply a last line of defense and should not be * The values in site.h are simply a last line of defense and should not be
...@@ -103,11 +102,6 @@ DEFAULTFONTPATH = DefaultFontPath ...@@ -103,11 +102,6 @@ DEFAULTFONTPATH = DefaultFontPath
SITE_FONT_PATH = -DCOMPILEDDEFAULTFONTPATH=\"$(DEFAULTFONTPATH)\" SITE_FONT_PATH = -DCOMPILEDDEFAULTFONTPATH=\"$(DEFAULTFONTPATH)\"
#endif #endif
#ifdef DefaultRGBDatabase
DEFAULTRGBDATABASE = DefaultRGBDatabase
SITE_RGB_DB = -DRGB_DB=\"$(DEFAULTRGBDATABASE)\"
#endif
#ifdef DefaultDisplayClass #ifdef DefaultDisplayClass
DEFAULTDISPLAYCLASS = DefaultDisplayClass DEFAULTDISPLAYCLASS = DefaultDisplayClass
SITE_DISPLAY_CLASS = -DCOMPILEDDISPLAYCLASS=\"$(DEFAULTDISPLAYCLASS)\" SITE_DISPLAY_CLASS = -DCOMPILEDDISPLAYCLASS=\"$(DEFAULTDISPLAYCLASS)\"
...@@ -129,7 +123,7 @@ VENDORRELEASE = XVendorRelease ...@@ -129,7 +123,7 @@ VENDORRELEASE = XVendorRelease
#endif #endif
#endif #endif
SITE_DEFINES = $(SITE_FONT_PATH) $(SITE_RGB_DB) $(SITE_DISPLAY_CLASS) SITE_DEFINES = $(SITE_FONT_PATH) $(SITE_DISPLAY_CLASS)
VENDOR_DEFINES = $(VENDOR_STRING) $(VENDOR_RELEASE) $(QUARTZ_DEFINES) VENDOR_DEFINES = $(VENDOR_STRING) $(VENDOR_RELEASE) $(QUARTZ_DEFINES)
......
...@@ -130,7 +130,6 @@ int logoScreenSaver = DEFAULT_LOGO_SCREEN_SAVER; ...@@ -130,7 +130,6 @@ int logoScreenSaver = DEFAULT_LOGO_SCREEN_SAVER;
char *defaultFontPath = COMPILEDDEFAULTFONTPATH; char *defaultFontPath = COMPILEDDEFAULTFONTPATH;
char *defaultTextFont = COMPILEDDEFAULTFONT; char *defaultTextFont = COMPILEDDEFAULTFONT;
char *defaultCursorFont = COMPILEDCURSORFONT; char *defaultCursorFont = COMPILEDCURSORFONT;
char *rgbPath = RGB_DB;
char *defaultDisplayClass = COMPILEDDISPLAYCLASS; char *defaultDisplayClass = COMPILEDDISPLAYCLASS;
FontPtr defaultFont; /* not declared in dix.h to avoid including font.h in FontPtr defaultFont; /* not declared in dix.h to avoid including font.h in
every compilation of dix code */ every compilation of dix code */
......
...@@ -12,7 +12,6 @@ extern CARD32 ScreenSaverTime; ...@@ -12,7 +12,6 @@ extern CARD32 ScreenSaverTime;
extern CARD32 ScreenSaverInterval; extern CARD32 ScreenSaverInterval;
extern char *defaultFontPath; extern char *defaultFontPath;
extern char *rgbPath;
extern int monitorResolution; extern int monitorResolution;
extern Bool loadableFonts; extern Bool loadableFonts;
extern int defaultColorVisualClass; extern int defaultColorVisualClass;
......
...@@ -94,7 +94,6 @@ typedef struct _NewClientRec *NewClientPtr; ...@@ -94,7 +94,6 @@ typedef struct _NewClientRec *NewClientPtr;
#define SIGVAL void #define SIGVAL void
#endif #endif
extern Bool OsDelayInitColors;
extern void (*OsVendorVErrorFProc)(const char *, va_list args); extern void (*OsVendorVErrorFProc)(const char *, va_list args);
extern int WaitForSomething( extern int WaitForSomething(
......
...@@ -65,19 +65,15 @@ SOFTWARE. ...@@ -65,19 +65,15 @@ SOFTWARE.
#endif #endif
/* /*
* The following constants are provided solely as a last line of defense. The * The following constant is provided solely as a last line of defense. The
* normal build ALWAYS overrides them using a special rule given in * normal build ALWAYS overrides it using a special rule given in
* server/dix/Imakefile. If you want to change either of these constants, * server/dix/Imakefile. If you want to change this constant, you should set
* you should set the DefaultFontPath or DefaultRGBDatabase configuration * the DefaultFontPath configuration parameter.
* parameters.
* DO NOT CHANGE THESE VALUES OR THE DIX IMAKEFILE! * DO NOT CHANGE THESE VALUES OR THE DIX IMAKEFILE!
*/ */
#ifndef COMPILEDDEFAULTFONTPATH #ifndef COMPILEDDEFAULTFONTPATH
#define COMPILEDDEFAULTFONTPATH "/usr/lib/X11/fonts/misc/" #define COMPILEDDEFAULTFONTPATH "/usr/lib/X11/fonts/misc/"
#endif #endif
#ifndef RGB_DB
#define RGB_DB "/usr/lib/X11/rgb"
#endif
/* /*
* The following constants contain default values for all of the variables * The following constants contain default values for all of the variables
......
...@@ -125,10 +125,6 @@ BOOTSTRAPCFLAGS = ...@@ -125,10 +125,6 @@ BOOTSTRAPCFLAGS =
#if UseMemLeak #if UseMemLeak
MEM_DEFINES = -DMEMBUG MEM_DEFINES = -DMEMBUG
#endif #endif
#if UseRgbTxt
RGB_DEFINES = -DUSE_RGB_TXT
#endif
DBM_DEFINES = NdbmDefines
ADM_DEFINES = -DADMPATH=\"$(ADMDIR)/X\%smsgs\" ADM_DEFINES = -DADMPATH=\"$(ADMDIR)/X\%smsgs\"
XDMCP_DEFINES = ServerXdmcpDefines XDMCP_DEFINES = ServerXdmcpDefines
ERROR_DEFINES = ServerErrorDefines ERROR_DEFINES = ServerErrorDefines
...@@ -139,14 +135,14 @@ BOOTSTRAPCFLAGS = ...@@ -139,14 +135,14 @@ BOOTSTRAPCFLAGS =
DEFINES = $(CONNECTION_FLAGS) $(MEM_DEFINES) \ DEFINES = $(CONNECTION_FLAGS) $(MEM_DEFINES) \
$(XDMAUTHDEFS) $(RPCDEFS) $(SIGNAL_DEFINES) $(OS_DEFINES) \ $(XDMAUTHDEFS) $(RPCDEFS) $(SIGNAL_DEFINES) $(OS_DEFINES) \
$(RGB_DEFINES) $(GETPEER_DEFINES) \ $(GETPEER_DEFINES) \
$(RANDOM_DEFINES) $(BUGMSG) $(XTRANS_FAILDEFINES) \ $(RANDOM_DEFINES) $(BUGMSG) $(XTRANS_FAILDEFINES) \
$(XTRANS_DEFINES) $(NX_DEFINES) $(XTRANS_DEFINES) $(NX_DEFINES)
INCLUDES = -I. -I../include -I$(XINCLUDESRC) -I$(EXTINCSRC) \ INCLUDES = -I. -I../include -I$(XINCLUDESRC) -I$(EXTINCSRC) \
-I$(SERVERSRC)/Xext -I$(SERVERSRC)/render \ -I$(SERVERSRC)/Xext -I$(SERVERSRC)/render \
-I$(TOP)/lib/Xau $(NX_INCLUDES) \ -I$(TOP)/lib/Xau $(NX_INCLUDES) \
`pkg-config --cflags-only-I pixman-1` `pkg-config --cflags-only-I pixman-1`
DEPEND_DEFINES = $(DBM_DEFINES) $(XDMCP_DEFINES) $(EXT_DEFINES) \ DEPEND_DEFINES = $(XDMCP_DEFINES) $(EXT_DEFINES) \
$(TRANS_INCLUDES) $(CONNECTION_FLAGS) $(GETPEER_DEFINES) \ $(TRANS_INCLUDES) $(CONNECTION_FLAGS) $(GETPEER_DEFINES) \
DependDefines DependDefines
LINTLIBS = ../dix/llib-ldix.ln LINTLIBS = ../dix/llib-ldix.ln
...@@ -182,9 +178,7 @@ SpecialCObjectRule(utils,$(ICONFIGFILES),$(XDMCP_DEFINES) $(EXT_DEFINES) $(ERROR ...@@ -182,9 +178,7 @@ SpecialCObjectRule(utils,$(ICONFIGFILES),$(XDMCP_DEFINES) $(EXT_DEFINES) $(ERROR
#if defined(SparcArchitecture) && HasGcc && !HasGcc2 #if defined(SparcArchitecture) && HasGcc && !HasGcc2
oscolor.o: oscolor.c $(ICONFIGFILES) oscolor.o: oscolor.c $(ICONFIGFILES)
$(RM) $@ $(RM) $@
cc -c $(DBM_DEFINES) $(CDEBUGFLAGS) $(ALLDEFINES) $*.c cc -c $(CDEBUGFLAGS) $(ALLDEFINES) $*.c
#else
SpecialCObjectRule(oscolor,$(ICONFIGFILES),$(DBM_DEFINES))
#endif #endif
#if !HasSnprintf #if !HasSnprintf
......
...@@ -88,8 +88,6 @@ int limitStackSpace = -1; ...@@ -88,8 +88,6 @@ int limitStackSpace = -1;
int limitNoFile = -1; int limitNoFile = -1;
#endif #endif
Bool OsDelayInitColors = FALSE;
void void
OsInit(void) OsInit(void)
{ {
...@@ -218,7 +216,6 @@ OsInit(void) ...@@ -218,7 +216,6 @@ OsInit(void)
if (!SmartScheduleInit ()) if (!SmartScheduleInit ())
SmartScheduleDisable = TRUE; SmartScheduleDisable = TRUE;
OsInitAllocator(); OsInitAllocator();
if (!OsDelayInitColors) OsInitColors();
} }
void void
......
...@@ -565,7 +565,6 @@ void UseMsg(void) ...@@ -565,7 +565,6 @@ void UseMsg(void)
ErrorF("-c turns off key-click\n"); ErrorF("-c turns off key-click\n");
ErrorF("c # key-click volume (0-100)\n"); ErrorF("c # key-click volume (0-100)\n");
ErrorF("-cc int default color visual class\n"); ErrorF("-cc int default color visual class\n");
ErrorF("-co file color database file\n");
#ifdef COMMANDLINE_CHALLENGED_OPERATING_SYSTEMS #ifdef COMMANDLINE_CHALLENGED_OPERATING_SYSTEMS
ErrorF("-config file read options from file\n"); ErrorF("-config file read options from file\n");
#endif #endif
...@@ -771,13 +770,6 @@ ProcessCommandLine(int argc, char *argv[]) ...@@ -771,13 +770,6 @@ ProcessCommandLine(int argc, char *argv[])
else else
UseMsg(); UseMsg();
} }
else if ( strcmp( argv[i], "-co") == 0)
{
if(++i < argc)
rgbPath = argv[i];
else
UseMsg();
}
else if ( strcmp( argv[i], "-core") == 0) else if ( strcmp( argv[i], "-core") == 0)
CoreDump = TRUE; CoreDump = TRUE;
else if ( strcmp( argv[i], "-dpi") == 0) else if ( strcmp( argv[i], "-dpi") == 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment