Bug#164026: Correction of 999_NetBSD.cf
My sincerest apologies - the formerly included 999_NetBSD.cf had one part of the patch out of order. I had already fixed it, but somehow it failed to make it into my local CVS before I sent the patches. Please find the corrected patch attached to this message, as '999_NetBSD.cf.corrected'. -- *** Joel Baker System Administrator - lightbearer.com [EMAIL PROTECTED] http://users.lightbearer.com/lucifer/ This is an omnibus patch to add support for Debian-specific values in the NetBSD.cf file. It requires that imake be patched to generate the proper values for NetBSDDistribution, before these will be used (provided as a separate patch). Origionally written by Joel Baker [EMAIL PROTECTED]. diff -ur xc-dist/config/cf/NetBSD.cf xc/config/cf/NetBSD.cf --- xc-dist/config/cf/NetBSD.cf 2002-10-09 03:55:29.0 + +++ xc/config/cf/NetBSD.cf 2002-10-09 03:58:09.0 + @@ -18,12 +18,109 @@ #define OSTeenyVersion DefaultOSTeenyVersion #endif +#ifndef NetBSDDistribution +#define NetBSDDistribution DefaultNetBSDDistribution +/* + Add #define NetBSDDistribution NetBSDmumble to your site.def or host.def. + Currently only NetBSDDebian will be autodetected. + Valid values are: +NetBSDUnknown(0) +NetBSDNative (1) +NetBSDDebian (2) +*/ +#endif + +#ifndef NetBSDDistName +# define NetBSDDistName DefaultNetBSDDistName +#endif #ifndef OSVendor #defineOSVendorThe NetBSD Foundation, Inc. #endif + +#ifndef NetBSDBinUtilsMajorVersion +# define NetBSDBinUtilsMajorVersion DefaultNetBSDBinUtilsMajorVersion +#endif + XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVersion) +/* Defines for Debian GNU/NetBSD */ + +#if NetBSDDistribution == NetBSDDebian +# ifndef DefaultGcc2OptimizeOpt +# define DefaultGcc2OptimizeOpt -O2 +# endif +# define DefaultGcc2AxpOpt DefaultGcc2OptimizeOpt +# define DefaultGcc2i386OptDefaultGcc2OptimizeOpt +# define DefaultGcc2PpcOpt DefaultGcc2OptimizeOpt +# define SystemManDirectory/usr/share/man +# define HasPamYES +# define HasTk YES +# define TkLibDir /usr/lib +# define TkIncDir /usr/include +# define TkLibName tk8.3 +# define XF86SetupUsesStaticTk NO +# define HasTclYES +# define TclLibDir /usr/lib +# define TclIncDir /usr/include +# define TclLibNametcl8.3 +# define XF86SetupUsesStaticTclNO +# define XAppLoadDir EtcX11Directory/app-defaults +# define XFileSearchPathDefault Concat4(EtcX11Directory/%L/%T/%N%C,%S:EtcX11Directory/%l/%T/%N%C,%S:EtcX11Directory/%T/%N%C,%S:EtcX11Directory/%L/%T/%N%S:EtcX11Directory/%l/%T/%N%S:EtcX11Directory/%T/%N%S):Concat4($(LIBDIR)/%L/%T/%N%C,%S:$(LIBDIR)/%l/%T/%N%C,%S:$(LIBDIR)/%T/%N%C,%S:$(LIBDIR)/%L/%T/%N%S:$(LIBDIR)/%l/%T/%N%S:$(LIBDIR)/%T/%N%S) +/* the relative symlink created by this rule causes problems for us */ +# if InstallAppDefFiles +# define InstallAppDefaultsLong(file,class) @@\ +InstallNamedTarget(install,file.ad,$(INSTAPPFLAGS),$(XAPPLOADDIR),class) +# else +# define InstallAppDefaultsLong(file,class) @@\ +InstallNamedTargetNoClobber(install,file.ad,$(INSTAPPFLAGS),$(XAPPLOADDIR),class) +# endif /* InstallAppDefFiles */ + +# define SharedLibXdmGreet NO +# define LinkGLToUsrIncludeNO +# define LinkGLToUsrLibNO +# define SharedLibFont NO +# define HasZlib YES +# define SharedLibGlu YES +# define NormalLibGlu YES +# define FSUseSyslog YES + +/* + * + */ +# define DebianMaintainer [EMAIL PROTECTED] +/* + * + */ + +# ifdef DebianMaintainer +# ifndef XFree86CustomVersion +#define XFree86CustomVersion Debian +# endif +# ifndef BuilderEMailAddr +#define BuilderEMailAddr debian-x@lists.debian.org +# endif +# define XFree86Devel YES +# define BuildAllSpecsDocsYES +# define InstallXinitConfig YES +# define InstallXdmConfig YES +# define InstallFSConfig YES +# define DebuggableLibraries YES +# define ForceNormalLib YES +# define BuildSpecsDocs YES +# define SpecsDocDirs CTEXT GL ICCCM X11 Xext Xv i18n xterm +# define BuildRmanNO +# define BuildHtmlManPagesNO +# define ProjectManSuffix x + +/* we build-depend on libfreetype6-dev (FreeType 2.x) */ +# define BuildFreetype2LibraryNO +# define HasFreetype2 YES +# define HasXdmAuth YES +# define HasLatex YES +# endif /* DebianMaintainer */ +#endif /* NetBSDDebian */ + /* * C library features */ @@ -83,8 +180,13 @@ #define HasUsableFileMmap YES +#if NetBSDDistribution == NetBSDDebian +#define HasVarRun YES
Bug#164026: Correction of 999_NetBSD.cf
My sincerest apologies - the formerly included 999_NetBSD.cf had one part of the patch out of order. I had already fixed it, but somehow it failed to make it into my local CVS before I sent the patches. Please find the corrected patch attached to this message, as '999_NetBSD.cf.corrected'. -- *** Joel Baker System Administrator - lightbearer.com [EMAIL PROTECTED] http://users.lightbearer.com/lucifer/ This is an omnibus patch to add support for Debian-specific values in the NetBSD.cf file. It requires that imake be patched to generate the proper values for NetBSDDistribution, before these will be used (provided as a separate patch). Origionally written by Joel Baker [EMAIL PROTECTED]. diff -ur xc-dist/config/cf/NetBSD.cf xc/config/cf/NetBSD.cf --- xc-dist/config/cf/NetBSD.cf 2002-10-09 03:55:29.0 + +++ xc/config/cf/NetBSD.cf 2002-10-09 03:58:09.0 + @@ -18,12 +18,109 @@ #define OSTeenyVersion DefaultOSTeenyVersion #endif +#ifndef NetBSDDistribution +#define NetBSDDistribution DefaultNetBSDDistribution +/* + Add #define NetBSDDistribution NetBSDmumble to your site.def or host.def. + Currently only NetBSDDebian will be autodetected. + Valid values are: +NetBSDUnknown(0) +NetBSDNative (1) +NetBSDDebian (2) +*/ +#endif + +#ifndef NetBSDDistName +# define NetBSDDistName DefaultNetBSDDistName +#endif #ifndef OSVendor #defineOSVendorThe NetBSD Foundation, Inc. #endif + +#ifndef NetBSDBinUtilsMajorVersion +# define NetBSDBinUtilsMajorVersion DefaultNetBSDBinUtilsMajorVersion +#endif + XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVersion) +/* Defines for Debian GNU/NetBSD */ + +#if NetBSDDistribution == NetBSDDebian +# ifndef DefaultGcc2OptimizeOpt +# define DefaultGcc2OptimizeOpt -O2 +# endif +# define DefaultGcc2AxpOpt DefaultGcc2OptimizeOpt +# define DefaultGcc2i386OptDefaultGcc2OptimizeOpt +# define DefaultGcc2PpcOpt DefaultGcc2OptimizeOpt +# define SystemManDirectory/usr/share/man +# define HasPamYES +# define HasTk YES +# define TkLibDir /usr/lib +# define TkIncDir /usr/include +# define TkLibName tk8.3 +# define XF86SetupUsesStaticTk NO +# define HasTclYES +# define TclLibDir /usr/lib +# define TclIncDir /usr/include +# define TclLibNametcl8.3 +# define XF86SetupUsesStaticTclNO +# define XAppLoadDir EtcX11Directory/app-defaults +# define XFileSearchPathDefault +Concat4(EtcX11Directory/%L/%T/%N%C,%S:EtcX11Directory/%l/%T/%N%C,%S:EtcX11Directory/%T/%N%C,%S:EtcX11Directory/%L/%T/%N%S:EtcX11Directory/%l/%T/%N%S:EtcX11Directory/%T/%N%S):Concat4($(LIBDIR)/%L/%T/%N%C,%S:$(LIBDIR)/%l/%T/%N%C,%S:$(LIBDIR)/%T/%N%C,%S:$(LIBDIR)/%L/%T/%N%S:$(LIBDIR)/%l/%T/%N%S:$(LIBDIR)/%T/%N%S) +/* the relative symlink created by this rule causes problems for us */ +# if InstallAppDefFiles +# define InstallAppDefaultsLong(file,class) @@\ +InstallNamedTarget(install,file.ad,$(INSTAPPFLAGS),$(XAPPLOADDIR),class) +# else +# define InstallAppDefaultsLong(file,class) @@\ +InstallNamedTargetNoClobber(install,file.ad,$(INSTAPPFLAGS),$(XAPPLOADDIR),class) +# endif /* InstallAppDefFiles */ + +# define SharedLibXdmGreet NO +# define LinkGLToUsrIncludeNO +# define LinkGLToUsrLibNO +# define SharedLibFont NO +# define HasZlib YES +# define SharedLibGlu YES +# define NormalLibGlu YES +# define FSUseSyslog YES + +/* + * + */ +# define DebianMaintainer [EMAIL PROTECTED] +/* + * + */ + +# ifdef DebianMaintainer +# ifndef XFree86CustomVersion +#define XFree86CustomVersion Debian +# endif +# ifndef BuilderEMailAddr +#define BuilderEMailAddr [EMAIL PROTECTED] +# endif +# define XFree86Devel YES +# define BuildAllSpecsDocsYES +# define InstallXinitConfig YES +# define InstallXdmConfig YES +# define InstallFSConfig YES +# define DebuggableLibraries YES +# define ForceNormalLib YES +# define BuildSpecsDocs YES +# define SpecsDocDirs CTEXT GL ICCCM X11 Xext Xv i18n xterm +# define BuildRmanNO +# define BuildHtmlManPagesNO +# define ProjectManSuffix x + +/* we build-depend on libfreetype6-dev (FreeType 2.x) */ +# define BuildFreetype2LibraryNO +# define HasFreetype2 YES +# define HasXdmAuth YES +# define HasLatex YES +# endif /* DebianMaintainer */ +#endif /* NetBSDDebian */ + /* * C library features */ @@ -83,8 +180,13 @@ #define HasUsableFileMmap YES +#if NetBSDDistribution == NetBSDDebian +#define HasVarRun YES +#define