[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#164026: marked as done (xfree86: support for Debian/NetBSD)



Your message dated Mon, 25 Nov 2002 00:03:16 -0500
with message-id <20021125050316.GK945@apocalypse.deadbeast.net>
and subject line Bug#164026: NetBSD build patches
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 9 Oct 2002 22:36:18 +0000
>From lucifer@lightbearer.com Wed Oct 09 17:36:18 2002
Return-path: <lucifer@lightbearer.com>
Received: from dogma.lightbearer.com (deargod.lightbearer.com) [216.150.202.131] (qmailr)
	by master.debian.org with smtp (Exim 3.12 1 (Debian))
	id 17zPRC-00070W-00; Wed, 09 Oct 2002 17:36:18 -0500
Received: (qmail 4596 invoked by uid 1000); 9 Oct 2002 22:36:16 -0000
From: "Joel Baker" <lucifer@lightbearer.com>
Date: Wed, 9 Oct 2002 16:36:16 -0600
To: submit@bugs.debian.org
Cc: lucifer@lightbearer.com
Subject: NetBSD build patches
Message-ID: <20021009223616.GA4413@lightbearer.com>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="/04w6evG8XlLl3ft"
Content-Disposition: inline
User-Agent: Mutt/1.3.28i
Delivered-To: submit@bugs.debian.org


--/04w6evG8XlLl3ft
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Package: xfree86
Version: 4.2.1-1
Severity: normal

I am attaching four patches to this bug; all four must be present in the
debian/patches/ directory to successfully build on a NetBSD platform. I
would like to request an assigned number-range (as with the other ports)
for these patches; for the moment, they're named under the 999 convention.

Note that the netbsd_no_SharedOldX patch must be applied *after* the C++
support patch for bsdLib.rules (bug #163892), as they both touch the same
file.

Note that patches for the required debian/* support files (such as
MANIFEST.netbsd-i386) will be submitted in a separate bug.
-- 
***************************************************************************
Joel Baker                           System Administrator - lightbearer.com
lucifer@lightbearer.com              http://users.lightbearer.com/lucifer/

--/04w6evG8XlLl3ft
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="999_imake.c"

Patch to imake.c for Debian/NetBSD support by Joel Baker
<lucifer@lightbearer.com>.

--- xc-dist/config/imake/imake.c        Sun Jan 27 23:07:23 2002
+++ xc/config/imake/imake.c     Sun Jan 27 23:20:05 2002
@@ -950,6 +950,10 @@
   fprintf (inFile, "%s\n", "#define LinuxWare       11");
   fprintf (inFile, "%s\n", "#define LinuxYggdrasil  12");
 
+  fprintf (inFile, "%s\n", "#define NetBSDUnknown   0");
+  fprintf (inFile, "%s\n", "#define NetBSDNative    1");
+  fprintf (inFile, "%s\n", "#define NetBSDDebian    2");
+
   if (lstat (yast, &sb) == 0) {
     fprintf (inFile, "%s\n", "#define DefaultLinuxDistribution LinuxSuSE");
     fprintf (inFile, "%s\n", "#define DefaultLinuxDistName SuSE");
@@ -963,6 +967,8 @@
   if (lstat (debian, &sb) == 0) {
     fprintf (inFile, "%s\n", "#define DefaultLinuxDistribution LinuxDebian");
     fprintf (inFile, "%s\n", "#define DefaultLinuxDistName Debian");
+    fprintf (inFile, "%s\n", "#define DefaultNetBSDDistribution NetBSDDebian");
+    fprintf (inFile, "%s\n", "#define DefaultNetBSDDistName Debian");
     /* You could also try to get the version of the Debian distrib by looking
      * at the content of /etc/debian_version */
     return;
@@ -971,6 +977,8 @@
 
   fprintf (inFile, "%s\n", "#define DefaultLinuxDistribution LinuxUnknown");
   fprintf (inFile, "%s\n", "#define DefaultLinuxDistName Unknown");
+  fprintf (inFile, "%s\n", "#define DefaultNetBSDDistribution NetBSDUnknown");
+  fprintf (inFile, "%s\n", "#define DefaultNetBSDDistName Unknown");
   /* would like to know what version of the distribution it is */
 }


--/04w6evG8XlLl3ft
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="999_NetBSD.cf"

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 <lucifer@lightbearer.com>.

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.000000000 +0000
+++ xc/config/cf/NetBSD.cf	2002-10-09 03:58:09.000000000 +0000
@@ -18,12 +18,109 @@
 #define OSTeenyVersion		DefaultOSTeenyVersion
 #endif
 
+#ifndef NetBSDDistribution
+#define NetBSDDistribution	DefaultNetBSDDistribution
+/*
+  Add "#define NetBSDDistribution NetBSD<mumble>" 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
 #define	OSVendor		The 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 DefaultGcc2i386Opt	DefaultGcc2OptimizeOpt
+# define DefaultGcc2PpcOpt	DefaultGcc2OptimizeOpt
+# define SystemManDirectory	/usr/share/man
+# define HasPam			YES
+# define HasTk			YES
+# define TkLibDir		/usr/lib
+# define TkIncDir		/usr/include
+# define TkLibName		tk8.3
+# define XF86SetupUsesStaticTk	NO
+# define HasTcl			YES
+# define TclLibDir		/usr/lib
+# define TclIncDir		/usr/include
+# define TclLibName		tcl8.3
+# define XF86SetupUsesStaticTcl	NO
+# 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 LinkGLToUsrInclude	NO
+# define LinkGLToUsrLib		NO
+# define SharedLibFont		NO
+# define HasZlib		YES
+# define SharedLibGlu		YES
+# define NormalLibGlu		YES
+# define FSUseSyslog		YES
+
+/*
+ *
+ */
+# define DebianMaintainer	"xfree86@packages.debian.org"
+/*
+ *
+ */
+
+# ifdef DebianMaintainer
+#  ifndef XFree86CustomVersion
+#    define XFree86CustomVersion	"Debian"
+#  endif
+#  ifndef BuilderEMailAddr
+#    define BuilderEMailAddr	"debian-x@lists.debian.org"
+#  endif
+#  define XFree86Devel		YES
+#  define BuildAllSpecsDocs	YES
+#  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 BuildRman		NO
+#  define BuildHtmlManPages	NO
+#  define ProjectManSuffix	x
+
+/* we build-depend on libfreetype6-dev (FreeType 2.x) */
+#  define BuildFreetype2Library	NO
+#  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 VarDbDirectory		$(VARDIR)/lib
+#else /* Debian */
 #define HasVarRun		YES
 #define HasVarDb		YES
+#endif /* Debian */
 
 #define InstallXloadSetGID	NO
 
@@ -100,6 +202,11 @@
 #define SharedX11Reqs		ThreadsLibraries
 #endif
 
+#if UseElfFormat
+# define HasPlugin                      YES
+# define VendorHasX11R6_3libXext        YES     /* XC or XFree86 >= 3.3.1 */
+#endif
+
 /*
  * Compiler Features
  */
@@ -286,6 +393,10 @@
 /* NetBSD doesn't have gperf in the base install */
 #define DontRebuildGperfOutput	YES
 
+#if NetBSDDistribution == NetBSDDebian
+#define HasPerl                 YES
+#endif
+
 /* 
  * NetBSD doesn't have perl in default system
  * you may override this in host.def if you installed perl from the packages
@@ -305,7 +416,13 @@
 /*
  * Make & install Features
  */
+
+#if NetBSDDistribution == NetBSDDebian
+#define HasBsdMake		NO
+#else
 #define HasBsdMake		YES
+#endif
+
 #define CompressAllFonts	YES
 #define GzipFontCompression	YES
 #define DefaultUserPath		/bin:/usr/bin:/usr/pkg/bin:/usr/local/bin:$(BINDIR)
@@ -396,6 +513,8 @@
 									@@\
 .EXEC:
 
+#if NetBSDDistribution != NetBSDDebian /* Debian uses ProjectManSuffix */
+
 /*
  * Man pages need to be formatted when installed, so override the default
  * imake rules.
@@ -487,6 +606,8 @@
 									@@\
 InstallManPageAliasesBase(file,destdir,aliases)
 
+#endif /* Debian */
+
 /*
  * Shared libraries supported starting in 1.0 on a.out platforms,
  * and on all ELF platforms.

--/04w6evG8XlLl3ft
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=999_netbsd_no_SharedOldX

This patch disables the building of a shared liboldX library (static building
is still done). This brings the NetBSD architectures in line with the other
Debian builds (which only have the static version of the librar).

This patch must be applied *after* the bsdLib.rules patch.

Patch by Joel Baker <lucifer@lightbearer.com>

diff -ur xc-dist/config/cf/bsdLib.rules xc/config/cf/bsdLib.rules
--- xc-dist/config/cf/bsdLib.rules	2002-10-09 03:32:44.000000000 +0000
+++ xc/config/cf/bsdLib.rules	2002-10-09 03:41:11.000000000 +0000
@@ -13,6 +13,12 @@
 #define UseElfFormat NO
 #endif
 
+#if NetBSDDistribution == NetBSDDebian
+# ifndef SharedOldX
+#  define SharedOldX NO
+# endif
+#endif /* Debian */
+
 #if !UseElfFormat
 /* a.out shared libs */
 #ifndef HasSharedLibraries

--/04w6evG8XlLl3ft
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="999_netbsd_no_kbd_mode.diff"

This patch disables building the (obsolete) kbd_mode program on Debian
systems.

Patch by Joel Baker <lucifer@lightbearer.com>

diff -ur xc-dist/programs/Xserver/hw/xfree86/etc/Imakefile xc/programs/Xserver/hw/xfree86/etc/Imakefile
--- xc-dist/programs/Xserver/hw/xfree86/etc/Imakefile	2001-06-24 20:19:11.000000000 +0000
+++ xc/programs/Xserver/hw/xfree86/etc/Imakefile	2002-10-09 03:27:33.000000000 +0000
@@ -65,7 +65,7 @@
 
 all:: $(FILES)
 
-#if defined(FreeBSDArchitecture) || defined(NetBSDArchitecture) || defined(OpenBSDArchitecture)
+#if defined(FreeBSDArchitecture) || (defined(NetBSDArchitecture) && (NetBSDDistribution != NetBSDDebian)) || defined(OpenBSDArchitecture)
        SRCS1 = kbd_mode.c
      DEFINES = XFree86ConsoleDefines
 

--/04w6evG8XlLl3ft--

---------------------------------------
Received: (at 164026-done) by bugs.debian.org; 25 Nov 2002 05:03:47 +0000
>From branden@deadbeast.net Sun Nov 24 23:03:47 2002
Return-path: <branden@deadbeast.net>
Received: from pcp942041pcs.cstltn01.in.comcast.net (apocalypse.deadbeast.net) [68.57.244.226] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 18GBPP-0007ze-00; Sun, 24 Nov 2002 23:03:47 -0600
Received: by apocalypse.deadbeast.net (Postfix, from userid 1000)
	id E75E53DA3; Mon, 25 Nov 2002 00:03:16 -0500 (EST)
Date: Mon, 25 Nov 2002 00:03:16 -0500
From: Branden Robinson <branden@debian.org>
To: 164026-done@bugs.debian.org
Subject: Re: Bug#164026: NetBSD build patches
Message-ID: <20021125050316.GK945@apocalypse.deadbeast.net>
References: <20021009223616.GA4413@lightbearer.com>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="08ATZu8fEq0x2T3M"
Content-Disposition: inline
In-Reply-To: <20021009223616.GA4413@lightbearer.com>
User-Agent: Mutt/1.4i
Mail-Copies-To: nobody
X-No-CC: I subscribe to this list; do not CC me on replies.
Delivered-To: 164026-done@bugs.debian.org
X-Spam-Status: No, hits=-15.2 required=5.0
	tests=IN_REP_TO,PGP_SIGNATURE_2,QUOTED_EMAIL_TEXT,REFERENCES,
	      SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_MUTT
	version=2.41
X-Spam-Level: 


--08ATZu8fEq0x2T3M
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Oct 09, 2002 at 04:36:16PM -0600, Joel Baker wrote:
> I am attaching four patches to this bug; all four must be present in the
> debian/patches/ directory to successfully build on a NetBSD platform. I
> would like to request an assigned number-range (as with the other ports)
> for these patches; for the moment, they're named under the 999 convention.

Applied in xfree86 4.2.1-3.

Closing this bug.

--=20
G. Branden Robinson                |    I must despise the world which does
Debian GNU/Linux                   |    not know that music is a higher
branden@debian.org                 |    revelation than all wisdom and
http://people.debian.org/~branden/ |    philosophy. -- Ludwig van Beethoven

--08ATZu8fEq0x2T3M
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iEYEARECAAYFAj3hrxQACgkQ6kxmHytGonz74ACggm4YkyJXVUppUw1wtZQBWDot
7xsAmQH6Qidqq30ku1LkwGiSwOc9hY5w
=Rcoz
-----END PGP SIGNATURE-----

--08ATZu8fEq0x2T3M--



Reply to: