[xorg-commit-diffs] xc/programs/Xserver/hw/darwin Imakefile, 1.1.4.4, 1.1.4.5 XDarwin.man, 1.1.4.1, 1.1.4.2 darwin.c, 1.1.4.3, 1.1.4.4

Egbert Eich xorg-commit at pdx.freedesktop.org
Thu Apr 15 03:15:50 PDT 2004


Committed by: eich

Update of /cvs/xorg/xc/programs/Xserver/hw/darwin
In directory pdx:/home/eich/tstbuild/xc/programs/Xserver/hw/darwin

Modified Files:
      Tag: XORG-CURRENT
	Imakefile XDarwin.man darwin.c 
Log Message:
2004-04-15  Egbert Eich  <eich at freedesktop.org>
        Merged changes from RELEASE-1 branch
	


Index: Imakefile
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/darwin/Imakefile,v
retrieving revision 1.1.4.4
retrieving revision 1.1.4.5
diff -u -d -r1.1.4.4 -r1.1.4.5
--- a/Imakefile	26 Mar 2004 01:22:39 -0000	1.1.4.4
+++ b/Imakefile	15 Apr 2004 10:15:47 -0000	1.1.4.5
@@ -3,7 +3,7 @@
 #include <Server.tmpl>
 #define IHaveSubdirs
 
-LinkSourceFile(XFree86.man,../xfree86)
+LinkSourceFile(Xorg.man,../xfree86)
 
 SRCS =	darwin.c \
         darwinEvents.c \
@@ -29,6 +29,20 @@
 BUILDERSTRING = BuilderString
 BUILDERMSG = -DBUILDERSTRING='$(BUILDERSTRING)'
 #endif
+XORGREL = XOrgReleaseString
+XORGREL_DEF = -DXORG_RELEASE="\"$(XORGREL)\""
+
+#if defined(BuildDate)
+    BUILD_DATE = BuildDate
+#else
+    BUILD_DATE = 0
+#endif
+
+#if defined(ChangelogDate)
+    CLOG_DATE = ChangelogDate
+#else
+    CLOG_DATE = 0
+#endif
 
 #if OSMajorVersion >= 6
 CLUTDEF = -DUSE_NEW_CLUT
@@ -45,17 +59,17 @@
 SUBDIRS = iokit utils
 #endif
 
-DEFINES = $(QUARTZDEF)
+DEFINES = $(QUARTZDEF) $(VENDORSUPPORTDEFS)
 EXTRAMANDEFS = $(QUARTZDEF) -D__logdir__=$(LOGDIRECTORY)
 
 SpecialCObjectRule(darwin,$(ICONFIGFILES),$(OSNAMEDEF) $(BUILDERMSG) \
-                   $(CUSTOMVERDEF) $(CLUTDEF))
+                   $(CUSTOMVERDEF) $(XORGREL_DEF) $(CLUTDEF))
 
 NormalLibraryObjectRule()
 NormalLibraryTarget(darwin,$(OBJS))
 
 InstallManPage(XDarwin,$(MANDIR))
-InstallManPage(XFree86,$(MANDIR))
+InstallManPage(Xorg,$(MANDIR))
 
 DependTarget()
 

Index: XDarwin.man
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/darwin/XDarwin.man,v
retrieving revision 1.1.4.1
retrieving revision 1.1.4.2
diff -u -d -r1.1.4.1 -r1.1.4.2
--- a/XDarwin.man	5 Mar 2004 13:39:58 -0000	1.1.4.1
+++ b/XDarwin.man	15 Apr 2004 10:15:47 -0000	1.1.4.2
@@ -10,7 +10,7 @@
 #ifdef DARWIN_WITH_QUARTZ
 .I XDarwin
 is the X window server for Mac OS X and the Darwin operating system
-provided by the XFree86 Project.
+provided by the X.Org Foundation.
 .I XDarwin
 can run in three different modes. On Mac OS X,
 .I XDarwin
@@ -51,7 +51,7 @@
 #else
 .I XDarwin
 is the X window server for Mac OS X and the Darwin operating system
-provided by the XFree86 Project. This version of
+provided by the X.Org Foundation. This version of
 .I XDarwin
 can only be started from the Darwin text console. The Mac OS X Aqua GUI, if
 present, must be shut down.
@@ -147,7 +147,7 @@
 Same as \fB\-showconfig\fP.
 .SH "SEE ALSO"
 .PP
-X(__miscmansuffix__), XFree86(1), Xserver(1), xdm(1), xinit(1)
+X(__miscmansuffix__), Xorg(1), Xserver(1), xdm(1), xinit(1)
 .SH BUGS
 .I XDarwin
 and this man page still have many limitations. Some of the more obvious

Index: darwin.c
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/darwin/darwin.c,v
retrieving revision 1.1.4.3
retrieving revision 1.1.4.4
diff -u -d -r1.1.4.3 -r1.1.4.4
--- a/darwin.c	5 Mar 2004 13:39:58 -0000	1.1.4.3
+++ b/darwin.c	15 Apr 2004 10:15:47 -0000	1.1.4.4
@@ -5,7 +5,7 @@
  *
  **************************************************************/
 /*
- * Copyright (c) 2001-2003 Torrey T. Lyons. All Rights Reserved.
+ * Copyright (c) 2001-2004 Torrey T. Lyons. All Rights Reserved.
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the "Software"),
@@ -44,7 +44,7 @@
 #include "fb.h"			// fb framebuffer code
 #include "site.h"
 #include "globals.h"
-#include "xf86Version.h"
+#include "xorgVersion.h"
 #include "xf86Date.h"
 #include "dix.h"
 
@@ -55,6 +55,9 @@
 #include <fcntl.h>
 #include <unistd.h>
 
+#define HAS_UTSNAME 1
+#include <sys/utsname.h>
+
 #define NO_CFPLUGIN
 #include <IOKit/IOKitLib.h>
 #include <IOKit/hidsystem/IOHIDLib.h>
@@ -110,7 +113,7 @@
 #define OSVENDOR ""
 #endif
 #ifndef PRE_RELEASE
-#define PRE_RELEASE XF86_VERSION_SNAP
+#define PRE_RELEASE XORG_VERSION_SNAP
 #endif
 
 void
@@ -118,37 +121,74 @@
 {
 #if PRE_RELEASE
   ErrorF("\n"
-    "This is a pre-release version of XFree86, and is not supported in any\n"
-    "way.  Bugs may be reported to XFree86 at XFree86.Org and patches submitted\n"
-    "to fixes at XFree86.Org.  Before reporting bugs in pre-release versions,\n"
-    "please check the latest version in the XFree86 CVS repository\n"
-    "(http://www.XFree86.Org/cvs)\n");
+    "This is a pre-release version of the " XVENDORNAME " X11.\n"
+    "Portions of this release are based on XFree86 4.4RC2 and selected\n"
+    "files from XFree86 4.4RC3. It is not supported in any way.\n"
+    "Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.\n"
+    "Select the \"xorg\" product for bugs you find in this release.\n"
+    "Before reporting bugs in pre-release versions please check the\n"
+    "latest version in the " XVENDORNAME " \"monolithic tree\" CVS\n"
+    "repository hosted at http://www.freedesktop.org/Software/xorg/");
 #endif
-  ErrorF("\nXFree86 Version %d.%d.%d", XF86_VERSION_MAJOR, XF86_VERSION_MINOR,
-                                    XF86_VERSION_PATCH);
-#if XF86_VERSION_SNAP > 0
+#if XORG_VERSION_SNAP > 0
   ErrorF(".%d", XF86_VERSION_SNAP);
 #endif
 
-#if XF86_VERSION_SNAP >= 900
-  ErrorF(" (%d.%d.0 RC %d)", XF86_VERSION_MAJOR, XF86_VERSION_MINOR + 1,
-				XF86_VERSION_SNAP - 900);
+#if XORG_VERSION_SNAP >= 900
+  ErrorF(" (%d.%d.0 RC %d)", XORG_VERSION_MAJOR, XORG_VERSION_MINOR + 1,
+				XORG_VERSION_SNAP - 900);
 #endif
 
-#ifdef XF86_CUSTOM_VERSION
+#ifdef XORG_CUSTOM_VERSION
   ErrorF(" (%s)", XF86_CUSTOM_VERSION);
 #endif
-  ErrorF(" / X Window System\n");
-  ErrorF("(protocol Version %d, revision %d, vendor release %d)\n",
-         X_PROTOCOL, X_PROTOCOL_REVISION, VENDOR_RELEASE );
-  ErrorF("Release Date: %s\n", XF86_DATE);
-  ErrorF("\tIf the server is older than 6-12 months, or if your hardware is\n"
-         "\tnewer than the above date, look for a newer version before\n"
-         "\treporting problems.  (See http://www.XFree86.Org/FAQ)\n");
-  ErrorF("Operating System:%s%s\n", OSNAME, OSVENDOR);
+  ErrorF("\nRelease Date: %s\n", XF86_DATE);
+  ErrorF("X Protocol Version %d, Revision %d, %s\n",
+         X_PROTOCOL, X_PROTOCOL_REVISION, XORG_RELEASE );
+  ErrorF("Build Operating System:%s%s\n", OSNAME, OSVENDOR);
+#ifdef HAS_UTSNAME
+  {
+    struct utsname name;
+
+    if (uname(&name) == 0) {
+      ErrorF("Current Operating System: %s %s %s %s %s\n",
+	name.sysname, name.nodename, name.release, name.version, name.machine);
+    }
+  }
+#endif
+#if defined(BUILD_DATE) && (BUILD_DATE > 19000000)
+  {
+    struct tm t;
+    char buf[100];
+
+    bzero(&t, sizeof(t));
+    bzero(buf, sizeof(buf));
+    t.tm_mday = BUILD_DATE % 100;
+    t.tm_mon = (BUILD_DATE / 100) % 100 - 1;
+    t.tm_year = BUILD_DATE / 10000 - 1900;
+    if (strftime(buf, sizeof(buf), "%d %B %Y", &t))
+       ErrorF("Build Date: %s\n", buf);
+  }
+#endif
+#if defined(CLOG_DATE) && (CLOG_DATE > 19000000)
+  {
+    struct tm t;
+    char buf[100];
+
+    bzero(&t, sizeof(t));
+    bzero(buf, sizeof(buf));
+    t.tm_mday = CLOG_DATE % 100;
+    t.tm_mon = (CLOG_DATE / 100) % 100 - 1;
+    t.tm_year = CLOG_DATE / 10000 - 1900;
+    if (strftime(buf, sizeof(buf), "%d %B %Y", &t))
+       ErrorF("Changelog Date: %s\n", buf);
+  }
+#endif
 #if defined(BUILDERSTRING)
   ErrorF("%s \n",BUILDERSTRING);
 #endif
+  ErrorF("\tBefore reporting problems, check "__VENDORDWEBSUPPORT__"\n"
+	 "\tto make sure that you have the latest version.\n");
 }
 
 




More information about the xorg-commit-diffs mailing list